PanelsLayout
Source:
PanelsLayout.h
Emit¶
src/light/layouts/PanelsLayout.h:152Public Attributes¶
CoordCallback cb
void * ctx
lengthType panelWidth
lengthType panelHeight
uint32_t limit
uint32_t idx
PanelsLayout¶
src/light/layouts/PanelsLayout.h:33Inherits:
LayoutBase
Layout tiling multiple panels into one grid.
Public Attributes¶
lengthType horizontalPanels = 2
lengthType verticalPanels = 2
uint8_t wiringOrderP = 0
bool incXP = true
bool incYP = true
bool snakeP = false
lengthType panelWidth = 16
lengthType panelHeight = 16
uint8_t wiringOrder = 0
bool incX = true
bool incY = true
bool snake = true
Public Methods¶
virtual inline void defineControls() override
: defineControls MUST be idempotent and pure: only controls_.clear() + controls_.addX().
virtual inline const char * tags() const override
: Curated emoji tags for the module picker's chip filter — extras beyond the role chip (which the UI derives from role() on its own).
virtual inline Dim dimensions() const override
: The shape this layout LAYS OUT: a line, a picture, a volume.
virtual inline nrOfLightsType lightCount() const override
virtual inline void placeLights(const CoordSink & sink) const override