TachyonUI
0.1.0
High-performance UI for building tools.
Toggle main menu visibility
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
7
namespace
tachyon
8
{
11
12
struct
IntRect
;
13
struct
ElementRect
;
14
15
struct
LayoutFlexbox
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
tachyon
Definition
gui_logging.h:24
tachyon::ElementRect
Definition
gui_element.h:57
tachyon::IntRect
Definition
gui_base_types.h:407
tachyon::LayoutFlexbox
Definition
gui_layout_flexbox.h:16
tachyon::LayoutFlexbox::HorizontalPositioning
static void HorizontalPositioning(const ElementRect &parentRect, std::span< ElementRect > childRects)
tachyon::LayoutFlexbox::VerticalPositioning
static IntRect VerticalPositioning(const ElementRect &parentRect, const IntRect &clipRect, std::span< ElementRect > childRects)
Returns the content bounds.
tachyon::LayoutFlexbox::VerticalSizing
static int32_t VerticalSizing(const ElementRect &parentRect, std::span< ElementRect > childRects)
Returns the content height needed to contain the children.
tachyon::LayoutFlexbox::HorizontalSizing
static int32_t HorizontalSizing(const ElementRect &parentRect, std::span< ElementRect > childRects)
Returns the content width needed to contain the children.
gui_core
layout
gui_layout_flexbox.h
Generated by
1.18.0