Trait GutterRendererExt

Source
pub trait GutterRendererExt: 'static {
Show 50 methods // Required methods fn activate( &self, iter: &mut TextIter, area: &mut Rectangle, event: &mut Event, ); fn begin( &self, cr: &Context, background_area: &mut Rectangle, cell_area: &mut Rectangle, start: &mut TextIter, end: &mut TextIter, ); fn draw( &self, cr: &Context, background_area: &mut Rectangle, cell_area: &mut Rectangle, start: &mut TextIter, end: &mut TextIter, state: GutterRendererState, ); fn end(&self); fn get_alignment(&self) -> (f32, f32); fn get_alignment_mode(&self) -> GutterRendererAlignmentMode; fn get_background(&self) -> Option<RGBA>; fn get_padding(&self) -> (i32, i32); fn get_size(&self) -> i32; fn get_view(&self) -> Option<TextView>; fn get_visible(&self) -> bool; fn get_window_type(&self) -> TextWindowType; fn query_activatable( &self, iter: &mut TextIter, area: &mut Rectangle, event: &mut Event, ) -> bool; fn query_data( &self, start: &mut TextIter, end: &mut TextIter, state: GutterRendererState, ); fn query_tooltip( &self, iter: &mut TextIter, area: &mut Rectangle, x: i32, y: i32, tooltip: &Tooltip, ) -> bool; fn queue_draw(&self); fn set_alignment(&self, xalign: f32, yalign: f32); fn set_alignment_mode(&self, mode: GutterRendererAlignmentMode); fn set_background(&self, color: Option<&RGBA>); fn set_padding(&self, xpad: i32, ypad: i32); fn set_size(&self, size: i32); fn set_visible(&self, visible: bool); fn get_property_background_rgba(&self) -> Option<RGBA>; fn set_property_background_rgba(&self, background_rgba: Option<&RGBA>); fn get_property_background_set(&self) -> bool; fn set_property_background_set(&self, background_set: bool); fn get_property_xalign(&self) -> f32; fn set_property_xalign(&self, xalign: f32); fn get_property_xpad(&self) -> i32; fn set_property_xpad(&self, xpad: i32); fn get_property_yalign(&self) -> f32; fn set_property_yalign(&self, yalign: f32); fn get_property_ypad(&self) -> i32; fn set_property_ypad(&self, ypad: i32); fn connect_activate<F: Fn(&Self, &TextIter, &Rectangle, &Event) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_query_activatable<F: Fn(&Self, &TextIter, &Rectangle, &Event) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_query_data<F: Fn(&Self, &TextIter, &TextIter, GutterRendererState) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_query_tooltip<F: Fn(&Self, &TextIter, &Rectangle, i32, i32, &Tooltip) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_queue_draw<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_alignment_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_view_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_window_type_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_xalign_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_xpad_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_yalign_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_ypad_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn activate(&self, iter: &mut TextIter, area: &mut Rectangle, event: &mut Event)

Source

fn begin( &self, cr: &Context, background_area: &mut Rectangle, cell_area: &mut Rectangle, start: &mut TextIter, end: &mut TextIter, )

Source

fn draw( &self, cr: &Context, background_area: &mut Rectangle, cell_area: &mut Rectangle, start: &mut TextIter, end: &mut TextIter, state: GutterRendererState, )

Source

fn end(&self)

Source

fn get_alignment(&self) -> (f32, f32)

Source

fn get_alignment_mode(&self) -> GutterRendererAlignmentMode

Source

fn get_background(&self) -> Option<RGBA>

Source

fn get_padding(&self) -> (i32, i32)

Source

fn get_size(&self) -> i32

Source

fn get_view(&self) -> Option<TextView>

Source

fn get_visible(&self) -> bool

Source

fn get_window_type(&self) -> TextWindowType

Source

fn query_activatable( &self, iter: &mut TextIter, area: &mut Rectangle, event: &mut Event, ) -> bool

Source

fn query_data( &self, start: &mut TextIter, end: &mut TextIter, state: GutterRendererState, )

Source

fn query_tooltip( &self, iter: &mut TextIter, area: &mut Rectangle, x: i32, y: i32, tooltip: &Tooltip, ) -> bool

Source

fn queue_draw(&self)

Source

fn set_alignment(&self, xalign: f32, yalign: f32)

Source

fn set_alignment_mode(&self, mode: GutterRendererAlignmentMode)

Source

fn set_background(&self, color: Option<&RGBA>)

Source

fn set_padding(&self, xpad: i32, ypad: i32)

Source

fn set_size(&self, size: i32)

Source

fn set_visible(&self, visible: bool)

Source

fn get_property_background_rgba(&self) -> Option<RGBA>

Source

fn set_property_background_rgba(&self, background_rgba: Option<&RGBA>)

Source

fn get_property_background_set(&self) -> bool

Source

fn set_property_background_set(&self, background_set: bool)

Source

fn get_property_xalign(&self) -> f32

Source

fn set_property_xalign(&self, xalign: f32)

Source

fn get_property_xpad(&self) -> i32

Source

fn set_property_xpad(&self, xpad: i32)

Source

fn get_property_yalign(&self) -> f32

Source

fn set_property_yalign(&self, yalign: f32)

Source

fn get_property_ypad(&self) -> i32

Source

fn set_property_ypad(&self, ypad: i32)

Source

fn connect_activate<F: Fn(&Self, &TextIter, &Rectangle, &Event) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_query_activatable<F: Fn(&Self, &TextIter, &Rectangle, &Event) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

Source

fn connect_query_tooltip<F: Fn(&Self, &TextIter, &Rectangle, i32, i32, &Tooltip) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_property_ypad_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", so this trait is not object safe.

Implementors§