The GuidesConfig class encapsulates a Krita Guides configuration.
Methods
Member documentation
Load guides definition from an XML document
Parameters
xmlContent | xml content provided as a string |
Return
True if xml content is valid and guides has been loaded, otherwise False |
indicate if there's guides defined
Return
True if at least one guide is defined, otherwise False |
indicate if position from current guides configuration match positions from another guides configuration
Parameters
guideConfig | (no description provided) |
Return
True if positions are the same |
The horizontal guides.
Return
a list of the horizontal positions of guides. |
Guides line type
Return
line type applied for all guides Can be: - "solid" - "dashed" - "dot" |
Returns guide lock status
Return
True if guides are locked, otherwise False |
Set the horizontal guides.
Parameters
lines | a list of the horizontal positions of guides to set |
Define guides lines type
Parameters
lineType | line type to use for guides: Can be: - "solid" - "dashed" - "dot" |
Set guides lock status
Parameters
value | True to set guides locked, otherwise False |
Set guides snap status
Parameters
value | True to set snap to guides active, otherwise False |
Set the vertical guides.
Parameters
lines | a list of the vertical positions of guides to set |
Set guides visibility status
Parameters
value | True to set guides visible, otherwise False |
Returns guide snap status
Return
True if snap to guides is active, otherwise False |
Save guides definition as an XML document
Return
A string with xml content |
The vertical guides.
Return
a list of vertical positions of guides. |
Returns guides visibility status.
Return
True if guides are visibles, otherwise False |