pub struct GridLayout(/* private fields */);
Implementations§
Source§impl GridLayout
impl GridLayout
Sourcepub fn new() -> GridLayout
pub fn new() -> GridLayout
Trait Implementations§
Source§impl Clone for GridLayout
impl Clone for GridLayout
Source§fn clone(&self) -> GridLayout
fn clone(&self) -> GridLayout
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 GridLayout
impl Debug for GridLayout
Source§impl Default for GridLayout
impl Default for GridLayout
Source§impl Display for GridLayout
impl Display for GridLayout
Source§impl Hash for GridLayout
impl Hash for GridLayout
Source§impl Ord for GridLayout
impl Ord for GridLayout
Source§fn cmp(&self, other: &GridLayout) -> Ordering
fn cmp(&self, other: &GridLayout) -> 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 GridLayout
impl<T: ObjectType> PartialEq<T> for GridLayout
Source§impl<T: ObjectType> PartialOrd<T> for GridLayout
impl<T: ObjectType> PartialOrd<T> for GridLayout
Source§impl StaticType for GridLayout
impl StaticType for GridLayout
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for GridLayout
impl IsA<InitiallyUnowned> for GridLayout
impl IsA<LayoutManager> for GridLayout
Auto Trait Implementations§
impl Freeze for GridLayout
impl RefUnwindSafe for GridLayout
impl !Send for GridLayout
impl !Sync for GridLayout
impl Unpin for GridLayout
impl UnwindSafe for GridLayout
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<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> GridLayoutExt for Owhere
O: IsA<GridLayout>,
impl<O> GridLayoutExt for Owhere
O: IsA<GridLayout>,
Source§fn attach<P>(&self, child: &P, left: i32, top: i32, width: i32, height: i32)
fn attach<P>(&self, child: &P, left: i32, top: i32, width: i32, height: i32)
Adds a widget to the grid. Read more
Source§fn attach_next_to<P, Q>(
&self,
child: &P,
sibling: Option<&Q>,
side: GridPosition,
width: i32,
height: i32,
)
fn attach_next_to<P, Q>( &self, child: &P, sibling: Option<&Q>, side: GridPosition, width: i32, height: i32, )
Adds a actor to the grid. Read more
Source§fn get_child_at(&self, left: i32, top: i32) -> Option<Actor>
fn get_child_at(&self, left: i32, top: i32) -> Option<Actor>
Gets the child of
self
whose area covers the grid
cell whose upper left corner is at left
, top
. Read moreSource§fn get_column_homogeneous(&self) -> bool
fn get_column_homogeneous(&self) -> bool
Returns whether all columns of
self
have the same width. Read moreSource§fn get_column_spacing(&self) -> u32
fn get_column_spacing(&self) -> u32
Retrieves the spacing set using
GridLayoutExt::set_column_spacing
Read moreSource§fn get_orientation(&self) -> Orientation
fn get_orientation(&self) -> Orientation
Retrieves the orientation of the
self
. Read moreSource§fn get_row_homogeneous(&self) -> bool
fn get_row_homogeneous(&self) -> bool
Returns whether all rows of
self
have the same height. Read moreSource§fn get_row_spacing(&self) -> u32
fn get_row_spacing(&self) -> u32
Retrieves the spacing set using
GridLayoutExt::set_row_spacing
Read moreSource§fn insert_column(&self, position: i32)
fn insert_column(&self, position: i32)
Inserts a column at the specified position. Read more
Source§fn insert_next_to<P>(&self, sibling: &P, side: GridPosition)
fn insert_next_to<P>(&self, sibling: &P, side: GridPosition)
Inserts a row or column at the specified position. Read more
Source§fn insert_row(&self, position: i32)
fn insert_row(&self, position: i32)
Inserts a row at the specified position. Read more
Source§fn set_column_homogeneous(&self, homogeneous: bool)
fn set_column_homogeneous(&self, homogeneous: bool)
Sets whether all columns of
self
will have the same width. Read moreSource§fn set_column_spacing(&self, spacing: u32)
fn set_column_spacing(&self, spacing: u32)
Sets the spacing between columns of
self
Read moreSource§fn set_orientation(&self, orientation: Orientation)
fn set_orientation(&self, orientation: Orientation)
Sets the orientation of the
self
. Read moreSource§fn set_row_homogeneous(&self, homogeneous: bool)
fn set_row_homogeneous(&self, homogeneous: bool)
Sets whether all rows of
self
will have the same height. Read moreSource§fn set_row_spacing(&self, spacing: u32)
fn set_row_spacing(&self, spacing: u32)
Sets the spacing between rows of
self
Read morefn connect_property_column_homogeneous_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_column_spacing_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_orientation_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_row_homogeneous_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_row_spacing_notify<F>(&self, f: F) -> SignalHandlerId
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
.