Small rounded-rect label, optionally a toggle (filter chip) rather than a one-shot action (assist chip).
More...
|
| | Chip ()=default |
| |
| | Chip (Bounds bounds, const char *label, bool selectable=false, bool selected=false) |
| |
| bool | selected () const |
| |
| void | setSelected (bool selected) |
| |
| void | draw (tinygpu::ISurface< RGB_T > &target) override |
| |
| bool | onGesture (const tinygpu::GestureEvent &event) override |
| | Handles one gesture event. Returns true if this widget consumed it.
|
| |
| virtual | ~Widget ()=default |
| |
| virtual void | setTheme (const MaterialTheme< RGB_T > &theme) |
| |
| virtual void | draw (tinygpu::ISurface< RGB_T > &target)=0 |
| |
| virtual bool | onGesture (const tinygpu::GestureEvent &event) |
| | Handles one gesture event. Returns true if this widget consumed it.
|
| |
| virtual bool | update (uint32_t nowMs) |
| |
| virtual bool | isDraggable () const |
| |
| virtual bool | isDraggableAt (int32_t x, int32_t y) const |
| |
| virtual int | childCount () const |
| |
| virtual Widget< RGB_T > * | child (int index) |
| |
| virtual void | drawBackground (tinygpu::ISurface< RGB_T > &target) |
| |
| virtual void | setThemeTint (RGB_T background, RGB_T foreground) |
| |
| virtual bool | isContainer () const |
| | Provides true if the widget is a container.
|
| |
template<typename RGB_T = TINYMD_DEFAULT_RGB_T>
class tinymd::Chip< RGB_T >
Small rounded-rect label, optionally a toggle (filter chip) rather than a one-shot action (assist chip).