Gnm.StyleConditions¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gnm.StyleConditions(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod new(sheet)¶
- Parameters:
- Returns:
- Return type:
Convenience tool to create a
Gnm.StyleCondition. Straight g_object_new will work too.
- details()¶
- Returns:
style details.
- Return type:
- dup()¶
- Returns:
the duplicated
Gnm.StyleConditions.- Return type:
- dup_to(sheet)¶
- Parameters:
sheet (
Gnm.Sheet) –Gnm.Sheetthat the duplicate should live on- Returns:
the duplicated
Gnm.StyleConditions.- Return type:
- equal(scb, relax_sheet)¶
- Parameters:
scb (
Gnm.StyleConditions) – secondGnm.StyleConditionsto compare.relax_sheet (
bool) – ifTrue, ignore differences solely caused by being linked into different sheets.
- Returns:
Trueif the conditions are equal.- Return type:
- eval(pos)¶
- Parameters:
pos (
Gnm.EvalPos) –Gnm.EvalPos- Returns:
the condition to use or -1 if none match.
- Return type:
- get_pos()¶
- Returns:
The position at which relative addresses in the conditions will be evaluated. This may be
Noneif no conditions require a position.- Return type:
Gnm.CellPosorNone
- insert(cond, pos)¶
- Parameters:
cond (
Gnm.StyleCond) –Gnm.StyleCondpos (
int) – position.
Insert cond before pos (append if pos < 0).
- overlay(base)¶
- set_pos(pos)¶
- Parameters:
pos (
Gnm.CellPos) – new position
Sets the position of self, i.e., the position at which relative addresses in the conditions will be evaluated.