Trait gtk::prelude::PanedExt[][src]

pub trait PanedExt: 'static {
Show methods fn add1<P: IsA<Widget>>(&self, child: &P);
fn add2<P: IsA<Widget>>(&self, child: &P);
fn child1(&self) -> Option<Widget>;
fn child2(&self) -> Option<Widget>;
fn handle_window(&self) -> Option<Window>;
fn position(&self) -> i32;
fn is_wide_handle(&self) -> bool;
fn pack1<P: IsA<Widget>>(&self, child: &P, resize: bool, shrink: bool);
fn pack2<P: IsA<Widget>>(&self, child: &P, resize: bool, shrink: bool);
fn set_position(&self, position: i32);
fn set_wide_handle(&self, wide: bool);
fn max_position(&self) -> i32;
fn min_position(&self) -> i32;
fn is_position_set(&self) -> bool;
fn set_position_set(&self, position_set: bool);
fn child_resizes<T: IsA<Widget>>(&self, item: &T) -> bool;
fn set_child_resize<T: IsA<Widget>>(&self, item: &T, resize: bool);
fn child_shrinks<T: IsA<Widget>>(&self, item: &T) -> bool;
fn set_child_shrink<T: IsA<Widget>>(&self, item: &T, shrink: bool);
fn connect_accept_position<F: Fn(&Self) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_accept_position(&self) -> bool;
fn connect_cancel_position<F: Fn(&Self) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_cancel_position(&self) -> bool;
fn connect_cycle_child_focus<F: Fn(&Self, bool) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_cycle_child_focus(&self, reversed: bool) -> bool;
fn connect_cycle_handle_focus<F: Fn(&Self, bool) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_cycle_handle_focus(&self, reversed: bool) -> bool;
fn connect_move_handle<F: Fn(&Self, ScrollType) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_move_handle(&self, scroll_type: ScrollType) -> bool;
fn connect_toggle_handle_focus<F: Fn(&Self) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_toggle_handle_focus(&self) -> bool;
fn connect_max_position_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_min_position_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_position_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_position_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_wide_handle_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}
Expand description

Trait containing all Paned methods.

Implementors

Paned

Required methods

Adds a child to the top or left pane with default parameters. This is equivalent to gtk_paned_pack1 (paned, child, FALSE, TRUE).

child

the child to add

Adds a child to the bottom or right pane with default parameters. This is equivalent to gtk_paned_pack2 (paned, child, TRUE, TRUE).

child

the child to add

Obtains the first child of the paned widget.

Returns

first child, or None if it is not set.

Obtains the second child of the paned widget.

Returns

second child, or None if it is not set.

Returns the gdk::Window of the handle. This function is useful when handling button or motion events because it enables the callback to distinguish between the window of the paned, a child and the handle.

Returns

the paned’s handle window.

Obtains the position of the divider between the two panes.

Returns

position of the divider

Gets the property::Paned::wide-handle property.

Returns

true if the paned should have a wide handle

Adds a child to the top or left pane.

child

the child to add

resize

should this child expand when the paned widget is resized.

shrink

can this child be made smaller than its requisition.

Adds a child to the bottom or right pane.

child

the child to add

resize

should this child expand when the paned widget is resized.

shrink

can this child be made smaller than its requisition.

Sets the position of the divider between the two panes.

position

pixel position of divider, a negative value means that the position is unset.

Sets the property::Paned::wide-handle property.

wide

the new value for the property::Paned::wide-handle property

The largest possible value for the position property. This property is derived from the size and shrinkability of the widget’s children.

The smallest possible value for the position property. This property is derived from the size and shrinkability of the widget’s children.

The ::accept-position signal is a [keybinding signal][GtkBindingSignal] which gets emitted to accept the current position of the handle when moving it using key bindings.

The default binding for this signal is Return or Space.

The ::cancel-position signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cancel moving the position of the handle using key bindings. The position of the handle will be reset to the value prior to moving it.

The default binding for this signal is Escape.

The ::cycle-child-focus signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cycle the focus between the children of the paned.

The default binding is f6.

reversed

whether cycling backward or forward

The ::cycle-handle-focus signal is a [keybinding signal][GtkBindingSignal] which gets emitted to cycle whether the paned should grab focus to allow the user to change position of the handle by using key bindings.

The default binding for this signal is f8.

reversed

whether cycling backward or forward

The ::move-handle signal is a [keybinding signal][GtkBindingSignal] which gets emitted to move the handle when the user is using key bindings to move it.

scroll_type

a ScrollType

The ::toggle-handle-focus is a [keybinding signal][GtkBindingSignal] which gets emitted to accept the current position of the handle and then move focus to the next widget in the focus chain.

The default binding is Tab.

Implementors