Trait libpanel::prelude::DockExt

source ·
pub trait DockExt: 'static {
Show 41 methods // Required methods fn foreach_frame<P: FnMut(&Frame)>(&self, callback: P); fn can_reveal_area(&self, area: Area) -> bool; fn can_reveal_bottom(&self) -> bool; fn can_reveal_end(&self) -> bool; fn can_reveal_start(&self) -> bool; fn can_reveal_top(&self) -> bool; fn reveals_area(&self, area: Area) -> bool; fn reveals_bottom(&self) -> bool; fn reveals_end(&self) -> bool; fn reveals_start(&self) -> bool; fn reveals_top(&self) -> bool; fn remove(&self, child: &impl IsA<Widget>); fn set_bottom_height(&self, height: i32); fn set_end_width(&self, width: i32); fn set_reveal_area(&self, area: Area, reveal: bool); fn set_reveal_bottom(&self, reveal_bottom: bool); fn set_reveal_end(&self, reveal_end: bool); fn set_reveal_start(&self, reveal_start: bool); fn set_reveal_top(&self, reveal_top: bool); fn set_start_width(&self, width: i32); fn set_top_height(&self, height: i32); fn bottom_height(&self) -> i32; fn end_width(&self) -> i32; fn start_width(&self) -> i32; fn top_height(&self) -> i32; fn connect_adopt_widget<F: Fn(&Self, &Widget) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_create_frame<F: Fn(&Self, &Position) -> Frame + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_panel_drag_begin<F: Fn(&Self, &Widget) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_panel_drag_end<F: Fn(&Self, &Widget) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_bottom_height_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_can_reveal_bottom_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_can_reveal_end_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_can_reveal_start_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_can_reveal_top_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_end_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_reveal_bottom_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_reveal_end_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_reveal_start_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_reveal_top_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_start_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_top_height_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}
Expand description

Trait containing all Dock methods.

Implementors

Dock

Required Methods§

source

fn foreach_frame<P: FnMut(&Frame)>(&self, callback: P)

Invokes a callback for each frame in the dock.

callback

a function to be called on each frame

source

fn can_reveal_area(&self, area: Area) -> bool

Tells if the panel area can be revealed.

area

the panel area to check.

Returns

whether it can reveal the area or not. If the is no child or the child is empty, will return false.

source

fn can_reveal_bottom(&self) -> bool

Tells if the bottom panel area can be revealed.

Returns

whether it can reveal the bottom area or not. If the is no child or the child is empty, will return false.

source

fn can_reveal_end(&self) -> bool

Tells if the end panel area can be revealed.

Returns

whether it can reveal the end area or not. If the is no child or the child is empty, will return false.

source

fn can_reveal_start(&self) -> bool

Tells if the start panel area can be revealed.

Returns

whether it can reveal the start area or not. If the is no child or the child is empty, will return false.

source

fn can_reveal_top(&self) -> bool

Tells if the top panel area can be revealed.

Returns

whether it can reveal the top area or not. If the is no child or the child is empty, will return false.

source

fn reveals_area(&self, area: Area) -> bool

Tells if an area if revealed.

area

the Area to return the reveal status of.

Returns

The reveal state.

source

fn reveals_bottom(&self) -> bool

Tells if the bottom area is revealed.

Returns

The reveal state of the bottom area.

source

fn reveals_end(&self) -> bool

Tells if the end area is revealed.

Returns

The reveal state of the end area.

source

fn reveals_start(&self) -> bool

Tells if the start area is revealed.

Returns

The reveal state of the start area.

source

fn reveals_top(&self) -> bool

Tells if the top area is revealed.

Returns

The reveal state of the top area.

source

fn remove(&self, child: &impl IsA<Widget>)

Removes a widget from the dock. If widget is not a DockChild, then the closest DockChild parent is removed.

source

fn set_bottom_height(&self, height: i32)

Set the height of the bottom area.

height

the height

source

fn set_end_width(&self, width: i32)

Set the width of the end area.

width

the width

source

fn set_reveal_area(&self, area: Area, reveal: bool)

Sets the reveal status of the area.

area

a Area. Area::Center is an invalid value.

reveal

reveal the area.

source

fn set_reveal_bottom(&self, reveal_bottom: bool)

Sets the reveal status of the bottom area.

reveal_bottom

reveal the bottom area.

source

fn set_reveal_end(&self, reveal_end: bool)

Sets the reveal status of the end area.

reveal_end

reveal the end area.

source

fn set_reveal_start(&self, reveal_start: bool)

Sets the reveal status of the start area.

reveal_start

reveal the start area.

source

fn set_reveal_top(&self, reveal_top: bool)

Sets the reveal status of the top area.

reveal_top

reveal the top area.

source

fn set_start_width(&self, width: i32)

Set the width of the start area.

width

the width

source

fn set_top_height(&self, height: i32)

Set the height of the top area.

height

the height

source

fn bottom_height(&self) -> i32

source

fn end_width(&self) -> i32

source

fn start_width(&self) -> i32

source

fn top_height(&self) -> i32

source

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

Available on crate feature v1_2 only.

Signal is emitted when a widget is requesting to be added via a drag-n-drop event.

This is generally propagated via adopt-widget to the dock so that applications do not need to attach signal handlers to every Frame.

widget

a Widget

Returns

GDK_EVENT_STOP to prevent dropping, otherwise GDK_EVENT_PROPAGATE to allow adopting the widget.

source

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

Available on crate feature v1_2 only.

This signal is emitted when a new frame is needed.

position

the position for the frame

source

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

This signal is emitted when dragging of a panel begins.

panel

a Widget

source

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

This signal is emitted when dragging of a panel either completes or was cancelled.

panel

a Widget

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§

source§

impl<O: IsA<Dock>> DockExt for O