Trait libpanel::prelude::FrameHeaderExt
source · pub trait FrameHeaderExt: 'static {
// Required methods
fn add_prefix(&self, priority: i32, child: &impl IsA<Widget>);
fn add_suffix(&self, priority: i32, child: &impl IsA<Widget>);
fn can_drop(&self, widget: &impl IsA<Widget>) -> bool;
fn frame(&self) -> Option<Frame>;
fn page_changed(&self, widget: Option<&impl IsA<Widget>>);
fn set_frame(&self, frame: Option<&impl IsA<Frame>>);
fn connect_frame_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Trait containing all FrameHeader
methods.
Implementors
Required Methods§
sourcefn add_prefix(&self, priority: i32, child: &impl IsA<Widget>)
fn add_prefix(&self, priority: i32, child: &impl IsA<Widget>)
sourcefn add_suffix(&self, priority: i32, child: &impl IsA<Widget>)
fn add_suffix(&self, priority: i32, child: &impl IsA<Widget>)
sourcefn can_drop(&self, widget: &impl IsA<Widget>) -> bool
fn can_drop(&self, widget: &impl IsA<Widget>) -> bool
Tells if the panel widget can be drop onto the panel frame.
Returns
whether the widget can be dropped.