FabGL
ESP32 VGA Controller and Graphics Library
|
This is a combination of a listbox and a single-line editable textbox. More...
#include <fabui.h>
Public Member Functions | |
uiComboBox (uiWindow *parent, const Point &pos, const Size &size, int listHeight, bool visible=true) | |
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... | |
Point | clientPos () |
Determines position of the client area. More... | |
virtual Rect | clientRect (uiOrigin origin) |
Determines the client area bounding box. More... | |
Size | clientSize () |
Determines the client area size. More... | |
uiComboBoxProps & | comboBoxProps () |
Sets or gets combobox properties. More... | |
uiComboBoxStyle & | comboBoxStyle () |
Sets or gets combobox style. More... | |
void | exitModal (int modalResult) |
Exits from a modal window. More... | |
uiWindow * | firstChild () |
Gets first child. 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... | |
bool | isMouseOver () |
Determines whether the mouse is over this window. More... | |
StringList & | items () |
A list of strings representing items of the combobox. More... | |
uiWindow * | lastChild () |
Gets last child. More... | |
uiListBoxStyle & | listBoxStyle () |
Sets or gets listbox style. More... | |
Point | mouseDownPos () |
Determines mouse position when left button was down. More... | |
uiWindow * | next () |
Gets next sibling. More... | |
uiObjectType & | objectType () |
Determines the object type. More... | |
uiWindow * | parent () |
Determines the parent window. 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 (Rect const &rect) |
Repaints a rectangle of this window. More... | |
void | repaint () |
Repaints this window. More... | |
int | selectedItem () |
Represents currently selected item. More... | |
void | selectItem (int index) |
Selects an item. More... | |
void | setFocusIndex (int value) |
Sets the focus index (aka tab-index) More... | |
void | setText (char const *value) |
Replaces current text. More... | |
Size | size () |
Determines the window size. More... | |
uiWindowState | state () |
Determines the window state. More... | |
char const * | text () |
Gets current content of the text edit. More... | |
uiTextEditProps & | textEditProps () |
Sets or gets text edit properties. More... | |
uiTextEditStyle & | textEditStyle () |
Sets or gets text edit style. More... | |
Rect | transformRect (Rect const &rect, uiWindow *baseWindow) |
Transforms rectangle origins from current window to another one. 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 | onClick |
Mouse click event delegate. More... | |
Delegate | onDblClick |
Mouse double click event delegate4. More... | |
This is a combination of a listbox and a single-line editable textbox.
fabgl::uiComboBox::uiComboBox | ( | uiWindow * | parent, |
const Point & | pos, | ||
const Size & | size, | ||
int | listHeight, | ||
bool | visible = true |
||
) |
Creates an instance of the object.
parent | The parent window. A combobox must always have a parent window |
pos | Top-left coordinates of the combobox relative to the parent |
size | The combobox size |
listHeight | Height in pixels of the open listbox |
visible | If true the combobox is immediately visible |
|
inlineinherited |
Allows to switch on or off anchors.
|
inlineinherited |
Determines the app that owns this object.
|
inherited |
Brings this window after another one.
insertionPoint | This window will be placed after insertionPoint window. If insertionPoint is nullptr this window will be placed at the first position (location of less visibility.). |
|
inherited |
Brings this window on top.
|
inherited |
Determines position of the client area.
Determines the client area bounding box.
origin | Decides the origin of returned rectangle |
Reimplemented in fabgl::uiScrollableControl, and fabgl::uiFrame.
|
inherited |
Determines the client area size.
|
inline |
Sets or gets combobox properties.
|
inline |
Sets or gets combobox style.
|
inherited |
Exits from a modal window.
To open a modal window use uiApp.showModalWindow().
modalResult | An integer value to return to uiApp.showModalWindow(). |
|
inlineinherited |
Gets first child.
|
inlineinherited |
Determines the focus index (aka tab-index)
To set focus index use uiWindow.setFocusIndex().
|
inlineinherited |
Determines whether this window has children.
|
inherited |
Determines whether this window or control has focus.
To set currently focused window use uiApp.setFocusedWindow().
|
inlineinherited |
Determines whether the mouse is over this window.
This methods returns True also when the mouse is captured.
|
inline |
A list of strings representing items of the combobox.
Repainting is required when the string list changes.
|
inlineinherited |
Gets last child.
|
inline |
Sets or gets listbox style.
|
inlineinherited |
Determines mouse position when left button was down.
|
inlineinherited |
|
inlineinherited |
Determines the object type.
|
inlineinherited |
Determines the parent window.
|
inlineinherited |
Determines the window position relative to parent window.
To change window position use uiApp.moveWindow().
|
inlineinherited |
Gets previous sibling.
Previous sibling is less visible than calling object.
Determines the window bounding box.
To set window position use uiApp.moveWindow(), to set window size use uiApp.resizeWindow() or uiApp.reshapeWindow().
origin | Decides the origin of returned rectangle |
|
inherited |
Repaints a rectangle of this window.
rect | Rectangle to repaint |
|
inherited |
Repaints this window.
|
inline |
Represents currently selected item.
void fabgl::uiComboBox::selectItem | ( | int | index | ) |
Selects an item.
index | Index of the item to select |
|
inlineinherited |
Sets the focus index (aka tab-index)
value | The focus index. -1 = control isn't included into the focusable controls. 0 = first focusable control. |
|
inherited |
Replaces current text.
Text edit needs to be repainted in order to display changed text.
value | Text to set |
|
inlineinherited |
|
inlineinherited |
Determines the window state.
To set window state (hidden, visible, maximized, minimized) use uiApp.showWindow(), uiApp.maximizeWindow(), uiApp.minimizeWindow().
|
inlineinherited |
Gets current content of the text edit.
|
inlineinherited |
Sets or gets text edit properties.
|
inlineinherited |
Sets or gets text edit style.
Transforms rectangle origins from current window to another one.
rect | Rectangle to transform |
baseWindow | Window where the output rectangle will be relative to |
|
inlineinherited |
Sets or gets window properties.
|
inlineinherited |
Sets or gets window style.
Delegate fabgl::uiComboBox::onChange |
Change event delegate.
This delegate is called whenever an item is selected.
|
inherited |
Mouse click event delegate.
This delegate is called when the mouse button is pressed and released on the same position.
|
inherited |
Mouse double click event delegate4.
This delegate is called when the mouse button is double pressed and released on the same position. To change double click time use uiAppProps.doubleClickTime of uiApp.appProps().