Minsky
minsky::EventInterface Struct Reference

#include <eventInterface.h>

Inheritance diagram for minsky::EventInterface:
Inheritance graph
Collaboration diagram for minsky::EventInterface:
Collaboration graph

Classes

struct  KeyPressArgs
 

Public Member Functions

virtual void mouseDown (float x, float y)
 
virtual void controlMouseDown (float x, float y)
 
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 moveTo (float x, float y)
 move this so that (x,y) is centred More...
 
virtual std::vector< float > position () const
 current centre coordinates More...
 
virtual double zoomFactor () const
 
virtual bool keyPress (const KeyPressArgs &)
 handle key press over current itemFocus, More...
 
ItemPtr item
 item or wire obtained by get*At() calls More...
 
WirePtr wire
 item or wire obtained by get*At() calls More...
 
virtual bool getItemAt (float x, float y)
 item or wire obtained by get*At() calls More...
 
virtual bool getWireAt (float x, float y)
 item or wire obtained by get*At() calls More...
 

Detailed Description

Definition at line 30 of file eventInterface.h.

Member Function Documentation

◆ controlMouseDown()

virtual void minsky::EventInterface::controlMouseDown ( float  x,
float  y 
)
inlinevirtual

Reimplemented in minsky::Canvas, and minsky::PubTab.

Definition at line 33 of file eventInterface.h.

References mouseDown().

33 {mouseDown(x,y);}
virtual void mouseDown(float x, float y)
Here is the call graph for this function:

◆ getItemAt()

virtual bool minsky::EventInterface::getItemAt ( float  x,
float  y 
)
inlinevirtual

item or wire obtained by get*At() calls

Reimplemented in minsky::Canvas, and minsky::PubTab.

Definition at line 63 of file eventInterface.h.

63 {return false;}

◆ getWireAt()

virtual bool minsky::EventInterface::getWireAt ( float  x,
float  y 
)
inlinevirtual

item or wire obtained by get*At() calls

Reimplemented in minsky::Canvas.

Definition at line 64 of file eventInterface.h.

64 {return false;}

◆ keyPress()

virtual bool minsky::EventInterface::keyPress ( const KeyPressArgs )
inlinevirtual

handle key press over current itemFocus,

Parameters
keySymthe X key sym code
utf8utf8 encoded character
statemodifer state 1=shift, 2=caps lock, 4=ctrl, 8=alt
x& y contain mouse coordinates
Returns
true if event handled

Reimplemented in minsky::GodleyTableWindow, minsky::Canvas, minsky::PubTab, and minsky::RavelPopup.

Definition at line 57 of file eventInterface.h.

58  {return false;}

◆ mouseDown()

virtual void minsky::EventInterface::mouseDown ( float  x,
float  y 
)
inlinevirtual

◆ mouseMove()

◆ mouseUp()

◆ moveTo()

virtual void minsky::EventInterface::moveTo ( float  x,
float  y 
)
inlinevirtual

◆ position()

virtual std::vector<float> minsky::EventInterface::position ( ) const
inlinevirtual

◆ zoom()

virtual void minsky::EventInterface::zoom ( double  x,
double  y,
double  z 
)
inlinevirtual

◆ zoomFactor()

virtual double minsky::EventInterface::zoomFactor ( ) const
inlinevirtual

Member Data Documentation

◆ item

ItemPtr minsky::EventInterface::item

item or wire obtained by get*At() calls

Definition at line 61 of file eventInterface.h.

◆ wire

WirePtr minsky::EventInterface::wire

item or wire obtained by get*At() calls

Definition at line 62 of file eventInterface.h.


The documentation for this struct was generated from the following file: