- Add point InSpace check to PD::Li::Math - Add Universal AlignmentCenter flag for Horizontal and and Vertical Alignment - Add Fallbackfont to Layout (if you dont want to set font per object) - Add Button Object WIP - Rename OnHover to OnFocus and add OnUnfocus - Move font and FontScale to ElementBase (for fallback logic etc) - Add UpdateInput func to ElementBase - Corectly Set fontScale in Text Rendering - Update ecample
20 lines
714 B
C++
20 lines
714 B
C++
#pragma once
|
|
|
|
#include <pd/common.hpp>
|
|
|
|
using UltraAlignment = PD::u32;
|
|
enum UltraAlignment_ {
|
|
UltraAlignment_None = 0,
|
|
UltraAlignment_Top = 1 << 0,
|
|
UltraAlignment_Bot = 1 << 1,
|
|
UltraAlignment_Left = 1 << 2,
|
|
UltraAlignment_Right = 1 << 3,
|
|
UltraAlignment_CenterVertical = 1 << 4,
|
|
UltraAlignment_CenterHorizontal = 1 << 5,
|
|
UltraAlignment_TopLeft = UltraAlignment_Top | UltraAlignment_Left,
|
|
UltraAlignment_TopRight = UltraAlignment_Top | UltraAlignment_Right,
|
|
UltraAlignment_BotLeft = UltraAlignment_Bot | UltraAlignment_Left,
|
|
UltraAlignment_BotRight = UltraAlignment_Bot | UltraAlignment_Right,
|
|
UltraAlignment_Center =
|
|
UltraAlignment_CenterVertical | UltraAlignment_CenterHorizontal,
|
|
}; |