Added align UI code.
This commit is contained in:
@ -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
20
include/dawn/ui/align.h
Normal 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;
|
Reference in New Issue
Block a user