PatchworkOS
Loading...
Searching...
No Matches
start_menu.h File Reference
#include <libpatchwork/patchwork.h>
#include <stdbool.h>

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_tstart_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)
 

Macro Definition Documentation

◆ START_BUTTON_HEIGHT

#define START_BUTTON_HEIGHT   32

Definition at line 6 of file start_menu.h.

◆ START_MENU_ANIMATION_TIME

#define START_MENU_ANIMATION_TIME   (CLOCKS_PER_SEC / 10)

Definition at line 10 of file start_menu.h.

◆ START_MENU_WIDTH

#define START_MENU_WIDTH   250

Definition at line 8 of file start_menu.h.

◆ UEVENT_START_MENU_CLOSE

#define UEVENT_START_MENU_CLOSE   (UEVENT_START + 1)

Definition at line 12 of file start_menu.h.

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ start_menu_close()

◆ start_menu_get_state()

start_menu_state_t start_menu_get_state ( window_t startMenu)

◆ start_menu_new()

◆ start_menu_open()