Class: GOffice::ColorGroup

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.fetch(name, context) ⇒ GOffice::ColorGroup

if name is NULL or a name not currently in use by another group then a new group is created and returned. If name was NULL then the new group is given a unique name prefixed by "cg_autogen_name" (thereby insuring namespace separation). If name was already used by a group then the reference count is incremented and a pointer to the group is returned.

Parameters:

  • name (String)

    target name

  • context (GObject)

    identifying context

Returns:

.find(name, context) ⇒ GOffice::ColorGroup

No reference is added if it is found.

Parameters:

  • name (String)

    target name

  • context (GObject)

    an arbitrary id to identify what context to search in

Returns:

  • (GOffice::ColorGroup)

    Look up the name/context specific color-group. nil if it is not found.

Instance Method Details

#add_color(c) ⇒ nil

Potentially slide the history to add the new colour. If it was already in the history reorder.

Parameters:

  • c (GOffice::Color)

    the color

Returns:

  • (nil)