|
PatchworkOS
19e446b
A non-POSIX operating system.
|
#include "start_menu.h"#include "taskbar.h"#include <patchwork/patchwork.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/defs.h>#include <sys/fs.h>#include <sys/proc.h>Go to the source code of this file.
Data Structures | |
| struct | start_entry_t |
Macros | |
| #define | START_ENTRY_MAX 16 |
| #define | START_MENU_HEIGHT(frameSize) (frameSize + 12 * START_BUTTON_HEIGHT) |
| #define | START_MENU_YPOS_START(screenRect, panelSize, frameSize) (RECT_HEIGHT(screenRect)) |
| #define | START_MENU_YPOS_END(screenRect, panelSize, frameSize) (RECT_HEIGHT(screenRect) - START_MENU_HEIGHT(frameSize) - panelSize) |
Functions | |
| static uint64_t | startmenu_procedure (window_t *win, element_t *elem, const event_t *event) |
| window_t * | start_menu_new (window_t *taskbar, display_t *disp) |
| static void | start_menu_load_entries (window_t *startMenu) |
| 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) |
Variables | |
| static start_entry_t | entries [START_ENTRY_MAX] = {0} |
| #define START_ENTRY_MAX 16 |
Definition at line 13 of file start_menu.c.
| #define START_MENU_HEIGHT | ( | frameSize | ) | (frameSize + 12 * START_BUTTON_HEIGHT) |
Definition at line 24 of file start_menu.c.
| #define START_MENU_YPOS_START | ( | screenRect, | |
| panelSize, | |||
| frameSize | |||
| ) | (RECT_HEIGHT(screenRect)) |
Definition at line 26 of file start_menu.c.
| #define START_MENU_YPOS_END | ( | screenRect, | |
| panelSize, | |||
| frameSize | |||
| ) | (RECT_HEIGHT(screenRect) - START_MENU_HEIGHT(frameSize) - panelSize) |
Definition at line 27 of file start_menu.c.
|
static |
Definition at line 30 of file start_menu.c.
Definition at line 172 of file start_menu.c.
|
static |
Definition at line 198 of file start_menu.c.
| void start_menu_open | ( | window_t * | startMenu | ) |
Definition at line 277 of file start_menu.c.
| void start_menu_close | ( | window_t * | startMenu | ) |
Definition at line 308 of file start_menu.c.
| start_menu_state_t start_menu_get_state | ( | window_t * | startMenu | ) |
Definition at line 324 of file start_menu.c.
|
static |
Definition at line 22 of file start_menu.c.