PCInvisTool.h

Classes

PCInvisTool -- Base implementation of PCTool for invisible (non-drawing) tools. (full description)

class PCInvisTool : public PCTool

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

Description

Synopsis

This class implements some of PCTool, and adds additional interface to support invisible (ie. non-drawing) tools for PixelCanvases.

Member Description

PCInvisTool(PixelCanvas *pcanvas, Display::KeySym keysym = Display::K_Pointer_Button1)

Constructor. Requires a PixelCanvas to operate on, and a key to catch.

virtual ~PCInvisTool()

Destructor.

virtual void moved(const PCMotionEvent &ev)

Functions called by the local event handling operators.

virtual void keyReleased(const PCPositionEvent &ev);

virtual void keyPressed(const PCPositionEvent &ev)

Functions called by the local event handling operators.

virtual void positionReady()

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.