ArduinoDumbDisplay v0.9.9-r40
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.h>

Public Member Functions

 DDAutoPinConfig (char dir, int nestedDepth=5)
 
DDAutoPinConfigbeginGroup (char dir)
 
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
 
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()

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

Member Function Documentation

◆ 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()

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

◆ 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
toptop padding
rightright padding
bottombottom padding