TachyonUI 1.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:209
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, Segmented
Text and images Text, Label, DragLabel, SelectableText, Image
Buttons and toggles Button, CommandButton, Toggle, Switch, Checkbox
Fields Text, search, numeric, vector and typed fields, edge, corner and shadow fields, dropdowns, lists, dictionaries
Sliders SliderField, Slider, RangeField
Color and gradient fields ColorField, GradientField and their pickers
Curves CurveField and its curve editor, EvaluateCurve
Plots Plot: histograms and other series, with handles (Levels)
Viewport Viewport: your 3D scene, its camera, and gizmos to move, rotate and scale
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
Timeline Timeline playback row, TimelineEditor animation editor, AdvanceTimeline
Other controls Breadcrumb, status bar, progress bars, spinners and skeletons, task progress and background tasks, 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