20 #ifndef EVENTINTERFACE_H 21 #define EVENTINTERFACE_H 36 virtual void zoom(
double x,
double y,
double z) {}
38 virtual void moveTo(
float x,
float y) {}
40 virtual std::vector<float>
position()
const {
return {0,0};}
63 virtual bool getItemAt(
float x,
float y) {
return false;}
64 virtual bool getWireAt(
float x,
float y) {
return false;}
70 #include "eventInterface.cd" 71 #include "eventInterface.xcd" virtual bool keyPress(const KeyPressArgs &)
handle key press over current itemFocus,
virtual bool getWireAt(float x, float y)
item or wire obtained by get*At() calls
virtual std::vector< float > position() const
current centre coordinates
virtual void moveTo(float x, float y)
move this so that (x,y) is centred
virtual double zoomFactor() const
std::shared_ptr< Item > ItemPtr
std::shared_ptr< Wire > WirePtr
virtual bool getItemAt(float x, float y)
item or wire obtained by get*At() calls
virtual void mouseUp(float x, float y)
virtual void mouseMove(float x, float y)
virtual void zoom(double x, double y, double z)
virtual void controlMouseDown(float x, float y)
virtual void mouseDown(float x, float y)
ItemPtr item
item or wire obtained by get*At() calls
WirePtr wire
item or wire obtained by get*At() calls