Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. %feature("director") KeyEvent;
  2. class KeyEvent: public InputEvent {
  3. public:
  4. enum KeyEventType {
  5. UNKNOWN = -1,
  6. PRESSED = 0,
  7. RELEASED
  8. };
  9.  
  10. KeyEvent();
  11. virtual ~KeyEvent();
  12.  
  13. KeyEventType getType() const;
  14. void setType(KeyEventType type);
  15.  
  16. bool isNumericPad() const;
  17. void setNumericPad(bool ispad);
  18.  
  19. const Key& getKey() const;
  20. void setKey(const Key& key);
  21.  
  22. virtual bool isAltPressed() const;
  23. virtual void setAltPressed(bool pressed);
  24. virtual bool isControlPressed() const;
  25. virtual void setControlPressed(bool pressed);
  26. virtual bool isMetaPressed() const;
  27. virtual void setMetaPressed(bool pressed);
  28. virtual bool isShiftPressed() const;
  29. virtual void setShiftPressed(bool pressed);
  30.  
  31. virtual void consume();
  32. virtual bool isConsumed() const;
  33. virtual void consumedByWidgets();
  34. virtual bool isConsumedByWidgets() const;
  35. virtual IEventSource* getSource();
  36. virtual void setSource(IEventSource* source);
  37. virtual int getTimeStamp() const;
  38. virtual void setTimeStamp(int timestamp );
  39.  
  40. virtual const std::string& getName() const;
  41. virtual std::string getDebugString() const;
  42. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement