pub trait BoxExt:
IsA<Box>
+ Sealed
+ 'static {
Show 17 methods
// Provided methods
fn append(&self, child: &impl IsA<Widget>) { ... }
fn baseline_child(&self) -> i32 { ... }
fn baseline_position(&self) -> BaselinePosition { ... }
fn is_homogeneous(&self) -> bool { ... }
fn spacing(&self) -> i32 { ... }
fn insert_child_after(
&self,
child: &impl IsA<Widget>,
sibling: Option<&impl IsA<Widget>>,
) { ... }
fn prepend(&self, child: &impl IsA<Widget>) { ... }
fn remove(&self, child: &impl IsA<Widget>) { ... }
fn reorder_child_after(
&self,
child: &impl IsA<Widget>,
sibling: Option<&impl IsA<Widget>>,
) { ... }
fn set_baseline_child(&self, child: i32) { ... }
fn set_baseline_position(&self, position: BaselinePosition) { ... }
fn set_homogeneous(&self, homogeneous: bool) { ... }
fn set_spacing(&self, spacing: i32) { ... }
fn connect_baseline_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_baseline_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_homogeneous_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_spacing_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn baseline_child(&self) -> i32
Available on crate feature v4_12
only.
fn baseline_child(&self) -> i32
v4_12
only.sourcefn baseline_position(&self) -> BaselinePosition
fn baseline_position(&self) -> BaselinePosition
sourcefn is_homogeneous(&self) -> bool
fn is_homogeneous(&self) -> bool
sourcefn remove(&self, child: &impl IsA<Widget>)
fn remove(&self, child: &impl IsA<Widget>)
Removes a child widget from @self.
The child must have been added before with
append()
, prepend()
, or
insert_child_after()
.
§child
the child to remove
sourcefn reorder_child_after(
&self,
child: &impl IsA<Widget>,
sibling: Option<&impl IsA<Widget>>,
)
fn reorder_child_after( &self, child: &impl IsA<Widget>, sibling: Option<&impl IsA<Widget>>, )
sourcefn set_baseline_child(&self, child: i32)
Available on crate feature v4_12
only.
fn set_baseline_child(&self, child: i32)
v4_12
only.sourcefn set_baseline_position(&self, position: BaselinePosition)
fn set_baseline_position(&self, position: BaselinePosition)
Sets the baseline position of a box.
This affects only horizontal boxes with at least one baseline aligned child. If there is more vertical space available than requested, and the baseline is not allocated by the parent then @position is used to allocate the baseline with respect to the extra space available.
§position
sourcefn set_homogeneous(&self, homogeneous: bool)
fn set_homogeneous(&self, homogeneous: bool)
sourcefn set_spacing(&self, spacing: i32)
fn set_spacing(&self, spacing: i32)
Sets the number of pixels to place between children of @self.
§spacing
the number of pixels to put between children
fn connect_baseline_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Available on crate feature
v4_12
only.fn connect_baseline_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_homogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.