MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / drawButtonLayoutRight

Method drawButtonLayoutRight

src/layoutmanager.cpp:281–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281LayoutManager::LayoutList LayoutManager::drawButtonLayoutRight()
282{
283 const DisplayOptions& options = Storage::getInstance().getDisplayOptions();
284 ButtonLayoutCustomOptions buttonLayoutCustomOptions = options.buttonLayoutCustomOptions;
285 ButtonLayoutParamsRight rightOptions = buttonLayoutCustomOptions.paramsRight;
286 return adjustByCustomSettings(getRightLayout(rightOptions.layout), rightOptions.common, 64);
287}
288
289LayoutManager::LayoutList LayoutManager::adjustByCustomSettings(LayoutManager::LayoutList layout, ButtonLayoutParamsCommon common, uint16_t originX, uint16_t originY) {
290 if (layout.size() > 0) {

Callers 1

getRightLayoutMethod · 0.95

Calls 1

getDisplayOptionsMethod · 0.80

Tested by

no test coverage detected