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
Required Methods
fn construct_for_display(&self, display: &Display, socket_id: Window)
fn construct_for_display(&self, display: &Display, socket_id: Window)
fn is_embedded(&self) -> bool
fn is_embedded(&self) -> bool
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 socket_window(&self) -> Option<Window>
fn socket_window(&self) -> Option<Window>
fn connect_embedded<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_embedded<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Gets emitted when the plug becomes embedded in a socket.