MarkAttributes
Superclasses: Object
- Constructors:
MarkAttributes(**properties)
new() -> GtkSource.MarkAttributes
Constructors
- class MarkAttributes
- classmethod new() MarkAttributes
Creates a new source mark attributes.
Methods
- class MarkAttributes
-
- get_gicon() Icon
Gets a
Icon
to be used as a base for rendered icon.Note that the icon can be
None
if it wasn’t set earlier.
- get_icon_name() str
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() Pixbuf
Gets a
Pixbuf
to be used as a base for rendered icon.Note that the pixbuf can be
None
if it wasn’t set earlier.
- get_tooltip_markup(mark: Mark) str
Queries for a tooltip by emitting a
query_tooltip_markup
signal.The tooltip may contain a markup.
- Parameters:
mark – a
Mark
.
- get_tooltip_text(mark: Mark) str
Queries for a tooltip by emitting a
query_tooltip_text
signal.The tooltip is a plain text.
- Parameters:
mark – a
Mark
.
- render_icon(widget: Widget, size: int) Paintable
Renders an icon of given size.
The base of the icon is set by the last call to one of:
set_pixbuf
set_gicon
set_icon_name
size
cannot be lower than 1.- Parameters:
widget – widget of which style settings may be used.
size – size of the rendered icon.
- set_background(background: RGBA) None
Sets background color to the one given in
background
.- Parameters:
background – a
RGBA
.
- set_gicon(gicon: Icon) None
Sets an icon to be used as a base for rendered icon.
- Parameters:
gicon – a
Icon
to be used.