-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaud_dropdown_menu.h
More file actions
17 lines (16 loc) · 956 Bytes
/
maud_dropdown_menu.h
File metadata and controls
17 lines (16 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "maud_dropdown_menudef.h"
#include "maud_string.h"
#include "maud_player.h"
void maud_dropdown_menu_init(maud_dropdown_menu_t* menu, int x, int y,
int width, int height, SDL_Color color, int itemspace_x, int itemspace_y, int textspace_x,
int icon_width, int icon_height);
void maud_dropdown_menu_setitem_positions(maud_t* maud, maud_dropdown_menu_t* menu);
bool maud_dropdown_menu_add(maud_dropdown_menu_t* menu, TTF_Font* font,
const char* item_name, int font_size, const char* icon_path,
SDL_Texture* icon_texture, SDL_Color text_color);
bool maud_dropdown_menu_remove(maud_dropdown_menu_t* menu, const char* item_name);
void maud_dropdown_menu_handleitem_event(maud_t* maud,
maud_dropdown_menu_t* menu, size_t i);
void maud_dropdown_menu_render(maud_t* maud, maud_dropdown_menu_t* menu);
void maud_dropdown_menu_print(maud_dropdown_menu_t* menu);
void maud_dropdown_menu_destroy(maud_dropdown_menu_t* menu);