Change: Use RectPadding Horizontal()/Vertical() helpers.

This commit is contained in:
2022-09-28 22:40:17 +01:00
committed by PeterN
parent 04cbe57d2a
commit dd9f6bc803
5 changed files with 52 additions and 42 deletions

View File

@@ -156,6 +156,16 @@ public:
this->AdjustPaddingForZoom();
}
/**
* Set additional space (padding) around the widget.
* @param padding Amount of padding around the widget.
*/
inline void SetPadding(const RectPadding &padding)
{
this->uz_padding = padding;
this->AdjustPaddingForZoom();
}
inline uint GetHorizontalStepSize(SizingType sizing) const;
inline uint GetVerticalStepSize(SizingType sizing) const;