Class: GOffice::ColorGroup
- Inherits:
-
Object
- Object
- GOffice::ColorGroup
- Defined in:
- (unknown)
Class Method Summary collapse
-
.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.
-
.find(name, context) ⇒ GOffice::ColorGroup
No reference is added if it is found.
Instance Method Summary collapse
-
#add_color(c) ⇒ nil
Potentially slide the history to add the new colour.
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.
.find(name, context) ⇒ GOffice::ColorGroup
No reference is added if it is 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.