[][src]Trait atk::AtkSocketExt

pub trait AtkSocketExt: 'static {
    fn embed(&self, plug_id: &str);
fn is_occupied(&self) -> bool; }

Trait containing all Socket methods.

Implementors

Socket

Required methods

fn embed(&self, plug_id: &str)

Embeds the children of an Plug as the children of the Socket. The plug may be in the same process or in a different process.

The class item used by this function should be filled in by the IPC layer (usually at-spi2-atk). The implementor of the AtkSocket should call this function and pass the id for the plug as returned by AtkPlugExt::get_id. It is the responsibility of the application to pass the plug id on to the process implementing the Socket as needed.

plug_id

the ID of an Plug

fn is_occupied(&self) -> bool

Determines whether or not the socket has an embedded plug.

Returns

TRUE if a plug is embedded in the socket

Loading content...

Implementors

impl<O: IsA<Socket>> AtkSocketExt for O[src]

Loading content...