TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
Controls

Every control is a member function of tachyon::GUIApplication. Your application is a subclass of it and builds its whole UI again each frame, in OnGUI(). The examples on these pages are written as if inside that OnGUI(), with using namespace tachyon;.

class MyApp : public tachyon::GUIApplication
{
public:
void OnGUI() override
{
using namespace tachyon;
if (BeginWindow(windowID, "Tool"))
Button("Save", [this] { Save(); }); // a control, called from OnGUI
EndWindow();
}
// ...
};
The application: owns the windows, the systems and the frame loop.
Definition gui_application.h:185
Definition gui_logging.h:24

Read Common conventions first: it explains the parameters and results all controls share.

Page Covers
Common conventions Parameter order, return values, callbacks, LayoutOverride, state scopes
Windows and layout Windows, horizontal and vertical groups, areas, scroll bars, caching, label and button groups
Text and images Text, Label, DragLabel, SelectableText, Image
Buttons and toggles Button, CommandButton, Toggle, Switch, Checkbox
Fields Text, search, numeric, vector and typed fields, dropdowns, lists, dictionaries
Sliders SliderField, Slider
Color and gradient fields ColorField, GradientField and their pickers
Menus Menus, menu items, menu bar, title bar, context menus
Tooltips and message dialogs Tooltips, modal MessageDialog
Lists and reorderable groups List views, drag-to-reorder groups
Tables Tables, virtual tables, tree cells
Tree and grid views VirtualTreeView, grid views, virtual grid views
Tabs, docking and toolbars Tab bars, docking containers, toolbars, toolbar dock
Node view RenderNodeView node graph editor
Other controls Breadcrumb, status bar, command search, settings panel
Custom drawing Drawing shapes and text inside an element
Default CSS classes Each control's class when you pass no style