12#include <ds_selection_base.h>
95 uint32_t mCornerRadius;
112 uint32_t mTotalWidth;
114 uint32_t mTouchTimestamp;
115 uint8_t mBorderThickness;
118 void onPaint(
DsRenderer &renderer)
override final;
120 int32_t onSelectionChange(int32_t selection)
override final;
DsColor is a class that represents a 4 channel color (Alpha, Red, Green, Blue).
Definition ds_color.h:53
DsOrientation is a class representing the orientation (horizontal or vertical).
Definition ds_types.h:57
DsPoint is a class that represents the X and Y 2D coordinates of a point as integer numbers.
Definition ds_geometry.h:24
DsRenderer is a class that implements all the drawing operations.
Definition ds_renderer.h:42
DsSelectionBase is a base class that contains a selection value.
Definition ds_selection_base.h:19
Listener is an interface class that receives requests from the selector view.
Definition ds_selector.h:29
virtual const char * getSelectorLabel(DsSelector *object, uint32_t index)=0
Returns the text label of the option with the specified position (0 based, left->right / top->bottom)
DsSelector is a class that represents a graphic element used to select between multiple options (typi...
Definition ds_selector.h:23
void setTabColors(DsColor color, DsColor color_selected)
Sets the option tab colors.
void setListener(Listener *listener)
Sets the DsSelector event listener.
void setBorderThickness(uint8_t thickness)
Sets the border thickness.
DsSelector(DsView *parent, const DsPoint &pos, const DsSize &size, const DsOrientation &orientation, uint32_t count, const ds_bitmap_font_t *font)
Creates a DsSelector object. No option will be selected by default.
void setTextColors(DsColor color, DsColor color_selected)
Sets the text colors.
void setBorderColor(DsColor color)
Sets the border color.
DsSize is class that represents the 2D size of a graphic object (width, height) as integer values.
Definition ds_geometry.h:780
DsView is a base class that represents any view on the screen.
Definition ds_view.h:40
This structure implements a touch event.
Definition ds_event.h:25