Committing before major refactor.
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
/** Representation of a Label UI Element */
|
||||
typedef struct {
|
||||
font_t *font;
|
||||
float x, y, z;
|
||||
float x, y;
|
||||
float fontSize;
|
||||
fonttextinfo_t info;
|
||||
primitive_t primitive;
|
||||
|
@ -24,7 +24,6 @@ typedef struct {
|
||||
int32_t y;
|
||||
int32_t width;
|
||||
int32_t height;
|
||||
int32_t i;
|
||||
} menuitem_t;
|
||||
|
||||
typedef struct {
|
||||
|
24
include/dawn/ui/menulist.h
Normal file
24
include/dawn/ui/menulist.h
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../libs.h"
|
||||
#include "label.h"
|
||||
#include "menu.h"
|
||||
|
||||
/** Maximum number of items that the list supports */
|
||||
#define MENULIST_ITEMS_MAX 32
|
||||
|
||||
/** Representation of a menu list, a menu with multiple menu items. */
|
||||
typedef struct {
|
||||
float x, y;
|
||||
char *items[MENULIST_ITEMS_MAX];
|
||||
label_t labels[MENULIST_ITEMS_MAX];
|
||||
menu_t menu;
|
||||
uint8_t count;
|
||||
uint8_t selected;
|
||||
} menulist_t;
|
Reference in New Issue
Block a user