Freeciv-3.3
|
#include "widget.h"
Go to the source code of this file.
Data Structures | |
struct | scroll_bar |
Macros | |
#define | scrollbar_size(scroll) |
#define | hide_scrollbar(scrollbar) |
#define | show_scrollbar(scrollbar) |
Functions | |
struct widget * | create_vertical (SDL_Surface *vert_theme, struct gui_layer *pdest, Uint16 height, Uint32 flags) |
int | draw_vert (struct widget *vert, Sint16 x, Sint16 y) |
Uint32 | create_vertical_scrollbar (struct advanced_dialog *dlg, Uint8 step, Uint8 active, bool create_scrollbar, bool create_buttons) |
void | setup_vertical_scrollbar_area (struct scroll_bar *scroll, Sint16 start_x, Sint16 start_y, Uint16 height, bool swap_start_x) |
void | setup_vertical_scrollbar_default_callbacks (struct scroll_bar *scroll) |
struct widget * | create_horizontal (SDL_Surface *horiz_theme, struct gui_layer *pdest, Uint16 width, Uint32 flags) |
int | draw_horiz (struct widget *horiz, Sint16 x, Sint16 y) |
Uint32 | create_horizontal_scrollbar (struct advanced_dialog *dlg, Sint16 start_x, Sint16 start_y, Uint16 width, Uint16 active, bool create_scrollbar, bool create_buttons, bool swap_start_y) |
#define scrollbar_size | ( | scroll | ) |
Definition at line 32 of file widget_scrollbar.h.
Definition at line 59 of file widget_scrollbar.h.
struct widget * create_horizontal | ( | SDL_Surface * | horiz_theme, |
struct gui_layer * | pdest, | ||
Uint16 | width, | ||
Uint32 | flags | ||
) |
Create ( malloc ) horizontal scroll_bar widget structure.
Theme graphic is taken from horiz_theme surface;
This function determinate future size of horizontal scroll_bar ( width = 'width', height = 'horiz_theme->h' ) and save this in: pwidget->size rectangle ( SDL_Rect )
Return pointer to created widget.
Definition at line 296 of file widget_scrollbar.c.
Uint32 create_horizontal_scrollbar | ( | struct advanced_dialog * | dlg, |
Sint16 | start_x, | ||
Sint16 | start_y, | ||
Uint16 | width, | ||
Uint16 | active, | ||
bool | create_scrollbar, | ||
bool | create_buttons, | ||
bool | swap_start_y | ||
) |
Create a new horizontal scrollbar to active widgets list.
Definition at line 1545 of file widget_scrollbar.c.
struct widget * create_vertical | ( | SDL_Surface * | vert_theme, |
struct gui_layer * | pdest, | ||
Uint16 | height, | ||
Uint32 | flags | ||
) |
Create ( malloc ) vertical scroll_bar widget structure.
Theme graphic is taken from vert_theme surface;
This function determinate future size of vertical scroll_bar ( width = 'vert_theme->w', height = 'height' ) and save this in: pwidget->size rectangle ( SDL_Rect )
Return pointer to created widget.
Definition at line 164 of file widget_scrollbar.c.
Uint32 create_vertical_scrollbar | ( | struct advanced_dialog * | dlg, |
Uint8 | step, | ||
Uint8 | active, | ||
bool | create_scrollbar, | ||
bool | create_buttons | ||
) |
Create a new vertical scrollbar to active widgets list.
Definition at line 486 of file widget_scrollbar.c.
Draw horizontal scrollbar.
Definition at line 320 of file widget_scrollbar.c.
Draw vertical scrollbar.
Definition at line 187 of file widget_scrollbar.c.
void setup_vertical_scrollbar_area | ( | struct scroll_bar * | scroll, |
Sint16 | start_x, | ||
Sint16 | start_y, | ||
Uint16 | height, | ||
bool | swap_start_x | ||
) |
Setup area for the vertical scrollbar.
Definition at line 567 of file widget_scrollbar.c.
void setup_vertical_scrollbar_default_callbacks | ( | struct scroll_bar * | scroll | ) |
Set default vertical scrollbar handling for scrollbar.
Definition at line 1522 of file widget_scrollbar.c.