Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

ctk_window Struct Reference
[CTK device driver functions]

#include <ctk.h>


Detailed Description

Representation of a CTK window.

For the CTK, each window is repessented by a ctk_window structure. All open windows are kept on a doubly linked list, linked by the next and prev fields in the ctk_window struct. The window structure holds all widgets that is contained in the window as well as a pointer to the currently selected widget.

Definition at line 489 of file ctk.h.

Data Fields

ctk_windownext
 The next window in the doubly linked list of open windows.
ctk_windowprev
 The previous window in the doubly linked list of open windows.
ctk_desktopdesktop
 The desktop on which this window is open.
processowner
 The process that owns the window.
char * title
 The title of the window.
unsigned char titlelen
 The length of the title, cached for speed reasons.
ctk_label closebutton
ctk_label titlebutton
unsigned char x
 The x coordinate of the window, in characters.
unsigned char y
 The y coordinate of the window, in characters.
unsigned char w
 The width of the window, excluding window borders.
unsigned char h
 The height of the window, excluding window borders.
ctk_widgetinactive
 The list if widgets that cannot be selected by the user.
ctk_widgetactive
 The list of widgets that can be selected by the user.
ctk_widgetfocused
 A pointer to the widget on the active list that is currently selected, or NULL if no widget is selected.


Field Documentation

struct ctk_widget* ctk_window::active
 

The list of widgets that can be selected by the user.

Buttons, hyperlinks, text entry fields, etc., are placed on this list.

Definition at line 539 of file ctk.h.

Referenced by ctk_window_clear(), and PROCESS_THREAD().

struct ctk_widget* ctk_window::inactive
 

The list if widgets that cannot be selected by the user.

Labels and separator widgets are placed on this list.

Definition at line 535 of file ctk.h.

Referenced by ctk_window_clear().

struct process* ctk_window::owner
 

The process that owns the window.

This process will be the receiver of all CTK signals that pertain to this window.

Definition at line 498 of file ctk.h.

Referenced by PROCESS_THREAD().

char* ctk_window::title
 

The title of the window.

Used for constructing the "Dekstop" menu.

Definition at line 503 of file ctk.h.


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4