pub trait ToolbarItemView: View {
// Required method
fn set_active_pane_item(
&mut self,
active_pane_item: Option<&dyn ItemHandle>,
cx: &mut ViewContext<'_, '_, Self>
) -> ToolbarItemLocation;
// Provided methods
fn location_for_event(
&self,
_event: &Self::Event,
current_location: ToolbarItemLocation,
_cx: &AppContext
) -> ToolbarItemLocation { ... }
fn pane_focus_update(
&mut self,
_pane_focused: bool,
_cx: &mut ViewContext<'_, '_, Self>
) { ... }
fn row_count(&self, _cx: &ViewContext<'_, '_, Self>) -> usize { ... }
}
Number of times toolbar’s height will be repeated to get the effective height.
Useful when multiple rows one under each other are needed.
The rows have the same width and act as a whole when reacting to resizes and similar events.