pub fn draw_toggle_btn(
ui: &mut Ui,
icon: &Icon,
tooltip: &'static str,
is_toggled: bool,
size: f32,
) -> ResponseExpand description
Toggle button with icon (alias for draw_icon_btn since functionally identical).
Used for toggleable states like magnet mode, keep drawing, lock, etc.
§Arguments
ui- The egui UI contexticon- The Icon to displaytooltip- Hover tooltip textis_toggled- Whether toggle is onsize- Button size (square)
§Returns
The egui Response for click handling.