12#include <ds_selection_base.h>
130 uint32_t mMaximumHeight;
139 DsColor mSelectedListBackgroundColor;
142 uint32_t mCornerRadius;
148 uint32_t mButtonRadius;
161 uint8_t mBorderThickness;
165 uint8_t mIsExpanded: 1;
166 uint8_t mIsTouchActive: 1;
167 uint8_t mFoldUnfoldTap: 1;
170 void onPaint(
DsRenderer &renderer)
override final;
173 void onSizeChange(
void)
override final;
174 int32_t onSelectionChange(int32_t selection)
override final;
175 void getSelectionCount(
void)
override final;
DsColor is a class that represents a 4 channel color (Alpha, Red, Green, Blue).
Definition ds_color.h:53
Listener is an interface class that receives requests and events from the list view.
Definition ds_droplist.h:30
virtual const char * onDropListGetString(DsDropList *object, uint32_t index)=0
Called when the DsDropList view requires the text label for a specific row.
virtual uint32_t onDropListGetLength(DsDropList *object)=0
Called when the DsDropList view requires to know the number of items in the list.
DsDropList is a class that implements a drop-down list.
Definition ds_droplist.h:24
void setListColors(DsColor color, DsColor color_selected)
Sets the list row colors.
void expand(void)
Sets the drop list in the expanded state.
void setBorderColor(DsColor color)
Sets the border color.
DsDropList(DsView *parent, const DsPoint &pos, const DsSize &size, uint32_t maximum_height, const ds_bitmap_font_t *font)
Creates a DsDropList object.
void setListener(Listener *listener)
Sets the DsDropList event listener.
void fold(void)
Sets the drop list in the folded state.
void setTextColors(DsColor color, DsColor color_selected)
Sets the list text colors.
void setButtonColor(DsColor color)
Sets the expand button color.
void setScrollBarColor(DsColor color)
Sets the color of the scroll bar.
void setBorderThickness(uint8_t thickness)
Sets the border thickness.
DsPoint is a class that represents the X and Y 2D coordinates of a point as integer numbers.
Definition ds_geometry.h:24
DsRect is a class that represents a 2D rectangle (X, Y, W, H)
Definition ds_geometry.h:1507
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
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