Contiki 2.6
|
The generic CTK widget structure that contains all other widget structures. More...
#include <core/ctk/ctk.h>
Data Fields | |
struct ctk_widget * | next |
The next widget in the linked list of widgets that is contained in the ctk_window structure. | |
struct ctk_window * | window |
The window in which the widget is contained. | |
unsigned char | x |
The x position of the widget within the containing window, in character coordinates. | |
unsigned char | y |
The y position of the widget within the containing window, in character coordinates. | |
unsigned char | type |
The type of the widget: CTK_WIDGET_SEPARATOR, CTK_WIDGET_LABEL, CTK_WIDGET_BUTTON, CTK_WIDGET_HYPERLINK, CTK_WIDGET_TEXTENTRY, CTK_WIDGET_BITMAP or CTK_WIDGET_ICON. | |
unsigned char | w |
The width of the widget in character coordinates. | |
unsigned char | h |
The height of the widget in character coordinates. | |
union { | |
} | widget |
The union which contains the actual widget structure, as determined by the type field. |
The generic CTK widget structure that contains all other widget structures.
Since the widgets of a window are arranged on a linked list, the widget structure contains a next pointer which is used for this purpose. The widget structure also contains the placement and the size of the widget.
Finally, the actual per-widget structure is contained in this top-level widget structure.
unsigned char ctk_widget::h |
The height of the widget in character coordinates.
Definition at line 463 of file ctk.h.
Referenced by ctk_draw_widget(), and ctk_draw_window().
struct ctk_widget* ctk_widget::next |
The next widget in the linked list of widgets that is contained in the ctk_window structure.
unsigned char ctk_widget::type |
The type of the widget: CTK_WIDGET_SEPARATOR, CTK_WIDGET_LABEL, CTK_WIDGET_BUTTON, CTK_WIDGET_HYPERLINK, CTK_WIDGET_TEXTENTRY, CTK_WIDGET_BITMAP or CTK_WIDGET_ICON.
Definition at line 455 of file ctk.h.
Referenced by ctk_draw_widget().
unsigned char ctk_widget::w |
The width of the widget in character coordinates.
Definition at line 463 of file ctk.h.
Referenced by ctk_draw_widget().
union { ... } ctk_widget::widget |
The union which contains the actual widget structure, as determined by the type field.
struct ctk_window* ctk_widget::window |
The window in which the widget is contained.
Definition at line 447 of file ctk.h.
Referenced by ctk_draw_widget().
unsigned char ctk_widget::x |
The x position of the widget within the containing window, in character coordinates.
Definition at line 451 of file ctk.h.
Referenced by ctk_draw_dialog(), ctk_draw_widget(), and ctk_draw_window().
unsigned char ctk_widget::y |
The y position of the widget within the containing window, in character coordinates.
Definition at line 451 of file ctk.h.
Referenced by ctk_draw_dialog(), ctk_draw_widget(), and ctk_draw_window().