TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
Application

GUIApplication, the frame, GUIContent and event handlers. More...

Namespaces

namespace  tachyon::Easing

Classes

class  tachyon::FrameClock
 Animation time locked to the display refresh. More...
class  tachyon::VsyncLock
 Whether frames are locked to the vsync, told by how long presenting them waited. More...
struct  tachyon::FrameContext
 Per-frame values plus references to long-lived managers, passed to every stage callback. More...
class  tachyon::FramePipeline
 Stage callbacks run in registration order (no priorities): if A must run before B, construct A first (see GUIApplication::Initialize()). More...
class  tachyon::RedrawRequests
 Redraws asked for: now, or at a time on the steady clock (SteadyClockNowNanos). More...
struct  tachyon::CubicBezier
 A CSS cubic-bezier(x1, y1, x2, y2) timing curve: maps the share of a transition's time that has passed (0..1) to how far its value has gone (0..1). More...
struct  tachyon::MessageButton
 A button of a MessageDialog. More...
struct  tachyon::MessageDialogItem
 An affected item, listed in a well: a name, an optional color dot and note, and a checkbox when checked is set. More...
struct  tachyon::MessageDialogDesc
 What a MessageDialog shows. More...
struct  tachyon::GUIApplicationInitializeOptions
 What GUIApplication::Initialize sets up besides the core systems. More...
class  tachyon::GUIApplication
 The application: owns the windows, the systems and the frame loop. More...
struct  tachyon::GUIContent
 What a control shows: a text, an icon or both, and an optional tooltip. More...
struct  tachyon::PropertyHelp
 A property's help, shown in a larger tooltip (SetTooltip): its name, what it does, and where it lives in the API with its type, such as "MeshRenderer.castShadows (bool)". More...
struct  tachyon::CurveKey
 A key: a time where the curve has a value, its slopes on either side, and how the curve runs on to the next key. More...
struct  tachyon::Curve
 A curve: keys in time order, joined by segments as each key's interpolation says: a cubic (Hermite) one taking the keys' slopes, as an animation curve does, a straight line or a step. More...
struct  tachyon::CurveChannel
 One of a CurveView's curves, such as the red one of a color's. More...
struct  tachyon::CurveRange
 The span a CurveField shows, from timeMin to timeMax and valueMin to valueMax. More...
struct  tachyon::CurvePreset
 A named curve the editor offers to start from, as a thumbnail under the plot. More...
struct  tachyon::CurveEdit
 A change to a CurveView, for undo: what each changed channel's curve was before and after. More...
struct  tachyon::CurveData
 A CurveField's curves, kept by the app from frame to frame. More...
struct  tachyon::CurveViewState
 How one CurveField or CurveEditor shows a CurveData: the channel worked on, the selection, the part in view, and what the user is doing in it. More...
struct  tachyon::CurveView
 Curves shown in one place: the curves and the one view of them together. More...
struct  tachyon::SizerState
 Per-element state of the sizer handlers (element data store); internal. More...
struct  tachyon::SliderState
 Per-element state of MakeSliderHandler and the integer slider (element data store); internal. More...
struct  tachyon::DragLabelState
 Per-element state of a draggable label (element data store); internal. More...
struct  tachyon::LabelGroupVisualState
 Shared by all labels in a group, so the edge highlight is synchronized. More...
struct  tachyon::ScrollbarDragState
 Per-element state of MakeScrollbarHandler (element data store); internal. More...
struct  tachyon::ProgressTask
 A piece of work, as TaskProgress, ProgressSteps, StatusProgress and BackgroundTasks show it. More...
struct  tachyon::TimelineState
 Where playback is: what a Timeline shows and edits. More...
struct  tachyon::TimelineRange
 A stretch of time, in seconds: from start up to end. More...
struct  tachyon::TimelineOptions
 What a Timeline covers. The markers are only read during the call. More...
struct  tachyon::TimelineKey
 A key on a property track: a time where the value is set. More...
struct  tachyon::TimelineEvent
 A named moment on an events track: "Spawn", "Explode". More...
struct  tachyon::TimelineClip
 An audio track's sound on its lane. More...
struct  tachyon::TimelineTrack
 A row of the timeline: its name and controls in the track list, its lane beside them. More...
struct  tachyon::TimelineEdit
 A change to a TimelineView, for undo: what each changed track was before and after, the tracks added or removed, and the loop range. More...
struct  tachyon::TimelineData
 A timeline's tracks and playback, kept by the app from frame to frame. More...
struct  tachyon::TimelineViewState
 How one TimelineEditor shows a TimelineData: the part in view, the selection, the track filter, and what the user is doing in it. More...
struct  tachyon::TimelineView
 A timeline shown in one place: the tracks and the one view of them together. More...
struct  tachyon::TransitionState
 A box's look for its state now: the state styles mixed while channels run (styles), and the style of the state it's in, where it ends up (current). More...
struct  tachyon::TransitionTiming
 How long a change of state takes, and how it eases. A duration of 0 is instant. More...
class  tachyon::TransitionManager
 Tracks the running transitions of the elements' state channels. More...
struct  tachyon::BasicViewRef< Data, State >
 What a control shows and one view of it, as the control takes them. More...

Typedefs

using tachyon::StageCallback = std::function<void(FrameContext&)>
using tachyon::CurveViewRef = BasicViewRef<CurveData, CurveViewState>
 Curves and one view of them, as CurveField, CurveEditor and the helpers take them.
using tachyon::ConstCurveViewRef = BasicViewRef<const CurveData, const CurveViewState>
using tachyon::TimelineViewRef = BasicViewRef<TimelineData, TimelineViewState>
 A timeline and one view of it, as TimelineEditor and the helpers take them.
using tachyon::ConstTimelineViewRef = BasicViewRef<const TimelineData, const TimelineViewState>

Enumerations

enum class  tachyon::FrameStage : uint8_t {
  tachyon::FrameStage::PreFrame , tachyon::FrameStage::PreConstruct , tachyon::FrameStage::PostConstruct , tachyon::FrameStage::PreLayout ,
  tachyon::FrameStage::PostLayout , tachyon::FrameStage::PreInput , tachyon::FrameStage::PostInput , tachyon::FrameStage::PreRender ,
  tachyon::FrameStage::PostRender , tachyon::FrameStage::EndFrame
}
 The stages of a frame, in run order. More...
enum class  tachyon::RedrawMode : uint8_t { tachyon::RedrawMode::Always , tachyon::RedrawMode::WhenChanged , tachyon::RedrawMode::WhenNeeded }
 How often GUIApplication::Run draws a frame (GUIApplication::SetRedrawMode). More...
enum class  tachyon::MessageIcon : uint8_t {
  tachyon::MessageIcon::Warning , tachyon::MessageIcon::Quit , tachyon::MessageIcon::Question , tachyon::MessageIcon::Info ,
  tachyon::MessageIcon::Error
}
 The icon beside a MessageDialog's text. More...
enum class  tachyon::MessageButtonKind : uint8_t { tachyon::MessageButtonKind::Secondary , tachyon::MessageButtonKind::Primary , tachyon::MessageButtonKind::Danger }
 How a MessageButton is styled: Primary for the main choice, Danger for a destructive one. More...
enum class  tachyon::CurveTangentMode : uint8_t { tachyon::CurveTangentMode::Auto , tachyon::CurveTangentMode::Aligned , tachyon::CurveTangentMode::Free , tachyon::CurveTangentMode::Flat }
 How a key's slopes are set: worked out from its neighbors, or by the user. More...
enum class  tachyon::CurveInterpolation : uint8_t { tachyon::CurveInterpolation::Bezier , tachyon::CurveInterpolation::Linear , tachyon::CurveInterpolation::Constant }
 How a curve runs from a key to the next. More...
enum class  tachyon::CurveWrapMode : uint8_t { tachyon::CurveWrapMode::Clamp , tachyon::CurveWrapMode::Loop , tachyon::CurveWrapMode::PingPong }
 What a curve does before its first key or after its last. More...
enum class  tachyon::CurveChannelColor : uint8_t {
  tachyon::CurveChannelColor::Value , tachyon::CurveChannelColor::Red , tachyon::CurveChannelColor::Green , tachyon::CurveChannelColor::Blue ,
  tachyon::CurveChannelColor::Alpha
}
 The color a channel is drawn in. More...
enum class  tachyon::SliderPress : uint8_t { tachyon::SliderPress::Edit , tachyon::SliderPress::Jump }
 What pressing a slider does: Edit - a click (no drag) opens its value for typing; Jump - the value moves to the cursor at once and follows it while held. More...
enum class  tachyon::SpinnerSize : uint8_t { tachyon::SpinnerSize::Small , tachyon::SpinnerSize::Medium , tachyon::SpinnerSize::Large }
 How large a Spinner is. More...
enum class  tachyon::TaskState : uint8_t {
  tachyon::TaskState::Pending , tachyon::TaskState::Running , tachyon::TaskState::Paused , tachyon::TaskState::Failed ,
  tachyon::TaskState::Done
}
 Where a piece of work is. More...
enum class  tachyon::TimelineTrackKind : uint8_t { tachyon::TimelineTrackKind::Group , tachyon::TimelineTrackKind::Property , tachyon::TimelineTrackKind::Audio , tachyon::TimelineTrackKind::Events }
 What a track holds, and how its row looks. More...
enum class  tachyon::TransitionChannel : uint8_t {
  tachyon::TransitionChannel::Hover , tachyon::TransitionChannel::Active , tachyon::TransitionChannel::Focused , tachyon::TransitionChannel::Selected ,
  tachyon::TransitionChannel::Invalid
}
 The parts of an element's state that change over time, each on its own: hover, press, focus and selected pick its style; invalid grows its error halo in. More...

Functions

double tachyon::FramePaceWaitSeconds (int64_t frameStartNanos, int64_t nowNanos, float refreshHz)
 How long to wait after presenting a frame, in seconds, so the loop doesn't run faster than the display shows frames.
void tachyon::FramePipeline::OnPreFrame (StageCallback cb)
 Adds cb to the end of that stage's callbacks.
void tachyon::FramePipeline::OnPreConstruct (StageCallback cb)
void tachyon::FramePipeline::OnPostConstruct (StageCallback cb)
void tachyon::FramePipeline::OnPreLayout (StageCallback cb)
void tachyon::FramePipeline::OnPostLayout (StageCallback cb)
void tachyon::FramePipeline::OnPreInput (StageCallback cb)
void tachyon::FramePipeline::OnPostInput (StageCallback cb)
void tachyon::FramePipeline::OnPreRender (StageCallback cb)
void tachyon::FramePipeline::OnPostRender (StageCallback cb)
void tachyon::FramePipeline::OnEndFrame (StageCallback cb)
void tachyon::VERIFY (ElementStorageResult result)
 Checks the result of an element-storage call (e.g.
void tachyon::VERIFY (RegistryResult result)
 As above, for windowRegistry calls.
void tachyon::VERIFY (AddWindowResult result)
 WindowUserClosed is accepted too: it's the expected outcome when a window can't be reopened.
void tachyon::VERIFY (RequestCloseResult result)
 Checks the result of closing a window: misuse (outside a frame, already closed) is reported; other failures assert.
float tachyon::EvaluateCurve (const Curve &curve, float time)
 The curve's value at time; 0 without keys.
void tachyon::UpdateCurveTangents (Curve &curve)
 Works out the slopes their mode sets: Auto from the neighbors, Flat level, Aligned the leaving slope on both sides.
Curve tachyon::MakeCurve (std::span< const float2 > points, CurveTangentMode mode=CurveTangentMode::Auto, CurveInterpolation interpolation=CurveInterpolation::Bezier)
 A curve, with its keys' tangents worked out: one key at each points (time, value).
std::span< const CurvePreset > tachyon::DefaultCurvePresets ()
 The built-in presets: constant, linear, ease in, ease out, ease in and out, and their mirror images.
void tachyon::ApplyCurveEdit (CurveData &data, const CurveEdit &edit, bool undo=false)
 Does (or with undo, undoes) edit on the curves, and raises their revision.
void tachyon::CommitCurveEdit (CurveViewRef view, const CurveEdit &edit)
 Applies edit, lets go of what it took from the view's selection, and hands it to view.data.onEdit; does nothing for an empty one.
void tachyon::ReleaseCurveEditIDs (IDManager &ids, const CurveEdit &edit, bool undone)
 Releases the static IDs of the keys only the side of edit not in effect holds: done, what its undo would bring back; undone, what its redo would add.
bool tachyon::PruneCurveSelection (CurveViewRef view)
 After an edit (through this view or another): lets go of the selected keys that are gone, and of what the view kept of them.
CurveEdit tachyon::AddCurveKeyEdit (const CurveData &data, int channel, float time, float value, ID keyID)
 A key on channel at time with value, kept in the curves' range; none on a hidden channel, or where the channel has a key at that time already.
float tachyon::SnapToFrame (const CurveData &data, float time)
 With fps set, time on the nearest frame; as it is without.
CurveEdit tachyon::DeleteSelectedCurveKeysEdit (ConstCurveViewRef view)
 The view's selected keys gone, from every channel.
CurveEdit tachyon::SetCurveTangentModeEdit (ConstCurveViewRef view, CurveTangentMode mode)
 The selected keys' tangent mode set; to Free or Aligned, each side keeps its slope.
CurveEdit tachyon::SetCurveInterpolationEdit (ConstCurveViewRef view, CurveInterpolation interpolation)
 The selected keys' interpolation to the next key set.
CurveEdit tachyon::ApplyCurvePresetEdit (const CurveData &data, int channel, const CurvePreset &preset, const std::function< ID()> &makeID)
 channel's curve made preset stretched over the curves' range, with new key IDs from makeID.
CurveEdit tachyon::SetCurveWrapEdit (const CurveData &data, int channel, CurveWrapMode pre, CurveWrapMode post)
 A channel's wrap modes set.
bool tachyon::IsActivationKey (const ElementEvent &event)
 True for a KeyDown of Return, keypad Enter or Space.
bool tachyon::TextEditorUsesKey (const InputState &state, bool readOnly)
 Whether a focused text editor acts on this key (KeyDown/KeyUp), so its handler takes it; the rest reach the app's shortcuts.
EventHandler tachyon::MakeTextBoxHandler (GUIStateManager &guiStateManager)
 Text box handler: a left click focuses it for editing; while focused it takes text input and the keys its editor uses.
EventHandler tachyon::MakeHorizontalSizerHandler (GUIStateManager &guiStateManager, const ElementStorage &elementStorage, int &sizeValue, int minSize, int maxSize, std::function< void(int)> onChanged=nullptr, std::function< int()> onAutoSize=nullptr, bool invertMouseDelta=false, float pixelsPerUnit=1.0f)
 Sizer handler that drags sizeValue within [minSize, maxSize], calling onChanged with each new size.
EventHandler tachyon::MakeVerticalSizerHandler (GUIStateManager &guiStateManager, const ElementStorage &elementStorage, int &sizeValue, int minSize, int maxSize, std::function< void(int)> onChanged=nullptr, std::function< int()> onAutoSize=nullptr, bool invertMouseDelta=false, float pixelsPerUnit=1.0f)
 Y-axis counterpart of MakeHorizontalSizerHandler; invertMouseDelta grows the size when dragging up.
EventHandler tachyon::MakeSliderHandler (GUIStateManager &guiStateManager, const ElementStorage &elementStorage, float *value, int elementWidth, std::function< void()> onChanged=nullptr, float minVal=0.0f, float maxVal=1.0f, SliderPress press=SliderPress::Edit)
 Slider handler for *value in [minVal, maxVal]; elementWidth (pixels, <= 0 is treated as 1) maps drag distance onto that range.
EventHandler tachyon::MakeDraggableLabelHandler (GUIStateManager &guiStateManager, const ElementStorage &elementStorage)
 Turns mouse drags on a label into LabelDrag* events sent to the next sibling element.
EventHandler tachyon::MakeLabelHandler (GUIStateManager &guiStateManager, const ElementStorage &elementStorage)
 Label handler: a left click focuses the control bound to the label (else the label).
EventHandler tachyon::MakeGroupLabelHandler (GUIStateManager &guiStateManager, const ElementStorage &elementStorage, LabelGroupVisualState groupVisual)
 Label group variants: the right edge resizes the shared label width.
EventHandler tachyon::MakeGroupDraggableLabelHandler (GUIStateManager &guiStateManager, const ElementStorage &elementStorage, LabelGroupVisualState groupVisual)
bool tachyon::ButtonActivated (GUIStateManager &guiStateManager, const ElementEvent &event)
 A button's handling of event: true when it activates the button (a left press, or an activation key while focused), after taking the focus and showing the press.
template<class OnClick>
EventHandler tachyon::MakeButtonHandler (GUIStateManager &guiStateManager, OnClick &&onClick)
 Button handler: a left click, or an activation key while focused, calls onClick (a null one is nothing).
EventHandler tachyon::MakeButtonHandler (GUIStateManager &guiStateManager, std::nullptr_t)
EventHandler tachyon::MakeMouseWheelScrollHandler (ScrollManagement &scrollManagement, float wheelStep)
 Wheel handler that scrolls the element's own scroll offset by wheelStep pixels per notch (StyleManager::Px(kWheelScrollStep)).
EventHandler tachyon::MakeScrollbarHandler (GUIStateManager &guiStateManager, ElementStorage &elementStorage, ID containerID, bool vertical, int32_t trackLength=0)
 Scrollbar track/thumb handler; writes the scroll offset of containerID (the scrollable parent).
EventHandler tachyon::MakeDragSourceHandler (GUIStateManager &guiStateManager, uint32_t payloadType, std::function< uintptr_t()> getPayloadValue=nullptr, std::function< std::any()> getPayload=nullptr, DragVisualizer sourceVisualizer={})
 Drag source handler: a left press starts a drag of payloadType, with the value from getPayloadValue (else 0) and the payload from getPayload (else that value).
EventHandler tachyon::MakeDropTargetHandler (uint32_t acceptedPayloadType, std::function< void(uintptr_t payloadValue, ID sourceID)> onDrop, std::function< bool(uintptr_t payloadValue)> canDrop=nullptr)
 Drop target handler for acceptedPayloadType; onDrop gets the payload value and the source ID.
template<class T>
EventHandler tachyon::MakeDragSourceHandler (GUIStateManager &guiStateManager, uint32_t payloadType, std::function< T()> getPayload, DragVisualizer ghost={})
 Drag source handler for a typed payload: a left press starts a drag of payloadType carrying what getPayload gives, read by targets with InputState::DraggedAs<T>.
template<class T>
EventHandler tachyon::MakeDropTargetHandler (uint32_t acceptedPayloadType, std::function< void(const T &payload, ID sourceID)> onDrop, std::function< bool(const T &payload)> canDrop=nullptr)
 Drop target handler for a typed payload: takes a drag of acceptedPayloadType whose payload is a T, when canDrop (optional) says so.
double tachyon::LabelDragSpeedScale (const InputState &state)
 Label-drag speed multiplier: 0.1 with Ctrl, 10 with Shift (which wins), else 1.
template<typename T>
EventHandler tachyon::ReportingChanges (GUIStateManager &guiStateManager, T *value, EventHandler inner)
 Wraps a handler that writes *value: it runs during input, after the control's call returned, so a change marks the element clicked and the next call reports it (Interaction().HasBeenClicked(id)).
template<typename T>
EventHandler tachyon::MakeNumericalBoxHandler (GUIStateManager &guiStateManager, T &value, NumericFieldConfig< T > config={})
 Numeric field handler: a left click focuses it for typing, and LabelDrag* events from its label drag value (a cancelled drag restores the start value).
template<typename T>
EventHandler tachyon::MakeMultiDimDragHandler (GUIStateManager &guiStateManager, T &value, NumericFieldConfig< typename TypeDimensions< T >::ComponentType > config={})
 Applies LabelDrag* events to all components (multi-dimensional Field groups).
bool tachyon::AdvanceTimeline (TimelineState &state, const TimelineOptions &options, float deltaSecs)
 Moves state on by deltaSecs while it plays: call it once a frame with the frame's time.
float tachyon::SourceLengthOf (const TimelineClip &clip)
 The whole sound's length: TimelineClip::sourceLength, or its offset and length.
void tachyon::ApplyTimelineEdit (TimelineData &data, const TimelineEdit &edit, bool undo=false)
 Does (or with undo, undoes) edit on the tracks, and raises their revision.
void tachyon::CommitTimelineEdit (TimelineData &data, const TimelineEdit &edit)
 Applies edit and hands it to data.onEdit; does nothing for an empty one.
void tachyon::ReleaseTimelineEditIDs (IDManager &ids, const TimelineEdit &edit, bool undone)
 Releases the static IDs of the tracks, keys and events only the side of edit not in effect holds: done, what its undo would bring back; undone, what its redo would add.
ID tachyon::TimelineRowID (const TimelineViewState &view, ID track)
 The element of track track's row in a view: rows are scoped to their editor, so each view of the tracks has its own.
bool tachyon::PruneTimelineSelection (TimelineViewRef view)
 After an edit (through this view or another): lets go of the selected tracks, keys and events that are gone, and of what the view kept by track index.
TimelineEdit tachyon::AddKeyEdit (const TimelineData &data, int track, float time, ID keyID)
 The edit that sets a key on track at time (on a frame when the timeline snaps), or none when there's one there already or the track isn't a property.
TimelineEdit tachyon::DeleteSelectedKeysEdit (ConstTimelineViewRef view)
 The edit that deletes the view's selected keys and events from the tracks that aren't locked; none when none is selected.
TimelineEdit tachyon::AddTrackEdit (const TimelineData &data, TimelineTrack track, int index=-1)
 The edit that adds track at index (the end when out of range).
TimelineEdit tachyon::RemoveTrackEdit (const TimelineData &data, int track)
 The edit that removes track and, for a group, the tracks it holds.
std::span< const TimelineTrack > tachyon::TracksInGroup (const TimelineData &data, int track)
 The tracks a group at track holds: the ones after it indented further, up to the next one that isn't.
bool tachyon::IsTrackLocked (const TimelineData &data, int track)
 Whether track is locked: it, or a group holding it, is.
uint32_t tachyon::ComputeGPUStyleIndex (VisualBoxStyleIndex base, ElementState state)
 Flat GPU style index for a base pool index and state.

Variables

constexpr double tachyon::kFramePaceShare = 0.95
 The share of a refresh period a frame takes at least when GUIApplication::Run paces it.
constexpr double tachyon::kFramePaceMinWaitSeconds = 0.00025
 A wait shorter than this is skipped: it costs about as much as it saves.
constexpr int32_t tachyon::kScrollbarMinThumbLength = 20
 Minimum thumb length in CSS pixels (scale with StyleManager::Px), so the thumb stays clickable over huge content.
constexpr int tachyon::kTransitionChannelCount = 5

Detailed Description

GUIApplication, the frame, GUIContent and event handlers.

Derive from tachyon::GUIApplication and describe the UI in OnGUI(); every control is one of its member functions. The class page groups them by family. The Overview explains the frame model, and Controls covers each control.

Typedef Documentation

◆ StageCallback

◆ CurveViewRef

#include <gui_controls/gui_curve_types.h>

Curves and one view of them, as CurveField, CurveEditor and the helpers take them.

◆ ConstCurveViewRef

◆ TimelineViewRef

#include <gui_controls/gui_timeline_types.h>

A timeline and one view of it, as TimelineEditor and the helpers take them.

◆ ConstTimelineViewRef

Enumeration Type Documentation

◆ FrameStage

enum class tachyon::FrameStage : uint8_t
strong

#include <gui_core/frame/gui_frame_pipeline.h>

The stages of a frame, in run order.

Enumerator
PreFrame 

theme reload, synthetic mouse events, per-frame cache clears

PreConstruct 

after elementStorage.BeginConstruction(), before OnGUI()

PostConstruct 

after OnGUI() returns, before elementStorage.EndConstruction()

PreLayout 

after textSystem->Update() and SyncWindowsBeforeLayout, before Layout()

PostLayout 

after Layout() and per-element AddPostLayout callbacks

PreInput 

hit-test, hover/active/cursor resolution, transitions

PostInput 

after inputManager->Process; scroll-offset/rect snapshots

PreRender 

before OnRender()

PostRender 

after OnRender(); transition purge

EndFrame 

before idManager.EndFrame / windowManager.EndFrame

◆ RedrawMode

enum class tachyon::RedrawMode : uint8_t
strong

#include <gui_core/frame/gui_redraw.h>

How often GUIApplication::Run draws a frame (GUIApplication::SetRedrawMode).

Enumerator
Always 

every frame, as often as the display refreshes

WhenChanged 

builds every frame at the refresh rate; records and presents only the windows whose draws changed

WhenNeeded 

sleeps until there's input, a redraw is asked for, a timer is due or something animates (the default)

◆ MessageIcon

enum class tachyon::MessageIcon : uint8_t
strong

#include <gui_controls/gui_application.h>

The icon beside a MessageDialog's text.

Enumerator
Warning 
Quit 
Question 
Info 
Error 

◆ MessageButtonKind

enum class tachyon::MessageButtonKind : uint8_t
strong

#include <gui_controls/gui_application.h>

How a MessageButton is styled: Primary for the main choice, Danger for a destructive one.

Enumerator
Secondary 
Primary 
Danger 

◆ CurveTangentMode

enum class tachyon::CurveTangentMode : uint8_t
strong

#include <gui_controls/gui_curve_types.h>

How a key's slopes are set: worked out from its neighbors, or by the user.

Enumerator
Auto 

smooth through the key, without overshooting its neighbors (the default)

Aligned 

one slope the user sets, the same on both sides

Free 

each side its own slope, the user's

Flat 

level on both sides

◆ CurveInterpolation

enum class tachyon::CurveInterpolation : uint8_t
strong

#include <gui_controls/gui_curve_types.h>

How a curve runs from a key to the next.

Enumerator
Bezier 

a curve shaped by the two keys' slopes (the default)

Linear 

straight to the next key

Constant 

holds the key's value up to the next key: a step

◆ CurveWrapMode

enum class tachyon::CurveWrapMode : uint8_t
strong

#include <gui_controls/gui_curve_types.h>

What a curve does before its first key or after its last.

Enumerator
Clamp 

holds the end key's value

Loop 

repeats the curve

PingPong 

repeats it, every other time backwards

◆ CurveChannelColor

enum class tachyon::CurveChannelColor : uint8_t
strong

#include <gui_controls/gui_curve_types.h>

The color a channel is drawn in.

Enumerator
Value 

one value: the warning color, as a scalar channel in the design

Red 

the X axis color

Green 

the Y axis color

Blue 

the Z axis color

Alpha 

the primary text color

◆ SliderPress

enum class tachyon::SliderPress : uint8_t
strong

#include <gui_controls/gui_default_handlers.h>

What pressing a slider does: Edit - a click (no drag) opens its value for typing; Jump - the value moves to the cursor at once and follows it while held.

Enumerator
Edit 
Jump 

◆ SpinnerSize

enum class tachyon::SpinnerSize : uint8_t
strong

#include <gui_controls/gui_progress_types.h>

How large a Spinner is.

Enumerator
Small 

12px, in a status bar or beside a line of small text

Medium 

16px, beside a line of text

Large 

18px, a step's glyph, or alone in an empty panel

◆ TaskState

enum class tachyon::TaskState : uint8_t
strong

#include <gui_controls/gui_progress_types.h>

Where a piece of work is.

Enumerator
Pending 

not started: a step still to come

Running 

under way

Paused 

stopped for now, in the warning color

Failed 

stopped for good, in the error color

Done 

finished

◆ TimelineTrackKind

enum class tachyon::TimelineTrackKind : uint8_t
strong

#include <gui_controls/gui_timeline_types.h>

What a track holds, and how its row looks.

Enumerator
Group 

a heading for the tracks after it that are indented further: a chevron, a color chip, eye and lock; its lane sums their keys up

Property 

an animated value: keys on its lane, and a button to key it at the playhead

Audio 

a sound: its clip and waveform on its lane, mute and solo

Events 

named moments: a flag and a label each on its lane

◆ TransitionChannel

enum class tachyon::TransitionChannel : uint8_t
strong

#include <gui_controls/gui_transition_manager.h>

The parts of an element's state that change over time, each on its own: hover, press, focus and selected pick its style; invalid grows its error halo in.

Enumerator
Hover 
Active 
Focused 
Selected 
Invalid 

Function Documentation

◆ FramePaceWaitSeconds()

double tachyon::FramePaceWaitSeconds ( int64_t frameStartNanos,
int64_t nowNanos,
float refreshHz )

#include <gui_core/frame/gui_frame_clock.h>

How long to wait after presenting a frame, in seconds, so the loop doesn't run faster than the display shows frames.

A present that blocked until the vsync already took about a period, so nothing is left to wait; one that returned at once (mailbox present, or a window the compositor draws) leaves the rest of the period. frameStartNanos and nowNanos are SteadyClockNowNanos timestamps; refreshHz is 0 when unknown, taken as 60 Hz. 0 when the frame needs no wait.

◆ OnPreFrame()

void tachyon::FramePipeline::OnPreFrame ( StageCallback cb)
inline

#include <gui_core/frame/gui_frame_pipeline.h>

Adds cb to the end of that stage's callbacks.

◆ OnPreConstruct()

void tachyon::FramePipeline::OnPreConstruct ( StageCallback cb)
inline

◆ OnPostConstruct()

void tachyon::FramePipeline::OnPostConstruct ( StageCallback cb)
inline

◆ OnPreLayout()

void tachyon::FramePipeline::OnPreLayout ( StageCallback cb)
inline

◆ OnPostLayout()

void tachyon::FramePipeline::OnPostLayout ( StageCallback cb)
inline

◆ OnPreInput()

void tachyon::FramePipeline::OnPreInput ( StageCallback cb)
inline

◆ OnPostInput()

void tachyon::FramePipeline::OnPostInput ( StageCallback cb)
inline

◆ OnPreRender()

void tachyon::FramePipeline::OnPreRender ( StageCallback cb)
inline

◆ OnPostRender()

void tachyon::FramePipeline::OnPostRender ( StageCallback cb)
inline

◆ OnEndFrame()

void tachyon::FramePipeline::OnEndFrame ( StageCallback cb)
inline

◆ VERIFY() [1/4]

void tachyon::VERIFY ( ElementStorageResult result)

#include <gui_controls/gui_application.h>

Checks the result of an element-storage call (e.g.

elementStorage.Add): a failure is reported as API misuse and the caller carries on.

◆ VERIFY() [2/4]

void tachyon::VERIFY ( RegistryResult result)

#include <gui_controls/gui_application.h>

As above, for windowRegistry calls.

◆ VERIFY() [3/4]

void tachyon::VERIFY ( AddWindowResult result)

#include <gui_controls/gui_application.h>

WindowUserClosed is accepted too: it's the expected outcome when a window can't be reopened.

◆ VERIFY() [4/4]

void tachyon::VERIFY ( RequestCloseResult result)

#include <gui_controls/gui_application.h>

Checks the result of closing a window: misuse (outside a frame, already closed) is reported; other failures assert.

◆ EvaluateCurve()

float tachyon::EvaluateCurve ( const Curve & curve,
float time )

#include <gui_controls/gui_curve_types.h>

The curve's value at time; 0 without keys.

NaN or infinite times count as 0. const float falloff = EvaluateCurve(curve, distance / radius);

◆ UpdateCurveTangents()

void tachyon::UpdateCurveTangents ( Curve & curve)

#include <gui_controls/gui_curve_types.h>

Works out the slopes their mode sets: Auto from the neighbors, Flat level, Aligned the leaving slope on both sides.

The edits call it; call it after changing keys yourself.

◆ MakeCurve()

Curve tachyon::MakeCurve ( std::span< const float2 > points,
CurveTangentMode mode = CurveTangentMode::Auto,
CurveInterpolation interpolation = CurveInterpolation::Bezier )

#include <gui_controls/gui_curve_types.h>

A curve, with its keys' tangents worked out: one key at each points (time, value).

◆ DefaultCurvePresets()

std::span< const CurvePreset > tachyon::DefaultCurvePresets ( )

#include <gui_controls/gui_curve_types.h>

The built-in presets: constant, linear, ease in, ease out, ease in and out, and their mirror images.

◆ ApplyCurveEdit()

void tachyon::ApplyCurveEdit ( CurveData & data,
const CurveEdit & edit,
bool undo = false )

#include <gui_controls/gui_curve_types.h>

Does (or with undo, undoes) edit on the curves, and raises their revision.

◆ CommitCurveEdit()

void tachyon::CommitCurveEdit ( CurveViewRef view,
const CurveEdit & edit )

#include <gui_controls/gui_curve_types.h>

Applies edit, lets go of what it took from the view's selection, and hands it to view.data.onEdit; does nothing for an empty one.

◆ ReleaseCurveEditIDs()

void tachyon::ReleaseCurveEditIDs ( IDManager & ids,
const CurveEdit & edit,
bool undone )

#include <gui_controls/gui_curve_types.h>

Releases the static IDs of the keys only the side of edit not in effect holds: done, what its undo would bring back; undone, what its redo would add.

For the edit's step leaving the undo history (UndoHistory::Step::drop).

◆ PruneCurveSelection()

bool tachyon::PruneCurveSelection ( CurveViewRef view)

#include <gui_controls/gui_curve_types.h>

After an edit (through this view or another): lets go of the selected keys that are gone, and of what the view kept of them.

The curve controls do it as they build; returns whether the curves had changed since.

◆ AddCurveKeyEdit()

CurveEdit tachyon::AddCurveKeyEdit ( const CurveData & data,
int channel,
float time,
float value,
ID keyID )

#include <gui_controls/gui_curve_types.h>

A key on channel at time with value, kept in the curves' range; none on a hidden channel, or where the channel has a key at that time already.

◆ SnapToFrame()

float tachyon::SnapToFrame ( const CurveData & data,
float time )

#include <gui_controls/gui_curve_types.h>

With fps set, time on the nearest frame; as it is without.

◆ DeleteSelectedCurveKeysEdit()

CurveEdit tachyon::DeleteSelectedCurveKeysEdit ( ConstCurveViewRef view)

#include <gui_controls/gui_curve_types.h>

The view's selected keys gone, from every channel.

◆ SetCurveTangentModeEdit()

CurveEdit tachyon::SetCurveTangentModeEdit ( ConstCurveViewRef view,
CurveTangentMode mode )

#include <gui_controls/gui_curve_types.h>

The selected keys' tangent mode set; to Free or Aligned, each side keeps its slope.

◆ SetCurveInterpolationEdit()

CurveEdit tachyon::SetCurveInterpolationEdit ( ConstCurveViewRef view,
CurveInterpolation interpolation )

#include <gui_controls/gui_curve_types.h>

The selected keys' interpolation to the next key set.

◆ ApplyCurvePresetEdit()

CurveEdit tachyon::ApplyCurvePresetEdit ( const CurveData & data,
int channel,
const CurvePreset & preset,
const std::function< ID()> & makeID )

#include <gui_controls/gui_curve_types.h>

channel's curve made preset stretched over the curves' range, with new key IDs from makeID.

◆ SetCurveWrapEdit()

CurveEdit tachyon::SetCurveWrapEdit ( const CurveData & data,
int channel,
CurveWrapMode pre,
CurveWrapMode post )

#include <gui_controls/gui_curve_types.h>

A channel's wrap modes set.

◆ IsActivationKey()

bool tachyon::IsActivationKey ( const ElementEvent & event)
inline

#include <gui_controls/gui_default_handlers.h>

True for a KeyDown of Return, keypad Enter or Space.

◆ TextEditorUsesKey()

bool tachyon::TextEditorUsesKey ( const InputState & state,
bool readOnly )

#include <gui_controls/gui_default_handlers.h>

Whether a focused text editor acts on this key (KeyDown/KeyUp), so its handler takes it; the rest reach the app's shortcuts.

Read-only text only selects and copies.

◆ MakeTextBoxHandler()

EventHandler tachyon::MakeTextBoxHandler ( GUIStateManager & guiStateManager)

#include <gui_controls/gui_default_handlers.h>

Text box handler: a left click focuses it for editing; while focused it takes text input and the keys its editor uses.

◆ MakeHorizontalSizerHandler()

EventHandler tachyon::MakeHorizontalSizerHandler ( GUIStateManager & guiStateManager,
const ElementStorage & elementStorage,
int & sizeValue,
int minSize,
int maxSize,
std::function< void(int)> onChanged = nullptr,
std::function< int()> onAutoSize = nullptr,
bool invertMouseDelta = false,
float pixelsPerUnit = 1.0f )

#include <gui_controls/gui_default_handlers.h>

Sizer handler that drags sizeValue within [minSize, maxSize], calling onChanged with each new size.

Sizes are in units of pixelsPerUnit pixels of the sizer's layout (for CSS px pass StyleManager::GetUIScale()). onAutoSize runs on double-click and returns the desired size in pixels, or -1 to skip. invertMouseDelta grows the size when dragging left. Escape during the drag puts the size back.

◆ MakeVerticalSizerHandler()

EventHandler tachyon::MakeVerticalSizerHandler ( GUIStateManager & guiStateManager,
const ElementStorage & elementStorage,
int & sizeValue,
int minSize,
int maxSize,
std::function< void(int)> onChanged = nullptr,
std::function< int()> onAutoSize = nullptr,
bool invertMouseDelta = false,
float pixelsPerUnit = 1.0f )

#include <gui_controls/gui_default_handlers.h>

Y-axis counterpart of MakeHorizontalSizerHandler; invertMouseDelta grows the size when dragging up.

◆ MakeSliderHandler()

EventHandler tachyon::MakeSliderHandler ( GUIStateManager & guiStateManager,
const ElementStorage & elementStorage,
float * value,
int elementWidth,
std::function< void()> onChanged = nullptr,
float minVal = 0.0f,
float maxVal = 1.0f,
SliderPress press = SliderPress::Edit )

#include <gui_controls/gui_default_handlers.h>

Slider handler for *value in [minVal, maxVal]; elementWidth (pixels, <= 0 is treated as 1) maps drag distance onto that range.

Arrow keys step 1% of the range, PageUp/Down 10%.

◆ MakeDraggableLabelHandler()

EventHandler tachyon::MakeDraggableLabelHandler ( GUIStateManager & guiStateManager,
const ElementStorage & elementStorage )

#include <gui_controls/gui_default_handlers.h>

Turns mouse drags on a label into LabelDrag* events sent to the next sibling element.

A press released without dragging focuses that control; Escape during a drag cancels it.

◆ MakeLabelHandler()

EventHandler tachyon::MakeLabelHandler ( GUIStateManager & guiStateManager,
const ElementStorage & elementStorage )

#include <gui_controls/gui_default_handlers.h>

Label handler: a left click focuses the control bound to the label (else the label).

◆ MakeGroupLabelHandler()

EventHandler tachyon::MakeGroupLabelHandler ( GUIStateManager & guiStateManager,
const ElementStorage & elementStorage,
LabelGroupVisualState groupVisual )

#include <gui_controls/gui_default_handlers.h>

Label group variants: the right edge resizes the shared label width.

◆ MakeGroupDraggableLabelHandler()

EventHandler tachyon::MakeGroupDraggableLabelHandler ( GUIStateManager & guiStateManager,
const ElementStorage & elementStorage,
LabelGroupVisualState groupVisual )

◆ ButtonActivated()

bool tachyon::ButtonActivated ( GUIStateManager & guiStateManager,
const ElementEvent & event )

#include <gui_controls/gui_default_handlers.h>

A button's handling of event: true when it activates the button (a left press, or an activation key while focused), after taking the focus and showing the press.

◆ MakeButtonHandler() [1/2]

template<class OnClick>
EventHandler tachyon::MakeButtonHandler ( GUIStateManager & guiStateManager,
OnClick && onClick )

#include <gui_controls/gui_default_handlers.h>

Button handler: a left click, or an activation key while focused, calls onClick (a null one is nothing).

The callable is kept in the handler as it is, so a small one fits in it without an allocation.

◆ MakeButtonHandler() [2/2]

EventHandler tachyon::MakeButtonHandler ( GUIStateManager & guiStateManager,
std::nullptr_t  )
inline

◆ MakeMouseWheelScrollHandler()

EventHandler tachyon::MakeMouseWheelScrollHandler ( ScrollManagement & scrollManagement,
float wheelStep )

#include <gui_controls/gui_default_handlers.h>

Wheel handler that scrolls the element's own scroll offset by wheelStep pixels per notch (StyleManager::Px(kWheelScrollStep)).

◆ MakeScrollbarHandler()

EventHandler tachyon::MakeScrollbarHandler ( GUIStateManager & guiStateManager,
ElementStorage & elementStorage,
ID containerID,
bool vertical,
int32_t trackLength = 0 )

#include <gui_controls/gui_default_handlers.h>

Scrollbar track/thumb handler; writes the scroll offset of containerID (the scrollable parent).

Escape during a drag puts the scroll position back. trackLength = 0: span-and-clip, the bar spans kScrollbarAxisSpan and the track is the parent's innerRect. trackLength > 0: the bar is sized explicitly (to leave room for a corner cap, say) and the track is its own rect.

◆ MakeDragSourceHandler() [1/2]

EventHandler tachyon::MakeDragSourceHandler ( GUIStateManager & guiStateManager,
uint32_t payloadType,
std::function< uintptr_t()> getPayloadValue = nullptr,
std::function< std::any()> getPayload = nullptr,
DragVisualizer sourceVisualizer = {} )

#include <gui_controls/gui_default_handlers.h>

Drag source handler: a left press starts a drag of payloadType, with the value from getPayloadValue (else 0) and the payload from getPayload (else that value).

◆ MakeDropTargetHandler() [1/2]

EventHandler tachyon::MakeDropTargetHandler ( uint32_t acceptedPayloadType,
std::function< void(uintptr_t payloadValue, ID sourceID)> onDrop,
std::function< bool(uintptr_t payloadValue)> canDrop = nullptr )

#include <gui_controls/gui_default_handlers.h>

Drop target handler for acceptedPayloadType; onDrop gets the payload value and the source ID.

canDrop (optional) returning false makes the element a non-target for that payload.

◆ MakeDragSourceHandler() [2/2]

template<class T>
EventHandler tachyon::MakeDragSourceHandler ( GUIStateManager & guiStateManager,
uint32_t payloadType,
std::function< T()> getPayload,
DragVisualizer ghost = {} )

#include <gui_controls/gui_default_handlers.h>

Drag source handler for a typed payload: a left press starts a drag of payloadType carrying what getPayload gives, read by targets with InputState::DraggedAs<T>.

ghost draws it by the pointer (GUIApplication::ImageDragGhost for a picture).

◆ MakeDropTargetHandler() [2/2]

template<class T>
EventHandler tachyon::MakeDropTargetHandler ( uint32_t acceptedPayloadType,
std::function< void(const T &payload, ID sourceID)> onDrop,
std::function< bool(const T &payload)> canDrop = nullptr )

#include <gui_controls/gui_default_handlers.h>

Drop target handler for a typed payload: takes a drag of acceptedPayloadType whose payload is a T, when canDrop (optional) says so.

onDrop gets the payload and the source's ID.

◆ LabelDragSpeedScale()

double tachyon::LabelDragSpeedScale ( const InputState & state)
inline

#include <gui_controls/gui_default_handlers.h>

Label-drag speed multiplier: 0.1 with Ctrl, 10 with Shift (which wins), else 1.

◆ ReportingChanges()

template<typename T>
EventHandler tachyon::ReportingChanges ( GUIStateManager & guiStateManager,
T * value,
EventHandler inner )
inline

#include <gui_controls/gui_default_handlers.h>

Wraps a handler that writes *value: it runs during input, after the control's call returned, so a change marks the element clicked and the next call reports it (Interaction().HasBeenClicked(id)).

◆ MakeNumericalBoxHandler()

template<typename T>
EventHandler tachyon::MakeNumericalBoxHandler ( GUIStateManager & guiStateManager,
T & value,
NumericFieldConfig< T > config = {} )
inline

#include <gui_controls/gui_default_handlers.h>

Numeric field handler: a left click focuses it for typing, and LabelDrag* events from its label drag value (a cancelled drag restores the start value).

◆ MakeMultiDimDragHandler()

template<typename T>
EventHandler tachyon::MakeMultiDimDragHandler ( GUIStateManager & guiStateManager,
T & value,
NumericFieldConfig< typename TypeDimensions< T >::ComponentType > config = {} )
inline

#include <gui_controls/gui_default_handlers.h>

Applies LabelDrag* events to all components (multi-dimensional Field groups).

◆ AdvanceTimeline()

bool tachyon::AdvanceTimeline ( TimelineState & state,
const TimelineOptions & options,
float deltaSecs )

#include <gui_controls/gui_timeline_types.h>

Moves state on by deltaSecs while it plays: call it once a frame with the frame's time.

At the end it goes on from the start when looping, else it stops there. Looping within options.loopRange, it goes round that instead, once the playhead is in it. Returns whether the time moved.

AdvanceTimeline(playback, options, app.frameTime); 

◆ SourceLengthOf()

float tachyon::SourceLengthOf ( const TimelineClip & clip)
inline

#include <gui_controls/gui_timeline_types.h>

The whole sound's length: TimelineClip::sourceLength, or its offset and length.

◆ ApplyTimelineEdit()

void tachyon::ApplyTimelineEdit ( TimelineData & data,
const TimelineEdit & edit,
bool undo = false )

#include <gui_controls/gui_timeline_types.h>

Does (or with undo, undoes) edit on the tracks, and raises their revision.

◆ CommitTimelineEdit()

void tachyon::CommitTimelineEdit ( TimelineData & data,
const TimelineEdit & edit )

#include <gui_controls/gui_timeline_types.h>

Applies edit and hands it to data.onEdit; does nothing for an empty one.

◆ ReleaseTimelineEditIDs()

void tachyon::ReleaseTimelineEditIDs ( IDManager & ids,
const TimelineEdit & edit,
bool undone )

#include <gui_controls/gui_timeline_types.h>

Releases the static IDs of the tracks, keys and events only the side of edit not in effect holds: done, what its undo would bring back; undone, what its redo would add.

For the edit's step leaving the undo history (UndoHistory::Step::drop).

◆ TimelineRowID()

ID tachyon::TimelineRowID ( const TimelineViewState & view,
ID track )
inline

#include <gui_controls/gui_timeline_types.h>

The element of track track's row in a view: rows are scoped to their editor, so each view of the tracks has its own.

◆ PruneTimelineSelection()

bool tachyon::PruneTimelineSelection ( TimelineViewRef view)

#include <gui_controls/gui_timeline_types.h>

After an edit (through this view or another): lets go of the selected tracks, keys and events that are gone, and of what the view kept by track index.

TimelineEditor does it as it builds; returns whether the tracks had changed since.

◆ AddKeyEdit()

TimelineEdit tachyon::AddKeyEdit ( const TimelineData & data,
int track,
float time,
ID keyID )

#include <gui_controls/gui_timeline_types.h>

The edit that sets a key on track at time (on a frame when the timeline snaps), or none when there's one there already or the track isn't a property.

keyID names it.

◆ DeleteSelectedKeysEdit()

TimelineEdit tachyon::DeleteSelectedKeysEdit ( ConstTimelineViewRef view)

#include <gui_controls/gui_timeline_types.h>

The edit that deletes the view's selected keys and events from the tracks that aren't locked; none when none is selected.

◆ AddTrackEdit()

TimelineEdit tachyon::AddTrackEdit ( const TimelineData & data,
TimelineTrack track,
int index = -1 )

#include <gui_controls/gui_timeline_types.h>

The edit that adds track at index (the end when out of range).

◆ RemoveTrackEdit()

TimelineEdit tachyon::RemoveTrackEdit ( const TimelineData & data,
int track )

#include <gui_controls/gui_timeline_types.h>

The edit that removes track and, for a group, the tracks it holds.

◆ TracksInGroup()

std::span< const TimelineTrack > tachyon::TracksInGroup ( const TimelineData & data,
int track )

#include <gui_controls/gui_timeline_types.h>

The tracks a group at track holds: the ones after it indented further, up to the next one that isn't.

Empty for any other track.

◆ IsTrackLocked()

bool tachyon::IsTrackLocked ( const TimelineData & data,
int track )

#include <gui_controls/gui_timeline_types.h>

Whether track is locked: it, or a group holding it, is.

◆ ComputeGPUStyleIndex()

uint32_t tachyon::ComputeGPUStyleIndex ( VisualBoxStyleIndex base,
ElementState state )

#include <gui_controls/gui_transition_manager.h>

Flat GPU style index for a base pool index and state.

Must match vk_renderer.cpp and StyleManager::GetVisualBoxStyle (VisualMask, Disabled collapsing).

Variable Documentation

◆ kFramePaceShare

double tachyon::kFramePaceShare = 0.95
inlineconstexpr

#include <gui_core/frame/gui_frame_clock.h>

The share of a refresh period a frame takes at least when GUIApplication::Run paces it.

Under 1, so a refresh rate reported a little low, or a vsync-paced frame that ends a little early, never waits and misses the next vsync.

◆ kFramePaceMinWaitSeconds

double tachyon::kFramePaceMinWaitSeconds = 0.00025
inlineconstexpr

#include <gui_core/frame/gui_frame_clock.h>

A wait shorter than this is skipped: it costs about as much as it saves.

◆ kScrollbarMinThumbLength

int32_t tachyon::kScrollbarMinThumbLength = 20
constexpr

#include <gui_controls/gui_default_handlers.h>

Minimum thumb length in CSS pixels (scale with StyleManager::Px), so the thumb stays clickable over huge content.

The thickness is GUITheme::scrollbarThickness.

◆ kTransitionChannelCount

int tachyon::kTransitionChannelCount = 5
inlineconstexpr