#include <Pt/Forms/PaintSurface.h>
Paint surface.
Inherits PaintSurface.
Inherited by Pixmap, and ViewSurface.
Public Member Functions | |
| ~PaintSurface () | |
| Destructor. | |
| void | finish () |
| Finishes painting to the surface. | |
| const Gfx::ImageFormat & | format () const |
| Returns the image format. | |
| Canvas * | getCanvas (Canvas *canvas) |
| Get a Canvas. | |
| const Scaling & | scaling () const |
| Returns the scaling from logical to physical pixels. | |
| const Gfx::SizeF & | size () const |
| Returns the size in physical pixels. | |
| void | sync () |
| Synchronizes pending operations to the surface. | |
Protected Member Functions | |
| void | invalidate () |
| Invalidates the currently active paint canvas. | |
| virtual Gfx::Canvas * | onCreateCanvas (Gfx::Canvas *reuse)=0 |
| Creates a Canvas. | |
| virtual void | onFinish ()=0 |
| Finishes painting to the surface. | |
| virtual Gfx::Canvas * | onGetCanvas (Gfx::Canvas *reuse) |
| Get a Canvas. | |
| virtual const Gfx::ImageFormat & | onGetFormat () const =0 |
| Returns the image format. | |
| virtual const Scaling & | onGetScaling () const =0 |
| Returns the scaling fro logical to physical pixels. | |
| virtual const Gfx::SizeF & | onGetSize () const =0 |
| Returns the size in physical pixel. | |
| virtual void | onReleaseCanvas ()=0 |
| Releases the current Canvas. | |
| virtual void | onSync ()=0 |
| Synchronizes pending operations to the surface. | |