Optional behavior for an interactive status bar segment. More...
#include <status_bar.h>
Public Attributes | |
| std::function< void()> | on_click |
| std::string | tooltip |
Optional behavior for an interactive status bar segment.
Any segment setter that accepts this struct renders the text with a hand cursor on hover, invokes on_click when the segment is clicked, and shows tooltip as a hover tooltip. All fields are optional; a default- constructed instance renders as plain display-only text.
Definition at line 27 of file status_bar.h.
| std::function<void()> yaze::editor::StatusBarSegmentOptions::on_click |
Definition at line 28 of file status_bar.h.
Referenced by yaze::editor::anonymous_namespace{status_bar.cc}::ApplySegmentInteraction(), yaze::editor::DungeonEditorV2::ContributeStatus(), and yaze::editor::StatusBar::DrawZoomSegment().
| std::string yaze::editor::StatusBarSegmentOptions::tooltip |