|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Gradient editor popup state: edits a working copy, written back each frame it's open. More...
#include <gui_controls/subsystems/gui_gradient_editor_subsystem.h>
Public Types | |
| enum class | CloseRequest { None , Ok , Cancel } |
| OK keeps the gradient, Cancel and the close button restore the original one. More... | |
Gradient editor popup state: edits a working copy, written back each frame it's open.
|
strong |
| tachyon::ID tachyon::GradientEditorState::triggerID = tachyon::ID::Invalid() |
swatch that opened the editor
| tachyon::ID tachyon::GradientEditorState::windowID = tachyon::ID::Invalid() |
popup window ID
| tachyon::Gradient tachyon::GradientEditorState::workingCopy {} |
the gradient being edited
| int tachyon::GradientEditorState::selectedStop = 0 |
index into workingCopy.stops[]
| tachyon::color4f tachyon::GradientEditorState::selectedStopColor {} |
selected stop's color, for its ColorField
| float tachyon::GradientEditorState::selectedStopPosition = 0.0f |
selected stop's position, for its Field
| tachyon::Gradient tachyon::GradientEditorState::originalGradient {} |
to restore on Cancel
| std::string tachyon::GradientEditorState::context |
the field's label, shown after the title
| enum tachyon::GradientEditorState::CloseRequest tachyon::GradientEditorState::closeRequest = CloseRequest::None |
| std::vector<tachyon::Gradient> tachyon::GradientEditorState::savedPresets |
"Save preset", for the session
| tachyon::PointerDrag tachyon::GradientEditorState::press |
the press on a stop, a drag from the start
| int tachyon::GradientEditorState::dragStopIndex = -1 |
the dragged stop, or -1
| float tachyon::GradientEditorState::dragGrab = 0.0f |
cursor minus the stop's offset at the press, so it doesn't jump
| bool tachyon::GradientEditorState::dragOff = false |
dragged well below the bar: removed on release
| tachyon::Gradient tachyon::GradientEditorState::beforeDrag {} |
the gradient before the drag; put back by Escape
| int tachyon::GradientEditorState::selectedBeforeDrag = 0 |
| tachyon::VisualColorStyleIndex tachyon::GradientEditorState::previewGradientStyle = tachyon::VisualColorStyleIndex::Invalid |
| tachyon::VisualColorStyleIndex tachyon::GradientEditorState::stopEdgeColor = tachyon::VisualColorStyleIndex::Invalid |
| tachyon::VisualColorStyleIndex tachyon::GradientEditorState::stopOutlineColor = tachyon::VisualColorStyleIndex::Invalid |
| tachyon::VisualColorStyleIndex tachyon::GradientEditorState::stopHaloColor = tachyon::VisualColorStyleIndex::Invalid |