Freeciv-3.2
|
Go to the source code of this file.
Functions | |
struct widget * | create_window (struct gui_layer *pdest, utf8_str *title, Uint16 w, Uint16 h, Uint32 flags) |
struct widget * | create_window_skeleton (struct gui_layer *pdest, utf8_str *title, Uint32 flags) |
bool | resize_window (struct widget *pwindow, SDL_Surface *bcgd, SDL_Color *pcolor, Uint16 new_w, Uint16 new_h) |
bool | move_window (struct widget *pwindow) |
struct widget * create_window | ( | struct gui_layer * | pdest, |
utf8_str * | title, | ||
Uint16 | w, | ||
Uint16 | h, | ||
Uint32 | flags | ||
) |
Create window widget
Definition at line 231 of file widget_window.c.
Allocate Window Widget Structure. Text to titlebar is taken from 'title'.
Definition at line 180 of file widget_window.c.
Move window in a event loop.
Definition at line 352 of file widget_window.c.
bool resize_window | ( | struct widget * | pwindow, |
SDL_Surface * | bcgd, | ||
SDL_Color * | pcolor, | ||
Uint16 | new_w, | ||
Uint16 | new_h | ||
) |
Resize Window 'pwindow' to 'new_w' and 'new_h'. and refresh window background ( save screen under window ).
If bcgd == NULL then theme is set to white transparent ( ALPHA = 128 ).
Exp. if (resize_window(pwindow, bcgd, new_w, new_h)) { FREESURFACE(bcgd); }
Definition at line 255 of file widget_window.c.