|
PatchworkOS
|
Go to the source code of this file.
Data Structures | |
| struct | start_menu_t |
Macros | |
| #define | START_BUTTON_HEIGHT 32 |
| #define | START_MENU_WIDTH 250 |
| #define | START_MENU_ANIMATION_TIME (CLOCKS_PER_SEC / 10) |
| #define | UEVENT_START_MENU_CLOSE (UEVENT_START + 1) |
Enumerations | |
| enum | start_menu_state_t { START_MENU_CLOSED , START_MENU_OPEN , START_MENU_CLOSING , START_MENU_OPENING } |
Functions | |
| window_t * | start_menu_new (window_t *taskbar, display_t *disp) |
| void | start_menu_open (window_t *startMenu) |
| void | start_menu_close (window_t *startMenu) |
| start_menu_state_t | start_menu_get_state (window_t *startMenu) |
| #define START_BUTTON_HEIGHT 32 |
Definition at line 6 of file start_menu.h.
| #define START_MENU_ANIMATION_TIME (CLOCKS_PER_SEC / 10) |
Definition at line 10 of file start_menu.h.
| #define START_MENU_WIDTH 250 |
Definition at line 8 of file start_menu.h.
| #define UEVENT_START_MENU_CLOSE (UEVENT_START + 1) |
Definition at line 12 of file start_menu.h.
| enum start_menu_state_t |
| Enumerator | |
|---|---|
| START_MENU_CLOSED | |
| START_MENU_OPEN | |
| START_MENU_CLOSING | |
| START_MENU_OPENING | |
Definition at line 14 of file start_menu.h.
| void start_menu_close | ( | window_t * | startMenu | ) |
Definition at line 309 of file start_menu.c.
References start_menu_t::animationStartTime, CLOCKS_PER_SEC, display_push(), element_get_private(), NULL, START_MENU_CLOSED, START_MENU_CLOSING, start_menu_t::state, start_menu_t::taskbar, TIMER_REPEAT, UEVENT_START_MENU_CLOSE, uptime(), window_get_client_element(), window_get_display(), window_get_id(), and window_set_timer().
Referenced by startmenu_procedure(), and taskbar_procedure().
| start_menu_state_t start_menu_get_state | ( | window_t * | startMenu | ) |
Definition at line 325 of file start_menu.c.
References element_get_private(), NULL, START_MENU_CLOSED, start_menu_t::state, and window_get_client_element().
Referenced by taskbar_procedure().
Definition at line 173 of file start_menu.c.
References display_get_screen(), ERR, theme_t::frameSize, NULL, theme_t::panelSize, printf(), RECT_INIT_DIM, screenRect, theme_t::smallPadding, START_MENU_HEIGHT, START_MENU_WIDTH, START_MENU_YPOS_START, startmenu_procedure(), SURFACE_WINDOW, theme, theme_global_get(), window_free(), window_new(), WINDOW_NONE, and window_set_visible().
Referenced by taskbar_procedure().
| void start_menu_open | ( | window_t * | startMenu | ) |
Definition at line 278 of file start_menu.c.
References start_menu_t::animationStartTime, rect_t::bottom, CLOCKS_PER_SEC, display_get_screen(), element_get_private(), element_get_theme(), theme_t::frameSize, theme_t::panelSize, RECT_HEIGHT, screenRect, start_menu_load_entries(), START_MENU_OPEN, START_MENU_OPENING, START_MENU_YPOS_START, start_menu_t::state, theme, TIMER_REPEAT, rect_t::top, uptime(), window_get_client_element(), window_get_display(), window_get_rect(), window_move(), window_set_focus(), and window_set_timer().
Referenced by taskbar_procedure().