Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::shortcuts Namespace Reference

Functions

auto get_shortcut_name (const ImGuiKeyCombination &shortcut) -> std::string
 
auto get_shortcut_name (ImGuiKey key) -> std::string
 

Variables

constexpr ImGuiKey modifier_camera_speed_boost = ImGuiKey_LeftShift
 
constexpr ImGuiKey modifier_snapping = ImGuiKey_LeftCtrl
 
const ImGuiKeyCombination new_scene = {ImGuiKey_LeftCtrl, ImGuiKey_N}
 
const ImGuiKeyCombination open_scene = {ImGuiKey_LeftCtrl, ImGuiKey_O}
 
const ImGuiKeyCombination save_scene = {ImGuiKey_LeftCtrl, ImGuiKey_S}
 
const ImGuiKeyCombination save_scene_as = {ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_S}
 
constexpr ImGuiKey play_toggle = ImGuiKey_F5
 
constexpr ImGuiKey pause_toggle = ImGuiKey_F6
 
constexpr ImGuiKey step_frame = ImGuiKey_F7
 
constexpr ImGuiKey camera_forward = ImGuiKey_W
 
constexpr ImGuiKey camera_backward = ImGuiKey_S
 
constexpr ImGuiKey camera_left = ImGuiKey_A
 
constexpr ImGuiKey camera_right = ImGuiKey_D
 
constexpr ImGuiKey rename_item = ImGuiKey_F2
 
constexpr ImGuiKey delete_item = ImGuiKey_Delete
 
const ImGuiKeyCombination duplicate_item = {ImGuiKey_LeftCtrl, ImGuiKey_D}
 
constexpr ImGuiKey navigate_back = ImGuiKey_Backspace
 
constexpr ImGuiKey item_action = ImGuiKey_Enter
 
constexpr ImGuiKey item_action_alt = ImGuiKey_KeypadEnter
 
constexpr ImGuiKey item_cancel = ImGuiKey_Escape
 
const ImGuiKeyCombination select_all = {ImGuiKey_LeftCtrl, ImGuiKey_A}
 
const ImGuiKeyCombination cut = {ImGuiKey_LeftCtrl, ImGuiKey_X}
 
const ImGuiKeyCombination copy = {ImGuiKey_LeftCtrl, ImGuiKey_C}
 
const ImGuiKeyCombination paste = {ImGuiKey_LeftCtrl, ImGuiKey_V}
 
const ImGuiKeyCombination undo = {ImGuiKey_LeftCtrl, ImGuiKey_Z}
 
const ImGuiKeyCombination redo = {ImGuiKey_LeftCtrl, ImGuiKey_Y}
 
const ImGuiKeyCombination redo_alt = {ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_Z}
 
const ImGuiKeyCombination undo_history = {ImGuiKey_LeftCtrl, ImGuiKey_U}
 
const ImGuiKeyCombination recompile_ui = {ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_R}
 
constexpr ImGuiKey move_tool = ImGuiKey_W
 
constexpr ImGuiKey rotate_tool = ImGuiKey_E
 
constexpr ImGuiKey scale_tool = ImGuiKey_R
 
constexpr ImGuiKey universal_tool = ImGuiKey_Q
 
constexpr ImGuiKey bounds_tool = ImGuiKey_T
 
constexpr ImGuiKey ik_ccd = ImGuiKey_K
 
constexpr ImGuiKey ik_fabrik = ImGuiKey_L
 
constexpr ImGuiKey focus_selected = ImGuiKey_F
 
const ImGuiKeyCombination frame_all = {ImGuiKey_LeftAlt, ImGuiKey_F}
 
constexpr ImGuiKey toggle_gizmo_mode = ImGuiKey_Z
 
constexpr ImGuiKey toggle_local_global = ImGuiKey_L
 
constexpr ImGuiKeyChord snap_scene_camera_to_selected_camera = ImGuiKey_F | ImGuiMod_Shift
 
constexpr ImGuiKey help = ImGuiKey_F1
 

Function Documentation

◆ get_shortcut_name() [1/2]

auto unravel::shortcuts::get_shortcut_name ( const ImGuiKeyCombination & shortcut) -> std::string
inline

Definition at line 72 of file shortcuts.h.

◆ get_shortcut_name() [2/2]

auto unravel::shortcuts::get_shortcut_name ( ImGuiKey key) -> std::string
inline

Definition at line 77 of file shortcuts.h.

Variable Documentation

◆ bounds_tool

ImGuiKey unravel::shortcuts::bounds_tool = ImGuiKey_T
inlineconstexpr

Definition at line 55 of file shortcuts.h.

◆ camera_backward

ImGuiKey unravel::shortcuts::camera_backward = ImGuiKey_S
inlineconstexpr

Definition at line 27 of file shortcuts.h.

◆ camera_forward

ImGuiKey unravel::shortcuts::camera_forward = ImGuiKey_W
inlineconstexpr

Definition at line 26 of file shortcuts.h.

◆ camera_left

ImGuiKey unravel::shortcuts::camera_left = ImGuiKey_A
inlineconstexpr

Definition at line 28 of file shortcuts.h.

◆ camera_right

ImGuiKey unravel::shortcuts::camera_right = ImGuiKey_D
inlineconstexpr

Definition at line 29 of file shortcuts.h.

◆ copy

const ImGuiKeyCombination unravel::shortcuts::copy = {ImGuiKey_LeftCtrl, ImGuiKey_C}
inline

Definition at line 43 of file shortcuts.h.

◆ cut

const ImGuiKeyCombination unravel::shortcuts::cut = {ImGuiKey_LeftCtrl, ImGuiKey_X}
inline

Definition at line 42 of file shortcuts.h.

◆ delete_item

ImGuiKey unravel::shortcuts::delete_item = ImGuiKey_Delete
inlineconstexpr

Definition at line 33 of file shortcuts.h.

◆ duplicate_item

const ImGuiKeyCombination unravel::shortcuts::duplicate_item = {ImGuiKey_LeftCtrl, ImGuiKey_D}
inline

Definition at line 34 of file shortcuts.h.

◆ focus_selected

ImGuiKey unravel::shortcuts::focus_selected = ImGuiKey_F
inlineconstexpr

Definition at line 62 of file shortcuts.h.

◆ frame_all

const ImGuiKeyCombination unravel::shortcuts::frame_all = {ImGuiKey_LeftAlt, ImGuiKey_F}
inline

Definition at line 63 of file shortcuts.h.

◆ help

ImGuiKey unravel::shortcuts::help = ImGuiKey_F1
inlineconstexpr

Definition at line 69 of file shortcuts.h.

◆ ik_ccd

ImGuiKey unravel::shortcuts::ik_ccd = ImGuiKey_K
inlineconstexpr

Definition at line 58 of file shortcuts.h.

◆ ik_fabrik

ImGuiKey unravel::shortcuts::ik_fabrik = ImGuiKey_L
inlineconstexpr

Definition at line 59 of file shortcuts.h.

◆ item_action

ImGuiKey unravel::shortcuts::item_action = ImGuiKey_Enter
inlineconstexpr

Definition at line 36 of file shortcuts.h.

◆ item_action_alt

ImGuiKey unravel::shortcuts::item_action_alt = ImGuiKey_KeypadEnter
inlineconstexpr

Definition at line 37 of file shortcuts.h.

◆ item_cancel

ImGuiKey unravel::shortcuts::item_cancel = ImGuiKey_Escape
inlineconstexpr

Definition at line 38 of file shortcuts.h.

◆ modifier_camera_speed_boost

ImGuiKey unravel::shortcuts::modifier_camera_speed_boost = ImGuiKey_LeftShift
inlineconstexpr

Definition at line 11 of file shortcuts.h.

◆ modifier_snapping

ImGuiKey unravel::shortcuts::modifier_snapping = ImGuiKey_LeftCtrl
inlineconstexpr

Definition at line 12 of file shortcuts.h.

◆ move_tool

ImGuiKey unravel::shortcuts::move_tool = ImGuiKey_W
inlineconstexpr

Definition at line 51 of file shortcuts.h.

◆ navigate_back

ImGuiKey unravel::shortcuts::navigate_back = ImGuiKey_Backspace
inlineconstexpr

Definition at line 35 of file shortcuts.h.

◆ new_scene

const ImGuiKeyCombination unravel::shortcuts::new_scene = {ImGuiKey_LeftCtrl, ImGuiKey_N}
inline

Definition at line 15 of file shortcuts.h.

◆ open_scene

const ImGuiKeyCombination unravel::shortcuts::open_scene = {ImGuiKey_LeftCtrl, ImGuiKey_O}
inline

Definition at line 16 of file shortcuts.h.

◆ paste

const ImGuiKeyCombination unravel::shortcuts::paste = {ImGuiKey_LeftCtrl, ImGuiKey_V}
inline

Definition at line 44 of file shortcuts.h.

◆ pause_toggle

ImGuiKey unravel::shortcuts::pause_toggle = ImGuiKey_F6
inlineconstexpr

Definition at line 22 of file shortcuts.h.

◆ play_toggle

ImGuiKey unravel::shortcuts::play_toggle = ImGuiKey_F5
inlineconstexpr

Definition at line 21 of file shortcuts.h.

◆ recompile_ui

const ImGuiKeyCombination unravel::shortcuts::recompile_ui = {ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_R}
inline

Definition at line 49 of file shortcuts.h.

◆ redo

const ImGuiKeyCombination unravel::shortcuts::redo = {ImGuiKey_LeftCtrl, ImGuiKey_Y}
inline

Definition at line 46 of file shortcuts.h.

◆ redo_alt

const ImGuiKeyCombination unravel::shortcuts::redo_alt = {ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_Z}
inline

Definition at line 47 of file shortcuts.h.

◆ rename_item

ImGuiKey unravel::shortcuts::rename_item = ImGuiKey_F2
inlineconstexpr

Definition at line 32 of file shortcuts.h.

◆ rotate_tool

ImGuiKey unravel::shortcuts::rotate_tool = ImGuiKey_E
inlineconstexpr

Definition at line 52 of file shortcuts.h.

◆ save_scene

const ImGuiKeyCombination unravel::shortcuts::save_scene = {ImGuiKey_LeftCtrl, ImGuiKey_S}
inline

Definition at line 17 of file shortcuts.h.

◆ save_scene_as

const ImGuiKeyCombination unravel::shortcuts::save_scene_as = {ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_S}
inline

Definition at line 18 of file shortcuts.h.

◆ scale_tool

ImGuiKey unravel::shortcuts::scale_tool = ImGuiKey_R
inlineconstexpr

Definition at line 53 of file shortcuts.h.

◆ select_all

const ImGuiKeyCombination unravel::shortcuts::select_all = {ImGuiKey_LeftCtrl, ImGuiKey_A}
inline

Definition at line 41 of file shortcuts.h.

◆ snap_scene_camera_to_selected_camera

ImGuiKeyChord unravel::shortcuts::snap_scene_camera_to_selected_camera = ImGuiKey_F | ImGuiMod_Shift
inlineconstexpr

Definition at line 66 of file shortcuts.h.

◆ step_frame

ImGuiKey unravel::shortcuts::step_frame = ImGuiKey_F7
inlineconstexpr

Definition at line 23 of file shortcuts.h.

◆ toggle_gizmo_mode

ImGuiKey unravel::shortcuts::toggle_gizmo_mode = ImGuiKey_Z
inlineconstexpr

Definition at line 64 of file shortcuts.h.

◆ toggle_local_global

ImGuiKey unravel::shortcuts::toggle_local_global = ImGuiKey_L
inlineconstexpr

Definition at line 65 of file shortcuts.h.

◆ undo

const ImGuiKeyCombination unravel::shortcuts::undo = {ImGuiKey_LeftCtrl, ImGuiKey_Z}
inline

Definition at line 45 of file shortcuts.h.

◆ undo_history

const ImGuiKeyCombination unravel::shortcuts::undo_history = {ImGuiKey_LeftCtrl, ImGuiKey_U}
inline

Definition at line 48 of file shortcuts.h.

◆ universal_tool

ImGuiKey unravel::shortcuts::universal_tool = ImGuiKey_Q
inlineconstexpr

Definition at line 54 of file shortcuts.h.