Added align UI code.
This commit is contained in:
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