Freeciv-3.3
Loading...
Searching...
No Matches
Functions
widget_window.h File Reference

Go to the source code of this file.

Functions

struct widgetcreate_window (struct gui_layer *pdest, utf8_str *title, Uint16 w, Uint16 h, Uint32 flags)
 
struct widgetcreate_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)
 

Function Documentation

◆ create_window()

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.

◆ create_window_skeleton()

struct widget * create_window_skeleton ( struct gui_layer pdest,
utf8_str title,
Uint32  flags 
)

Allocate Window Widget Structure. Text to titlebar is taken from 'title'.

Definition at line 180 of file widget_window.c.

◆ move_window()

bool move_window ( struct widget pwindow)

Move window in a event loop.

Definition at line 352 of file widget_window.c.

◆ resize_window()

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); }

Returns
Was a new surface allocated, which caller should free

Definition at line 255 of file widget_window.c.