FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
Loading...
Searching...
No Matches
uiStepper Class Reference

A text between "previous" and "next" arrow buttons, to step through values (for example an octave). More...

#include <fabui.h>

Inheritance diagram for uiStepper:

Public Member Functions

 uiStepper (uiWindow *parent, const Point &pos, const Size &size, bool visible=true, uint32_t styleClassID=0)
 Creates an instance of the object.
uiAnchors & anchors ()
 Allows to switch on or off anchors.
uiApp * app ()
 Determines the app that owns this object.
void bringAfter (uiWindow *insertionPoint)
 Brings this window after another one.
void bringOnTop ()
 Brings this window on top.
Point clientPos ()
 Determines position of the client area.
virtual Rect clientRect (uiOrigin origin)
 Determines the client area bounding box.
Size clientSize ()
 Determines the client area size.
void exitModal (int modalResult)
 Exits from a modal window.
uiWindow * firstChild ()
 Gets first child.
int focusIndex ()
 Determines the focus index (aka tab-index).
bool hasChildren ()
 Determines whether this window has children.
bool hasFocus ()
 Determines whether this window or control has focus.
bool isActiveWindow ()
 Determines whether this window is the active one.
bool isMouseOver ()
 Determines whether the mouse is over this window.
uiWindow * lastChild ()
 Gets last child.
uiWindow * next ()
 Gets next sibling.
uiObjectType & objectType ()
 Determines the object type.
uiWindow * parent ()
 Determines the parent window.
uiWindow * parentFrame ()
 Determines the parent frame.
Point pos ()
 Determines the window position relative to parent window.
uiWindow * prev ()
 Gets previous sibling.
Rect rect (uiOrigin origin)
 Determines the window bounding box.
void repaint ()
 Repaints this window.
void repaint (Rect const &rect)
 Repaints a rectangle of this window.
void setFocusIndex (int value)
 Sets the focus index (aka tab-index).
void setParentProcessKbdEvents (bool value)
 Enables a child window to send keyboard events to its parent.
void setStyleClassID (uint16_t value)
 Sets style class for this UI element.
void setText (char const *value)
 Sets the text shown between the buttons.
Size size ()
 Determines the window size.
uiWindowState state ()
 Determines the window state.
uiStepperStyle & stepperStyle ()
 Sets or gets stepper style.
uint16_t styleClassID ()
 Determines current style class for this UI element.
char const * text ()
 Gets the text shown between the buttons.
Rect transformRect (Rect const &rect, uiWindow *baseWindow)
 Transforms rectangle origins from current window to another one.
uiWindowProps & windowProps ()
 Sets or gets window properties.
uiWindowStyle & windowStyle ()
 Sets or gets window style.

Public Attributes

Delegate< int > onStep
 Step event delegate.

Detailed Description

A text between "previous" and "next" arrow buttons, to step through values (for example an octave).

The application handles onStep and updates the text. Keyboard: LEFT/DOWN steps back, RIGHT/UP steps forward.

Definition at line 3550 of file fabui.h.


The documentation for this class was generated from the following files: