yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::StatusBarSegmentOptions Struct Reference

Optional behavior for an interactive status bar segment. More...

#include <status_bar.h>

Public Attributes

std::function< void()> on_click
 
std::string tooltip
 

Detailed Description

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.

Member Data Documentation

◆ on_click

std::function<void()> yaze::editor::StatusBarSegmentOptions::on_click

◆ tooltip


The documentation for this struct was generated from the following file: