PaintContext Class Reference

#include <Pt/Forms/PaintContext.h>

Paint context.

Inherits PaintContext.

Public Member Functions

 ~PaintContext ()
 Destructor.
 
const Gfx::ImageFormatformat () const
 Returns the image format.
 
const Gfx::SizeFsize () const
 Returns the size in physical pixels.
 
const Scaling & scaling () const
 Returns the scaling from logical to physical pixels.
 
Canvas * getCanvas (Canvas *canvas)
 Returns a canvas for backend drawing.
 
void sync ()
 Synchronizes pending drawing operations.
 
void finish ()
 Finishes painting on the surface.
 

Protected Member Functions

virtual void onDetachSurface (Gfx::PaintSurface &surface) override
 Handles detachment from the surface.