GOffice.Style

g GObject.GInterface GObject.GInterface GOffice.Persist GOffice.Persist GObject.GInterface->GOffice.Persist GObject.Object GObject.Object GOffice.Style GOffice.Style GObject.Object->GOffice.Style GOffice.Persist->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:
Returns:

a new style context.

Return type:

Gtk.StyleContext

classmethod new()
Return type:GOffice.Style
apply_theme(src, fields)
Parameters:

Merge the attributes from src onto the elements of self that were not user assigned (is_auto)

assign(src)
Parameters:src (GOffice.Style) –
clear_auto()

Sets all auto fields in self to False.

dup()
Returns:a new GOffice.Style
Return type:GOffice.Style

Duplicates self.

fill(cr, preserve)
Parameters:
force_auto()

Sets all auto fields in self to True.

get_editor(default_style, cc, object_with_style)
Parameters:
Returns:

the style editor

Return type:

object or None

Builds the widget used to edit the style.

get_marker()
Returns:the style GOffice.Marker.
Return type:GOffice.Marker

Accessor for self::marker, without referencing it.

is_auto()
Return type:bool
is_different_size(b)
Parameters:b (GOffice.Style) –
Return type:bool
is_fill_visible()
Return type:bool
is_line_visible()
Return type:bool
is_marker_visible()
Return type:bool
is_outline_visible()
Return type:bool
populate_editor(editor, default_style, cc, object_with_style, watch_for_external_change)
Parameters:
set_cairo_line(cr)
Parameters:cr (cairo.Context) –
Return type:bool
set_fill_brightness(brightness)
Parameters:brightness (float) –
set_font(font)
Parameters:font (GOffice.Font) – new GOffice.font

Set text GOffice.font used by the style.

set_font_desc(desc)
Parameters:desc (Pango.FontDescription) – new GOffice.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.

set_text_angle(angle)
Parameters:angle (float) – text rotation in degrees

Set text rotation angle in degrees. Valid values are in the range [-180.0° , 180.0°].