Struct gtk4::Requisition
source · #[repr(transparent)]pub struct Requisition { /* private fields */ }
Expand description
A Requisition
represents the desired size of a widget. See
GtkWidget’s geometry management section for
more information.
Implementations§
source§impl Requisition
impl Requisition
pub fn as_ptr(&self) -> *mut GtkRequisition
source§impl Requisition
impl Requisition
sourcepub fn new() -> Requisition
pub fn new() -> Requisition
Allocates a new Requisition
.
The struct is initialized to zero.
Returns
a new empty Requisition
. The newly
allocated Requisition
should be freed with
Gtk::Requisition::free()
Trait Implementations§
source§impl Clone for Requisition
impl Clone for Requisition
source§impl Debug for Requisition
impl Debug for Requisition
source§impl Default for Requisition
impl Default for Requisition
source§impl StaticType for Requisition
impl StaticType for Requisition
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for Requisition
Auto Trait Implementations§
impl RefUnwindSafe for Requisition
impl Send for Requisition
impl Sync for Requisition
impl Unpin for Requisition
impl UnwindSafe for Requisition
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.