BeRTOS
|
Very simple hierarchical windowing system. More...
Go to the source code of this file.
Data Structures | |
struct | Window |
Window handle and context structure. More... | |
Functions | |
void | win_compose (Window *w) |
Map the contents of all child-windows into the bitmap of w. | |
void | win_open (Window *w, Window *parent) |
Map window w into parent. | |
void | win_close (Window *w) |
Detach window from its parent. | |
void | win_raise (Window *w) |
Move window to the topmost position relative to its sibling. | |
void | win_setGeometry (Window *w, const Rect *new_geom) |
Set window position and size at the same time. | |
void | win_move (Window *w, coord_t left, coord_t top) |
Move window to specified position. | |
void | win_resize (Window *w, coord_t width, coord_t height) |
Resize the rectangle of a window. | |
void | win_create (Window *w, Bitmap *bm) |
Initialize a new window structure. |
Very simple hierarchical windowing system.
All functions in this module are to be intended as methods of the Window class. Please see its documentation for a module-wise introduction.
Definition in file win.h.
void win_close | ( | Window * | w | ) |
Detach window from its parent.
Closing a window causes it to become orphan of its parent. Its content will no longer appear in its parent after the next refresh cycle.
void win_compose | ( | Window * | w | ) |
Initialize a new window structure.
The new window initial position is set to (0,0). The size is set to the size of the installed bitmap, or (0,0) if there's no backing store.
Move window to specified position.
Move the window top-left corner to the pixel coordinates left and top, which are relative to the parent window.
Map window w into parent.
The new window becomes the topmost window.
void win_raise | ( | Window * | w | ) |
Move window to the topmost position relative to its sibling.
Set window position and size at the same time.
This function is equivalent to subsequent calls to win_move() and win_resize() using the coordinates provided by the new_geom rectangle.