Data Structures | |
struct | Ewl_Widget |
The class inheriting from Ewl_Object that provides appearance, parent, and callback capabilities. More... | |
struct | Ewl_Widget |
The class inheriting from Ewl_Object that provides appearance, parent, and callback capabilities. More... | |
Defines | |
#define | EWL_WIDGET(widget) ((Ewl_Widget *) widget) |
Typecast a pointer to an Ewl_Widget pointer. | |
#define | LAYER(w) EWL_WIDGET(w)->layer |
Used to retrieve the layer of a widget. | |
Typedefs | |
typedef Ewl_Widget | Ewl_Widget |
The class that all widgets should inherit. | |
Functions | |
int | ewl_widget_init (Ewl_Widget *w, char *appearance) |
Initialize a widget to default values and callbacks. | |
void | ewl_widget_reparent (Ewl_Widget *widget) |
initiate reparent of the specified widget | |
void | ewl_widget_realize (Ewl_Widget *widget) |
Realize the specified widget. | |
void | ewl_widget_unrealize (Ewl_Widget *w) |
Unrealize the specified widget. | |
void | ewl_widget_show (Ewl_Widget *widget) |
mark a widget as visible | |
void | ewl_widget_hide (Ewl_Widget *widget) |
Mark a widget as invisible. | |
void | ewl_widget_destroy (Ewl_Widget *widget) |
Destroy the specified widget. | |
void | ewl_widget_configure (Ewl_Widget *widget) |
Initiate configuring of the specified widget. | |
void | ewl_widget_theme_update (Ewl_Widget *w) |
Initiate theme update of the specified widget. | |
void | ewl_widget_data_set (Ewl_Widget *w, void *k, void *v) |
Attach the specified key / value pair to the widget. | |
void | ewl_widget_data_del (Ewl_Widget *w, void *k) |
Remove the specified key / value pair from the widget. | |
void * | ewl_widget_data_get (Ewl_Widget *w, void *k) |
retrieve the specified key / value pair from the widget | |
void | ewl_widget_state_set (Ewl_Widget *w, char *state) |
Update the appearance of the widget to a state. | |
void | ewl_widget_appearance_set (Ewl_Widget *w, char *appearance) |
Change the appearance of the specified widget. | |
char * | ewl_widget_appearance_get (Ewl_Widget *w) |
Retrieve the appearance key of the widget. | |
char * | ewl_widget_appearance_single_get (Ewl_Widget *w) |
Retrieve the last element of the appearance key of the widget. | |
void | ewl_widget_inherit (Ewl_Widget *widget, char *type) |
Appends the given inheritance to this widgets inheritance string. | |
unsigned int | ewl_widget_type_is (Ewl_Widget *widget, char *type) |
Determine if the widget w has inherited from the type t. | |
void | ewl_widget_parent_set (Ewl_Widget *w, Ewl_Widget *p) |
change the parent of the specified widget | |
void | ewl_widget_enable (Ewl_Widget *w) |
Re-enable a disabled widget. | |
void | ewl_widget_disable (Ewl_Widget *w) |
Prevent a widget from receiving any events. | |
void | ewl_widget_print (Ewl_Widget *w) |
Prints info for debugging a widget's state information. | |
int | ewl_widget_layer_sum_get (Ewl_Widget *w) |
Sums the layers of a widgets parents to determine it's absolute layer. | |
void | ewl_widget_layer_set (Ewl_Widget *w, int layer) |
Set the relative layer to it's parent. | |
int | ewl_widget_layer_get (Ewl_Widget *w) |
Retrieve a widgets layer relative to it's parent. | |
void | ewl_widget_internal_set (Ewl_Widget *w, unsigned int val) |
Marks a widget as one used internally to another container. | |
unsigned int | ewl_widget_internal_is (Ewl_Widget *w) |
Checks the widget for the internal flag. | |
void | ewl_widget_clipped_set (Ewl_Widget *w, unsigned int val) |
Marks whether the widget should be clipped at it's boundaries. | |
unsigned int | ewl_widget_clipped_is (Ewl_Widget *w) |
Checks if a widget clips it's theme object. | |
void | ewl_widget_focus_send (Ewl_Widget *w) |
Changes the keyboard focus to the widget w. | |
Ewl_Widget * | ewl_widget_focused_get (void) |
Retrieve the currently focused widget. | |
void | ewl_widget_tab_order_push (Ewl_Widget *w) |
Changes the order in the embed so w receives focus first on tab. |
The Ewl_Widget extends the Ewl_Object to provide the basic facilities necessary for widgets to interact with the end user. This includes basic callbacks for input events, window information changes, and drawing to the display.
|
The class that all widgets should inherit. Provides reference to a parent widget/container, callbacks, and appearance information. |
|
Retrieve the appearance key of the widget.
|
|
Change the appearance of the specified widget.
|
|
Retrieve the last element of the appearance key of the widget.
|
|
Checks if a widget clips it's theme object.
|
|
Marks whether the widget should be clipped at it's boundaries.
|
|
Initiate configuring of the specified widget.
|
|
Remove the specified key / value pair from the widget.
|
|
retrieve the specified key / value pair from the widget
|
|
Attach the specified key / value pair to the widget.
|
|
Destroy the specified widget.
|
|
Prevent a widget from receiving any events.
|
|
Re-enable a disabled widget.
|
|
Changes the keyboard focus to the widget w.
|
|
Retrieve the currently focused widget.
|
|
Mark a widget as invisible.
|
|
Appends the given inheritance to this widgets inheritance string.
|
|
Initialize a widget to default values and callbacks.
|
|
Checks the widget for the internal flag.
|
|
Marks a widget as one used internally to another container.
|
|
Retrieve a widgets layer relative to it's parent.
|
|
Set the relative layer to it's parent.
|
|
Sums the layers of a widgets parents to determine it's absolute layer.
|
|
change the parent of the specified widget
|
|
Prints info for debugging a widget's state information.
|
|
Realize the specified widget.
|
|
initiate reparent of the specified widget
|
|
mark a widget as visible
|
|
Update the appearance of the widget to a state.
|
|
Changes the order in the embed so w receives focus first on tab.
|
|
Initiate theme update of the specified widget.
|
|
Determine if the widget w has inherited from the type t.
|
|
Unrealize the specified widget.
|