omtk - a platform independent GUI toolkit

Documentation

 

Widget

Structures

typedef struct OmtkWidget

typedef struct _OmtkWidget
{
} OmtkWidget;

This structure is used for all widgets. Do not access it directly.

Functions

omtk_widget_create()

OmtkWidget *omtk_widget_create(int type, \
void (*free_function)(OmtkWidget *widget));

This function creates a new widget. Don't use this function if you don't know what you do.

omtk_widget_retain()

void omtk_widget_retain(OmtkWidget *widget);

Increases the reference count of a widget.

omtk_widget_release()

void omtk_widget_release(OmtkWidget *widget);

Decreases the reference count of a widget.

omtk_widget_free()

void omtk_widget_free(OmtkWidget *widget);

This function frees a widget. Don't use this function if you don't know what you do.

omtk_widget_parent()

OmtkWidget *omtk_widget_parent(OmtkWidget *widget);

Returns the parent widget of a widget.

omtk_widget_custom_set()

void omtk_widget_custom_set(OmtkWidget *widget, void *custom);

With this function you can assign a pointer to a widget. omtk won't use this pointer.

omtk_widget_custom_get()

void *omtk_widget_custom_get(OmtkWidget *widget);

Returns the pointer which was set with omtk_widget_custom_set().

Added in omtk 0.1.2.

omtk_widget_lookup()

OmtkWidget *omtk_widget_lookup(OmtkWidget *parent, char *name);

Added in omtk 0.1.2.

omtk_widget_register()

void omtk_widget_register(OmtkWidget *parent, OmtkWidget *widget, char *name);



Zurück zu www.eggdrop.ch | Back to www.eggdrop.ch

Last update: 20.02.04

Copyright (C) 2004, 2005 by Thomas "tom" Steinacher <tom at eggdrop.ch>

SourceForge.net Logo Valid HTML 4.0!