26 bool _enabled =
false;
32 const uint16_t _DestX;
33 const uint16_t _DestY;
41 inline void _updateDestCanvas(
void)
47 bool _validateObject(
void);
51 Button(
void) =
delete;
70 : _maxState{maxNumStates},
71 _DestCanvas{DestCanvas},
157 return _Img[0].width();
168 return _Img[0].height();
193 _DestCanvas.BTE_CopyFrom(_Img[_state], _DestX, _DestY);
207class ToggleButton :
public Button
212 static const uint8_t _NUM_STATES = 2;
220 ToggleButton(
void) =
delete;
242 : Button(DestCanvas, DestLoc, _Img, _NUM_STATES),
244 _callback{Img0Callback, Img1Callback} {}
278class MomentaryButton :
public Button
283 static const uint8_t _NUM_STATES = 2;
291 MomentaryButton(
void) =
delete;
311 : Button(DestCanvas, DestLoc, _Img, _NUM_STATES),
313 _callback{callback} {}
356class ImmediateButton :
public Button
361 static const uint8_t _NUM_STATES = 1;
369 ImmediateButton(
void) =
delete;
382 : Button(DestCanvas, DestLoc, _Img, _NUM_STATES), _Img{
DRAM_Canvas(DestCanvas, DestLoc)}, _callback{callback} {}
void BTE_CopyFrom(const Canvas &source) const
Uses BTE engine to copy entire image from source canvas to this one.
Definition Canvas.cpp:75
Structure to define sub-images. Generally associated with a ROM_Image.
Definition Common.h:52
Definition TFTM070A1.h:435