Added framed text menu.

This commit is contained in:
2021-09-10 10:13:39 -07:00
parent 9f37156e8f
commit 896b98c9aa
11 changed files with 182 additions and 28 deletions

View File

@ -70,15 +70,16 @@
// User Interface Objects
#include "ui/align.h"
#include "ui/frame.h"
#include "ui/framedtextmenu.h"
#include "ui/grid.h"
#include "ui/image.h"
#include "ui/label.h"
#include "ui/menuv2.h"
#include "ui/rectangle.h"
#include "ui/textmenu.h"
#include "ui/align.h"
#include "ui/frame.h"
#include "ui/image.h"
#include "ui/menu.h"
#include "ui/menulist.h"

View File

@ -0,0 +1,15 @@
// Copyright (c) 2021 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include "../libs.h"
#include "frame.h"
#include "textmenu.h"
typedef struct {
frame_t frame;
textmenu_t menu;
float width, height;
} framedtextmenu_t;

View File

@ -7,6 +7,7 @@
#pragma once
#include "../libs.h"
#include "grid.h"
/** Generic callback for menu events */
typedef void menuv2callback_t(void *user, uint8_t i);