Struct gtk::ModelButton
source · [−]pub struct ModelButton(_, _);Implementations
sourceimpl ModelButton
impl ModelButton
pub fn new() -> ModelButton
pub fn get_property_active(&self) -> bool
pub fn set_property_active(&self, active: bool)
pub fn get_property_centered(&self) -> bool
pub fn set_property_centered(&self, centered: bool)
pub fn get_property_icon(&self) -> Option<Icon>
pub fn set_property_icon(&self, icon: Option<&Icon>)
pub fn get_property_iconic(&self) -> bool
pub fn set_property_iconic(&self, iconic: bool)
pub fn get_property_inverted(&self) -> bool
pub fn set_property_inverted(&self, inverted: bool)
pub fn get_property_role(&self) -> ButtonRole
pub fn set_property_role(&self, role: ButtonRole)
pub fn get_property_text(&self) -> Option<GString>
pub fn set_property_text(&self, text: Option<&str>)
pub fn connect_property_active_notify<F: Fn(&ModelButton) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_centered_notify<F: Fn(&ModelButton) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_icon_notify<F: Fn(&ModelButton) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_iconic_notify<F: Fn(&ModelButton) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_inverted_notify<F: Fn(&ModelButton) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_role_notify<F: Fn(&ModelButton) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_text_notify<F: Fn(&ModelButton) + 'static>(
&self,
f: F
) -> SignalHandlerId
Trait Implementations
sourceimpl Clone for ModelButton
impl Clone for ModelButton
sourcefn clone(&self) -> ModelButton
fn clone(&self) -> ModelButton
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ModelButton
impl Debug for ModelButton
sourceimpl Default for ModelButton
impl Default for ModelButton
sourceimpl Display for ModelButton
impl Display for ModelButton
sourceimpl Hash for ModelButton
impl Hash for ModelButton
sourceimpl Ord for ModelButton
impl Ord for ModelButton
sourcefn cmp(&self, other: &ModelButton) -> Ordering
fn cmp(&self, other: &ModelButton) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialEq<T> for ModelButton
impl<T: ObjectType> PartialEq<T> for ModelButton
sourceimpl<T: ObjectType> PartialOrd<T> for ModelButton
impl<T: ObjectType> PartialOrd<T> for ModelButton
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for ModelButton
impl StaticType for ModelButton
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for ModelButton
impl IsA<Actionable> for ModelButton
impl IsA<Bin> for ModelButton
impl IsA<Buildable> for ModelButton
impl IsA<Button> for ModelButton
impl IsA<Container> for ModelButton
impl IsA<Widget> for ModelButton
Auto Trait Implementations
impl RefUnwindSafe for ModelButton
impl !Send for ModelButton
impl !Sync for ModelButton
impl Unpin for ModelButton
impl UnwindSafe for ModelButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourcefn 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 moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn 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.