48#define widget_add_next(new_widget, add_dock) \
50 new_widget->prev = add_dock; \
51 new_widget->next = add_dock->next; \
52 if (add_dock->next) { \
53 add_dock->next->prev = new_widget; \
55 add_dock->next = new_widget; \
133 ret = (*baseclass_redraw)(
vert);
265 ret = (*baseclass_redraw)(horiz);
337 (
float)scroll->
count);
384 struct widget *begin_active_widget_list,
385 struct widget *begin_widget_list,
386 struct widget *end_widget_list);
389 struct widget *begin_active_widget_list,
390 struct widget *begin_widget_list,
391 struct widget *end_widget_list);
394 struct widget *begin_active_widget_list,
395 struct widget *begin_widget_list,
396 struct widget *end_widget_list);
514 buf->private_data.adv_dlg = dlg;
529 buf->private_data.adv_dlg = dlg;
544 buf->private_data.adv_dlg = dlg;
630 struct widget *begin_widget_list,
631 struct widget *end_widget_list,
632 int active,
int step,
int dir)
634 struct widget *begin = active_widget_list;
644 if (
buf != end_widget_list) {
689 buf->size.y =
tmp->size.y;
692 if ((
buf->size.w !=
tmp->size.w) || (
buf->size.h !=
tmp->size.h)) {
705 if (
tmp == begin_widget_list) {
722 buf->size.y +=
buf->size.h;
726 buf->size.y =
buf->next->size.y;
741 count = active *
step;
754 while (count &&
buf != begin_widget_list->
prev) {
759 if (!count &&
buf != begin_widget_list->
prev) {
827 buf->size.x =
tmp->size.x;
828 buf->size.y =
tmp->size.y;
831 if ((
buf->size.w !=
tmp->size.w) || (
buf->size.h !=
tmp->size.h)) {
979 && (
motion->vscroll->pscroll_bar->size.y >
motion->vscroll->min)))
982 && (
motion->vscroll->pscroll_bar->size.y < (
motion->vscroll->max -
motion->vscroll->pscroll_bar->size.h)))) ) {
989 if ((
motion->vscroll->pscroll_bar->size.y +
yrel) >
990 (
motion->vscroll->max -
motion->vscroll->pscroll_bar->size.h)) {
992 motion->vscroll->pscroll_bar->size.y =
993 (
motion->vscroll->max -
motion->vscroll->pscroll_bar->size.h);
995 }
else if ((
motion->vscroll->pscroll_bar->size.y +
yrel) <
motion->vscroll->min) {
996 motion->vscroll->pscroll_bar->size.y =
motion->vscroll->min;
1008 motion->begin_widget_list,
1051 struct widget *begin_active_widget_list,
1052 struct widget *begin_widget_list,
1053 struct widget *end_widget_list)
1056 struct widget *begin = begin_active_widget_list;
1060 begin = begin->
prev;
1064 down.
begin = begin_active_widget_list;
1080 struct widget *begin_active_widget_list,
1081 struct widget *begin_widget_list,
1082 struct widget *end_widget_list)
1087 up.
begin = begin_active_widget_list;
1102 struct widget *begin_active_widget_list,
1103 struct widget *begin_widget_list,
1104 struct widget *end_widget_list)
1109 motion.begin = begin_active_widget_list;
1259 buf->size.x =
buf->next->size.x;
1260 buf->size.y =
buf->next->size.y;
1261 buf->gfx =
buf->next->gfx;
1290 buf->size.x =
tmp->size.x;
1291 buf->size.y =
tmp->size.y +
tmp->size.h;
1295 buf->size.x =
buf->prev->size.x;
1296 buf->size.y =
buf->prev->size.y;
1297 buf->gfx =
buf->prev->gfx;
1403 if (
buf == pwidget) {
1414 while (
buf != pwidget) {
1417 buf->size.x =
buf->prev->size.x;
1418 buf->size.y =
buf->prev->size.y;
1433std:
while (
buf != pwidget) {
1434 buf->gfx =
buf->next->gfx;
1436 buf->size.x =
buf->next->size.x;
1437 buf->size.y =
buf->next->size.y;
1466 while (
buf != pwidget) {
1467 buf->gfx =
buf->next->gfx;
1469 buf->size.x =
buf->next->size.x;
1470 buf->size.y =
buf->next->size.y;
1573 buf->data.ptr = (
void *)dlg;
1576 buf->size.x = start_x;
1594 buf->data.ptr = (
void *)dlg;
1616 buf->data.ptr = (
void *)dlg;
1633 buf->size.x = start_x;
struct canvas int int struct sprite int int int int height
struct canvas int int struct sprite int int int width
SDL_Surface * crop_rect_from_surface(SDL_Surface *psource, SDL_Rect *prect)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
struct sdl2_data main_data
int blit_entire_src(SDL_Surface *psrc, SDL_Surface *pdest, Sint16 dest_x, Sint16 dest_y)
SDL_Surface * create_surf(int width, int height, Uint32 flags)
int FilterMouseMotionEvents(void *data, SDL_Event *event)
Uint16 gui_event_loop(void *data, void(*loop_action)(void *data), Uint16(*key_down_handler)(SDL_Keysym key, void *data), Uint16(*key_up_handler)(SDL_Keysym key, void *data), Uint16(*textinput_handler)(const char *text, void *data), Uint16(*finger_down_handler)(SDL_TouchFingerEvent *touch_event, void *data), Uint16(*finger_up_handler)(SDL_TouchFingerEvent *touch_event, void *data), Uint16(*finger_motion_handler)(SDL_TouchFingerEvent *touch_event, void *data), Uint16(*mouse_button_down_handler)(SDL_MouseButtonEvent *button_event, void *data), Uint16(*mouse_button_up_handler)(SDL_MouseButtonEvent *button_event, void *data), Uint16(*mouse_motion_handler)(SDL_MouseMotionEvent *motion_event, void *data))
struct widget * selected_widget
#define DEFAULT_MOVE_STEP
#define PRESSED_EVENT(event)
#define fc_assert_msg(condition, message,...)
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
#define fc_calloc(n, esz)
struct widget * begin_active_widget_list
struct widget * end_widget_list
struct widget * end_active_widget_list
struct widget * active_widget_list
struct scroll_bar * scroll
struct widget * begin_widget_list
struct widget * end_widget_list
struct widget * begin_widget_list
struct scroll_bar * vscroll