SourceGutterRenderer
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_source_gutter_renderer_get_type ()" ) ]
[ GIR ( name = "GutterRenderer" ) ]
public abstract class SourceGutterRenderer : InitiallyUnowned
Content:
Properties:
- public SourceGutterRendererAlignmentMode alignment_mode { get; set construct; }
The alignment mode of the renderer.
- public RGBA background_rgba { owned get; set; }
- public bool background_set { get; set construct; }
- public int size { get; set construct; }
- public TextView view { get; }
The view on which the renderer is placed.
- public bool visible { get; set construct; }
The visibility of the renderer.
- public TextWindowType window_type { get; }
The window type of the view on which the renderer is placed (left, or
right).
- public float xalign { get; set construct; }
The horizontal alignment of the renderer.
- public int xpad { get; set construct; }
The left and right padding of the renderer.
- public float yalign { get; set construct; }
The vertical alignment of the renderer.
- public int ypad { get; set construct; }
The top and bottom padding of the renderer.
Creation methods:
Methods:
- public virtual void begin (Context cr, Rectangle background_area, Rectangle cell_area, TextIter start, TextIter end)
Called when drawing a region begins.
- public virtual void change_buffer (TextBuffer? old_buffer)
This is called when the text buffer changes for
this.
- public virtual void change_view (TextView? old_view)
This is called when the text view changes for
this.
- public virtual void draw (Context cr, Rectangle background_area, Rectangle cell_area, TextIter start, TextIter end, SourceGutterRendererState state)
Main renderering method.
- public virtual void end ()
Called when drawing a region of lines has ended.
- public void get_alignment (out float xalign, out float yalign)
Get the x-alignment and y-alignment of the gutter renderer.
- public SourceGutterRendererAlignmentMode get_alignment_mode ()
Get the alignment mode.
- public bool get_background (out RGBA color)
Get the background color of the renderer.
- public void get_padding (out int xpad, out int ypad)
Get the x-padding and y-padding of the gutter renderer.
- public int get_size ()
Get the size of the renderer.
- public unowned TextView get_view ()
Get the view associated to the gutter renderer
- public bool get_visible ()
Get whether the gutter renderer is visible.
- public TextWindowType get_window_type ()
Get the TextWindowType associated with the
gutter renderer.
- public void set_alignment (float xalign, float yalign)
Set the alignment of the gutter renderer.
- public void set_alignment_mode (SourceGutterRendererAlignmentMode mode)
Set the alignment mode.
- public void set_background (RGBA? color)
Set the background color of the renderer.
- public void set_padding (int xpad, int ypad)
Set the padding of the gutter renderer.
- public void set_size (int size)
Sets the size of the renderer.
- public void set_visible (bool visible)
Set whether the gutter renderer is visible.
Signals:
- public virtual signal void activate (TextIter iter, Rectangle area, Event event)
The activate signal is emitted when the
renderer is activated.
- public virtual signal bool query_activatable (TextIter iter, Rectangle area, Event event)
The query_activatable signal is emitted
when the renderer can possibly be activated.
- public virtual signal void query_data (TextIter start, TextIter end, SourceGutterRendererState state)
The query_data signal is emitted when the
renderer needs to be filled with data just before a cell is drawn.
- public virtual signal bool query_tooltip (TextIter iter, Rectangle area, int x, int y, Tooltip tooltip)
The query_tooltip signal is emitted when
the renderer can show a tooltip.
- public virtual signal void queue_draw ()
The queue_draw signal is emitted when the
renderer needs to be redrawn.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref