Class: GOffice::Style
- Inherits:
-
Object
- Object
- GOffice::Style
- Defined in:
- (unknown)
Class Method Summary collapse
-
.context_from_selector(parent, selector) ⇒ Gtk::StyleContext
A new style context.
Instance Method Summary collapse
-
#apply_theme(src, fields) ⇒ nil
Merge the attributes from src onto the elements of dst that were not user assigned (is_auto).
- #assign(src) ⇒ nil
- #cairo_line=(cr) ⇒ Boolean
-
#clear_auto ⇒ nil
Sets all auto fields in style to false.
-
#dup ⇒ GOffice::Style
Duplicates style.
- #fill(cr, preserve) ⇒ nil
- #fill_brightness=(brightness) ⇒ nil
-
#font=(font) ⇒ nil
Set text font used by the style.
-
#font_desc=(desc) ⇒ nil
Set text font used by the style.
-
#force_auto ⇒ nil
Sets all auto fields in style to true.
-
#get_editor(default_style, cc, object_with_style) ⇒ GObject
Builds the widget used to edit the style.
- #initialize ⇒ GOffice::Style constructor
- #is_auto ⇒ Boolean
- #is_different_size(b) ⇒ Boolean
- #is_fill_visible ⇒ Boolean
- #is_line_visible ⇒ Boolean
- #is_marker_visible ⇒ Boolean
- #is_outline_visible ⇒ Boolean
-
#marker ⇒ GOffice::Marker
Accessor for style::marker, without referencing it.
-
#marker=(marker) ⇒ nil
Absorb a reference to marker and assign it to style.
- #populate_editor(editor, default_style, cc, object_with_style, watch_for_external_change) ⇒ nil
-
#text_angle=(angle) ⇒ nil
Set text rotation angle in degrees.
Constructor Details
#initialize ⇒ GOffice::Style
Class Method Details
.context_from_selector(parent, selector) ⇒ Gtk::StyleContext
Returns a new style context.
Instance Method Details
#apply_theme(src, fields) ⇒ nil
Merge the attributes from src onto the elements of dst that were not user assigned (is_auto)
#assign(src) ⇒ nil
#cairo_line=(cr) ⇒ Boolean
#clear_auto ⇒ nil
Sets all auto fields in style to false.
#dup ⇒ GOffice::Style
Duplicates style.
#fill(cr, preserve) ⇒ nil
#fill_brightness=(brightness) ⇒ nil
#font=(font) ⇒ nil
Set text font used by the style.
#font_desc=(desc) ⇒ nil
Set text font used by the style.
#force_auto ⇒ nil
Sets all auto fields in style to true.
#get_editor(default_style, cc, object_with_style) ⇒ GObject
Builds the widget used to edit the style.
#is_auto ⇒ Boolean
#is_different_size(b) ⇒ Boolean
#is_fill_visible ⇒ Boolean
#is_line_visible ⇒ Boolean
#is_marker_visible ⇒ Boolean
#is_outline_visible ⇒ Boolean
#marker ⇒ GOffice::Marker
Accessor for style::marker, without referencing it.
#marker=(marker) ⇒ nil
Absorb a reference to marker and assign it to style.
#populate_editor(editor, default_style, cc, object_with_style, watch_for_external_change) ⇒ nil
#text_angle=(angle) ⇒ nil
Set text rotation angle in degrees. Valid values are in the range [-180.0° , 180.0°].