ArduinoDumbDisplay v0.9.9-r50
DumbDisplay Arduino Library -- https://github.com/trevorwslee/Arduino-DumbDisplay
 
Loading...
Searching...
No Matches
DDAutoPinConfig Class Reference

Class for building "auto pin" config, to be passed to DumbDisplay::configAutoPin(). More...

#include <__dd_misc_layout.h>

Public Member Functions

 DDAutoPinConfig (char dir, int nestedDepth=5)
 
 DDAutoPinConfig (DDAutoPinGroupHeader header, int nestedDepth=5)
 
DDAutoPinConfigbeginGroup (char dir)
 
DDAutoPinConfigbeginGroup (DDAutoPinGroupHeader header)
 
DDAutoPinConfigendGroup ()
 end a begun group, returning to the previous level of nesting
 
DDAutoPinConfigbeginPaddedGroup (char dir, int left, int top, int right, int bottom)
 
DDAutoPinConfigendPaddedGroup ()
 end begun padded group
 
DDAutoPinConfigaddLayer (DDLayer *layer)
 add a layer to the current level
 
DDAutoPinConfigaddLayer (DDLayer &layer)
 add a layer to the current level
 
DDAutoPinConfigaddLayer (DDLayerHandle layerHandle)
 add a layer to the current level
 
DDAutoPinConfigaddPaddedLayer (DDLayer *layer, int left, int top, int right, int bottom)
 
DDAutoPinConfigaddPaddedLayer (DDLayer &layer, int left, int top, int right, int bottom)
 
DDAutoPinConfigaddPaddedLayer (DDLayerHandle layerHandle, int left, int top, int right, int bottom)
 
DDAutoPinConfigaddSpacer (int width, int height)
 
DDAutoPinConfigaddRemainingGroup (char dir)
 
const String & build ()
 build the "auto pin" config string, to be passed to DumbDisplay::configAutoPin()
 

Detailed Description

Class for building "auto pin" config, to be passed to DumbDisplay::configAutoPin().

Since
v0.9.7-r2

Constructor & Destructor Documentation

◆ DDAutoPinConfig() [1/2]

DDAutoPinConfig::DDAutoPinConfig ( char  dir,
int  nestedDepth = 5 
)
inline
Parameters
dirdirectory of layers at the top level; can be 'H' for horizontal, 'V' for vertical and 'S' for stacked
nestedDepthmaximum depth of nesting; default is 5

◆ DDAutoPinConfig() [2/2]

DDAutoPinConfig::DDAutoPinConfig ( DDAutoPinGroupHeader  header,
int  nestedDepth = 5 
)
inline
Parameters
headergroup header
nestedDepthmaximum depth of nesting; default is 5

Member Function Documentation

◆ addPaddedLayer() [1/3]

DDAutoPinConfig & DDAutoPinConfig::addPaddedLayer ( DDLayer layer,
int  left,
int  top,
int  right,
int  bottom 
)
inline

add a layer, with specified padding

Parameters
leftleft padding (% of the contained area width)
toptop padding (% of the contained area height)
rightright padding (% of the contained area width)
bottombottom padding (% of the contained area height)

◆ addPaddedLayer() [2/3]

DDAutoPinConfig & DDAutoPinConfig::addPaddedLayer ( DDLayer layer,
int  left,
int  top,
int  right,
int  bottom 
)
inline

add a layer, with specified padding

Parameters
leftleft padding (% of the contained area width)
toptop padding (% of the contained area height)
rightright padding (% of the contained area width)
bottombottom padding (% of the contained area height)

◆ addPaddedLayer() [3/3]

DDAutoPinConfig & DDAutoPinConfig::addPaddedLayer ( DDLayerHandle  layerHandle,
int  left,
int  top,
int  right,
int  bottom 
)
inline

add a layer, with specified padding

Parameters
leftleft padding (% of the contained area width)
toptop padding (% of the contained area height)
rightright padding (% of the contained area width)
bottombottom padding (% of the contained area height)

◆ addRemainingGroup()

DDAutoPinConfig & DDAutoPinConfig::addRemainingGroup ( char  dir)
inline

add the layout direction for the layers not included

Parameters
dir'H' / 'V' / 'S

◆ addSpacer()

DDAutoPinConfig & DDAutoPinConfig::addSpacer ( int  width,
int  height 
)
inline

add spacer, which is a placeholder layer with the specified size

Parameters
widthwidth of the placeholder layer
heightheight of the placeholder layer

◆ beginGroup() [1/2]

DDAutoPinConfig & DDAutoPinConfig::beginGroup ( char  dir)
inline

begin a layer group, creating a new level of nesting

Parameters
dirdirectory of layers at the new level; can be 'H' for horizontal, 'V' for vertical and 'S' for stacked

◆ beginGroup() [2/2]

DDAutoPinConfig & DDAutoPinConfig::beginGroup ( DDAutoPinGroupHeader  header)
inline

begin a layer group, creating a new level of nesting

Parameters
dirdirectory of layers at the new level; can be 'H' for horizontal, 'V' for vertical and 'S' for stacked

◆ beginPaddedGroup()

DDAutoPinConfig & DDAutoPinConfig::beginPaddedGroup ( char  dir,
int  left,
int  top,
int  right,
int  bottom 
)
inline

begin a layer group, with specified padding

Parameters
dirdirectory of layers at the new level; can be 'H' for horizontal, 'V' for vertical and 'S' for stacked
leftleft padding (% of the contained area width)
toptop padding (% of the contained area height)
rightright padding (% of the contained area width)
bottombottom padding (% of the contained area height)