CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIKey.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
19#include "FxUIEnum.h"
20
24
26{
27public:
28 // Common ASCII based key code
29 static constexpr int Key_At = 0x40;
30
31#ifdef XENON
32 static constexpr int Key_Up = static_cast< int >( Wt::Key::Up );
33 static constexpr int Key_Down = static_cast< int >( Wt::Key::Down );
34 static constexpr int Key_Enter = static_cast< int >( Wt::Key::Enter );
35 static constexpr int Key_Return = static_cast< int >( Wt::Key::Enter );
36 static constexpr int Key_Backspace = static_cast< int >( Wt::Key::Backspace );
37 static constexpr int Key_Escape = static_cast< int >( Wt::Key::Escape );
38 static constexpr int Key_Tab = static_cast< int >( Wt::Key::Tab );
39 static constexpr int Key_Space = static_cast< int >( Wt::Key::Space );
40 static constexpr int Key_Shift = static_cast< int >( Wt::Key::Shift );
41 static constexpr int Key_Control = static_cast< int >( Wt::Key::Control );
42 static constexpr int Key_Alt = static_cast< int >( Wt::Key::Alt );
43
44 static constexpr int Key_CapsLock = static_cast<int>(Wt::FxUIKey::Key_CapsLock);
45 // Define other Wt key codes
46#else
47 static constexpr int Key_Up = FxUIKey::Key_Up;
48 static constexpr int Key_Down = FxUIKey::Key_Down;
49 static constexpr int Key_Enter = FxUIKey::Key_Enter;
50 static constexpr int Key_Return = FxUIKey::Key_Return;
51 static constexpr int Key_Backspace = FxUIKey::Key_Backspace;
52 static constexpr int Key_Escape = FxUIKey::Key_Escape;
53 static constexpr int Key_Tab = FxUIKey::Key_Tab;
54 static constexpr int Key_Space = FxUIKey::Key_Space;
55 static constexpr int Key_CapsLock = FxUIKey::Key_CapsLock;
56 static constexpr int Key_Shift = FxUIKey::Key_Shift;
57 static constexpr int Key_Control = FxUIKey::Key_Control;
58 static constexpr int Key_Alt = FxUIKey::Key_Alt;
59
60 // Define other Qt key codes
61#endif
62};
#define COMMONUI_API
@ Key_Backspace
Definition FxUIEnum.h:231
@ Key_Space
Definition FxUIEnum.h:234
@ Key_CapsLock
Definition FxUIEnum.h:235
@ Key_Alt
Definition FxUIEnum.h:238
@ Key_Down
Definition FxUIEnum.h:228
@ Key_Control
Definition FxUIEnum.h:237
@ Key_Up
Definition FxUIEnum.h:227
@ Key_Shift
Definition FxUIEnum.h:236
@ Key_Escape
Definition FxUIEnum.h:232
@ Key_Tab
Definition FxUIEnum.h:233
@ Key_Return
Definition FxUIEnum.h:230
@ Key_Enter
Definition FxUIEnum.h:229
static constexpr int Key_At
Definition FxUIKey.h:29
static constexpr int Key_Shift
Definition FxUIKey.h:56
static constexpr int Key_Control
Definition FxUIKey.h:57
static constexpr int Key_CapsLock
Definition FxUIKey.h:55
static constexpr int Key_Alt
Definition FxUIKey.h:58
static constexpr int Key_Down
Definition FxUIKey.h:48
static constexpr int Key_Return
Definition FxUIKey.h:50
static constexpr int Key_Enter
Definition FxUIKey.h:49
static constexpr int Key_Escape
Definition FxUIKey.h:52
static constexpr int Key_Space
Definition FxUIKey.h:54
static constexpr int Key_Up
Definition FxUIKey.h:47
static constexpr int Key_Backspace
Definition FxUIKey.h:51
static constexpr int Key_Tab
Definition FxUIKey.h:53