Contiki 2.5
Data Fields
ctk_widget Struct Reference

The generic CTK widget structure that contains all other widget structures. More...

#include <core/ctk/ctk.h>

Data Fields

struct ctk_widgetnext
 
  The next widget in the linked list

of widgets that is contained in the ctk_window structure. More...

 
struct ctk_windowwindow
 
The window in which the widget is

contained. More...

 
unsigned char x
 
             The x position of the widget within

the containing window, in character coordinates. More...

 
unsigned char y
 
                         The y position of the widget within

the containing window, in character coordinates. More...

 
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. More...

 
unsigned char w
 
             The width of the widget in character

coordinates. More...

 
unsigned char h
 
                         The height of the widget in

character coordinates. More...

 
union {
widget
 
                   The union which contains the actual

widget structure, as determined by the type field. More...

 

Detailed Description

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.

Definition at line 445 of file ctk.h.

Field Documentation

unsigned char ctk_widget::h

                         The height of the widget in

character coordinates.

Definition at line 465 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.

Definition at line 446 of file ctk.h.

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 457 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 465 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 449 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 453 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 453 of file ctk.h.

Referenced by ctk_draw_dialog(), ctk_draw_widget(), and ctk_draw_window().