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(void* ptr, Flag!"Take" take)
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.

self
GutterRendererPixbuf self()

Returns this, for use in with statements.

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)

Properties

gType
GType gType [@property getter]
gicon
gio.icon.Icon gicon [@property getter]
gicon
gio.icon.Icon gicon [@property setter]
iconName
string iconName [@property getter]
iconName
string iconName [@property setter]
paintable
gdk.paintable.Paintable paintable [@property getter]
paintable
gdk.paintable.Paintable paintable [@property setter]
pixbuf
gdkpixbuf.pixbuf.Pixbuf pixbuf [@property getter]
pixbuf
gdkpixbuf.pixbuf.Pixbuf pixbuf [@property setter]

Static functions

getGType
GType getGType()

Inherited Members

From GutterRenderer

getGType
GType getGType()
gType
GType gType [@property getter]
self
GutterRenderer self()

Returns this, for use in with statements.

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

Get alignmentMode property.

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

Set alignmentMode property.

lines
gtksource.gutter_lines.GutterLines lines [@property getter]

Get lines property.

view
gtk.text_view.TextView view [@property getter]

Get view 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, 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.