pub trait SplitViewTrait {
// Required method
fn as_ptr(&self) -> *mut SplitView;
// Provided methods
fn view<T>(&self, view: T, tabstop: bool)
where T: ViewTrait { ... }
fn textview<T>(&self, view: T, tabstop: bool)
where T: TextViewTrait { ... }
fn webview<T>(&self, view: T, tabstop: bool)
where T: WebViewTrait { ... }
fn splitview<T>(&self, child: T)
where T: SplitViewTrait { ... }
fn panel<T>(&self, panel: T)
where T: PanelTrait { ... }
fn position(&self, mode: SplitMode, pos: f32) { ... }
fn get_position(&self, mode: SplitMode) -> f32 { ... }
fn visible_front(&self, visible: bool) { ... }
fn visible_back(&self, visible: bool) { ... }
fn min_size_front(&self, size: f32) { ... }
fn min_size_back(&self, size: f32) { ... }
}Expand description
The splitview trait.
Required Methods§
Provided Methods§
Sourcefn view<T>(&self, view: T, tabstop: bool)where
T: ViewTrait,
fn view<T>(&self, view: T, tabstop: bool)where
T: ViewTrait,
Add a custom view to the splitview.
Sourcefn textview<T>(&self, view: T, tabstop: bool)where
T: TextViewTrait,
fn textview<T>(&self, view: T, tabstop: bool)where
T: TextViewTrait,
Add a text view to the splitview.
Sourcefn webview<T>(&self, view: T, tabstop: bool)where
T: WebViewTrait,
fn webview<T>(&self, view: T, tabstop: bool)where
T: WebViewTrait,
Add a web view to SplitView.
Sourcefn splitview<T>(&self, child: T)where
T: SplitViewTrait,
fn splitview<T>(&self, child: T)where
T: SplitViewTrait,
Add a splitview (child) to the splitview.
Sourcefn panel<T>(&self, panel: T)where
T: PanelTrait,
fn panel<T>(&self, panel: T)where
T: PanelTrait,
Add a panel to the splitview.
Sourcefn get_position(&self, mode: SplitMode) -> f32
fn get_position(&self, mode: SplitMode) -> f32
Get the current divider position.
Sourcefn visible_front(&self, visible: bool)
fn visible_front(&self, visible: bool)
Show/hide the left/upper child.
Sourcefn visible_back(&self, visible: bool)
fn visible_back(&self, visible: bool)
Show/hide the right/bottom child.
Sourcefn min_size_front(&self, size: f32)
fn min_size_front(&self, size: f32)
Set the minimum size of the left/upper child.
Sourcefn min_size_back(&self, size: f32)
fn min_size_back(&self, size: f32)
Set the minimum size of the right/bottom child.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".