FabGL
ESP32 Display Controller and Graphics Library
|
Shows and navigates Virtual Filesystem content. More...
#include <fabui.h>
Public Member Functions | |
uiFileBrowser (uiWindow *parent, const Point &pos, const Size &size, bool visible=true, uint32_t styleClassID=0) | |
Creates an instance of the object. More... | |
uiAnchors & | anchors () |
Allows to switch on or off anchors. More... | |
uiApp * | app () |
Determines the app that owns this object. More... | |
void | bringAfter (uiWindow *insertionPoint) |
Brings this window after another one. More... | |
void | bringOnTop () |
Brings this window on top. More... | |
void | changeDirectory (char const *path) |
Changes current directory as relative path. More... | |
Point | clientPos () |
Determines position of the client area. More... | |
Rect | clientRect (uiOrigin origin) |
Determines the client area bounding box. More... | |
Size | clientSize () |
Determines the client area size. More... | |
FileBrowser & | content () |
Contains current directory representation. More... | |
int | count () |
Determines number of files in current directory. More... | |
void | deselectAll () |
Deselects all selected items. More... | |
char const * | directory () |
Determines current directory. More... | |
void | exitModal (int modalResult) |
Exits from a modal window. More... | |
char const * | filename () |
Currently selected filename. More... | |
uiWindow * | firstChild () |
Gets first child. More... | |
int | firstSelectedItem () |
Gets the first selected item. More... | |
int | focusIndex () |
Determines the focus index (aka tab-index) More... | |
bool | hasChildren () |
Determines whether this window has children. More... | |
bool | hasFocus () |
Determines whether this window or control has focus. More... | |
int | HScrollBarPos () |
Determines position of the horizontal scrollbar thumb. More... | |
int | HScrollBarRange () |
Determines horizontal scrollbar range. More... | |
int | HScrollBarVisible () |
Determines horizontal scrollbar visible portion (aka thumb size) of the scrollable content. More... | |
bool | isActiveWindow () |
Determines wheter this window is the active window. More... | |
bool | isDirectory () |
Determines whether currently selected item is a directory. More... | |
bool | isMouseOver () |
Determines whether the mouse is over this window. More... | |
uiWindow * | lastChild () |
Gets last child. More... | |
int | lastSelectedItem () |
Gets the last selected item. More... | |
uiListBoxProps & | listBoxProps () |
Sets or gets list box properties. More... | |
uiListBoxStyle & | listBoxStyle () |
Sets or gets listbox style. More... | |
uiWindow * | next () |
Gets next sibling. More... | |
uiObjectType & | objectType () |
Determines the object type. More... | |
uiWindow * | parent () |
Determines the parent window. More... | |
uiWindow * | parentFrame () |
Determines the parent frame. More... | |
Point | pos () |
Determines the window position relative to parent window. More... | |
uiWindow * | prev () |
Gets previous sibling. More... | |
Rect | rect (uiOrigin origin) |
Determines the window bounding box. More... | |
void | repaint () |
Repaints this window. More... | |
void | repaint (Rect const &rect) |
Repaints a rectangle of this window. More... | |
uiScrollableControlStyle & | scrollableControlStyle () |
Sets or gets control style. More... | |
void | selectItem (int index, bool add=false, bool range=false) |
Selects a listbox item. More... | |
void | setDirectory (char const *path) |
Sets current directory as absolute path. More... | |
void | setFocusIndex (int value) |
Sets the focus index (aka tab-index) More... | |
void | setParentProcessKbdEvents (bool value) |
Enables a child window to send keyboard events to its parent. More... | |
void | setStyleClassID (uint16_t value) |
Sets style class for this UI element. More... | |
Size | size () |
Determines the window size. More... | |
uiWindowState | state () |
Determines the window state. More... | |
uint16_t | styleClassID () |
Determines current style class for this UI element. More... | |
Rect | transformRect (Rect const &rect, uiWindow *baseWindow) |
Transforms rectangle origins from current window to another one. More... | |
void | update () |
Reloads current directory content and repaints. More... | |
int | VScrollBarPos () |
Determines position of the vertical scrollbar thumb. More... | |
int | VScrollBarRange () |
Determines vertical scrollbar range. More... | |
int | VScrollBarVisible () |
Determines vertical scrollbar visible portion (aka thumb size) of the scrollable content. More... | |
uiWindowProps & | windowProps () |
Sets or gets window properties. More... | |
uiWindowStyle & | windowStyle () |
Sets or gets window style. More... | |
Public Attributes | |
Delegate | onChange |
Change event delegate. More... | |
Delegate | onChangeHScrollBar |
Horizontal scrollbar change event delegate. More... | |
Delegate | onChangeVScrollBar |
Vertical scrollbar change event delegate. More... | |
Delegate | onClick |
Mouse click event delegate. More... | |
Delegate | onDblClick |
Mouse double click event delegate. More... | |
Delegate< uiKeyEventInfo const & > | onKeyType |
Key-type event delegate. More... | |
Delegate< uiKeyEventInfo const & > | onKeyUp |
Key-up event delegate. More... | |
Delegate | onKillFocus |
Kill focus event delegate. More... | |
Protected Member Functions | |
void | setScrollBar (uiOrientation orientation, int position, int visible, int range, bool repaintScrollbar) |
Sets scrollbar position, visible portion and range. More... | |