pub trait GutterExt: IsA<Gutter> + Sealed + 'static {
    // Provided methods
    fn renderer_at_pos(&self, x: i32, y: i32) -> Option<GutterRenderer> { ... }
    fn view(&self) -> Option<View> { ... }
    fn window_type(&self) -> TextWindowType { ... }
    fn insert(&self, renderer: &impl IsA<GutterRenderer>, position: i32) -> bool { ... }
    fn queue_draw(&self) { ... }
    fn remove(&self, renderer: &impl IsA<GutterRenderer>) { ... }
    fn reorder(&self, renderer: &impl IsA<GutterRenderer>, position: i32) { ... }
}
Expand description

Trait containing all Gutter methods.

Implementors

Gutter

Provided Methods§

source

fn renderer_at_pos(&self, x: i32, y: i32) -> Option<GutterRenderer>

Finds the GutterRenderer at (x, y).

x

The x position to get identified.

y

The y position to get identified.

Returns

the renderer at (x, y) or None.

source

fn view(&self) -> Option<View>

Returns

the associated View.

source

fn window_type(&self) -> TextWindowType

source

fn insert(&self, renderer: &impl IsA<GutterRenderer>, position: i32) -> bool

Insert renderer into the gutter. If renderer is yet unowned then gutter claims its ownership. Otherwise just increases renderer’s reference count. renderer cannot be already inserted to another gutter.

renderer

a gutter renderer (must inherit from GutterRenderer).

position

the renderer position.

Returns

true if operation succeeded. Otherwise false.

source

fn queue_draw(&self)

Invalidates the drawable area of the gutter. You can use this to force a redraw of the gutter if something has changed and needs to be redrawn.

source

fn remove(&self, renderer: &impl IsA<GutterRenderer>)

Removes renderer from self.

renderer

a GutterRenderer.

source

fn reorder(&self, renderer: &impl IsA<GutterRenderer>, position: i32)

Reorders renderer in self to new position.

renderer

a GtkCellRenderer.

position

the new renderer position.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O: IsA<Gutter>> GutterExt for O