TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::LayoutFlexbox Struct Reference

#include <gui_core/layout/gui_layout_flexbox.h>

Static Public Member Functions

static int32_t HorizontalSizing (const ElementRect &parentRect, std::span< ElementRect > childRects)
 Returns the content width needed to contain the children.
static int32_t VerticalSizing (const ElementRect &parentRect, std::span< ElementRect > childRects)
 Returns the content height needed to contain the children.
static void HorizontalPositioning (const ElementRect &parentRect, std::span< ElementRect > childRects)
static IntRect VerticalPositioning (const ElementRect &parentRect, const IntRect &clipRect, std::span< ElementRect > childRects)
 Returns the content bounds.

Member Function Documentation

◆ HorizontalSizing()

int32_t tachyon::LayoutFlexbox::HorizontalSizing ( const ElementRect & parentRect,
std::span< ElementRect > childRects )
static

Returns the content width needed to contain the children.

◆ VerticalSizing()

int32_t tachyon::LayoutFlexbox::VerticalSizing ( const ElementRect & parentRect,
std::span< ElementRect > childRects )
static

Returns the content height needed to contain the children.

◆ HorizontalPositioning()

void tachyon::LayoutFlexbox::HorizontalPositioning ( const ElementRect & parentRect,
std::span< ElementRect > childRects )
static

◆ VerticalPositioning()

IntRect tachyon::LayoutFlexbox::VerticalPositioning ( const ElementRect & parentRect,
const IntRect & clipRect,
std::span< ElementRect > childRects )
static

Returns the content bounds.


The documentation for this struct was generated from the following file: