Krita Source Code Documentation
Loading...
Searching...
No Matches
KoCanvasResource Namespace Reference

Enumerations

enum  CanvasResourceId {
  ForegroundColor = 0 , BackgroundColor , PageSize , Unit ,
  CurrentPage , ActiveStyleType , ActiveRange , ShowTextShapeOutlines ,
  ShowFormattingCharacters , ShowTableBorders , ShowSectionBounds , ShowInlineObjectVisualization ,
  ApplicationSpeciality , KritaStart = 6000 , HdrExposure = KritaStart + 1 , CurrentPattern ,
  CurrentGamutMask , GamutMaskActive , CurrentGradient , CurrentDisplayProfile ,
  CurrentKritaNode , CurrentPaintOpPreset , CurrentPaintOpPresetCache , CurrentPaintOpPresetName ,
  CurrentGeneratorConfiguration , CurrentCompositeOp , CurrentEffectiveCompositeOp , LodAvailability ,
  LodSizeThreshold , LodSizeThresholdSupported , EffectiveLodAvailability , EraserMode ,
  MirrorHorizontal , MirrorVertical , MirrorHorizontalLock , MirrorVerticalLock ,
  MirrorVerticalHideDecorations , MirrorHorizontalHideDecorations , Opacity , Flow ,
  Size , Fade , Scatter , PatternSize ,
  HdrGamma , GlobalAlphaLock , DisablePressure , PreviousPaintOpPreset ,
  EffectiveZoom , EffectivePhysicalZoom , BrushRotation , HandleRadius ,
  DecorationThickness , UsingOtherColor , ColorHistory , SvgTextPropertyData
}
 

Enumeration Type Documentation

◆ CanvasResourceId

Enumerator
ForegroundColor 

The active foreground color selected for this canvas.

BackgroundColor 

The active background color selected for this canvas.

PageSize 

The size of the (current) page in postscript points.

Unit 

The unit of this canvas.

CurrentPage 

The current page number.

ActiveStyleType 

the actual active style type see KoFlake::StyleType for valid values

ActiveRange 

The area where the rulers should show white.

ShowTextShapeOutlines 

Paint of text shape outlines ?

ShowFormattingCharacters 

Paint of formatting characters ?

ShowTableBorders 

Paint of table borders (when not really there) ?

ShowSectionBounds 

Paint of sections bounds ?

ShowInlineObjectVisualization 

paint a different background for inline objects

ApplicationSpeciality 

Special features and limitations of the application.

KritaStart 

Base number for Krita specific values.

HdrExposure 
CurrentPattern 
CurrentGamutMask 
GamutMaskActive 
CurrentGradient 
CurrentDisplayProfile 
CurrentKritaNode 
CurrentPaintOpPreset 
CurrentPaintOpPresetCache 

the cache associated with the currently active preset (this cache may be different per canvas if the preset depends on the canvas resources)

CurrentPaintOpPresetName 
CurrentGeneratorConfiguration 
CurrentCompositeOp 
CurrentEffectiveCompositeOp 
LodAvailability 

-user choice

LodSizeThreshold 

-user choice

LodSizeThresholdSupported 

-paintop property

EffectiveLodAvailability 
  • a superposition of user choice, threshold and paintop traits
EraserMode 
MirrorHorizontal 
MirrorVertical 
MirrorHorizontalLock 
MirrorVerticalLock 
MirrorVerticalHideDecorations 
MirrorHorizontalHideDecorations 
Opacity 
Flow 
Size 
Fade 
Scatter 
PatternSize 
HdrGamma 
GlobalAlphaLock 
DisablePressure 
PreviousPaintOpPreset 
EffectiveZoom 

-Used only by painting tools for non-displaying purposes

EffectivePhysicalZoom 

-Used by tool for displaying purposes

BrushRotation 
HandleRadius 

The handle radius used for drawing handles of any kind.

DecorationThickness 

Integer, the thickness of single px decorations, will be adjusted by HiDPI settings. Because most of our decorations are drawn without anti-aliasing, this is an integer, so that line thickness won't vary as the painter tries round the floating point.

UsingOtherColor 
  • a boolean that is controlled by the tool invocation action
ColorHistory 

Color history if not per document.

SvgTextPropertyData 

KoSvgTextPropertyDataStruct.

Definition at line 11 of file KoCanvasResourcesIds.h.

11 {
12 ForegroundColor = 0,
14 PageSize,
15 Unit,
25 KritaStart = 6000,
50 Opacity,
51 Flow,
52 Size,
53 Fade,
54 Scatter,
68};
@ CurrentPaintOpPresetCache
the cache associated with the currently active preset (this cache may be different per canvas if the ...
@ ShowFormattingCharacters
Paint of formatting characters ?
@ ShowInlineObjectVisualization
paint a different background for inline objects
@ EffectiveZoom
-Used only by painting tools for non-displaying purposes
@ PageSize
The size of the (current) page in postscript points.
@ DecorationThickness
Integer, the thickness of single px decorations, will be adjusted by HiDPI settings....
@ ApplicationSpeciality
Special features and limitations of the application.
@ LodSizeThresholdSupported
-paintop property
@ EffectivePhysicalZoom
-Used by tool for displaying purposes
@ SvgTextPropertyData
KoSvgTextPropertyDataStruct.
@ ShowSectionBounds
Paint of sections bounds ?
@ CurrentPage
The current page number.
@ ActiveStyleType
the actual active style type see KoFlake::StyleType for valid values
@ HandleRadius
The handle radius used for drawing handles of any kind.
@ Unit
The unit of this canvas.
@ ShowTableBorders
Paint of table borders (when not really there) ?
@ BackgroundColor
The active background color selected for this canvas.
@ LodSizeThreshold
-user choice
@ LodAvailability
-user choice
@ ShowTextShapeOutlines
Paint of text shape outlines ?
@ ActiveRange
The area where the rulers should show white.
@ KritaStart
Base number for Krita specific values.
@ ForegroundColor
The active foreground color selected for this canvas.
@ ColorHistory
Color history if not per document.