Class: GOffice::Style

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGOffice::Style

Class Method Details

.context_from_selector(parent, selector) ⇒ Gtk::StyleContext

Returns a new style context.

Parameters:

  • parent (Gtk::StyleContext)

    style context for container

  • selector (String)

    a css selector

Returns:

  • (Gtk::StyleContext)

    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)

Parameters:

Returns:

  • (nil)

#assign(src) ⇒ nil

Parameters:

Returns:

  • (nil)

#cairo_line=(cr) ⇒ Boolean

Parameters:

  • cr (cairo::Context)

Returns:

  • (Boolean)

#clear_autonil

Sets all auto fields in style to false.

Returns:

  • (nil)

#dupGOffice::Style

Duplicates style.

Returns:

#fill(cr, preserve) ⇒ nil

Parameters:

  • cr (cairo::Context)
  • preserve (Boolean)

Returns:

  • (nil)

#fill_brightness=(brightness) ⇒ nil

Parameters:

  • brightness (Float)

Returns:

  • (nil)

#font=(font) ⇒ nil

Set text font used by the style.

Parameters:

  • font (GOffice::Font)

    new font

Returns:

  • (nil)

#font_desc=(desc) ⇒ nil

Set text font used by the style.

Parameters:

  • desc (Pango::FontDescription)

    new font description to use

Returns:

  • (nil)

#force_autonil

Sets all auto fields in style to true.

Returns:

  • (nil)

#get_editor(default_style, cc, object_with_style) ⇒ GObject

Builds the widget used to edit the style.

Parameters:

  • default_style (GOffice::Style)

    the style used as default

  • cc (GOffice::CmdContext)

    GOCmd::Context

  • object_with_style (GObject::Object)

    the object owning the style

Returns:

  • (GObject)

    the style editor

#is_autoBoolean

Returns:

  • (Boolean)

#is_different_size(b) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)

#is_fill_visibleBoolean

Returns:

  • (Boolean)

#is_line_visibleBoolean

Returns:

  • (Boolean)

#is_marker_visibleBoolean

Returns:

  • (Boolean)

#is_outline_visibleBoolean

Returns:

  • (Boolean)

#markerGOffice::Marker

Accessor for style::marker, without referencing it.

Returns:

#marker=(marker) ⇒ nil

Absorb a reference to marker and assign it to style.

Parameters:

Returns:

  • (nil)

#populate_editor(editor, default_style, cc, object_with_style, watch_for_external_change) ⇒ nil

Parameters:

Returns:

  • (nil)

#text_angle=(angle) ⇒ nil

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

Parameters:

  • angle (Float)

    text rotation in degrees

Returns:

  • (nil)