GtkSourceGutterRendererPixbuf

GtkSourceGutterRendererPixbuf — Renders a pixbuf in the gutter

Functions

Properties

GIcon * gicon Read / Write
gchar * icon-name Read / Write
GdkPixbuf * pixbuf Read / Write
gchar * stock-id Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkSourceGutterRenderer
            ╰── GtkSourceGutterRendererPixbuf

Includes

#include <gtksourceview/gtksource.h>

Description

A GtkSourceGutterRendererPixbuf can be used to render an image in a cell of GtkSourceGutter.

Functions

gtk_source_gutter_renderer_pixbuf_new ()

GtkSourceGutterRenderer *
gtk_source_gutter_renderer_pixbuf_new (void);

Create a new GtkSourceGutterRendererPixbuf.

Returns

A GtkSourceGutterRenderer.

[transfer full]


gtk_source_gutter_renderer_pixbuf_set_pixbuf ()

void
gtk_source_gutter_renderer_pixbuf_set_pixbuf
                               (GtkSourceGutterRendererPixbuf *renderer,
                                GdkPixbuf *pixbuf);

Parameters

renderer

a GtkSourceGutterRendererPixbuf

 

pixbuf

the pixbuf, or NULL.

[nullable]

gtk_source_gutter_renderer_pixbuf_get_pixbuf ()

GdkPixbuf *
gtk_source_gutter_renderer_pixbuf_get_pixbuf
                               (GtkSourceGutterRendererPixbuf *renderer);

Get the pixbuf of the renderer.

Parameters

Returns

a GdkPixbuf.

[transfer none]


gtk_source_gutter_renderer_pixbuf_set_stock_id ()

void
gtk_source_gutter_renderer_pixbuf_set_stock_id
                               (GtkSourceGutterRendererPixbuf *renderer,
                                const gchar *stock_id);

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.

Parameters

renderer

a GtkSourceGutterRendererPixbuf

 

stock_id

the stock id.

[nullable]

gtk_source_gutter_renderer_pixbuf_get_stock_id ()

const gchar *
gtk_source_gutter_renderer_pixbuf_get_stock_id
                               (GtkSourceGutterRendererPixbuf *renderer);

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.

Parameters

Returns

the stock id.


gtk_source_gutter_renderer_pixbuf_set_gicon ()

void
gtk_source_gutter_renderer_pixbuf_set_gicon
                               (GtkSourceGutterRendererPixbuf *renderer,
                                GIcon *icon);

Parameters

renderer

a GtkSourceGutterRendererPixbuf

 

icon

the icon, or NULL.

[nullable]

gtk_source_gutter_renderer_pixbuf_get_gicon ()

GIcon *
gtk_source_gutter_renderer_pixbuf_get_gicon
                               (GtkSourceGutterRendererPixbuf *renderer);

Get the gicon of the renderer

Parameters

Returns

a GIcon.

[transfer none]


gtk_source_gutter_renderer_pixbuf_set_icon_name ()

void
gtk_source_gutter_renderer_pixbuf_set_icon_name
                               (GtkSourceGutterRendererPixbuf *renderer,
                                const gchar *icon_name);

Parameters

renderer

a GtkSourceGutterRendererPixbuf

 

icon_name

the icon name, or NULL.

[nullable]

gtk_source_gutter_renderer_pixbuf_get_icon_name ()

const gchar *
gtk_source_gutter_renderer_pixbuf_get_icon_name
                               (GtkSourceGutterRendererPixbuf *renderer);

Types and Values

GtkSourceGutterRendererPixbuf

typedef struct _GtkSourceGutterRendererPixbuf GtkSourceGutterRendererPixbuf;

Property Details

The “gicon” property

  “gicon”                    GIcon *

The gicon.

Flags: Read / Write


The “icon-name” property

  “icon-name”                gchar *

The icon name.

Flags: Read / Write

Default value: NULL


The “pixbuf” property

  “pixbuf”                   GdkPixbuf *

The pixbuf.

Flags: Read / Write


The “stock-id” property

  “stock-id”                 gchar *

The stock id.

GtkSourceGutterRendererPixbuf:stock-id has been deprecated since version 3.10 and should not be used in newly-written code.

Don't use this property.

Flags: Read / Write

Default value: NULL

See Also

GtkSourceGutterRenderer, GtkSourceGutter