pub trait ActorMetaExt: 'static {
// Required methods
fn get_actor(&self) -> Option<Actor>;
fn get_enabled(&self) -> bool;
fn get_name(&self) -> Option<GString>;
fn set_enabled(&self, is_enabled: bool);
fn set_name(&self, name: &str);
fn connect_property_actor_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_enabled_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Expand description
Required Methods§
Sourcefn get_enabled(&self) -> bool
fn get_enabled(&self) -> bool
Sourcefn get_name(&self) -> Option<GString>
fn get_name(&self) -> Option<GString>
Retrieves the name set using ActorMetaExt::set_name
§Returns
the name of the ActorMeta
instance, or None
if none was set. The returned string is owned
by the ActorMeta
instance and it should not be modified
or freed
Sourcefn set_enabled(&self, is_enabled: bool)
fn set_enabled(&self, is_enabled: bool)
Sourcefn set_name(&self, name: &str)
fn set_name(&self, name: &str)
Sets the name of self
The name can be used to identify the ActorMeta
instance
§name
the name of self
fn connect_property_actor_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.