Contiki 3.x
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 506 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 558 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 512 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 562 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 549 of file ctk.h.

Referenced by ctk_draw_clear_window(), 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 554 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 507 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 515 of file ctk.h.

struct ctk_window * ctk_window::prev

The previous window in the doubly linked list of open windows.

Definition at line 507 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 520 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 522 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 549 of file ctk.h.

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