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 MCAPI void operator=(::Keymapping const& rhs);
38
39 MCAPI ~Keymapping();
40 // NOLINTEND
41
42public:
43 // constructor thunks
44 // NOLINTBEGIN
45 MCAPI void* $ctor(::Keymapping const&);
46
47 MCAPI void* $ctor(::std::string const& action, int defaultKey);
48
49 MCAPI void* $ctor(::std::string const& action, int defaultKey, bool allowRemap, bool sharedKey);
50
51 MCAPI void*
52 $ctor(::std::string const& action, ::std::vector<int> const& defaultKeys, bool allowRemap, bool sharedKey);
53 // NOLINTEND
54
55public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCFOLD void $dtor();
59 // NOLINTEND
60};
Definition Keymapping.h:5