pub trait SplitScrollDelegate {
// Required methods
fn left_top_ui(&mut self, ui: &mut Ui);
fn right_top_ui(&mut self, ui: &mut Ui, scroll_offset: Vec2);
fn left_bottom_ui(&mut self, ui: &mut Ui, scroll_offset: Vec2);
fn right_bottom_ui(&mut self, ui: &mut Ui, scroll_offset: Vec2);
// Provided methods
fn paint_overlays(&mut self, _ui: &mut Ui) { ... }
fn update_col_widths(&mut self, _ui: &mut Ui) { ... }
}Expand description
The contents of a SplitScroll.
The contents of a SplitScroll.
Required Methods§
fn left_top_ui(&mut self, ui: &mut Ui)
fn right_top_ui(&mut self, ui: &mut Ui, scroll_offset: Vec2)
fn left_bottom_ui(&mut self, ui: &mut Ui, scroll_offset: Vec2)
fn right_bottom_ui(&mut self, ui: &mut Ui, scroll_offset: Vec2)
Provided Methods§
Sourcefn paint_overlays(&mut self, _ui: &mut Ui)
fn paint_overlays(&mut self, _ui: &mut Ui)
Paints overlays (like separator lines).
Called inside the ScrollArea viewport closure (clipped to bottom-right)
so that scrollbars paint over it.
Also called outside (clipped to left) to paint over sticky areas.
Sourcefn update_col_widths(&mut self, _ui: &mut Ui)
fn update_col_widths(&mut self, _ui: &mut Ui)
Updates state like auto-sized column widths and drag interaction.
Called after all UI quadrants and paint_overlays have been rendered,
ensuring max_column_widths is fully populated and visual lines match the current frame’s layout.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".