TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_layout_flexbox.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#include <span>
6
7namespace tachyon
8{
11
12 struct IntRect;
13 struct ElementRect;
14
16 {
18 static int32_t HorizontalSizing(const ElementRect& parentRect,
19 std::span<ElementRect> childRects);
20
22 static int32_t VerticalSizing(const ElementRect& parentRect,
23 std::span<ElementRect> childRects);
24
25 static void HorizontalPositioning(const ElementRect& parentRect,
26 std::span<ElementRect> childRects);
27
29 static IntRect VerticalPositioning(const ElementRect& parentRect,
30 const IntRect& clipRect,
31 std::span<ElementRect> childRects);
32 };
33
34} // namespace tachyon
Definition gui_logging.h:24
Definition gui_element.h:57
Definition gui_base_types.h:407
Definition gui_layout_flexbox.h:16
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.
static int32_t VerticalSizing(const ElementRect &parentRect, std::span< ElementRect > childRects)
Returns the content height needed to contain the children.
static int32_t HorizontalSizing(const ElementRect &parentRect, std::span< ElementRect > childRects)
Returns the content width needed to contain the children.