Pioneer
src
gui
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
{
14
BUTTON_WHEELUP
= 0xfe,
15
BUTTON_WHEELDOWN
= 0xff
16
};
17
};
18
struct
MouseMotionEvent
{
19
float
x
,
y
;
// widget coords
20
float
screenX
,
screenY
;
// screen coords
21
};
22
}
// namespace Gui
23
24
#endif
/* _GUIEVENTS_H */
Gui
Definition:
Gui.cpp:10
Gui::MouseButtonEvent
Definition:
GuiEvents.h:8
Gui::MouseButtonEvent::BUTTON_WHEELUP
@ BUTTON_WHEELUP
Definition:
GuiEvents.h:14
Gui::MouseButtonEvent::BUTTON_WHEELDOWN
@ BUTTON_WHEELDOWN
Definition:
GuiEvents.h:15
Gui::MouseButtonEvent::button
Uint8 button
Definition:
GuiEvents.h:10
Gui::MouseButtonEvent::y
float y
Definition:
GuiEvents.h:11
Gui::MouseButtonEvent::screenX
float screenX
Definition:
GuiEvents.h:12
Gui::MouseButtonEvent::x
float x
Definition:
GuiEvents.h:11
Gui::MouseButtonEvent::isdown
Uint8 isdown
Definition:
GuiEvents.h:9
Gui::MouseButtonEvent::screenY
float screenY
Definition:
GuiEvents.h:12
Gui::MouseMotionEvent
Definition:
GuiEvents.h:18
Gui::MouseMotionEvent::screenY
float screenY
Definition:
GuiEvents.h:20
Gui::MouseMotionEvent::screenX
float screenX
Definition:
GuiEvents.h:20
Gui::MouseMotionEvent::y
float y
Definition:
GuiEvents.h:19
Gui::MouseMotionEvent::x
float x
Definition:
GuiEvents.h:19
Generated by
1.9.1