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

Helper class for managing layer layout plus update of the layers. More...

#include <_dd_misc.h>

Public Member Functions

 DDLayoutHelper (DumbDisplay &dumbdisplay)
 
bool checkNeedToUpdateLayers ()
 
void startInitializeLayout ()
 
void finishInitializeLayout (String layerSetupPersistId)
 
void configAutoPin (const String &layoutSpec)
 basically DumbDisplay::configAutoPin()
 
void addRemainingAutoPinConfig (const String &remainingLayoutSpec)
 basically DumbDisplay::addRemainingAutoPinConfig()
 
void configPinFrame (int xUnitCount=100, int yUnitCount=100)
 basically DumbDisplay::configPinFrame()
 
void pinLayer (DDLayer *pLayer, int uLeft, int uTop, int uWidth, int uHeight, const String &align="")
 basically DumbDisplay::pinLayer()
 
void pinAutoPinLayers (const String &layoutSpec, int uLeft, int uTop, int uWidth, int uHeight, const String &align="")
 basically DumbDisplay::pinAutoPinLayers()
 
void setIdleCallback (DDIdleCallback idleCallback)
 basically DumbDisplay::setIdleCallback()
 

Detailed Description

Helper class for managing layer layout plus update of the layers.

Since
v0.9.7-r2

Member Function Documentation

◆ checkNeedToUpdateLayers()

bool DDLayoutHelper::checkNeedToUpdateLayers ( )
inline

check whether layers need be updated, say

  • just initialzed
  • DD reconnected

◆ finishInitializeLayout()

void DDLayoutHelper::finishInitializeLayout ( String  layerSetupPersistId)
inline

after calling startInitializeLayout(), call this to finish the layout of layers

Parameters
layerSetupPersistIdis use for calling DumbDisplay.playbackLayerSetupCommands()

◆ startInitializeLayout()

void DDLayoutHelper::startInitializeLayout ( )
inline

essentially DumbDisplay::recordLayerSetupCommands() MUST call finishInitializeLayout() layout when done