Gtk.TextAttributes¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
appearance |
r/w |
|
|
bg_full_height |
r/w |
Background is fit to full line height rather than baseline +/- ascent/descent (font height). |
|
direction |
r/w |
|
|
editable |
r/w |
Can edit this text. |
|
font |
r/w |
|
|
font_scale |
r/w |
Font scale factor. |
|
indent |
r/w |
Amount to indent the paragraph, in pixels. |
|
invisible |
r/w |
Hide the text. |
|
justification |
r/w |
|
|
language |
r/w |
|
|
left_margin |
r/w |
Width of the left margin in pixels. |
|
letter_spacing |
r/w |
Extra space to insert between graphemes, in Pango units |
|
no_fallback |
r/w |
Whether to disable font fallback. |
|
pg_bg_color |
r |
||
pg_bg_rgba |
r |
||
pixels_above_lines |
r/w |
Pixels of blank space above paragraphs. |
|
pixels_below_lines |
r/w |
Pixels of blank space below paragraphs. |
|
pixels_inside_wrap |
r/w |
Pixels of blank space between wrapped lines in a paragraph. |
|
refcount |
r |
||
right_margin |
r/w |
Width of the right margin in pixels. |
|
tabs |
r/w |
Custom |
|
wrap_mode |
r/w |
|
Methods¶
class |
|
|
|
|
|
|
|
|
Details¶
- class Gtk.TextAttributes¶
Using
Gtk.TextAttributes
directly should rarely be necessary. It’s primarily useful withGtk.TextIter.get_attributes
(). As with most GTK+ structs, the fields in this struct should only be read, never modified directly.- classmethod new()[source]¶
- Returns:
a new
Gtk.TextAttributes
, free withGtk.TextAttributes.unref
().- Return type:
Creates a
Gtk.TextAttributes
, which describes a set of properties on some text.
- copy()[source]¶
- Returns:
a copy of self, free with
Gtk.TextAttributes.unref
()- Return type:
Copies self and returns a new
Gtk.TextAttributes
.
- copy_values(dest)[source]¶
- Parameters:
dest (
Gtk.TextAttributes
) – anotherGtk.TextAttributes
Copies the values from self to dest so that dest has the same values as self. Frees existing values in dest.
- ref()[source]¶
- Returns:
the
Gtk.TextAttributes
that were passed in- Return type:
Increments the reference count on self.