|
PatchworkOS
|
#include "internal.h"Go to the source code of this file.
Data Structures | |
| struct | popup_t |
Functions | |
| static uint64_t | popup_procedure (window_t *win, element_t *elem, const event_t *event) |
| popup_result_t | popup_open (const char *text, const char *title, popup_type_t type) |
| popup_result_t popup_open | ( | const char * | text, |
| const char * | title, | ||
| popup_type_t | type | ||
| ) |
Definition at line 87 of file popup.c.
References CLOCKS_NEVER, display_dispatch(), display_free(), display_get_screen(), display_new(), display_next(), ERR, NULL, POPUP_HEIGHT, popup_procedure(), POPUP_RES_CLOSE, POPUP_RES_ERROR, POPUP_WIDTH, RECT_HEIGHT, RECT_INIT_DIM, RECT_WIDTH, popup_t::result, screenRect, SURFACE_WINDOW, WINDOW_DECO, window_free(), window_new(), and WINDOW_NO_CONTROLS.
Referenced by startmenu_procedure().
Definition at line 10 of file popup.c.
References ACTION_RELEASE, ALIGN_CENTER, ALIGN_MIN, theme_color_set_t::backgroundNormal, theme_t::bigPadding, rect_t::bottom, button_new(), theme_t::deco, display_disconnect(), draw_rect(), draw_text_multiline(), element_draw_begin(), element_draw_end(), element_get_content_rect(), element_get_private(), element_get_theme(), ELEMENT_NONE, theme_color_set_t::foregroundNormal, event_t::lAction, rect_t::left, LEVENT_ACTION, LEVENT_INIT, LEVENT_REDRAW, NULL, POPUP_BUTTON_AREA_HEIGHT, POPUP_BUTTON_HEIGHT, POPUP_BUTTON_WIDTH, POPUP_HORIZONTAL_PADDING, POPUP_OK, POPUP_RES_CANCEL, POPUP_RES_NO, POPUP_RES_OK, POPUP_RES_RETRY, POPUP_RES_YES, POPUP_RETRY_CANCEL, POPUP_YES_NO, RECT_HEIGHT, RECT_INIT_DIM, RECT_WIDTH, popup_t::result, rect_t::right, popup_t::text, theme, levent_action_t::type, event_t::type, popup_t::type, theme_t::view, and window_get_display().
Referenced by popup_open().