Contiki 2.6

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.
struct ctk_windowprev
 The previous window in the doubly linked list of open windows.
struct ctk_desktop * desktop
 The desktop on which this window is open.
struct process * owner
 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.
unsigned char w
 The width of the window, excluding window borders.
unsigned char h
 The height of the window, excluding window borders.
struct ctk_widgetinactive
 The list if widgets that cannot be selected by the user.
struct ctk_widgetactive
 The list of widgets that can be selected by the user.
struct ctk_widgetfocused
 A pointer to the widget on the active list that is currently selected, or NULL if no widget is selected.

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


Field Documentation

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

A pointer to the widget on the active list that is currently selected, or NULL if no widget is selected.

Definition at line 561 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 548 of file ctk.h.

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

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

Labels and separator widgets are placed on this list.

Definition at line 553 of file ctk.h.

Referenced by ctk_window_clear().

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

Definition at line 506 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 514 of file ctk.h.

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

Definition at line 506 of file ctk.h.

Referenced by ctk_window_close(), and ctk_window_open().

The title of the window.

Used for constructing the "Dekstop" menu.

Definition at line 519 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 521 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 548 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().