Trait sourceview4::prelude::GutterExt
source · 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
Provided Methods§
sourcefn renderer_at_pos(&self, x: i32, y: i32) -> Option<GutterRenderer>
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
.
sourcefn window_type(&self) -> TextWindowType
fn window_type(&self) -> TextWindowType
Returns
the gtk::TextWindowType
of self
.
sourcefn insert(&self, renderer: &impl IsA<GutterRenderer>, position: i32) -> bool
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
sourcefn queue_draw(&self)
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.
sourcefn remove(&self, renderer: &impl IsA<GutterRenderer>)
fn remove(&self, renderer: &impl IsA<GutterRenderer>)
Object Safety§
This trait is not object safe.