class

Launcher::SidebarEntry

Inherits Egui::Widget < Reference < Object

One sidebar row as a real Widget (was paint-in-place: raw allocate/interact/painter calls the widget inspector could not see). Living through Ui#add gives it an inspector pick, a stable explicit id ("game-<key>") and the style cascade — the whole look lives in the "sidebar.entry" class rules of xr_theme (base shape, a :hover translucent surface, the :selected amber gradient card with a drop shadow). Here only the state string changes — CSS pseudo-class style, same pattern as egui.cr's own Sidebar.

Constructors

new(key : String, title : String, info : String, selected : Bool, icon_path : String | Nil)
Source

Instance methods

inspector_label

Short human label for the inspector (the button's text, a label's text…); nil = no meaningful label.

Source
style_class

CSS-like class this widget styles under in the global StyleSheet (nil = not registered yet). Widgets adopt the class system gradually; see Button and containers/sidebar.cr for the reference wiring (base + state overlays).

Source
style_properties

The stylable properties of THIS widget kind: the StyleVars keys its #ui actually reads, declared here — not hardcoded in the inspector. StyleProps.textlike / .buttonlike provide the common sets. An empty list (the default) means the widget reads no style keys and the inspector shows it as non-stylable.

Source
ui(ui : Egui::Ui) : Egui::Response
Source