SourceGutterRendererPixbuf

Constructors

this
this(GtkSourceGutterRendererPixbuf* gtkSourceGutterRendererPixbuf)

Sets our main struct and passes it to the parent class

this
this()

Create a new GtkSourceGutterRendererPixbuf.

Members

Functions

getGicon
IconIF getGicon()

Get the gicon of the renderer

getIconName
string getIconName()
getPixbuf
Pixbuf getPixbuf()

Get the pixbuf of the renderer.

getSourceGutterRendererPixbufStruct
GtkSourceGutterRendererPixbuf* getSourceGutterRendererPixbufStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStockId
string getStockId()

Warning gtk_source_gutter_renderer_pixbuf_get_stock_id has been deprecated since version 3.10 and should not be used in newly-written code. Don't use this function.

getStruct
void* getStruct()

the main Gtk struct as a void*

setGicon
void setGicon(IconIF icon)
setIconName
void setIconName(string iconName)
setPixbuf
void setPixbuf(Pixbuf pixbuf)
setStockId
void setStockId(StockID stockId)
setStockId
void setStockId(string stockId)

Warning gtk_source_gutter_renderer_pixbuf_set_stock_id has been deprecated since version 3.10 and should not be used in newly-written code. Don't use this function.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gtkSourceGutterRendererPixbuf
GtkSourceGutterRendererPixbuf* gtkSourceGutterRendererPixbuf;

the main Gtk struct

Inherited Members

From SourceGutterRenderer

gtkSourceGutterRenderer
GtkSourceGutterRenderer* gtkSourceGutterRenderer;

the main Gtk struct

getSourceGutterRendererStruct
GtkSourceGutterRenderer* getSourceGutterRendererStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
connectedSignals
int[string] connectedSignals;
onActivateListeners
void delegate(TextIter, GdkRectangle*, Event, SourceGutterRenderer)[] onActivateListeners;
Undocumented in source.
addOnActivate
void addOnActivate(void delegate(TextIter, GdkRectangle*, Event, SourceGutterRenderer) dlg, ConnectFlags connectFlags)

The ::activate signal is emitted when the renderer is activated.

callBackActivate
void callBackActivate(GtkSourceGutterRenderer* rendererStruct, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event, SourceGutterRenderer _sourceGutterRenderer)
Undocumented in source. Be warned that the author may not have intended to support it.
onQueryActivatableListeners
bool delegate(TextIter, GdkRectangle*, Event, SourceGutterRenderer)[] onQueryActivatableListeners;
Undocumented in source.
addOnQueryActivatable
void addOnQueryActivatable(bool delegate(TextIter, GdkRectangle*, Event, SourceGutterRenderer) dlg, ConnectFlags connectFlags)

The ::query-activatable signal is emitted when the renderer can possibly be activated.

callBackQueryActivatable
gboolean callBackQueryActivatable(GtkSourceGutterRenderer* rendererStruct, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event, SourceGutterRenderer _sourceGutterRenderer)
Undocumented in source. Be warned that the author may not have intended to support it.
onQueryDataListeners
void delegate(TextIter, TextIter, GtkSourceGutterRendererState, SourceGutterRenderer)[] onQueryDataListeners;
Undocumented in source.
addOnQueryData
void addOnQueryData(void delegate(TextIter, TextIter, GtkSourceGutterRendererState, SourceGutterRenderer) dlg, ConnectFlags connectFlags)

The ::query-data signal is emitted when the renderer needs to be filled with data just before a cell is drawn. This can be used by general renderer implementations to allow render data to be filled in externally.

callBackQueryData
void callBackQueryData(GtkSourceGutterRenderer* rendererStruct, GtkTextIter* start, GtkTextIter* end, GtkSourceGutterRendererState state, SourceGutterRenderer _sourceGutterRenderer)
Undocumented in source. Be warned that the author may not have intended to support it.
onQueryTooltipListeners
bool delegate(TextIter, GdkRectangle*, gint, gint, Tooltip, SourceGutterRenderer)[] onQueryTooltipListeners;
Undocumented in source.
addOnQueryTooltip
void addOnQueryTooltip(bool delegate(TextIter, GdkRectangle*, gint, gint, Tooltip, SourceGutterRenderer) dlg, ConnectFlags connectFlags)

The ::query-tooltip signal is emitted when the renderer can show a tooltip.

callBackQueryTooltip
gboolean callBackQueryTooltip(GtkSourceGutterRenderer* rendererStruct, GtkTextIter* iter, GdkRectangle* area, gint x, gint y, GtkTooltip* tooltip, SourceGutterRenderer _sourceGutterRenderer)
Undocumented in source. Be warned that the author may not have intended to support it.
onQueueDrawListeners
void delegate(SourceGutterRenderer)[] onQueueDrawListeners;
Undocumented in source.
addOnQueueDraw
void addOnQueueDraw(void delegate(SourceGutterRenderer) dlg, ConnectFlags connectFlags)

The ::queue-draw signal is emitted when the renderer needs to be redrawn. Use gtk_source_gutter_renderer_queue_draw() to emit this signal from an implementation of the GtkSourceGutterRenderer interface.

callBackQueueDraw
void callBackQueueDraw(GtkSourceGutterRenderer* rendererStruct, SourceGutterRenderer _sourceGutterRenderer)
Undocumented in source. Be warned that the author may not have intended to support it.
begin
void begin(Context cr, Rectangle backgroundArea, Rectangle cellArea, TextIter start, 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(Context cr, Rectangle backgroundArea, Rectangle cellArea, TextIter start, TextIter end, GtkSourceGutterRendererState state)

Main renderering method. Implementations should implement this method to draw onto the cairo context. The background_area indicates total area of the cell (without padding or margin) to be drawn. The cell_area indicates the area where content can be drawn (text, images, etc). 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.

end
void end()

Called when drawing a region of lines has ended.

getSize
int getSize()

Get the size of the renderer.

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(int visible)

Set whether the gutter renderer is visible.

getVisible
int getVisible()

Get whether the gutter renderer is visible.

getPadding
void getPadding(int xpad, int ypad)

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

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

getAlignment
void getAlignment(float xalign, float yalign)

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

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(GtkSourceGutterRendererAlignmentMode mode)

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

getWindowType
GtkTextWindowType getWindowType()

Get the GtkTextWindowType associated with the gutter renderer.

getView
TextView getView()

Get the view associated to the gutter renderer

getAlignmentMode
GtkSourceGutterRendererAlignmentMode getAlignmentMode()

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

getBackground
int getBackground(RGBA color)

Get the background color of the renderer.

setBackground
void setBackground(RGBA color)

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

activate
void activate(TextIter iter, Rectangle area, Event event)

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

queryActivatable
int queryActivatable(TextIter iter, Rectangle area, 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.

queueDraw
void queueDraw()

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

queryTooltip
int queryTooltip(TextIter iter, Rectangle area, int x, int y, Tooltip tooltip)

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

queryData
void queryData(TextIter start, TextIter end, GtkSourceGutterRendererState state)

Emit the ::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 ::query-data signal.

Meta