Trait glib::object::ObjectExt [−][src]
pub trait ObjectExt: IsA<Object> { fn get_type(&self) -> Type; fn set_property<'a, N: Into<&'a str>>(
&self,
property_name: N,
value: &ToValue
) -> Result<(), BoolError>; fn get_property<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Result<Value, BoolError>; fn has_property<'a, N: Into<&'a str>>(
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>; fn get_property_type<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Option<Type>; fn find_property<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Option<ParamSpec>; fn list_properties(&self) -> Vec<ParamSpec>; fn block_signal(&self, handler_id: &SignalHandlerId); fn unblock_signal(&self, handler_id: &SignalHandlerId); fn stop_signal_emission(&self, signal_name: &str); fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError>
where
N: Into<&'a str>,
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static; fn emit<'a, N: Into<&'a str>>(
&self,
signal_name: N,
args: &[&ToValue]
) -> Result<Option<Value>, BoolError>; fn disconnect(&self, handler_id: SignalHandlerId); fn connect_notify<'a, P: Into<Option<&'a str>>, F: Fn(&Self, &ParamSpec) + Send + Sync + 'static>(
&self,
name: P,
f: F
) -> SignalHandlerId; fn notify<'a, N: Into<&'a str>>(&self, property_name: N); fn notify_by_pspec(&self, pspec: &ParamSpec); fn downgrade(&self) -> WeakRef<Self>; fn bind_property<'a, O: IsA<Object>, N: Into<&'a str>, M: Into<&'a str>>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a, Self, O>; fn ref_count(&self) -> u32; }
Required Methods
fn get_type(&self) -> Type
fn set_property<'a, N: Into<&'a str>>(
&self,
property_name: N,
value: &ToValue
) -> Result<(), BoolError>
&self,
property_name: N,
value: &ToValue
) -> Result<(), BoolError>
fn get_property<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Result<Value, BoolError>
&self,
property_name: N
) -> Result<Value, BoolError>
fn has_property<'a, N: Into<&'a str>>(
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>
fn get_property_type<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Option<Type>
&self,
property_name: N
) -> Option<Type>
fn find_property<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Option<ParamSpec>
&self,
property_name: N
) -> Option<ParamSpec>
fn list_properties(&self) -> Vec<ParamSpec>
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
N: Into<&'a str>,
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
N: Into<&'a str>,
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
fn emit<'a, N: Into<&'a str>>(
&self,
signal_name: N,
args: &[&ToValue]
) -> Result<Option<Value>, BoolError>
&self,
signal_name: N,
args: &[&ToValue]
) -> Result<Option<Value>, BoolError>
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<'a, P: Into<Option<&'a str>>, F: Fn(&Self, &ParamSpec) + Send + Sync + 'static>(
&self,
name: P,
f: F
) -> SignalHandlerId
&self,
name: P,
f: F
) -> SignalHandlerId
fn notify<'a, N: Into<&'a str>>(&self, property_name: N)
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn downgrade(&self) -> WeakRef<Self>
fn bind_property<'a, O: IsA<Object>, N: Into<&'a str>, M: Into<&'a str>>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a, Self, O>
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a, Self, O>