MeshLib C++ Docs
Loading...
Searching...
No Matches
MRShortcutKey.h
Go to the documentation of this file.
1#pragma once
2#include "MRViewerFwd.h"
3#include <compare>
4#include <utility>
5#include <vector>
6
7namespace MR
8{
11
12
14{
15 int key{ 0 };
16 int mod{ 0 };
19 int heldKey{ 0 };
20
21 auto operator<=>( const ShortcutKey& ) const = default;
22};
23
34
37{
39 std::vector<ShortcutKey> keys;
41
42 Shortcut() = default;
44 Shortcut( std::vector<ShortcutKey> ks, ShortcutCategory c ) : keys( std::move( ks ) ), category( c ) {}
45
46 bool operator==( const Shortcut& ) const = default;
47};
48
49}
auto operator<=>(const ShortcutKey &) const =default
ShortcutCategory category
Definition MRShortcutKey.h:40
bool operator==(const Shortcut &) const =default
int key
Definition MRShortcutKey.h:15
Shortcut(std::vector< ShortcutKey > ks, ShortcutCategory c)
Definition MRShortcutKey.h:44
Shortcut()=default
Shortcut(ShortcutKey k, ShortcutCategory c)
Definition MRShortcutKey.h:43
std::vector< ShortcutKey > keys
alternative keys doing the same, e.g. Ctrl+Shift+Z and Ctrl+Y for Redo
Definition MRShortcutKey.h:39
int heldKey
Definition MRShortcutKey.h:19
ShortcutCategory
Definition MRShortcutKey.h:25
int mod
Definition MRShortcutKey.h:16
@ Count
Definition MRPdf.h:42
@ Info
Definition MRNotificationType.h:13
@ View
Definition MRShortcutKey.h:28
@ Selection
Definition MRShortcutKey.h:31
@ Edit
Definition MRShortcutKey.h:27
@ Scene
Definition MRShortcutKey.h:29
@ Objects
Definition MRShortcutKey.h:30
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRShortcutKey.h:14