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

A row of selectable tiles. The content of each tile is painted by the application (onPaintTile). More...

#include <fabui.h>

Inheritance diagram for uiTileSelector:

Public Member Functions

 uiTileSelector (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.
StringList & items ()
 A list of strings: one tile for each item, the text is the caption. Call repaint() after changing it.
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.
int selectedItem ()
 Gets the selected tile.
void selectItem (int index)
 Selects a tile. This method does not call onChange.
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.
Size size ()
 Determines the window size.
uiWindowState state ()
 Determines the window state.
uint16_t styleClassID ()
 Determines current style class for this UI element.
Rect tileRect (int index)
 Gets the area of a tile (border included), in client coordinates.
uiTileSelectorProps & tileSelectorProps ()
 Sets or gets tile selector properties.
uiTileSelectorStyle & tileSelectorStyle ()
 Sets or gets tile selector style.
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 onChange
 Selection changed event delegate.
Delegate< int, Rect const &, bool > onPaintTile
 Tile paint delegate.

Detailed Description

A row of selectable tiles. The content of each tile is painted by the application (onPaintTile).

There is one tile for each item (items()). The item text, when not empty, is drawn below its tile as a caption. Keyboard: LEFT and RIGHT select the previous and next tile.

Definition at line 3652 of file fabui.h.


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