Nebula
Loading...
Searching...
No Matches
mousebutton.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#include "
core/types.h
"
13
#include "
util/string.h
"
14
15
//------------------------------------------------------------------------------
16
namespace
Input
17
{
18
class
MouseButton
19
{
20
public
:
22
enum
Code
23
{
24
LeftButton
= 0,
25
RightButton
= 1,
26
MiddleButton
= 2,
27
28
NumMouseButtons
,
29
InvalidMouseButton
,
30
};
31
33
static
Util::String
ToString
(
Code
code);
35
static
Code
FromString
(
const
Util::String
& str);
36
};
37
38
}
// namespace Input
39
//------------------------------------------------------------------------------
40
41
Input::MouseButton
Mouse button codes and conversion from/to string.
Definition
mousebutton.h:19
Input::MouseButton::FromString
static Code FromString(const Util::String &str)
convert from string
Definition
mousebutton.cc:34
Input::MouseButton::ToString
static Util::String ToString(Code code)
convert to string
Definition
mousebutton.cc:16
Input::MouseButton::Code
Code
code enums
Definition
mousebutton.h:23
Input::MouseButton::NumMouseButtons
@ NumMouseButtons
Definition
mousebutton.h:28
Input::MouseButton::InvalidMouseButton
@ InvalidMouseButton
Definition
mousebutton.h:29
Input::MouseButton::MiddleButton
@ MiddleButton
Definition
mousebutton.h:26
Input::MouseButton::LeftButton
@ LeftButton
Definition
mousebutton.h:24
Input::MouseButton::RightButton
@ RightButton
Definition
mousebutton.h:25
Input
FIXME!
string.h
Util::String
Nebula's universal string class.
Definition
string.h:50
types.h
code
input
input
mousebutton.h
Generated on Thu Nov 14 2024 22:10:55 for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.