Skip to main content

SplitViewTrait

Trait SplitViewTrait 

Source
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§

Source

fn as_ptr(&self) -> *mut SplitView

Returns a raw pointer to the splitview object.

Provided Methods§

Source

fn view<T>(&self, view: T, tabstop: bool)
where T: ViewTrait,

Add a custom view to the splitview.

Source

fn textview<T>(&self, view: T, tabstop: bool)
where T: TextViewTrait,

Add a text view to the splitview.

Source

fn webview<T>(&self, view: T, tabstop: bool)
where T: WebViewTrait,

Add a web view to SplitView.

Source

fn splitview<T>(&self, child: T)
where T: SplitViewTrait,

Add a splitview (child) to the splitview.

Source

fn panel<T>(&self, panel: T)
where T: PanelTrait,

Add a panel to the splitview.

Source

fn position(&self, mode: SplitMode, pos: f32)

Sets the position of the view separator.

Source

fn get_position(&self, mode: SplitMode) -> f32

Get the current divider position.

Source

fn visible_front(&self, visible: bool)

Show/hide the left/upper child.

Source

fn visible_back(&self, visible: bool)

Show/hide the right/bottom child.

Source

fn min_size_front(&self, size: f32)

Set the minimum size of the left/upper child.

Source

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".

Implementors§