Trait gtk::prelude::PlugExt[][src]

pub trait PlugExt: 'static {
    fn construct(&self, socket_id: Window);
fn construct_for_display(&self, display: &Display, socket_id: Window);
fn is_embedded(&self) -> bool;
fn id(&self) -> Window;
fn socket_window(&self) -> Option<Window>;
fn connect_embedded<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_embedded_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_socket_window_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Trait containing all Plug methods.

Implementors

Plug

Required methods

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.

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.

Determines whether the plug is embedded in a socket.

Returns

true if the plug is embedded in a socket

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

Retrieves the socket the plug is embedded in.

Returns

the window of the socket, or None

Gets emitted when the plug becomes embedded in a socket.

Implementors