PCInvisTool.h
Classes
- PCInvisTool -- Base implementation of PCTool for invisible (non-drawing) tools. (full description)
Interface
- Public Members
- PCInvisTool(PixelCanvas *pcanvas, Display::KeySym keysym = Display::K_Pointer_Button1)
- virtual ~PCInvisTool()
- virtual void keyPressed(const PCPositionEvent &ev)
- virtual void moved(const PCMotionEvent &ev)
- virtual void positionReady()
- virtual void get(Int &x, Int &y) const
- virtual void getFractional(Float &x, Float &y) const
Synopsis
This class implements some of PCTool, and adds additional interface
to support invisible (ie. non-drawing) tools for PixelCanvases.
Member Description
Constructor. Requires a PixelCanvas to operate on, and a key
to catch.
Destructor.
Functions called by the local event handling operators.
virtual void keyReleased(const PCPositionEvent &ev);
Functions called by the local event handling operators.
Function called when a position is ready.
virtual void get(Int &x, Int &y) const
Retrieve the position in PixelCanvas pixel coordinates.
virtual void getFractional(Float &x, Float &y) const
Retrieve the position in fractional PixelCanvas coordinates.