pub trait GutterRendererImpl: WidgetImpl {
// Provided methods
fn query_data(&self, lines: &GutterLines, line: u32) { ... }
fn begin(&self, lines: &GutterLines) { ... }
fn end(&self) { ... }
fn change_buffer(&self, old_buffer: Option<&Buffer>) { ... }
fn change_view(&self, old_view: Option<&View>) { ... }
fn query_activatable(&self, iter: &TextIter, area: &Rectangle) -> bool { ... }
fn activate(
&self,
iter: &TextIter,
area: &Rectangle,
button: u32,
state: ModifierType,
n_presses: i32,
) { ... }
fn snapshot_line(&self, snapshot: &Snapshot, lines: &GutterLines, line: u32) { ... }
}
Provided Methods§
fn query_data(&self, lines: &GutterLines, line: u32)
fn begin(&self, lines: &GutterLines)
fn end(&self)
sourcefn change_buffer(&self, old_buffer: Option<&Buffer>)
fn change_buffer(&self, old_buffer: Option<&Buffer>)
sourcefn change_view(&self, old_view: Option<&View>)
fn change_view(&self, old_view: Option<&View>)
sourcefn query_activatable(&self, iter: &TextIter, area: &Rectangle) -> bool
fn query_activatable(&self, iter: &TextIter, area: &Rectangle) -> bool
sourcefn activate(
&self,
iter: &TextIter,
area: &Rectangle,
button: u32,
state: ModifierType,
n_presses: i32,
)
fn activate( &self, iter: &TextIter, area: &Rectangle, button: u32, state: ModifierType, n_presses: i32, )
Emits the activate
signal of the renderer. This is
called from Gutter
and should never have to be called manually.
§iter
a #GtkTextIter at the start of the line where the renderer is activated
§area
a #GdkRectangle of the cell area where the renderer is activated
§button
the button that was pressed
§state
a #GdkModifierType
§n_presses
the number of button presses
fn snapshot_line(&self, snapshot: &Snapshot, lines: &GutterLines, line: u32)
Object Safety§
This trait is not object safe.