GutterRenderer.draw
void draw(cairo.context.Context cr, gdk.rectangle.Rectangle backgroundArea, gdk.rectangle.Rectangle cellArea, gtk.text_iter.TextIter start, gtk.text_iter.TextIter end, gtksource.types.GutterRendererState state)Main renderering method. Implementations should implement this method to draw onto the cairo context. The background_area indicates the total area of the cell to be drawn. The cell_area indicates the area where content can be drawn (text, images, etc).
The background_area is the cell_area plus the padding on each side (two times the #GtkSourceGutterRenderer:xpad horizontally and two times the #GtkSourceGutterRenderer:ypad vertically, so that the cell_area is centered inside background_area).
The state argument indicates the current state of the renderer and should be taken into account to properly draw the different possible states (cursor, prelit, selected) if appropriate.
Parameters
cr | the cairo render context |
backgroundArea | a #GdkRectangle indicating the total area to be drawn |
cellArea | a #GdkRectangle indicating the area to draw content |
start | a #GtkTextIter |
end | a #GtkTextIter |
state | a #GtkSourceGutterRendererState |