pub fn draw_tool_button(
ui: &mut Ui,
icon: &Icon,
tooltip: &str,
is_selected: bool,
) -> ResponseExpand description
Left toolbar button (no dropdown arrow).
Layout:
- Outer rect: 52×38px
- Inner hover rect: 8.5px horizontal margin, 1.5px vertical margin
- Inner rounding: the theme’s medium radius
- Icon: optically sized and centered in outer rect
A selected tool has a neutral fill; a latched utility uses contrasting ink and fill. The tooltip opens to the right of the bar, so it never covers the next button.
§Arguments
ui- The egui UI contexticon- The Icon to displaytooltip- Hover tooltip text, also the accessible nameis_selected- Whether button is selected/active
§Returns
The egui Response for click handling.