Trait ActorMetaExt

Source
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

Trait containing all ActorMeta methods.

§Implementors

Action, ActorMeta, Constraint, Effect

Required Methods§

Source

fn get_actor(&self) -> Option<Actor>

Retrieves a pointer to the Actor that owns self

§Returns

a pointer to a Actor or None

Source

fn get_enabled(&self) -> bool

Retrieves whether self is enabled

§Returns

true if the ActorMeta instance is enabled

Source

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

Source

fn set_enabled(&self, is_enabled: bool)

Sets whether self should be enabled or not

§is_enabled

whether self is enabled

Source

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

Source

fn connect_property_actor_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_enabled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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.

Implementors§