GuiControl
This page has been automatically translated using the Google Translate API services. We are working on improving texts. Thank you for your understanding and patience.
Functions
GuiControl* | guicontrol (...) |
Label* | guicontrol_label (...) |
Button* | guicontrol_button (...) |
PopUp* | guicontrol_popup (...) |
Edit* | guicontrol_edit (...) |
Combo* | guicontrol_combo (...) |
ListBox* | guicontrol_listbox (...) |
UpDown* | guicontrol_updown (...) |
Slider* | guicontrol_slider (...) |
Progress* | guicontrol_progress (...) |
View* | guicontrol_view (...) |
TextView* | guicontrol_textview (...) |
WebView* | guicontrol_webview (...) |
ImageView* | guicontrol_imageview (...) |
TableView* | guicontrol_tableview (...) |
SplitView* | guicontrol_splitview (...) |
Panel* | guicontrol_panel (...) |
void | guicontrol_tag (...) |
uint32_t | guicontrol_get_tag (...) |
GuiControl
is the virtual base class where common functionality is defined for all the controls and views that we use to create the user interfaces (Figure 1).
- Use guicontrol_button and others to do dynamic casting between types.
- Use guicontrol to convert derived types.
- Label. Small blocks of descriptive text.
- Button. Push buttons, check boxes or radio.
- PopUp. Button with drop-down list.
- Edit. Text edit box.
- Combo. Edit box with drop-down list.
- ListBox. List box.
- UpDown. Increment and decrement buttons.
- Slider. Sliding bar.
- Progress. Progress bar.
- View. Generic view where you can freely draw.
- TextView. View to show and edit texts in multiple formats.
- WebView. View to display Web content.
- ImageView. View to display images.
- TableView. Table view to display information in rows and columns.
- SplitView. View divided into two resizable parts.
- Panel. Sub-window within the main one with its own controls.
guicontrol ()
Gets the base object from a derived control.
GuiControl* guicontrol(type *control);
control | The derived control. |
Return
Object.
guicontrol_label ()
Convert a control to a label.
Label* guicontrol_label(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_button ()
Convert a control to a button.
Button* guicontrol_button(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_popup ()
Convert a control to a popup.
PopUp* guicontrol_popup(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_edit ()
Convert a control to a edit.
Edit* guicontrol_edit(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_combo ()
Convert a control to a combo.
Combo* guicontrol_combo(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_listbox ()
Convert a control to a listbox.
ListBox* guicontrol_listbox(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_updown ()
Convert a control to a updown.
UpDown* guicontrol_updown(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_slider ()
Convert a control to a slider.
Slider* guicontrol_slider(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_progress ()
Convert a control to a progress.
Progress* guicontrol_progress(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_view ()
Convert a control to a view.
View* guicontrol_view(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_textview ()
Convert a control to a textview.
TextView* guicontrol_textview(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_webview ()
Convert a control to a webview.
WebView* guicontrol_webview(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_imageview ()
Convert a control to a imageview.
ImageView* guicontrol_imageview(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_tableview ()
Convert a control to a tableview.
TableView* guicontrol_tableview(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_splitview ()
Convert a control to a splitview.
SplitView* guicontrol_splitview(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_panel ()
Convert a control to a panel.
Panel* guicontrol_panel(GuiControl *control);
control | Control. |
Return
Object or NULL
if control
cannot be converted.
guicontrol_tag ()
Sets a tag for the control.
void guicontrol_tag(GuiControl *control, const uint32_t tag);
control | Control. |
tag | The tag. |
guicontrol_get_tag ()
Gets the tag of the control.
uint32_t guicontrol_get_tag(const GuiControl *control);
control | Control. |
Return
The tag.