Contiki 2.5
Data Fields
ctk_window Struct Reference

Representation of a CTK window. More...

#include <core/ctk/ctk.h>

Data Fields

struct ctk_windownext
 
 The next window in the doubly linked

list of open windows. More...

 
struct ctk_windowprev
 
                   The previous window in the doubly

linked list of open windows. More...

 
struct ctk_desktop * desktop
 The desktop on which this window is open. More...
 
struct process * owner
 
                   The process that owns the

window. More...

 
char * title
 The title of the window. More...
 
unsigned char titlelen
 
     The length of the title, cached for

speed reasons. More...

 
unsigned char w
 
               The width of the window, excluding

window borders. More...

 
unsigned char h
 
                           The height of the window,

excluding window borders. More...

 
struct ctk_widgetinactive
 
The list if widgets that cannot be

selected by the user. More...

 
struct ctk_widgetactive
 
  The list of widgets that can be

selected by the user. More...

 
struct ctk_widgetfocused
 
 A pointer to the widget on the

active list that is currently selected, or NULL if no widget is selected. More...

 

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 507 of file ctk.h.

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 559 of file ctk.h.

Referenced by ctk_window_clear().

struct ctk_desktop* ctk_window::desktop

The desktop on which this window is open.

Definition at line 513 of file ctk.h.

struct ctk_widget* ctk_window::focused

 A pointer to the widget on the

active list that is currently selected, or NULL if no widget is selected.

Definition at line 563 of file ctk.h.

Referenced by ctk_draw_widget(), and ctk_window_clear().

unsigned char ctk_window::h

                           The height of the window,

excluding window borders.

Definition at line 550 of file ctk.h.

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

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 555 of file ctk.h.

Referenced by ctk_window_clear().

struct ctk_window* ctk_window::next

 The next window in the doubly linked

list of open windows.

Definition at line 508 of file ctk.h.

Referenced by ctk_window_close(), and ctk_window_open().

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 516 of file ctk.h.

struct ctk_window * ctk_window::prev

                   The previous window in the doubly

linked list of open windows.

Definition at line 508 of file ctk.h.

Referenced by ctk_window_close(), and ctk_window_open().

char* ctk_window::title

The title of the window.

Used for constructing the "Dekstop" menu.

Definition at line 521 of file ctk.h.

Referenced by ctk_menu_new().

unsigned char ctk_window::titlelen

     The length of the title, cached for

speed reasons.

Definition at line 523 of file ctk.h.

Referenced by ctk_draw_window().

unsigned char ctk_window::w

               The width of the window, excluding

window borders.

Definition at line 550 of file ctk.h.

Referenced by ctk_draw_clear_window(), ctk_draw_dialog(), ctk_draw_widget(), ctk_draw_window(), ctk_window_close(), and ctk_window_open().