[−][src]Struct glib::object::ObjectClass
Methods
impl ObjectClass
[src]
pub fn has_property<'a, N: Into<&'a str>>(
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>
[src]
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>
pub fn get_property_type<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Option<Type>
[src]
&self,
property_name: N
) -> Option<Type>
pub fn find_property<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Option<ParamSpec>
[src]
&self,
property_name: N
) -> Option<ParamSpec>
pub fn list_properties(&self) -> Vec<ParamSpec>
[src]
Trait Implementations
impl Debug for ObjectClass
[src]
impl IsClassFor for ObjectClass
[src]
type Instance = Object
Corresponding Rust instance type for this class.
fn get_type(&self) -> Type
[src]
fn upcast_ref<U: IsClassFor>(&self) -> &U where
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
[src]
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
fn upcast_ref_mut<U: IsClassFor>(&mut self) -> &mut U where
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
[src]
Self::Instance: IsA<U::Instance>,
U::Instance: ObjectType,
fn downcast_ref<U: IsClassFor>(&self) -> Option<&U> where
U::Instance: IsA<Self::Instance>,
Self::Instance: ObjectType,
[src]
U::Instance: IsA<Self::Instance>,
Self::Instance: ObjectType,
fn downcast_ref_mut<U: IsClassFor>(&mut self) -> Option<&mut U> where
U::Instance: IsA<Self::Instance>,
Self::Instance: ObjectType,
[src]
U::Instance: IsA<Self::Instance>,
Self::Instance: ObjectType,
fn from_type(type_: Type) -> Option<ClassRef<Self>>
[src]
impl<T: ObjectSubclass> IsSubclassable<T> for ObjectClass
[src]
fn override_vfuncs(&mut self)
[src]
impl ObjectClassSubclassExt for ObjectClass
[src]
fn install_properties<'a, T: Borrow<Property<'a>>>(&mut self, properties: &[T])
[src]
fn add_signal(
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type
)
[src]
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type
)
fn add_signal_with_class_handler<F>(
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type,
class_handler: F
) where
F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,
[src]
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type,
class_handler: F
) where
F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,
fn add_signal_with_accumulator<F>(
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type,
accumulator: F
) where
F: Fn(&SignalInvocationHint, &mut Value, &Value) -> bool + Send + Sync + 'static,
[src]
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type,
accumulator: F
) where
F: Fn(&SignalInvocationHint, &mut Value, &Value) -> bool + Send + Sync + 'static,
fn add_signal_with_class_handler_and_accumulator<F, G>(
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type,
class_handler: F,
accumulator: G
) where
F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,
G: Fn(&SignalInvocationHint, &mut Value, &Value) -> bool + Send + Sync + 'static,
[src]
&mut self,
name: &str,
flags: SignalFlags,
arg_types: &[Type],
ret_type: Type,
class_handler: F,
accumulator: G
) where
F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,
G: Fn(&SignalInvocationHint, &mut Value, &Value) -> bool + Send + Sync + 'static,
fn override_signal_class_handler<F>(&mut self, name: &str, class_handler: F) where
F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,
[src]
F: Fn(&SignalClassHandlerToken, &[Value]) -> Option<Value> + Send + Sync + 'static,
impl Send for ObjectClass
[src]
impl Sync for ObjectClass
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,