pub struct FlowLayout(/* private fields */);
Implementations§
Source§impl FlowLayout
impl FlowLayout
Sourcepub fn new(orientation: FlowOrientation) -> FlowLayout
pub fn new(orientation: FlowOrientation) -> FlowLayout
Trait Implementations§
Source§impl Clone for FlowLayout
impl Clone for FlowLayout
Source§fn clone(&self) -> FlowLayout
fn clone(&self) -> FlowLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FlowLayout
impl Debug for FlowLayout
Source§impl Display for FlowLayout
impl Display for FlowLayout
Source§impl Hash for FlowLayout
impl Hash for FlowLayout
Source§impl Ord for FlowLayout
impl Ord for FlowLayout
Source§fn cmp(&self, other: &FlowLayout) -> Ordering
fn cmp(&self, other: &FlowLayout) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for FlowLayout
impl<T: ObjectType> PartialEq<T> for FlowLayout
Source§impl<T: ObjectType> PartialOrd<T> for FlowLayout
impl<T: ObjectType> PartialOrd<T> for FlowLayout
Source§impl StaticType for FlowLayout
impl StaticType for FlowLayout
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for FlowLayout
impl IsA<InitiallyUnowned> for FlowLayout
impl IsA<LayoutManager> for FlowLayout
Auto Trait Implementations§
impl Freeze for FlowLayout
impl RefUnwindSafe for FlowLayout
impl !Send for FlowLayout
impl !Sync for FlowLayout
impl Unpin for FlowLayout
impl UnwindSafe for FlowLayout
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
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> FlowLayoutExt for Owhere
O: IsA<FlowLayout>,
impl<O> FlowLayoutExt for Owhere
O: IsA<FlowLayout>,
Source§fn get_column_spacing(&self) -> f32
fn get_column_spacing(&self) -> f32
Retrieves the spacing between columns Read more
Source§fn get_column_width(&self) -> (f32, f32)
fn get_column_width(&self) -> (f32, f32)
Retrieves the minimum and maximum column widths Read more
Source§fn get_homogeneous(&self) -> bool
fn get_homogeneous(&self) -> bool
Retrieves whether the
self
is homogeneous Read moreSource§fn get_orientation(&self) -> FlowOrientation
fn get_orientation(&self) -> FlowOrientation
Retrieves the orientation of the
self
Read moreSource§fn get_row_height(&self) -> (f32, f32)
fn get_row_height(&self) -> (f32, f32)
Retrieves the minimum and maximum row heights Read more
Source§fn get_row_spacing(&self) -> f32
fn get_row_spacing(&self) -> f32
Retrieves the spacing between rows Read more
Source§fn get_snap_to_grid(&self) -> bool
fn get_snap_to_grid(&self) -> bool
Retrieves the value of
FlowLayout:snap-to-grid
property Read moreSource§fn set_column_spacing(&self, spacing: f32)
fn set_column_spacing(&self, spacing: f32)
Sets the space between columns, in pixels Read more
Source§fn set_column_width(&self, min_width: f32, max_width: f32)
fn set_column_width(&self, min_width: f32, max_width: f32)
Sets the minimum and maximum widths that a column can have Read more
Source§fn set_homogeneous(&self, homogeneous: bool)
fn set_homogeneous(&self, homogeneous: bool)
Sets whether the
self
should allocate the same space for
each child Read moreSource§fn set_orientation(&self, orientation: FlowOrientation)
fn set_orientation(&self, orientation: FlowOrientation)
Sets the orientation of the flow layout Read more
Source§fn set_row_height(&self, min_height: f32, max_height: f32)
fn set_row_height(&self, min_height: f32, max_height: f32)
Sets the minimum and maximum heights that a row can have Read more
Source§fn set_row_spacing(&self, spacing: f32)
fn set_row_spacing(&self, spacing: f32)
Sets the spacing between rows, in pixels Read more
Source§fn set_snap_to_grid(&self, snap_to_grid: bool)
fn set_snap_to_grid(&self, snap_to_grid: bool)
Whether the
self
should place its children on a grid. Read moreSource§fn get_property_max_column_width(&self) -> f32
fn get_property_max_column_width(&self) -> f32
Maximum width for each column in the layout, in pixels. If
set to -1 the width will be the maximum child width
Source§fn set_property_max_column_width(&self, max_column_width: f32)
fn set_property_max_column_width(&self, max_column_width: f32)
Maximum width for each column in the layout, in pixels. If
set to -1 the width will be the maximum child width
Source§fn get_property_max_row_height(&self) -> f32
fn get_property_max_row_height(&self) -> f32
Maximum height for each row in the layout, in pixels. If
set to -1 the width will be the maximum child height
Source§fn set_property_max_row_height(&self, max_row_height: f32)
fn set_property_max_row_height(&self, max_row_height: f32)
Maximum height for each row in the layout, in pixels. If
set to -1 the width will be the maximum child height
Source§fn get_property_min_column_width(&self) -> f32
fn get_property_min_column_width(&self) -> f32
Minimum width for each column in the layout, in pixels
Source§fn set_property_min_column_width(&self, min_column_width: f32)
fn set_property_min_column_width(&self, min_column_width: f32)
Minimum width for each column in the layout, in pixels
Source§fn get_property_min_row_height(&self) -> f32
fn get_property_min_row_height(&self) -> f32
Minimum height for each row in the layout, in pixels
Source§fn set_property_min_row_height(&self, min_row_height: f32)
fn set_property_min_row_height(&self, min_row_height: f32)
Minimum height for each row in the layout, in pixels
fn connect_property_column_spacing_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_homogeneous_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_max_column_width_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_max_row_height_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_min_column_width_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_min_row_height_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_orientation_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_row_spacing_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_snap_to_grid_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<O> LayoutManagerExt for Owhere
O: IsA<LayoutManager>,
impl<O> LayoutManagerExt for Owhere
O: IsA<LayoutManager>,
Source§fn allocate<P>(
&self,
container: &P,
allocation: &ActorBox,
flags: AllocationFlags,
)
fn allocate<P>( &self, container: &P, allocation: &ActorBox, flags: AllocationFlags, )
Allocates the children of
container
given an area Read moreSource§fn child_get_property<P, Q>(
&self,
container: &P,
actor: &Q,
property_name: &str,
value: &mut Value,
)
fn child_get_property<P, Q>( &self, container: &P, actor: &Q, property_name: &str, value: &mut Value, )
Source§fn child_set_property<P, Q>(
&self,
container: &P,
actor: &Q,
property_name: &str,
value: &Value,
)
fn child_set_property<P, Q>( &self, container: &P, actor: &Q, property_name: &str, value: &Value, )
Source§fn find_child_property(&self, name: &str) -> Option<ParamSpec>
fn find_child_property(&self, name: &str) -> Option<ParamSpec>
Retrieves the
gobject::ParamSpec
for the layout property name
inside
the LayoutMeta
sub-class used by self
Read moreSource§fn get_child_meta<P, Q>(&self, container: &P, actor: &Q) -> Option<LayoutMeta>
fn get_child_meta<P, Q>(&self, container: &P, actor: &Q) -> Option<LayoutMeta>
Retrieves the
LayoutMeta
that the layout self
associated
to the actor
child of container
, eventually by creating one if the
LayoutManager
supports layout properties Read moreSource§fn layout_changed(&self)
fn layout_changed(&self)
Source§fn list_child_properties(&self) -> Vec<ParamSpec>
fn list_child_properties(&self) -> Vec<ParamSpec>
Retrieves all the
gobject::ParamSpec
s for the layout properties
stored inside the LayoutMeta
sub-class used by self
Read moreSource§fn set_container<P>(&self, container: Option<&P>)
fn set_container<P>(&self, container: Option<&P>)
If the
LayoutManager
sub-class allows it, allow
adding a weak reference of the container
using self
from within the layout manager Read moreSource§fn connect_layout_changed<F>(&self, f: F) -> SignalHandlerId
fn connect_layout_changed<F>(&self, f: F) -> SignalHandlerId
The ::layout-changed signal is emitted each time a layout manager
has been changed. Every
Actor
using the manager
instance
as a layout manager should connect a handler to the ::layout-changed
signal and queue a relayout on themselves: Read moreSource§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.