1.8
Public Member Functions | Public Attributes | List of all members
LayoutRect Struct Reference

Wrapper around properties for managing a rect by flex_layout(). More...

Public Member Functions

 LayoutRect (uint32_t b, const Rect &r, std::string s, uint32_t lm=0, uint32_t tm=0, uint32_t rm=0, uint32_t bm=0) noexcept
 
 LayoutRect (uint32_t b, const Rect &r, uint32_t lm=0, uint32_t tm=0, uint32_t rm=0, uint32_t bm=0) noexcept
 

Public Attributes

uint32_t behave {0}
 Behavior flags of the object. More...
 
uint32_t bmargin {0}
 Bottom margin. More...
 
uint32_t lmargin {0}
 Left margin. More...
 
Rect rect
 Rectangle if the object. More...
 
uint32_t rmargin {0}
 Right margin. More...
 
std::string str
 String content of the object. More...
 
uint32_t tmargin {0}
 Top margin. More...
 

Detailed Description

Wrapper around properties for managing a rect by flex_layout().

Constructor & Destructor Documentation

◆ LayoutRect() [1/2]

LayoutRect ( uint32_t  b,
const Rect r,
uint32_t  lm = 0,
uint32_t  tm = 0,
uint32_t  rm = 0,
uint32_t  bm = 0 
)
inlinenoexcept
Parameters
[in]bBehave flags.
[in]rCurrent rectangle.
[in]lmLeft margin.
[in]tmTop margin.
[in]rmRight margin.
[in]bmBottom margin.

◆ LayoutRect() [2/2]

LayoutRect ( uint32_t  b,
const Rect r,
std::string  s,
uint32_t  lm = 0,
uint32_t  tm = 0,
uint32_t  rm = 0,
uint32_t  bm = 0 
)
inlinenoexcept
Parameters
[in]bBehave flags.
[in]rCurrent rectangle.
[in]sString of the object.
[in]lmLeft margin.
[in]tmTop margin.
[in]rmRight margin.
[in]bmBottom margin.

Member Data Documentation

◆ behave

uint32_t behave {0}

Behavior flags of the object.

◆ bmargin

uint32_t bmargin {0}

Bottom margin.

◆ lmargin

uint32_t lmargin {0}

Left margin.

◆ rect

Rect rect

Rectangle if the object.

◆ rmargin

uint32_t rmargin {0}

Right margin.

◆ str

std::string str

String content of the object.

◆ tmargin

uint32_t tmargin {0}

Top margin.