Trait libpanel::prelude::PanelFrameExt
source · pub trait PanelFrameExt: IsA<Frame> + Sealed + 'static {
Show 24 methods
// Provided methods
fn add(&self, panel: &impl IsA<Widget>) { ... }
fn add_before(&self, panel: &impl IsA<Widget>, sibling: &impl IsA<Widget>) { ... }
fn is_closeable(&self) -> bool { ... }
fn is_empty(&self) -> bool { ... }
fn header(&self) -> Option<FrameHeader> { ... }
fn n_pages(&self) -> u32 { ... }
fn page(&self, n: u32) -> Option<Widget> { ... }
fn pages(&self) -> SelectionModel { ... }
fn placeholder(&self) -> Option<Widget> { ... }
fn position(&self) -> Position { ... }
fn requested_size(&self) -> i32 { ... }
fn visible_child(&self) -> Option<Widget> { ... }
fn remove(&self, panel: &impl IsA<Widget>) { ... }
fn set_child_pinned(&self, child: &impl IsA<Widget>, pinned: bool) { ... }
fn set_header(&self, header: Option<&impl IsA<FrameHeader>>) { ... }
fn set_placeholder(&self, placeholder: Option<&impl IsA<Widget>>) { ... }
fn set_requested_size(&self, requested_size: i32) { ... }
fn set_visible_child(&self, widget: &impl IsA<Widget>) { ... }
fn connect_adopt_widget<F: Fn(&Self, &Widget) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_page_closed<F: Fn(&Self, &Widget) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_closeable_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_empty_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_placeholder_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_visible_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
sourcefn is_closeable(&self) -> bool
fn is_closeable(&self) -> bool
sourcefn header(&self) -> Option<FrameHeader>
fn header(&self) -> Option<FrameHeader>
sourcefn pages(&self) -> SelectionModel
fn pages(&self) -> SelectionModel
sourcefn placeholder(&self) -> Option<Widget>
fn placeholder(&self) -> Option<Widget>
sourcefn requested_size(&self) -> i32
fn requested_size(&self) -> i32
sourcefn visible_child(&self) -> Option<Widget>
fn visible_child(&self) -> Option<Widget>
sourcefn set_child_pinned(&self, child: &impl IsA<Widget>, pinned: bool)
fn set_child_pinned(&self, child: &impl IsA<Widget>, pinned: bool)
sourcefn set_header(&self, header: Option<&impl IsA<FrameHeader>>)
fn set_header(&self, header: Option<&impl IsA<FrameHeader>>)
sourcefn set_placeholder(&self, placeholder: Option<&impl IsA<Widget>>)
fn set_placeholder(&self, placeholder: Option<&impl IsA<Widget>>)
Sets the placeholder widget for the frame.
The placeholder widget is displayed when there are no pages to display in the frame.
§placeholder
a gtk::Widget
or None
sourcefn set_requested_size(&self, requested_size: i32)
fn set_requested_size(&self, requested_size: i32)
sourcefn set_visible_child(&self, widget: &impl IsA<Widget>)
fn set_visible_child(&self, widget: &impl IsA<Widget>)
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
sourcefn connect_page_closed<F: Fn(&Self, &Widget) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_page_closed<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_closeable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_empty_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_placeholder_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_visible_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.