#include <ctk.h>
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.
Definition at line 427 of file ctk.h.
Data Fields | |
| ctk_widget * | next |
| The next widget in the linked list of widgets that is contained in the ctk_window structure. | |
| 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 { | |
| ctk_widget_label label | |
| ctk_widget_button button | |
| ctk_widget_hyperlink hyperlink | |
| ctk_widget_textentry textentry | |
| ctk_widget_icon icon | |
| ctk_widget_bitmap bitmap | |
| } | widget |
| The union which contains the actual widget structure, as determined by the type field. | |
1.4.4