[][src]Trait gtk::PlugExt

pub trait PlugExt: 'static {
    fn construct(&self, socket_id: Window);
fn construct_for_display(&self, display: &Display, socket_id: Window);
fn get_embedded(&self) -> bool;
fn get_id(&self) -> Window;
fn get_socket_window(&self) -> Option<Window>;
fn connect_embedded<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_embedded_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_socket_window_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all Plug methods.

Implementors

Plug

Required methods

fn construct(&self, socket_id: Window)

Finish the initialization of self for a given Socket identified by socket_id. This function will generally only be used by classes deriving from Plug.

socket_id

the XID of the socket’s window.

fn construct_for_display(&self, display: &Display, socket_id: Window)

Finish the initialization of self for a given Socket identified by socket_id which is currently displayed on display. This function will generally only be used by classes deriving from Plug.

display

the gdk::Display associated with socket_id’s Socket.

socket_id

the XID of the socket’s window.

fn get_embedded(&self) -> bool

Determines whether the plug is embedded in a socket.

Returns

true if the plug is embedded in a socket

fn get_id(&self) -> Window

Gets the window ID of a Plug widget, which can then be used to embed this window inside another window, for instance with GtkSocketExt::add_id.

Returns

the window ID for the plug

fn get_socket_window(&self) -> Option<Window>

Retrieves the socket the plug is embedded in.

Returns

the window of the socket, or None

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

Gets emitted when the plug becomes embedded in a socket.

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

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

Loading content...

Implementors

impl<O: IsA<Plug>> PlugExt for O[src]

Loading content...