115 uint32_t mActivePageCount;
124 link_t* mClientPagesHead;
125 link_t* mClientPagesTail;
130 lambda<void(uint32_t)> mOnPageChangeCallback;
132 void onPaint(
DsRenderer &renderer)
override final;
133 void onSizeChange(
void)
override final;
137 int32_t availableLeft(
void);
138 int32_t availableRight(
void);
DsBookView is a class representing a container that arranges it's views as pages of a book.
Definition ds_book_view.h:20
void addPage(DsView *view)
Add a page to the BookView.
void enableLock(bool enable)
Enables or disables the page lock.
void enableDots(bool enable)
Enables or disables the active page dot indicators.
DsBookView(DsView *parent, const DsPoint &pos, const DsSize &size, uint32_t button_width, uint32_t dot_radius, bool overlap_buttons=false)
Creates a DsBookView object.
void enablePage(uint32_t index, bool enable)
Enables or disables a page.
void setOnPageChangeCallback(const lambda< void(uint32_t)> &cb)
Sets the lambda to be executed when the user changes the active page.
void enableClosedLoop(bool enable)
Enables or disables the closed loop mode.
void setPage(uint32_t index)
Sets the active page.
uint32_t getPageCount(void) const
Returns the number of pages in the DsView.
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
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
void enable(bool state)
Enables or disables the view.
Definition ds_types_lambda.h:24