Trait StageManagerExt

Source
pub trait StageManagerExt: 'static {
    // Required methods
    fn get_default_stage(&self) -> Option<Stage>;
    fn list_stages(&self) -> Vec<Stage>;
    fn peek_stages(&self) -> Vec<Stage>;
    fn connect_stage_added<F: Fn(&Self, &Stage) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_stage_removed<F: Fn(&Self, &Stage) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_default_stage_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}
Expand description

Trait containing all StageManager methods.

§Implementors

StageManager

Required Methods§

Source

fn get_default_stage(&self) -> Option<Stage>

Returns the default Stage.

§Returns

the default stage. The returned object is owned by Clutter and you should never reference or unreference it

Source

fn list_stages(&self) -> Vec<Stage>

Lists all currently used stages.

§Returns

a newly allocated list of Stage objects. Use glib::SList::free to deallocate it when done.

Source

fn peek_stages(&self) -> Vec<Stage>

Lists all currently used stages.

§Returns

a pointer to the internal list of Stage objects. The returned list is owned by the StageManager and should never be modified or freed

Source

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

The ::stage-added signal is emitted each time a new Stage has been added to the stage manager.

§stage

the added stage

Source

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

The ::stage-removed signal is emitted each time a Stage has been removed from the stage manager.

§stage

the removed stage

Source

fn connect_property_default_stage_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§