Contiki 2.5
|
Representation of a CTK window. More...
#include <core/ctk/ctk.h>
Data Fields | |
struct ctk_window * | next |
The next window in the doubly linked list of open windows. More... | |
struct ctk_window * | prev |
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_widget * | inactive |
The list if widgets that cannot be selected by the user. More... | |
struct ctk_widget * | active |
The list of widgets that can be selected by the user. More... | |
struct ctk_widget * | focused |
A pointer to the widget on the active list that is currently selected, or NULL if no widget is selected. More... | |
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.
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 |
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 |
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().