20 #include <vstgui4/vstgui/lib/vstguibase.h> 21 #include <vstgui4/vstgui/lib/crect.h> 38 explicit Margin(CCoord iValue) noexcept :
39 fTop{iValue}, fRight{iValue}, fBottom{iValue}, fLeft{iValue} {}
42 Margin(CCoord iTop, CCoord iRight, CCoord iBottom, CCoord iLeft) noexcept :
43 fTop{iTop}, fRight{iRight}, fBottom{iBottom}, fLeft{iLeft} {}
48 CRect
apply(CRect
const &iRect)
const {
53 res.bottom -= fBottom;
Margin(CCoord iTop, CCoord iRight, CCoord iBottom, CCoord iLeft) noexcept
Definition: LookAndFeel.h:42
Margin is a similar concept to css: used to create space around elements, outside of any defined bord...
Definition: LookAndFeel.h:32
Margin(CCoord iValue) noexcept
Definition: LookAndFeel.h:38
CRect apply(CRect const &iRect) const
Apply this margin to the provided rect.
Definition: LookAndFeel.h:48