GOffice.Style¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
base |
r |
||
disable_theming |
r |
||
interesting_fields |
r |
||
line |
r |
||
marker |
r |
Class Details¶
- class GOffice.Style(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod context_from_selector(parent, selector)¶
- Parameters:
parent (
Gtk.StyleContext
orNone
) – style context for containerselector (
str
) – a css selector
- Returns:
a new style context.
- Return type:
- classmethod new()¶
- Return type:
- apply_theme(src, fields)¶
- Parameters:
src (
GOffice.Style
) –GOffice.Style
fields (
GOffice.StyleFlag
) – the fields to which the copy should be limited
Merge the attributes from src onto the elements of self that were not user assigned (is_auto)
- assign(src)¶
- Parameters:
src (
GOffice.Style
) –
- dup()¶
- Returns:
a new
GOffice.Style
- Return type:
Duplicates self.
- fill(cr, preserve)¶
- Parameters:
cr (
cairo.Context
) –preserve (
bool
) –
- get_editor(default_style, cc, object_with_style)¶
- Parameters:
default_style (
GOffice.Style
) – the style used as defaultobject_with_style (
GObject.Object
) – the object owning the style
- Returns:
the style editor
- Return type:
Builds the widget used to edit the style.
- get_marker()¶
- Returns:
the style
GOffice.Marker
.- Return type:
Accessor for self
::marker
, without referencing it.
- is_different_size(b)¶
- Parameters:
b (
GOffice.Style
) –- Return type:
- populate_editor(editor, default_style, cc, object_with_style, watch_for_external_change)¶
- Parameters:
editor (
GOffice.Editor
) –default_style (
GOffice.Style
) –cc (
GOffice.CmdContext
) –object_with_style (
GObject.Object
) –watch_for_external_change (
bool
) –
- set_cairo_line(cr)¶
- Parameters:
cr (
cairo.Context
) –- Return type:
- set_font(font)¶
- Parameters:
font (
GOffice.Font
) – newGOffice.font
Set text
GOffice.font
used by the style.
- set_font_desc(desc)¶
- Parameters:
desc (
Pango.FontDescription
) – newGOffice.font
description to use
Set text
GOffice.font
used by the style.
- set_marker(marker)¶
- Parameters:
marker (
GOffice.Marker
) –GOffice.Marker
Absorb a reference to marker and assign it to self.