[−][src]Struct glib::object::Object
The base class in the object hierarchy.
Methods
impl Object[src]
Trait Implementations
impl StaticType for Object[src]
fn static_type() -> Type[src]
impl<T: ObjectType> PartialEq<T> for Object[src]
fn eq(&self, other: &T) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Ord for Object[src]
fn cmp(&self, other: &Object) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Clone for Object[src]
fn clone(&self) -> Object[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Object[src]
impl<T: ObjectType> PartialOrd<T> for Object[src]
fn partial_cmp(&self, other: &T) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for Object[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Object[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Cast for T where
T: ObjectType, [src]
T: ObjectType,
fn upcast<T: ObjectType>(self) -> T where
Self: IsA<T>, [src]
Self: IsA<T>,
Upcasts an object to a superclass or interface T. Read more
fn upcast_ref<T: ObjectType>(&self) -> &T where
Self: IsA<T>, [src]
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface T. Read more
fn downcast<T: ObjectType>(self) -> Result<T, Self> where
Self: CanDowncast<T>, [src]
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor T. Read more
fn downcast_ref<T: ObjectType>(&self) -> Option<&T> where
Self: CanDowncast<T>, [src]
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor T. Read more
fn dynamic_cast<T: ObjectType>(self) -> Result<T, Self>[src]
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 more
fn dynamic_cast_ref<T: ObjectType>(&self) -> Option<&T>[src]
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 more
unsafe fn unsafe_cast<T: ObjectType>(self) -> T[src]
Casts to T unconditionally. Read more
unsafe fn unsafe_cast_ref<T: ObjectType>(&self) -> &T[src]
Casts to &T unconditionally. Read more
impl<Super, Sub> CanDowncast for Super where
Sub: IsA<Super>,
Super: IsA<Super>, [src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> ObjectExt for T where
T: ObjectType, [src]
T: ObjectType,
fn is<U>(&Self) -> bool where
U: StaticType, [src]
U: StaticType,
fn get_type(&Self) -> Type[src]
fn get_object_class(&Self) -> &ObjectClass[src]
fn set_property<'a, N>(&Self, N, &dyn ToValue) -> Result<(), BoolError> where
N: Into<&'a str>, [src]
N: Into<&'a str>,
fn get_property<'a, N>(&Self, N) -> Result<Value, BoolError> where
N: Into<&'a str>, [src]
N: Into<&'a str>,
fn block_signal(&Self, &SignalHandlerId)[src]
fn unblock_signal(&Self, &SignalHandlerId)[src]
fn stop_signal_emission(&Self, &str)[src]
fn disconnect(&Self, SignalHandlerId)[src]
fn connect_notify<'a, P, F>(&Self, P, F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&T, &ParamSpec),
P: Into<Option<&'a str>>, [src]
F: 'static + Send + Sync + Fn(&T, &ParamSpec),
P: Into<Option<&'a str>>,
unsafe fn connect_notify_unsafe<'a, P, F>(&Self, P, F) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
P: Into<Option<&'a str>>, [src]
F: Fn(&T, &ParamSpec),
P: Into<Option<&'a str>>,
fn notify<'a, N>(&Self, N) where
N: Into<&'a str>, [src]
N: Into<&'a str>,
fn notify_by_pspec(&Self, &ParamSpec)[src]
fn has_property<'a, N>(&Self, N, Option<Type>) -> Result<(), BoolError> where
N: Into<&'a str>, [src]
N: Into<&'a str>,
fn get_property_type<'a, N>(&Self, N) -> Option<Type> where
N: Into<&'a str>, [src]
N: Into<&'a str>,
fn find_property<'a, N>(&Self, N) -> Option<ParamSpec> where
N: Into<&'a str>, [src]
N: Into<&'a str>,
fn list_properties(&Self) -> Vec<ParamSpec>[src]
fn connect<'a, N, F>(&Self, N, bool, F) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>, [src]
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
unsafe fn connect_unsafe<'a, N, F>(
&Self,
N,
bool,
F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>, [src]
&Self,
N,
bool,
F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
fn emit<'a, N>(&Self, N, &[&dyn ToValue]) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>, [src]
N: Into<&'a str>,
fn downgrade(&Self) -> WeakRef<T>[src]
fn bind_property<'a, O, N, M>(&'a Self, N, &'a O, M) -> BindingBuilder<'a> where
M: Into<&'a str>,
N: Into<&'a str>,
O: ObjectType, [src]
M: Into<&'a str>,
N: Into<&'a str>,
O: ObjectType,
fn ref_count(&Self) -> u32[src]
impl<'a, T> ToGlibContainerFromSlice for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)[src]
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)[src]
&'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *mut GList[src]
impl<'a, T> ToGlibContainerFromSlice for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)[src]
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)[src]
&'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *const GList[src]
impl<'a, T> ToGlibContainerFromSlice for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, [src]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)[src]
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)[src]
&'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(&[T]) -> *mut GArray[src]
impl<T> ToValue for T where
T: SetValue + ?Sized, [src]
T: SetValue + ?Sized,
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,