[−][src]Struct druid::widget::Split
A container containing two other widgets, splitting the area either horizontally or vertically.
Methods
impl<T> Split<T>
[src]
pub fn vertical(
child1: impl Widget<T> + 'static,
child2: impl Widget<T> + 'static
) -> Self
[src]
child1: impl Widget<T> + 'static,
child2: impl Widget<T> + 'static
) -> Self
Create a new split panel, with a vertical splitter between two children.
pub fn horizontal(
child1: impl Widget<T> + 'static,
child2: impl Widget<T> + 'static
) -> Self
[src]
child1: impl Widget<T> + 'static,
child2: impl Widget<T> + 'static
) -> Self
Create a new split panel, with a horizontal splitter between two children.
pub fn split_point(self, split_point: f64) -> Self
[src]
Set container's split point as a fraction of the split dimension The value must be between 0.0 and 1.0, exclusive
pub fn min_size(self, min_size: f64) -> Self
[src]
Builder-style method to set the minimum size for both sides of the split.
The value must be greater than or equal to 0.0
.
pub fn splitter_size(self, splitter_size: f64) -> Self
[src]
Set the width of the splitter bar, in pixels The value must be positive or zero
pub fn draggable(self, draggable: bool) -> Self
[src]
Set whether the splitter's split point can be changed by dragging.
pub fn fill_splitter_handle(self, solid: bool) -> Self
[src]
Builder-style method to set whether the splitter handle is drawn as a solid rectangle.
If this is false
(the default), it will be drawn as two parallel lines.
Trait Implementations
impl<T: Data> Widget<T> for Split<T>
[src]
fn event(&mut self, ctx: &mut EventCtx, event: &Event, data: &mut T, env: &Env)
[src]
fn lifecycle(
&mut self,
ctx: &mut LifeCycleCtx,
event: &LifeCycle,
data: &T,
env: &Env
)
[src]
&mut self,
ctx: &mut LifeCycleCtx,
event: &LifeCycle,
data: &T,
env: &Env
)
fn update(&mut self, ctx: &mut UpdateCtx, _old_data: &T, data: &T, env: &Env)
[src]
fn layout(
&mut self,
ctx: &mut LayoutCtx,
bc: &BoxConstraints,
data: &T,
env: &Env
) -> Size
[src]
&mut self,
ctx: &mut LayoutCtx,
bc: &BoxConstraints,
data: &T,
env: &Env
) -> Size
fn paint(&mut self, ctx: &mut PaintCtx, data: &T, env: &Env)
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Split<T>
impl<T> !Send for Split<T>
impl<T> !Sync for Split<T>
impl<T> Unpin for Split<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Split<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
fn round_into(self) -> U
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,