2#include "TinyMaterialDesign/Core/Bounds.h"
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
32 : container_(container), overlapStep_(overlapStep) {}
42 return Bounds(container_
.x + index * overlapStep_
, container_
.y, width
, height
);
Two unrelated single-rect placement helpers bundled under one name - not "arrange these into a row/co...
Definition: StackLayout.h:29
StackLayout(Bounds container, int32_t overlapStep=0)
Definition: StackLayout.h:31
Bounds centered(int32_t width, int32_t height) const
A width x height rect centered within the container.
Definition: StackLayout.h:35
Bounds offset(int index, int32_t width, int32_t height) const
Definition: StackLayout.h:41
Definition: AnchorLayout.h:4
Axis-aligned pixel rectangle used for widget bounds and hit-testing.
Definition: Bounds.h:21
Bounds(int32_t x, int32_t y, int32_t w, int32_t h)
Definition: Bounds.h:28
int32_t centerY() const
Definition: Bounds.h:33
int32_t centerX() const
Definition: Bounds.h:32
int32_t y
Definition: Bounds.h:23
int32_t x
Definition: Bounds.h:22