GutterRendererText

Renders text in the gutter.

A gtksource.gutter_renderer_text.GutterRendererText can be used to render text in a cell of class@Gutter.

Constructors

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.

setMarkup
void setMarkup(string markup, int length)
setText
void setText(string text, int length)

Inherited Members

From GutterRenderer

activate
void activate(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle area, uint button, gdk.types.ModifierType state, int nPresses)

Emits the signalGutterRenderer::activate signal of the renderer. This is called from classGutter and should never have to be called manually.

alignCell
void alignCell(uint line, float width, float height, float x, float y)

Locates where to render content that is width x height based on the renderers alignment and padding.

getAlignmentMode
gtksource.types.GutterRendererAlignmentMode getAlignmentMode()

Get the alignment mode.

getBuffer
gtksource.buffer.Buffer getBuffer()

Gets the classBuffer for which the gutter renderer is drawing.

getView
gtksource.view.View getView()

Get the view associated to the gutter renderer

getXalign
float getXalign()

Gets the xalign property.

getXpad
int getXpad()

Gets the xpad property.

getYalign
float getYalign()

Gets the yalign property.

getYpad
int getYpad()

Gets the ypad property.

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

Get whether the renderer is activatable at the location provided. This is called from classGutter to determine whether a renderer is activatable using the mouse pointer.

setAlignmentMode
void setAlignmentMode(gtksource.types.GutterRendererAlignmentMode mode)

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

setXalign
void setXalign(float xalign)

Adjusts the xalign property.

setXpad
void setXpad(int xpad)

Adjusts the xpad property.

setYalign
void setYalign(float yalign)

Adjusts the yalign property.

setYpad
void setYpad(int ypad)

Adjusts the ypad property.

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

Connect to Activate signal.

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

Connect to QueryActivatable signal.

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

Connect to QueryData signal.