CommonLibSSE (Parapets fork)
CursorMenu.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/I/IMenu.h"
5 
6 namespace RE
7 {
8  // menuDepth = 13
9  // flags = kAllowSaving | kCustomRendering
10  // context = kNone
11  class CursorMenu :
12  public IMenu, // 00
13  public MenuEventHandler // 30
14  {
15  public:
16  inline static constexpr auto RTTI = RTTI_CursorMenu;
17  constexpr static std::string_view MENU_NAME = "Cursor Menu";
18 
19  ~CursorMenu() override; // 00
20 
21  // override (IMenu)
22  UI_MESSAGE_RESULTS ProcessMessage(UIMessage& a_message) override; // 04
23 
24  // override (MenuEventHandler)
25  bool ShouldHandleEvent(const InputEvent* a_event) override; // 01
26  bool HandleEvent(const MouseMoveEvent* a_event) override; // 04
27  bool HandleEvent(const ThumbstickEvent* a_event) override; // 03
28  };
29 #ifndef SKYRIMVR
30  static_assert(sizeof(CursorMenu) == 0x40);
31 #else
32  static_assert(sizeof(CursorMenu) == 0x50);
33 #endif
34 }
Definition: CursorMenu.h:14
static constexpr auto RTTI
Definition: CursorMenu.h:16
bool HandleEvent(const ThumbstickEvent *a_event) override
constexpr static std::string_view MENU_NAME
Definition: CursorMenu.h:17
bool ShouldHandleEvent(const InputEvent *a_event) override
UI_MESSAGE_RESULTS ProcessMessage(UIMessage &a_message) override
~CursorMenu() override
bool HandleEvent(const MouseMoveEvent *a_event) override
Definition: IMenu.h:56
Definition: InputEvent.h:26
Definition: MenuEventHandler.h:17
Definition: MouseMoveEvent.h:8
Definition: ThumbstickEvent.h:8
Definition: UIMessage.h:28
Definition: AbsorbEffect.h:6
UI_MESSAGE_RESULTS
Definition: IMenu.h:49
constexpr REL::ID RTTI_CursorMenu
Definition: Offsets_RTTI.h:4576