Added align UI code.

This commit is contained in:
2021-09-09 09:49:54 -07:00
parent 5579b012f6
commit 9f37156e8f
4 changed files with 140 additions and 0 deletions

View File

@ -75,6 +75,7 @@
#include "ui/menuv2.h"
#include "ui/rectangle.h"
#include "ui/textmenu.h"
#include "ui/align.h"
#include "ui/frame.h"
#include "ui/image.h"

20
include/dawn/ui/align.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"
#define ALIGN_POS_CENTER flagDefine(0)
#define ALIGN_POS_START flagDefine(1)
#define ALIGN_POS_END flagDefine(2)
#define ALIGN_SIZE_FILL flagDefine(3)
#define ALIGN_SIZE_ORIGINAL flagDefine(4)
#define ALIGN_SIZE_RATIO flagDefine(5)
typedef struct {
float x, y;
float width, height;
} align_t;