Class: Gnm::StyleConditions
- Inherits:
-
Object
- Object
- Gnm::StyleConditions
- Defined in:
- (unknown)
Instance Method Summary collapse
- #delete(pos) ⇒ nil
-
#details ⇒ Array<Gnm::StyleCond>
Style details.
-
#dup ⇒ Gnm::StyleConditions
The duplicated Gnm::StyleConditions.
-
#dup_to(sheet) ⇒ Gnm::StyleConditions
The duplicated Gnm::StyleConditions.
-
#equal(scb, relax_sheet) ⇒ Boolean
True if the conditions are equal.
-
#eval(pos) ⇒ Integer
The condition to use or -1 if none match.
- #hash ⇒ Integer
-
#initialize(sheet) ⇒ Gnm::StyleConditions
constructor
Convenience tool to create a Gnm::StyleCondition.
-
#insert(cond, pos) ⇒ nil
Insert cond before pos (append if pos < 0).
-
#overlay(base) ⇒ Array<Gnm::Style>
An array of Gnm::Style.
-
#pos ⇒ Gnm::CellPos
addresses in the conditions will be evaluated.
-
#pos=(pos) ⇒ nil
Sets the position of sc, i.e., the position at which relative addresses in the conditions will be evaluated.
-
#sheet ⇒ Gnm::Sheet
The #Sheet.
Constructor Details
#initialize(sheet) ⇒ Gnm::StyleConditions
Convenience tool to create a Gnm::StyleCondition. Straight g_object_new will work too.
Instance Method Details
#delete(pos) ⇒ nil
#details ⇒ Array<Gnm::StyleCond>
Returns style details.
#dup ⇒ Gnm::StyleConditions
Returns the duplicated Gnm::StyleConditions.
#dup_to(sheet) ⇒ Gnm::StyleConditions
Returns the duplicated Gnm::StyleConditions.
#equal(scb, relax_sheet) ⇒ Boolean
Returns true if the conditions are equal.
#eval(pos) ⇒ Integer
Returns the condition to use or -1 if none match.
#hash ⇒ Integer
#insert(cond, pos) ⇒ nil
Insert cond before pos (append if pos < 0).
#overlay(base) ⇒ Array<Gnm::Style>
Returns an array of Gnm::Style.
#pos ⇒ Gnm::CellPos
addresses in the conditions will be evaluated. This may be nil if no conditions require a position.
#pos=(pos) ⇒ nil
Sets the position of sc, i.e., the position at which relative addresses in the conditions will be evaluated.
#sheet ⇒ Gnm::Sheet
Returns the #Sheet.