Pioneer
GuiEvents.h
Go to the documentation of this file.
1 // Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef _GUIEVENTS_H
5 #define _GUIEVENTS_H
6 
7 namespace Gui {
8  struct MouseButtonEvent {
9  Uint8 isdown;
10  Uint8 button;
11  float x, y; // widget coords
12  float screenX, screenY; // screen coords
13  enum {
15  BUTTON_WHEELDOWN = 0xff
16  };
17  };
19  float x, y; // widget coords
20  float screenX, screenY; // screen coords
21  };
22 } // namespace Gui
23 
24 #endif /* _GUIEVENTS_H */
Definition: Gui.cpp:10
Definition: GuiEvents.h:8
@ BUTTON_WHEELUP
Definition: GuiEvents.h:14
@ BUTTON_WHEELDOWN
Definition: GuiEvents.h:15
Uint8 button
Definition: GuiEvents.h:10
float y
Definition: GuiEvents.h:11
float screenX
Definition: GuiEvents.h:12
float x
Definition: GuiEvents.h:11
Uint8 isdown
Definition: GuiEvents.h:9
float screenY
Definition: GuiEvents.h:12
Definition: GuiEvents.h:18
float screenY
Definition: GuiEvents.h:20
float screenX
Definition: GuiEvents.h:20
float y
Definition: GuiEvents.h:19
float x
Definition: GuiEvents.h:19