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. | |
struct ctk_window * | prev |
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_widget * | inactive |
The list if widgets that cannot be selected by the user. | |
struct ctk_widget * | active |
The list of widgets that can be selected by the user. | |
struct ctk_widget * | focused |
A pointer to the widget on the active list that is currently selected, or NULL if no widget is selected. |
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.
struct ctk_widget* ctk_window::active [read] |
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 [read] |
struct ctk_widget* ctk_window::focused [read] |
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().
struct ctk_widget* ctk_window::inactive [read] |
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().
struct ctk_window* ctk_window::next [read] |
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 [read] |
struct ctk_window * ctk_window::prev [read] |
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().
char* ctk_window::title |
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(), and ctk_draw_window().