gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
ui::Padding Struct Reference

A struct that holds the padding that a parent widget may impose on a child widget. More...

#include <padding.hpp>

Public Member Functions

 Padding (uisize_t size)
 Construct the padding with all sides equal.
 
 Padding (uisize_t left_right, uisize_t top_bottom)
 Construct the padding with parallel sides equal.
 
 Padding (uisize_t left, uisize_t top, uisize_t right, uisize_t bottom)
 Construct the padding with all sides specified individually.
 

Public Attributes

uisize_t left
 The left padding.
 
uisize_t top
 The top padding.
 
uisize_t right
 The right padding.
 
uisize_t bottom
 The bottom padding.
 

Detailed Description

A struct that holds the padding that a parent widget may impose on a child widget.

Constructor & Destructor Documentation

◆ Padding() [1/3]

ui::Padding::Padding ( uisize_t  size)

Construct the padding with all sides equal.

Parameters
sizeThe number of pixels to pad on the left, top, right and bottom.

◆ Padding() [2/3]

ui::Padding::Padding ( uisize_t  left_right,
uisize_t  top_bottom 
)

Construct the padding with parallel sides equal.

Parameters
left_rightThe number of pixels to pad on the left and right.
top_bottomThe number of pixels to pad on the top and bottom.

◆ Padding() [3/3]

ui::Padding::Padding ( uisize_t  left,
uisize_t  top,
uisize_t  right,
uisize_t  bottom 
)

Construct the padding with all sides specified individually.

Parameters
leftThe number of pixels to pad on the left.
topThe number of pixels to pad on the top.
rightThe number of pixels to pad on the right.
bottomThe number of pixels to pad on the bottom.

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