Added font sizing, needs full testing

This commit is contained in:
2021-08-03 10:19:31 -07:00
parent c451538def
commit 23f1cb3d7e
17 changed files with 202 additions and 15 deletions

20
include/dawn/ui/label.h Normal file
View File

@ -0,0 +1,20 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../libs.h"
#include "../display/primitive.h"
#include "../display/gui/font.h"
/** Representation of a Label UI Element */
typedef struct {
font_t *font;
float x, y, z;
float fontSize;
fonttextinfo_t info;
primitive_t primitive;
} label_t;