ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
Layouts.hpp File Reference

Basic layout containers: VStack, HStack, Panel. More...

#include "Common.hpp"
#include "Layout.hpp"

Go to the source code of this file.

Classes

class  ZenitUI::UI::Panel
 A generic Stack container that blocks raycasts. More...

Functions

std::shared_ptr< Layout > ZenitUI::UI::VStack (std::initializer_list< std::shared_ptr< Layout > > children={})
 Create a vertical-flow container (LayoutType::Vertical).
std::shared_ptr< Layout > ZenitUI::UI::HStack (std::initializer_list< std::shared_ptr< Layout > > children={})
 Create a horizontal-flow container (LayoutType::Horizontal).
std::shared_ptr< Layout > ZenitUI::UI::Box (std::initializer_list< std::shared_ptr< Layout > > children={})
 Generic Flexbox container modified via CSS (direction).
std::shared_ptr< Layout > ZenitUI::UI::Grid (std::initializer_list< std::shared_ptr< Layout > > children={})
 Create a 2D grid container (LayoutType::Grid).
std::shared_ptr< Panel > ZenitUI::UI::Pan ()
 Convenience factory for Panel::create().

Detailed Description

Basic layout containers: VStack, HStack, Panel.

These are the simplest building blocks: they wrap Layout with a style tag so that themes can target them by name, and expose convenient factory functions (VStack, HStack, Pan).