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
Required Methods§
sourcefn foreach_frame<P: FnMut(&Frame)>(&self, callback: P)
fn foreach_frame<P: FnMut(&Frame)>(&self, callback: P)
sourcefn can_reveal_area(&self, area: Area) -> bool
fn can_reveal_area(&self, area: Area) -> bool
sourcefn can_reveal_bottom(&self) -> bool
fn can_reveal_bottom(&self) -> bool
sourcefn can_reveal_end(&self) -> bool
fn can_reveal_end(&self) -> bool
sourcefn can_reveal_start(&self) -> bool
fn can_reveal_start(&self) -> bool
sourcefn can_reveal_top(&self) -> bool
fn can_reveal_top(&self) -> bool
sourcefn reveals_area(&self, area: Area) -> bool
fn reveals_area(&self, area: Area) -> bool
sourcefn reveals_bottom(&self) -> bool
fn reveals_bottom(&self) -> bool
sourcefn reveals_end(&self) -> bool
fn reveals_end(&self) -> bool
sourcefn reveals_start(&self) -> bool
fn reveals_start(&self) -> bool
sourcefn reveals_top(&self) -> bool
fn reveals_top(&self) -> bool
sourcefn remove(&self, child: &impl IsA<Widget>)
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.
sourcefn set_bottom_height(&self, height: i32)
fn set_bottom_height(&self, height: i32)
sourcefn set_end_width(&self, width: i32)
fn set_end_width(&self, width: i32)
sourcefn set_reveal_area(&self, area: Area, reveal: bool)
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.
sourcefn set_reveal_bottom(&self, reveal_bottom: bool)
fn set_reveal_bottom(&self, reveal_bottom: bool)
sourcefn set_reveal_end(&self, reveal_end: bool)
fn set_reveal_end(&self, reveal_end: bool)
sourcefn set_reveal_start(&self, reveal_start: bool)
fn set_reveal_start(&self, reveal_start: bool)
sourcefn set_reveal_top(&self, reveal_top: bool)
fn set_reveal_top(&self, reveal_top: bool)
sourcefn set_start_width(&self, width: i32)
fn set_start_width(&self, width: i32)
sourcefn set_top_height(&self, height: 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
sourcefn connect_adopt_widget<F: Fn(&Self, &Widget) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId
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.
sourcefn connect_create_frame<F: Fn(&Self, &Position) -> Frame + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_create_frame<F: Fn(&Self, &Position) -> Frame + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v1_2
only.