37 #include "freertos/FreeRTOS.h" 38 #include "freertos/queue.h" 79 #define FABGLIB_UI_EVENTS_QUEUE_SIZE 64 96 UIEVT_MOUSEBUTTONDOWN,
126 typedef void * uiTimerHandle;
151 union uiEventParams {
161 char const * debugMsg;
165 uiTimerHandle timerHandle;
176 uiEvent() : dest(nullptr), id(UIEVT_NULL) { }
177 uiEvent(uiEvent
const & e) { dest = e.dest;
id = e.id; params = e.params; }
178 uiEvent(uiEvtHandler * dest_, uiEventID id_) : dest(dest_), id(id_) { }
246 virtual void processEvent(uiEvent * event);
258 void setApp(
uiApp * value) { m_app = value; }
343 virtual void processEvent(uiEvent * event);
581 void removeChild(
uiWindow * child,
bool freeChild =
true);
582 void moveChildOnTop(
uiWindow * child);
586 Size sizeAtMouseDown() {
return m_sizeAtMouseDown; }
587 Point posAtMouseDown() {
return m_posAtMouseDown; }
589 virtual Size minWindowSize() {
return Size(0, 0); }
591 void beginPaint(uiEvent * paintEvent, Rect
const & clippingRect);
593 void generatePaintEvents(Rect
const & paintRect);
594 void reshape(Rect
const & r);
610 Rect m_savedScreenRect;
612 uiWindowState m_state;
614 uiWindowProps m_windowProps;
616 uiWindowStyle m_windowStyle;
618 Point m_mouseDownPos;
620 Point m_posAtMouseDown;
621 Size m_sizeAtMouseDown;
627 int16_t m_focusIndex;
679 enum class uiFrameItem : uint8_t {
716 virtual void processEvent(uiEvent * event);
723 char const *
title() {
return m_title; }
785 Size minWindowSize();
786 int titleBarHeight();
792 int paintButtons(
Rect const & bkgRect);
793 void movingCapturedMouse(
int mouseX,
int mouseY,
bool mouseIsDown);
794 void movingFreeMouse(
int mouseX,
int mouseY);
795 uiFrameItem getFrameItemAt(
int x,
int y);
796 Rect getBtnRect(
int buttonIndex);
797 void handleButtonsClick(
int x,
int y,
bool doubleClick);
798 void drawTextWithEllipsis(FontInfo
const * fontInfo,
int X,
int Y,
char const * text,
int maxX);
799 void drawReshapingBox(
Rect boxRect);
802 static constexpr
int CORNERSENSE = 10;
812 uiFrameItem m_mouseDownFrameItem;
813 uiFrameItem m_mouseMoveFrameItem;
815 Rect m_lastReshapingBox;
844 virtual void processEvent(uiEvent * event);
871 enum class uiScrollBarItem {
905 virtual void processEvent(uiEvent * event);
999 virtual void setScrollBar(
uiScrollBar orientation,
int position,
int visible,
int range,
bool repaintScrollbar =
true);
1004 void paintScrollableControl();
1005 void paintScrollBars();
1006 Rect getVScrollBarRects(
Rect * topButton =
nullptr,
Rect * bottonButton =
nullptr,
Rect * bar =
nullptr);
1007 Rect getHScrollBarRects(
Rect * leftButton =
nullptr,
Rect * rightButton =
nullptr,
Rect * bar =
nullptr);
1008 uiScrollBarItem getItemAt(
int x,
int y);
1010 void handleFreeMouseMove(
int mouseX,
int mouseY);
1011 void handleCapturedMouseMove(
int mouseX,
int mouseY);
1012 void handleButtonsScroll();
1013 void handlePageScroll();
1017 int16_t m_HScrollBarPosition;
1018 int16_t m_HScrollBarVisible;
1019 int16_t m_HScrollBarRange;
1020 int16_t m_VScrollBarPosition;
1021 int16_t m_VScrollBarVisible;
1022 int16_t m_VScrollBarRange;
1028 int16_t m_mouseDownHScrollBarPosition;
1029 int16_t m_mouseDownVScrollBarPosition;
1031 uiScrollBarItem m_mouseOverItem;
1034 uiTimerHandle m_scrollTimer;
1085 virtual void processEvent(uiEvent * event);
1094 void setText(
char const * value);
1101 char const *
text() {
return m_text; }
1142 void paintContent(
Rect const &
rect);
1216 virtual void processEvent(uiEvent * event);
1239 void setText(
char const * value);
1246 char const *
text() {
return m_text; }
1259 virtual Rect getEditRect();
1263 void paintTextEdit();
1264 void paintContent();
1266 uint8_t
const * getCharInfo(
char ch,
int * width);
1267 int charColumnToWindowX(
int col);
1269 void moveCursor(
int col,
int selCol);
1270 int getColFromMouseX(
int mouseX);
1272 void checkAllocatedSpace(
int requiredLength);
1273 void insert(
char c);
1275 int getWordPosAtLeft();
1276 int getWordPosAtRight();
1277 void selectWordAt(
int mouseX);
1333 virtual void processEvent(uiEvent * event);
1342 void setText(
char const * value);
1349 char const *
text() {
return m_text; }
1375 uint16_t m_textExtent;
1411 virtual void processEvent(uiEvent * event);
1479 virtual void processEvent(uiEvent * event);
1526 virtual void processEvent(uiEvent * event);
1549 void paintPaintBox();
1591 virtual void processEvent(uiEvent * event);
1608 StringList &
items() {
return m_items; }
1631 void selectItem(
int index,
bool add =
false,
bool range =
false);
1665 void paintListBox();
1666 int getItemAtMousePos(
int mouseX,
int mouseY);
1667 void handleMouseDown(
int mouseX,
int mouseY);
1673 int m_firstVisibleItem;
1718 virtual void processEvent(uiEvent * event);
1770 virtual Rect getEditRect();
1775 void paintComboBox();
1776 Rect getButtonRect();
1779 void closeListBox();
1780 void switchListBox();
1781 void updateTextEdit();
1839 virtual void processEvent(uiEvent * event);
1891 void paintCheckBox();
1893 void unCheckGroup();
1899 int16_t m_groupIndex;
1981 void postDebugMsg(
char const * msg);
1983 virtual void processEvent(uiEvent * event);
2054 void captureMouse(
uiWindow * window);
2158 void combineMouseMoveEvents(
bool value) { m_combineMouseMoveEvents = value; }
2160 void showCaret(uiWindow * window);
2162 void setCaret(
bool value);
2164 void setCaret(Point
const & pos);
2166 void setCaret(Rect
const & rect);
2179 uiTimerHandle
setTimer(uiEvtHandler * dest,
int periodMS);
2204 void cleanWindowReferences(
uiWindow * window);
2224 virtual void init();
2238 bool getEvent(uiEvent * event,
int timeOutMS);
2239 bool peekEvent(uiEvent * event,
int timeOutMS);
2244 void preprocessEvent(uiEvent * event);
2245 void preprocessMouseEvent(uiEvent * event);
2246 void preprocessKeyboardEvent(uiEvent * event);
2247 void filterModalEvent(uiEvent * event);
2249 static void timerFunc(TimerHandle_t xTimer);
2251 void blinkCaret(
bool forceOFF =
false);
2252 void suspendCaret(
bool value);
2257 QueueHandle_t m_eventsQueue;
2271 bool m_combineMouseMoveEvents;
2275 uiTimerHandle m_caretTimer;
2276 int m_caretInvertState;
2278 int m_lastMouseUpTimeMS;
2279 Point m_lastMouseUpPos;
uiWindowStyle & windowStyle()
Sets or gets window style.
Definition: fabui.h:469
void selectItem(int index, bool add=false, bool range=false)
Selects a listbox item.
Definition: fabui.cpp:3278
uiCheckBoxKind
Specifies the combobox behaviour.
Definition: fabui.h:1810
VirtualKey VK
Definition: fabui.h:131
uint8_t SHIFT
Definition: fabui.h:135
bool hasFocus()
Determines whether this window or control has focus.
Definition: fabui.cpp:1430
uiApp * app()
Determines the app that owns this object.
Definition: fabui.h:253
Definition: vgacontroller.h:394
uiImageStyle & imageStyle()
Sets or gets image style.
Definition: fabui.h:1434
RGB backgroundColor
Definition: fabui.h:1505
uint8_t hasMinimizeButton
Definition: fabui.h:667
uiPanelStyle & panelStyle()
Sets or gets panel style.
Definition: fabui.h:1486
void moveWindow(uiWindow *window, int x, int y)
Moves a window.
Definition: fabui.cpp:587
uiWindow * capturedMouseWindow()
Determines which window is capturing mouse.
Definition: fabui.h:2063
Represents an RGB color.
Definition: vgacontroller.h:239
uiComboBoxStyle & comboBoxStyle()
Sets or gets combobox style.
Definition: fabui.h:1734
uiWindow * screenToWindow(Point &point)
Determines which window a point belongs to.
Definition: fabui.cpp:391
A frame is a window with a title bar, maximize/minimize/close buttons and that is resizeable or movea...
Definition: fabui.h:699
Contains details about the key event.
Definition: fabui.h:130
Delegate< uiTimerHandle > onTimer
Timer event delegate.
Definition: fabui.h:2234
void minimizeWindow(uiWindow *window, bool value)
Minimizes or restores a window.
Definition: fabui.cpp:673
RGB backgroundColor
Definition: fabui.h:1389
uiTimerHandle setTimer(uiEvtHandler *dest, int periodMS)
Setups a timer.
Definition: fabui.cpp:690
void repaintRect(Rect const &rect)
Repaints a screen area.
Definition: fabui.cpp:578
uint8_t right
Definition: fabui.h:317
Represents the whole application base class.
Definition: fabui.h:1948
void resizeWindow(uiWindow *window, int width, int height)
Resizes a window.
Definition: fabui.cpp:593
void selectItem(int index)
Selects an item.
Definition: fabui.cpp:3469
uint8_t minimized
Definition: fabui.h:285
uiPaintBoxStyle & paintBoxStyle()
Sets or gets paintbox style.
Definition: fabui.h:1533
uint8_t left
Definition: fabui.h:315
virtual void init()
Method to inherit to implement an application.
Definition: fabui.cpp:410
RGB borderColor
Definition: fabui.h:305
uiWindow * setFocusedWindow(uiWindow *value)
Sets the focused window (control)
Definition: fabui.cpp:512
bool postEvent(uiEvent const *event)
Places an event in the event queue and returns without waiting for the receiver to process the event...
Definition: fabui.cpp:415
Base class for all visible UI elements (Frames and Controls)
Definition: fabui.h:325
char const * text()
Determines label text.
Definition: fabui.h:1349
uiLabelStyle & labelStyle()
Sets or gets label style.
Definition: fabui.h:1356
bool isMouseOver()
Determines whether the mouse is over this window.
Definition: fabui.h:514
RGB activeTitleBackgroundColor
Definition: fabui.h:648
Rect transformRect(Rect const &rect, uiWindow *baseWindow)
Transforms rectangle origins from current window to another one.
Definition: fabui.cpp:1077
void maximizeWindow(uiWindow *window, bool value)
Maximizes or restores a window.
Definition: fabui.cpp:666
uiWindow * lastChild()
Gets last child.
Definition: fabui.h:375
Delegate onChange
Change event delegate.
Definition: fabui.h:1886
uiWindow * activeWindow()
Gets a pointer to the currently active window.
Definition: fabui.h:2003
FontInfo const * titleFont
Definition: fabui.h:651
uiTextEditProps & textEditProps()
Sets or gets text edit properties.
Definition: fabui.h:1230
uint8_t bottom
Definition: fabui.h:318
Contains a list of selectable items.
Definition: fabui.h:1575
uint8_t top
Definition: fabui.h:316
uiImage(uiWindow *parent, Bitmap const *bitmap, const Point &pos, const Size &size=Size(0, 0), bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:2672
uint8_t focusable
Definition: fabui.h:293
RGB checkedBackgroundColor
Definition: fabui.h:1801
Delegate onChange
Text edit event delegate.
Definition: fabui.h:1254
Contains the listbox style.
Definition: fabui.h:1562
RGB selectedBackgroundColor
Definition: fabui.h:1565
Point pos()
Determines the window position relative to parent window.
Definition: fabui.h:403
Delegate< uiTimerHandle > onTimer
Timer event delegate.
Definition: fabui.h:780
RGB titleColor
Definition: fabui.h:649
uiControl(uiWindow *parent, const Point &pos, const Size &size, bool visible)
Creates an instance of the object.
Definition: fabui.cpp:1982
uiWindow * parent()
Determines the parent window.
Definition: fabui.h:476
RGB activeTitleColor
Definition: fabui.h:650
uint8_t borderSize
Definition: fabui.h:308
Base class of all UI elements that can receive events.
Definition: fabui.h:238
RGB focusedBackgroundColor
Definition: fabui.h:1173
Sets or gets text edit style.
Definition: fabui.h:1170
uint8_t GUI
Definition: fabui.h:136
void deselectAll()
Deselects all selected items.
Definition: fabui.cpp:3311
Contains the paintbox style.
Definition: fabui.h:1504
int lastSelectedItem()
Gets the last selected item.
Definition: fabui.cpp:3381
Properties of the combobox.
Definition: fabui.h:1689
uiWindow * moveFocus(int delta)
Move focus to a control with current focus index plus a delta.
Definition: fabui.cpp:546
uiMessageBoxIcon
Icon displayed by the uiApp.messageBox() method.
Definition: fabui.h:1933
FontInfo const * textFont
Definition: fabui.h:1568
This file contains fabgl::CanvasClass definition and the related Canvas instance. ...
This file contains fabgl::VGAControllerClass definition and the VGAController instance.
A panel is used to contain and to group some controls.
Definition: fabui.h:1463
Represents a checkbox or a radiobutton.
Definition: fabui.h:1822
uint8_t resizeable
Definition: fabui.h:663
RGB mouseOverBackgroundButtonColor
Definition: fabui.h:654
void showWindow(uiWindow *window, bool value)
Makes a window visible or invisible.
Definition: fabui.cpp:614
uint8_t hasCaret
Definition: fabui.h:1183
virtual Rect clientRect(uiOrigin origin)
Determines the client area bounding box.
Definition: fabui.cpp:1115
Point clientPos()
Determines position of the client area.
Definition: fabui.cpp:1128
void bringOnTop()
Brings this window on top.
Definition: fabui.cpp:1054
bool realtimeReshaping
Definition: fabui.h:1915
Delegate onKillFocus
Kill focus event delegate.
Definition: fabui.h:1651
void reshapeWindow(uiWindow *window, Rect const &rect)
Reshapes a window.
Definition: fabui.cpp:606
void setText(char const *value)
Sets label text.
Definition: fabui.cpp:2614
RGB focusedSelectedBackgroundColor
Definition: fabui.h:1566
void destroyWindow(uiWindow *window)
Destroys a window.
Definition: fabui.cpp:781
uiTextEdit(uiWindow *parent, char const *text, const Point &pos, const Size &size, bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:2157
uiWindow * prev()
Gets previous sibling.
Definition: fabui.h:361
uiFrameProps & frameProps()
Sets or gets frame properties.
Definition: fabui.h:746
Properties of the application.
Definition: fabui.h:1912
uiButtonKind
Specifies the button kind.
Definition: fabui.h:1060
uiAppProps & appProps()
Sets or gets application properties.
Definition: fabui.h:2195
void update()
Updates the label content.
Definition: fabui.cpp:2623
Contains the label style.
Definition: fabui.h:1308
void bringAfter(uiWindow *insertionPoint)
Brings this window after another one.
Definition: fabui.cpp:1060
Describes mouse absolute position, scroll wheel delta and buttons status.
Definition: fabutils.h:206
uint8_t moveable
Definition: fabui.h:664
Point mouseDownPos()
Determines mouse position when left button was down.
Definition: fabui.h:483
uint16_t caretBlinkingTime
Definition: fabui.h:1913
uiFrameStyle & frameStyle()
Sets or gets frame style.
Definition: fabui.h:739
RGB backgroundColor
Definition: fabui.h:1310
Rect rect(uiOrigin origin)
Determines the window bounding box.
Definition: fabui.cpp:1099
uiWindowState state()
Determines the window state.
Definition: fabui.h:455
int focusIndex()
Determines the focus index (aka tab-index)
Definition: fabui.h:555
VirtualKey
Represents each possible real or derived (SHIFT + real) key.
Definition: fabutils.h:366
RGB backgroundColor
Definition: fabui.h:1458
Represents the coordinate of a point.
Definition: fabutils.h:125
Represents an image with 64 colors image and transparency.
Definition: vgacontroller.h:367
Delegate< uiKeyEventInfo > onKeyUp
Key-up event delegate.
Definition: fabui.h:1656
Size size()
Determines the window size.
Definition: fabui.h:419
Contains the window style.
Definition: fabui.h:303
Properties of the frame.
Definition: fabui.h:662
void setFocusIndex(int value)
Sets the focus index (aka tab-index)
Definition: fabui.h:546
This file contains some utility classes and functions.
RGB activeBorderColor
Definition: fabui.h:306
RGB textColor
Definition: fabui.h:1311
uiLabel(uiWindow *parent, char const *text, const Point &pos, const Size &size=Size(0, 0), bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:2594
Definition: canvas.cpp:47
RGB foregroundColor
Definition: fabui.h:1803
uint8_t activable
Definition: fabui.h:292
CursorName
This enum defines a set of predefined mouse cursors.
Definition: vgacontroller.h:392
uiWindow * firstChild()
Gets first child.
Definition: fabui.h:368
void run()
Initialize application and executes the main event loop.
Definition: fabui.cpp:186
void repaint()
Repaints this window.
Definition: fabui.cpp:1093
Specifies the object type.
Definition: fabui.h:188
Contains some window options.
Definition: fabui.h:291
uiPanel(uiWindow *parent, const Point &pos, const Size &size, bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:2738
uint8_t visible
Definition: fabui.h:283
void exitModal(int modalResult)
Exits from a modal window.
Definition: fabui.cpp:1422
StringList & items()
A list of strings representing the listbox content.
Definition: fabui.h:1608
uint8_t active
Definition: fabui.h:286
MouseStatus status
Definition: fabui.h:142
RGB backgroundColor
Definition: fabui.h:1800
Delegate onChange
Change event delegate.
Definition: fabui.h:1646
void repaintWindow(uiWindow *window)
Repaints a window.
Definition: fabui.cpp:572
uint8_t hasCloseButton
Definition: fabui.h:665
Represents a rectangle.
Definition: fabutils.h:158
void setText(char const *value)
Replaces current text.
Definition: fabui.cpp:2184
uint8_t changedButton
Definition: fabui.h:143
uiWindowProps & windowProps()
Sets or gets window properties.
Definition: fabui.h:462
uiTextEditStyle & textEditStyle()
Sets or gets text edit style.
Definition: fabui.h:1223
uiComboBoxProps & comboBoxProps()
Sets or gets combobox properties.
Definition: fabui.h:1741
static FontInfo const * getPresetFontInfoFromHeight(int height, bool fixedWidth)
Gets the font info that best fits the specified height.
Definition: canvas.cpp:493
Represents a text edit control.
Definition: fabui.h:1199
uiComboBox(uiWindow *parent, const Point &pos, const Size &size, int listHeight, bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:3435
uint8_t RALT
Definition: fabui.h:133
Delegate onShow
Show window event delegate.
Definition: fabui.h:758
Contains details about the mouse event.
Definition: fabui.h:141
RGB buttonColor
Definition: fabui.h:652
Delegate onDblClick
Mouse double click event delegate4.
Definition: fabui.h:573
StringList & items()
A list of strings representing items of the combobox.
Definition: fabui.h:1727
uiWindow * focusedWindow()
Gets the focused window (control)
Definition: fabui.h:2028
int showModalWindow(uiWindow *window)
Makes a window visible and handles it has a modal window.
Definition: fabui.cpp:622
uiPaintBox(uiWindow *parent, const Point &pos, const Size &size, bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:2789
RGB textColor
Definition: fabui.h:1569
uiCheckBoxStyle & checkBoxStyle()
Sets or gets checkbox style.
Definition: fabui.h:1846
uiMessageBoxResult messageBox(char const *title, char const *text, char const *button1Text, char const *button2Text=nullptr, char const *button3Text=nullptr, uiMessageBoxIcon icon=uiMessageBoxIcon::Question)
Displays a modal dialog box with an icon, text and some buttons.
Definition: fabui.cpp:820
void killTimer(uiTimerHandle handle)
Kills a timer.
Definition: fabui.cpp:698
void setChecked(bool value)
Sets current checkbox or radiobutton checked status.
Definition: fabui.cpp:3717
uint8_t CTRL
Definition: fabui.h:134
Rect clientRect(uiOrigin origin)
Determines the client area bounding box.
Definition: fabui.cpp:1506
bool hasChildren()
Determines whether this window has children.
Definition: fabui.h:382
This file contains FabGL library configuration settings, like number of supported colors...
Base class of all UI elements like windows and controls.
Definition: fabui.h:212
uiObjectType & objectType()
Determines the object type.
Definition: fabui.h:225
A paintbox control allows applications to perform custom drawings providing uiPaintBox.onPaint delegate. A paintbox can have horizontal and vertical scrollbars.
Definition: fabui.h:1510
int firstSelectedItem()
Gets the first selected item.
Definition: fabui.cpp:3371
RGB activeButtonColor
Definition: fabui.h:653
RGB titleBackgroundColor
Definition: fabui.h:647
Represents a bidimensional size.
Definition: fabutils.h:143
uiWindow * next()
Gets next sibling.
Definition: fabui.h:352
FontInfo const * textFont
Definition: fabui.h:1175
CursorName defaultCursor
Definition: fabui.h:304
RGB textColor
Definition: fabui.h:1174
Delegate onClick
Mouse click event delegate.
Definition: fabui.h:565
uiListBox(uiWindow *parent, const Point &pos, const Size &size, bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:3186
RGB backgroundColor
Definition: fabui.h:646
uint8_t maximized
Definition: fabui.h:284
Contains the listbox style.
Definition: fabui.h:1682
uint8_t openOnFocus
Definition: fabui.h:1690
uint8_t focusedBorderSize
Definition: fabui.h:309
RGB buttonBackgroundColor
Definition: fabui.h:1683
RGB mouseOverButtonColor
Definition: fabui.h:655
RGB focusedBackgroundColor
Definition: fabui.h:1564
Delegate onResize
Resize window event delegate.
Definition: fabui.h:772
uiCheckBox(uiWindow *parent, const Point &pos, const Size &size, uiCheckBoxKind kind=uiCheckBoxKind::CheckBox, bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:3610
A label is a static text UI element.
Definition: fabui.h:1316
int itemHeight
Definition: fabui.h:1567
Properties of the text edit.
Definition: fabui.h:1182
Contains the image style.
Definition: fabui.h:1388
RGB backgroundColor
Definition: fabui.h:1171
This is the base class for all controls. A control can have focus and is not activable.
Definition: fabui.h:828
void setScrollBar(uiScrollBar orientation, int position, int visible, int range, bool repaintScrollbar)
Sets scrollbar position, visible portion and range.
Definition: fabui.cpp:3390
RGB selectedTextColor
Definition: fabui.h:1570
Contains anchors enable/disable switches.
Definition: fabui.h:314
RGB buttonColor
Definition: fabui.h:1684
uiFrame * rootWindow()
Gets a pointer to the root window.
Definition: fabui.h:1993
uiOrigin
Specifies window rectangle origin.
Definition: fabui.h:274
uiListBoxStyle & listBoxStyle()
Sets or gets listbox style.
Definition: fabui.h:1598
bool insertEvent(uiEvent const *event)
Inserts (first position) an event in the event queue and returns without waiting for the receiver to ...
Definition: fabui.cpp:421
uiScrollBar
Scrollbar direction.
Definition: fabui.h:865
void setBitmap(Bitmap const *bitmap)
Sets image bitmap.
Definition: fabui.cpp:2690
Delegate onHide
Hide window event delegate.
Definition: fabui.h:765
RGB backgroundColor
Definition: fabui.h:1563
int groupIndex()
Determines radiobutton group index.
Definition: fabui.h:1869
uint16_t doubleClickTime
Definition: fabui.h:1914
Specifies current window state.
Definition: fabui.h:282
int selectedItem()
Represents currently selected item.
Definition: fabui.h:1748
char const * title()
Determines the window title.
Definition: fabui.h:723
uint8_t hasMaximizeButton
Definition: fabui.h:666
This is a combination of a listbox and a single-line editable textbox.
Definition: fabui.h:1700
uiWindow * setActiveWindow(uiWindow *value)
Sets the active window.
Definition: fabui.cpp:468
Delegate< Rect > onPaint
Paint event delegate.
Definition: fabui.h:1544
uint8_t LALT
Definition: fabui.h:132
RGB mouseOverBackgroundColor
Definition: fabui.h:1172
FontInfo const * textFont
Definition: fabui.h:1309
void setTitle(char const *value)
Sets window title.
Definition: fabui.cpp:1484
Contains the checkbox style.
Definition: fabui.h:1799
bool checked()
Determines whether the checkbox or radiobutton is checked.
Definition: fabui.h:1853
uint8_t allowEdit
Definition: fabui.h:1184
uiAnchors & anchors()
Allows to switch on or off anchors.
Definition: fabui.h:539
Contains the panel style.
Definition: fabui.h:1457
char const * text()
Gets current content of the text edit.
Definition: fabui.h:1246
uiMessageBoxResult
Return values from uiApp.messageBox() method.
Definition: fabui.h:1922
uiWindow(uiWindow *parent, const Point &pos, const Size &size, bool visible)
Creates an instance of the object.
Definition: fabui.cpp:928
Size clientSize()
Determines the client area size.
Definition: fabui.cpp:1122
Delegate onChange
Change event delegate.
Definition: fabui.h:1765
RGB mouseOverBackgroundColor
Definition: fabui.h:1802
RGB focusedBorderColor
Definition: fabui.h:307
Bitmap const * bitmap()
Gets image bitmap.
Definition: fabui.h:1427
void setGroupIndex(int value)
Sets radiobutton group index.
Definition: fabui.h:1876
Image control to display a static bitmap.
Definition: fabui.h:1394
uiFrame(uiWindow *parent, char const *title, const Point &pos, const Size &size, bool visible=true)
Creates an instance of the object.
Definition: fabui.cpp:1465