GtkSource.MarkAttributes¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The background |
||
r/w |
The |
||
r/w |
The icon name |
||
r/w |
The pixbuf |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The code should connect to this signal to provide a tooltip for given mark. |
|
The code should connect to this signal to provide a tooltip for given mark. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GtkSource.MarkAttributes(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new source mark attributes.
- Return type:
Creates a new source mark attributes.
- get_background()¶
- Returns:
whether background color for self was set.
- background:
a
Gdk.RGBA
.
- Return type:
Stores background color in background.
- get_gicon()¶
- Returns:
An icon. The icon belongs to self and should not be unreffed.
- Return type:
Gets a
Gio.Icon
to be used as a base for rendered icon. Note that the icon can beNone
if it wasn’t set earlier.
- get_icon_name()¶
- Returns:
An icon name. The string belongs to self and should not be freed.
- Return type:
Gets a name of an icon to be used as a base for rendered icon. Note that the icon name can be
None
if it wasn’t set earlier.
- get_pixbuf()¶
- Returns:
A pixbuf. The pixbuf belongs to self and should not be unreffed.
- Return type:
Gets a
GdkPixbuf.Pixbuf
to be used as a base for rendered icon. Note that the pixbuf can beNone
if it wasn’t set earlier.
- get_tooltip_markup(mark)¶
- Parameters:
mark (
GtkSource.Mark
) – aGtkSource.Mark
.- Returns:
A tooltip. The returned string should be freed by using
GLib.free
() when done with it.- Return type:
Queries for a tooltip by emitting a
GtkSource.MarkAttributes
::query-tooltip-markup
signal. The tooltip may contain a markup.
- get_tooltip_text(mark)¶
- Parameters:
mark (
GtkSource.Mark
) – aGtkSource.Mark
.- Returns:
A tooltip. The returned string should be freed by using
GLib.free
() when done with it.- Return type:
Queries for a tooltip by emitting a
GtkSource.MarkAttributes
::query-tooltip-text
signal. The tooltip is a plain text.
- render_icon(widget, size)¶
- Parameters:
widget (
Gtk.Widget
) – widget of which style settings may be used.size (
int
) – size of the rendered icon.
- Returns:
A rendered pixbuf. The pixbuf belongs to self and should not be unreffed.
- Return type:
Renders an icon of given size. The base of the icon is set by the last call to one of:
GtkSource.MarkAttributes.set_pixbuf
(),GtkSource.MarkAttributes.set_gicon
() orGtkSource.MarkAttributes.set_icon_name
(). size cannot be lower than 1.
- set_background(background)¶
-
Sets background color to the one given in background.
- set_gicon(gicon)¶
-
Sets an icon to be used as a base for rendered icon.
- set_icon_name(icon_name)¶
- Parameters:
icon_name (
str
) – name of an icon to be used.
Sets a name of an icon to be used as a base for rendered icon.
- set_pixbuf(pixbuf)¶
- Parameters:
pixbuf (
GdkPixbuf.Pixbuf
) – aGdkPixbuf.Pixbuf
to be used.
Sets a pixbuf to be used as a base for rendered icon.
Signal Details¶
- GtkSource.MarkAttributes.signals.query_tooltip_markup(mark_attributes, mark)¶
- Signal Name:
query-tooltip-markup
- Flags:
- Parameters:
mark_attributes (
GtkSource.MarkAttributes
) – The object which received the signalmark (
GtkSource.Mark
) – TheGtkSource.Mark
.
- Returns:
A tooltip. The string should be freed with
GLib.free
() when done with it.- Return type:
The code should connect to this signal to provide a tooltip for given mark. The tooltip can contain a markup.
- GtkSource.MarkAttributes.signals.query_tooltip_text(mark_attributes, mark)¶
- Signal Name:
query-tooltip-text
- Flags:
- Parameters:
mark_attributes (
GtkSource.MarkAttributes
) – The object which received the signalmark (
GtkSource.Mark
) – TheGtkSource.Mark
.
- Returns:
A tooltip. The string should be freed with
GLib.free
() when done with it.- Return type:
The code should connect to this signal to provide a tooltip for given mark. The tooltip should be just a plain text.
Property Details¶
- GtkSource.MarkAttributes.props.background¶
-
A color used for background of a line.
- GtkSource.MarkAttributes.props.icon_name¶
-
An icon name that may be a base of a rendered icon.
- GtkSource.MarkAttributes.props.pixbuf¶
- Name:
pixbuf
- Type:
- Default Value:
- Flags:
A
GdkPixbuf.Pixbuf
that may be a base of a rendered icon.