GutterRendererText

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Create a new #GtkSourceGutterRendererText.

Members

Functions

measure
void measure(string text, int width, int height)

Measures the text provided using the pango layout used by the #GtkSourceGutterRendererText.

measureMarkup
void measureMarkup(string markup, int width, int height)

Measures the pango markup provided using the pango layout used by the #GtkSourceGutterRendererText.

self
GutterRendererText self()

Returns this, for use in with statements.

setMarkup
void setMarkup(string markup)
setText
void setText(string text)

Properties

_gType
GType _gType [@property getter]
markup
string markup [@property getter]
markup
string markup [@property setter]
text
string text [@property getter]
text
string text [@property setter]

Static functions

_getGType
GType _getGType()
builder
GutterRendererTextGidBuilder builder()

Get builder for gtksource.gutter_renderer_text.GutterRendererText

Inherited Members

From GutterRenderer

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
GutterRenderer self()

Returns this, for use in with statements.

builder
GutterRendererGidBuilder builder()

Get builder for gtksource.gutter_renderer.GutterRenderer

alignmentMode
gtksource.types.GutterRendererAlignmentMode alignmentMode [@property getter]

Get alignmentMode property.

alignmentMode
gtksource.types.GutterRendererAlignmentMode alignmentMode [@property setter]

Set alignmentMode property.

backgroundRgba
gdk.rgba.RGBA backgroundRgba [@property getter]
backgroundRgba
gdk.rgba.RGBA backgroundRgba [@property setter]
backgroundSet
bool backgroundSet [@property getter]
backgroundSet
bool backgroundSet [@property setter]
size
int size [@property getter]
size
int size [@property setter]
view
gtk.text_view.TextView view [@property getter]

Get view property.

visible
bool visible [@property getter]

Get visible property.

visible
bool visible [@property setter]

Set visible property.

windowType
gtk.types.TextWindowType windowType [@property getter]

Get windowType property.

xalign
float xalign [@property getter]

Get xalign property.

xalign
float xalign [@property setter]

Set xalign property.

xpad
int xpad [@property getter]

Get xpad property.

xpad
int xpad [@property setter]

Set xpad property.

yalign
float yalign [@property getter]

Get yalign property.

yalign
float yalign [@property setter]

Set yalign property.

ypad
int ypad [@property getter]

Get ypad property.

ypad
int ypad [@property setter]

Set ypad property.

activate
void activate(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle area, gdk.event.Event event)

Emits the #GtkSourceGutterRenderer::activate signal of the renderer. This is called from #GtkSourceGutter and should never have to be called manually.

begin
void begin(cairo.context.Context cr, gdk.rectangle.Rectangle backgroundArea, gdk.rectangle.Rectangle cellArea, gtk.text_iter.TextIter start, gtk.text_iter.TextIter end)

Called when drawing a region begins. The region to be drawn is indicated by start and end. The purpose is to allow the implementation to precompute some state before the draw method is called for each cell.

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).

end
void end()

Called when drawing a region of lines has ended.

getAlignment
void getAlignment(float xalign, float yalign)

Get the x-alignment and y-alignment of the gutter renderer.

getAlignmentMode
gtksource.types.GutterRendererAlignmentMode getAlignmentMode()

Get the alignment mode. The alignment mode describes the manner in which the renderer is aligned (see :xalign and :yalign).

getBackground
bool getBackground(gdk.rgba.RGBA color)

Get the background color of the renderer.

getPadding
void getPadding(int xpad, int ypad)

Get the x-padding and y-padding of the gutter renderer.

getSize
int getSize()

Get the size of the renderer.

getView
gtk.text_view.TextView getView()

Get the view associated to the gutter renderer

getVisible
bool getVisible()

Get whether the gutter renderer is visible.

getWindowType
gtk.types.TextWindowType getWindowType()

Get the #GtkTextWindowType associated with the gutter renderer.

queryActivatable
bool queryActivatable(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle area, gdk.event.Event event)

Get whether the renderer is activatable at the location in event. This is called from #GtkSourceGutter to determine whether a renderer is activatable using the mouse pointer.

queryData
void queryData(gtk.text_iter.TextIter start, gtk.text_iter.TextIter end, gtksource.types.GutterRendererState state)

Emit the #GtkSourceGutterRenderer::query-data signal. This function is called to query for data just before rendering a cell. This is called from the #GtkSourceGutter. Implementations can override the default signal handler or can connect a signal handler externally to the #GtkSourceGutterRenderer::query-data signal.

queryTooltip
bool queryTooltip(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle area, int x, int y, gtk.tooltip.Tooltip tooltip)

Emits the #GtkSourceGutterRenderer::query-tooltip signal. This function is called from #GtkSourceGutter. Implementations can override the default signal handler or can connect to the signal externally.

queueDraw
void queueDraw()

Emits the #GtkSourceGutterRenderer::queue-draw signal of the renderer. Call this from an implementation to inform that the renderer has changed such that it needs to redraw.

setAlignment
void setAlignment(float xalign, float yalign)

Set the alignment of the gutter renderer. Both xalign and yalign can be -1, which means the values will not be changed (this allows changing only one of the values).

setAlignmentMode
void setAlignmentMode(gtksource.types.GutterRendererAlignmentMode mode)

Set the alignment mode. The alignment mode describes the manner in which the renderer is aligned (see :xalign and :yalign).

setBackground
void setBackground(gdk.rgba.RGBA color)

Set the background color of the renderer. If color is set to null, the renderer will not have a background color.

setPadding
void setPadding(int xpad, int ypad)

Set the padding of the gutter renderer. Both xpad and ypad can be -1, which means the values will not be changed (this allows changing only one of the values).

setSize
void setSize(int size)

Sets the size of the renderer. A value of -1 specifies that the size is to be determined dynamically.

setVisible
void setVisible(bool visible)

Set whether the gutter renderer is visible.

connectActivate
gulong connectActivate(T callback, Flag!"After" after)

Connect to Activate signal.

connectQueryActivatable
gulong connectQueryActivatable(T callback, Flag!"After" after)

Connect to QueryActivatable signal.

connectQueryData
gulong connectQueryData(T callback, Flag!"After" after)

Connect to QueryData signal.

connectQueryTooltip
gulong connectQueryTooltip(T callback, Flag!"After" after)

Connect to QueryTooltip signal.

connectQueueDraw
gulong connectQueueDraw(T callback, Flag!"After" after)

Connect to QueueDraw signal.