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.Sheet
that the duplicate should live on- Returns:
the duplicated
Gnm.StyleConditions
.- Return type:
- equal(scb, relax_sheet)¶
- Parameters:
scb (
Gnm.StyleConditions
) – secondGnm.StyleConditions
to compare.relax_sheet (
bool
) – ifTrue
, ignore differences solely caused by being linked into different sheets.
- Returns:
True
if 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
None
if no conditions require a position.- Return type:
Gnm.CellPos
orNone
- insert(cond, pos)¶
- Parameters:
cond (
Gnm.StyleCond
) –Gnm.StyleCond
pos (
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.