apio
140910763e
All checks were successful
Build and test / build (push) Successful in 1m56s
Why are command-line utilities stored in "apps"? And why are apps like "editor" or "terminal" top-level directories? Command-line utilities now go in "utils". GUI stuff now goes in "gui". This includes: libui -> gui/libui, wind -> gui/wind, GUI apps -> gui/apps, editor&terminal -> gui/apps... System services go in "system".
31 lines
491 B
C++
31 lines
491 B
C++
/**
|
|
* @file Alignment.h
|
|
* @author apio (cloudapio.eu)
|
|
* @brief UI component alignment.
|
|
*
|
|
* @copyright Copyright (c) 2023, the Luna authors.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <ui/Rect.h>
|
|
|
|
namespace ui
|
|
{
|
|
enum class VerticalAlignment
|
|
{
|
|
Top,
|
|
Center,
|
|
Bottom
|
|
};
|
|
|
|
enum class HorizontalAlignment
|
|
{
|
|
Left,
|
|
Center,
|
|
Right
|
|
};
|
|
|
|
Rect align(Rect container, Rect contained, VerticalAlignment valign, HorizontalAlignment halign);
|
|
}
|