GOffice.Style¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37), GOffice.Persist (2) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | context_from_selector(parent, selector) | 
| class | new() | 
| apply_theme(src, fields) | |
| assign(src) | |
| clear_auto() | |
| dup() | |
| fill(cr, preserve) | |
| force_auto() | |
| get_editor(default_style, cc, object_with_style) | |
| get_marker() | |
| is_auto() | |
| is_different_size(b) | |
| is_fill_visible() | |
| is_line_visible() | |
| is_marker_visible() | |
| is_outline_visible() | |
| populate_editor(editor, default_style, cc, object_with_style, watch_for_external_change) | |
| set_cairo_line(cr) | |
| set_fill_brightness(brightness) | |
| set_font(font) | |
| set_font_desc(desc) | |
| set_marker(marker) | |
| set_text_angle(angle) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| base | GObject.Object | r | |
| disable_theming | GOffice.StyleFlag | r | |
| interesting_fields | GOffice.StyleFlag | r | |
| line | GOffice.StyleLine | r | |
| marker | GOffice.StyleMark | r | 
Class Details¶
- 
class GOffice.Style(**kwargs)¶
- Bases: - GObject.Object,- GOffice.Persist- Abstract: - No - 
classmethod context_from_selector(parent, selector)¶
- Parameters: - parent (Gtk.StyleContextorNone) – style context for container
- selector (str) – a css selector
 - Returns: - a new style context. - Return type: 
- parent (
 - 
classmethod new()¶
- Return type: - GOffice.Style
 - 
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) 
- src (
 - 
assign(src)¶
- Parameters: - src ( - GOffice.Style) –
 - 
dup()¶
- Returns: - a new - GOffice.Style- Return type: - GOffice.Style- Duplicates self. 
 - 
fill(cr, preserve)¶
- Parameters: - cr (cairo.Context) –
- preserve (bool) –
 
- cr (
 - 
get_editor(default_style, cc, object_with_style)¶
- Parameters: - default_style (GOffice.Style) – the style used as default
- cc (GOffice.CmdContext) –GOffice.CmdContext
- object_with_style (GObject.Object) – the object owning the style
 - Returns: - the style editor - Return type: - Builds the widget used to edit the style. 
- default_style (
 - 
get_marker()¶
- Returns: - the style - GOffice.Marker.- Return type: - GOffice.Marker- Accessor for self - ::marker, without referencing it.
 - 
is_different_size(b)¶
- Parameters: - b ( - GOffice.Style) –- Return type: - bool
 - 
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) –
 
- editor (
 - 
set_cairo_line(cr)¶
- Parameters: - cr ( - cairo.Context) –- Return type: - bool
 - 
set_font(font)¶
- Parameters: - font ( - GOffice.Font) – new- GOffice.font- Set text - GOffice.fontused by the style.
 - 
set_font_desc(desc)¶
- Parameters: - desc ( - Pango.FontDescription) – new- GOffice.fontdescription to use- Set text - GOffice.fontused by the style.
 - 
set_marker(marker)¶
- Parameters: - marker ( - GOffice.Marker) –- GOffice.Marker- Absorb a reference to marker and assign it to self. 
 
- 
classmethod