ToolOptionsBar class
Options of the tool chosen, in the toolbar, see EditorTool::
They're made again whenever another tool is chosen, a tool without options leaves the bar empty. Where the row hasn't room for all of them, choices and groups of toggles become dropdowns first, then those that still don't fit are left out of the row and shown in a list by a button at its end. Every option shows its value as it is whenever it's drawn, a value changed by a shortcut or in a menu is seen right away.
Constructors, destructors, conversion operators
- ToolOptionsBar(IEditorContext& session) explicit
- Creates a new instance.
- ~ToolOptionsBar() override
Public functions
- auto HasOptions() const -> bool
- Returns
trueif the chosen tool has options. - auto Measure(const Context& context, Vector2f available) -> Vector2f override
- void Arrange(const Context& context, const Rectf& bounds) override
- void Update(float timeMult) override