Trait components::ActorMetaExt[][src]

pub trait ActorMetaExt: 'static {
    pub fn get_actor(&self) -> Option<Actor>;
pub fn get_enabled(&self) -> bool;
pub fn get_name(&self) -> Option<GString>;
pub fn set_enabled(&self, is_enabled: bool);
pub fn set_name(&self, name: &str);
pub fn connect_property_actor_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_enabled_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }

Trait containing all ActorMeta methods.

Implementors

Action, ActorMeta, Constraint, Effect

Required methods

pub fn get_actor(&self) -> Option<Actor>[src]

Retrieves a pointer to the Actor that owns self

Returns

a pointer to a Actor or None

pub fn get_enabled(&self) -> bool[src]

Retrieves whether self is enabled

Returns

true if the ActorMeta instance is enabled

pub fn get_name(&self) -> Option<GString>[src]

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

pub fn set_enabled(&self, is_enabled: bool)[src]

Sets whether self should be enabled or not

is_enabled

whether self is enabled

pub fn set_name(&self, name: &str)[src]

Sets the name of self

The name can be used to identify the ActorMeta instance

name

the name of self

pub fn connect_property_actor_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_enabled_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

impl<O> ActorMetaExt for O where
    O: IsA<ActorMeta>, 
[src]

Loading content...