GutterRendererPixbuf

Renders a pixbuf in the gutter.

A gtksource.gutter_renderer_pixbuf.GutterRendererPixbuf can be used to render an image in a cell of class@Gutter.

Constructors

this
this()

Create a new #GtkSourceGutterRendererPixbuf.

Members

Functions

getGicon
gio.icon.Icon getGicon()

Get the gicon of the renderer

getIconName
string getIconName()
getPaintable
gdk.paintable.Paintable getPaintable()

Gets a gdk.paintable.Paintable that was set with gtksource.gutter_renderer_pixbuf.GutterRendererPixbuf.setPaintable

getPixbuf
gdkpixbuf.pixbuf.Pixbuf getPixbuf()

Get the pixbuf of the renderer.

overlayPaintable
void overlayPaintable(gdk.paintable.Paintable paintable)

Allows overlaying a paintable on top of any other image that has been set for the pixbuf. This will be applied when the widget is next snapshot.

setGicon
void setGicon(gio.icon.Icon icon)
setIconName
void setIconName(string iconName)
setPaintable
void setPaintable(gdk.paintable.Paintable paintable)
setPixbuf
void setPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf)

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.