LeviLamina
Loading...
Searching...
No Matches
Keymapping.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class Keymapping {
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<8, 32, ::std::string> mAction;
10 ::ll::TypedStorage<8, 24, ::std::vector<int>> mKeys;
11 ::ll::TypedStorage<1, 1, bool> mAllowRemap;
12 ::ll::TypedStorage<1, 1, bool> mIsSharedKey;
13 // NOLINTEND
14
15public:
16 LLNDAPI bool isAssigned() const;
17 LLNDAPI bool isAltKey() const;
18 LLNDAPI bool isRemappable() const;
19 LLNDAPI bool isSharedKey() const;
20
21 LLNDAPI Keymapping(std::string const& action, std::vector<int> const& defaultKeys);
22 LLNDAPI Keymapping(std::string const& action, std::vector<int> const& defaultKeys, bool allowRemap, bool sharedKey);
23
24public:
25 // prevent constructor by default
26 Keymapping();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI Keymapping(::Keymapping const&);
32
33 MCAPI Keymapping(::std::string const& action, int defaultKey);
34
35 MCAPI Keymapping(::std::string const& action, int defaultKey, bool allowRemap, bool sharedKey);
36
37 MCFOLD ::std::string const& getAction() const;
38
39 MCAPI int getKeyCount() const;
40
41 MCFOLD ::std::vector<int> const& getKeys() const;
42
43 MCAPI void operator=(::Keymapping const& rhs);
44
45 MCAPI ~Keymapping();
46 // NOLINTEND
47
48public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCAPI void* $ctor(::Keymapping const&);
52
53 MCAPI void* $ctor(::std::string const& action, int defaultKey);
54
55 MCAPI void* $ctor(::std::string const& action, ::std::vector<int> const& defaultKeys);
56
57 MCAPI void* $ctor(::std::string const& action, int defaultKey, bool allowRemap, bool sharedKey);
58
59 MCAPI void*
60 $ctor(::std::string const& action, ::std::vector<int> const& defaultKeys, bool allowRemap, bool sharedKey);
61 // NOLINTEND
62
63public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCFOLD void $dtor();
67 // NOLINTEND
68};
Definition Keymapping.h:5