pub struct SplitPane { /* private fields */ }Implementations§
Source§impl SplitPane
impl SplitPane
pub fn horizontal(source: impl Hash) -> Self
pub fn vertical(source: impl Hash) -> Self
pub fn new(source: impl Hash, axis: Layout) -> Self
pub fn panels(self, panels: impl IntoIterator<Item = SplitPanel>) -> Self
pub fn panel(self, panel: SplitPanel) -> Self
pub fn style(self, style: SplitStyle) -> Self
pub fn gap(self, gap: f32) -> Self
pub fn handle(self, handle: SplitHandleStyle) -> Self
Sourcepub fn size(self, size: Vec2) -> Self
pub fn size(self, size: Vec2) -> Self
Defaults to the remaining Ui rectangle; explicit size is capped to it.
Sourcepub fn resizable(self, enabled: bool) -> Self
pub fn resizable(self, enabled: bool) -> Self
Disables only boundary interaction; child controls remain enabled.
Sourcepub fn reset(self, reset: bool) -> Self
pub fn reset(self, reset: bool) -> Self
Level-triggered reset of retained preferences. Controlled values still win.
pub fn double_click_reset(self, enabled: bool) -> Self
Auto Trait Implementations§
impl Freeze for SplitPane
impl RefUnwindSafe for SplitPane
impl Send for SplitPane
impl Sync for SplitPane
impl Unpin for SplitPane
impl UnsafeUnpin for SplitPane
impl UnwindSafe for SplitPane
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.