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

Required Methods§

source

fn add_prefix(&self, priority: i32, child: &impl IsA<Widget>)

Add a widget into a the prefix area with a priority. The highest the priority the closest to the start.

priority

the priority

child

a gtk::Widget

source

fn add_suffix(&self, priority: i32, child: &impl IsA<Widget>)

Add a widget into a the suffix area with a priority. The highest the priority the closest to the start.

priority

the priority

child

a gtk::Widget

source

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.

source

fn frame(&self) -> Option<Frame>

Gets the frame the header is attached to.

Returns

a Frame or None

source

fn page_changed(&self, widget: Option<&impl IsA<Widget>>)

Notifies the header that the visible page has changed.

widget

a Widget or None if no page is visible

source

fn set_frame(&self, frame: Option<&impl IsA<Frame>>)

Sets the frame the header is attached to.

frame

a Frame or None

source

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

Implementors§