Skip to main content

SeparatorToolItemExt

Trait SeparatorToolItemExt 

Source
pub trait SeparatorToolItemExt:
    IsA<SeparatorToolItem>
    + Sealed
    + 'static {
    // Provided methods
    fn draws(&self) -> bool { ... }
    fn set_draw(&self, draw: bool) { ... }
    fn connect_draw_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all SeparatorToolItem methods.

§Implementors

SeparatorToolItem

Provided Methods§

Source

fn draws(&self) -> bool

Returns whether self is drawn as a line, or just blank. See set_draw().

§Returns

true if self is drawn as a line, or just blank.

Source

fn set_draw(&self, draw: bool)

Whether self is drawn as a vertical line, or just blank. Setting this to false along with ToolItemExt::set_expand() is useful to create an item that forces following items to the end of the toolbar.

§draw

whether self is drawn as a vertical line

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§