Jamba C++ API  5.1.1
Margin Struct Reference

Margin is a similar concept to css: used to create space around elements, outside of any defined borders. More...

#include <LookAndFeel.h>

Public Member Functions

CRect apply (CRect const &iRect) const
 Apply this margin to the provided rect. More...
 
 Margin ()=default
 
 Margin (CCoord iValue) noexcept
 
 Margin (CCoord iTop, CCoord iRight, CCoord iBottom, CCoord iLeft) noexcept
 

Public Attributes

CCoord fBottom {}
 
CCoord fLeft {}
 
CCoord fRight {}
 
CCoord fTop {}
 

Detailed Description

Margin is a similar concept to css: used to create space around elements, outside of any defined borders.

Constructor & Destructor Documentation

◆ Margin() [1/3]

Margin ( )
default

◆ Margin() [2/3]

Margin ( CCoord  iValue)
inlineexplicitnoexcept

◆ Margin() [3/3]

Margin ( CCoord  iTop,
CCoord  iRight,
CCoord  iBottom,
CCoord  iLeft 
)
inlinenoexcept

Member Function Documentation

◆ apply()

CRect apply ( CRect const &  iRect) const
inline

Apply this margin to the provided rect.

Return a new rectangle with adjusted left/top/right/bottom locations.

Member Data Documentation

◆ fBottom

CCoord fBottom {}

◆ fLeft

CCoord fLeft {}

◆ fRight

CCoord fRight {}

◆ fTop

CCoord fTop {}

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