View represents one view on a document. A document can be shown in more than one view at a time.
Methods
Member documentation
activates the given resource.
Parameters
resource | (no description provided) |
allows access to the currently active background color. This is nominally per canvas/view, but in practice per mainwindow.
Return
The current background color |
return the current rotation for brush tip
Return
the brush tip rotation value (in degrees) |
return the current size for brush
Return
the brush size value (in pixels) |
Return
the canvas this view is showing. The canvas controls things like zoom and rotation. |
return the current blending mode for brush
Return
the current blending mode identifier |
return the current selected preset
Return
the current preset (Resource type = 'preset') |
return the current selected gradient
Return
the current gradient (Resource type = 'gradient') |
return the current selected pattern
Return
the current pattern (Resource type = 'pattern') |
return current disabled pressure status
Return
True if is pressure is disabled, otherwise False |
return current eraser mode status (active/inactive)
Return
True if eraser mode is active, otherwise False |
The transformation of the canvas relative to the view without rotation and mirroring
Return
QTransform |
The transformation of the document relative to the view without rotation and mirroring
Return
QTransform |
The transformation of the image relative to the view without rotation and mirroring
Return
QTransform |
allows access to the currently active color. This is nominally per canvas/view, but in practice per mainwindow.
Return
(no description provided) |
allows access to the currently active foreground color. This is nominally per canvas/view, but in practice per mainwindow.
Return
The current foreground color |
return current global alpha lock mode (active/inactive)
Return
True if is active, otherwise False |
return the current flow for brush
Return
the brush flow value |
return the current opacity for brush
Return
the brush opacity value (0.00=fully transparent - 1.00=fully opaque) |
return the current pattern size for brush
Return
the brush pattern size value |
returns a list of Nodes that are selected in this view.
Return
a list of Node objects which may be empty. |
set the current rotation for brush tip
Parameters
brushRotation | the brush tip rotation (in degrees) |
set the current size for brush
Parameters
brushSize | the brush size (in pixels) |
set the current blending mode for brush
Parameters
blendingMode | the current belding mode identifier |
set the current selected preset
Parameters
resource | the current preset to set (Resource type = 'preset') |
set the current selected gradient
Parameters
resource | the current gradient to set (Resource type = 'gradient') |
set the current selected pattern
Parameters
resource | the current pattern to set (Resource type = 'pattern') |
set current disabled pressure status
Parameters
value | Set to True to disable pressure, False to enabled pressure |
Reset the view to show document.
Parameters
document | (no description provided) |
set current eraser active/inactive
Parameters
value | Set to True to activate eraser mode, False to deactivate |
set current global alpha lock mode active/inactive
Parameters
value | Set to True to lock global alpha mode, False to unlock |
set the current HDR Exposure value
Parameters
exposure | the HDR Exposure to set |
set the current HDR Gamma value
Parameters
gamma | (no description provided) |
set the current flow value for brush
Parameters
flow | the brush flow |
set the current opacity for brush
Parameters
opacity | the opacity value (0.00=fully transparent - 1.00=fully opaque) |
set the current pattern size value for brush
Parameters
size | (no description provided) |
displays a floating message box on the top-left corner of the canvas
Parameters
message | (no description provided) |
icon | (no description provided) |
timeout | (no description provided) |
priority | (no description provided) |
Return
True if the current view is visible, False if not. |