KUIML
Blue Cat's User Interface Programming Language
Kt::Graphics::Context Class Reference

Interface for 2D vector graphics drawing (experimental). More...

Public Member Functions

void Paint ()
 paints the current pattern (clipped by clip region)
 
void PaintWithAlpha (double alpha)
 paints the current pattern (clipped by clip region) with additional alpha channel blend
 
void PaintWithMask ()
 paints the current pattern (clipped by clip region) using the current mask
 
void StrokePath ()
 Strokes the current path using current pattern.
 
void FillPath ()
 Fills the path using current pattern.
 
void ClipWithPath ()
 Intersects the clip region with current path.
 
void WriteText (const char *text)
 draw text using current text settings and source pattern, with current position defined with path
 
void SaveState ()
 save current surface state (stack).
 
void RestoreState ()
 restores last saved surface state (stack).
 

Public Attributes

DrawSettingssettings
 the settings used for drawing operations
 
DrawPathpath
 the current path used for stroke, fill and clip
 
DrawPatternSelectsource
 quick access to source pattern selection used for drawing and painting
 
DrawPatternSelectmask
 the mask pattern used for mask painting
 
DrawTransformtransform
 the geometrical transformation
 
DrawFontfont
 Font and text drawing settings.
 
DrawPatternFactorypatterns
 Patterns factory to build patterns for Mask or Source usage.
 

Detailed Description