MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_mouse_delegate.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_MOUSE_DELEGATE_H_1609145190
12#define INCGUARD_MGL_MOUSE_DELEGATE_H_1609145190
13
15
16namespace MGL::Input
17{
20{
21public:
22 virtual ~MouseDelegate() noexcept = default;
23
24 /* ------------------------------------------------------------------------- */
29 /* ------------------------------------------------------------------------- */
30 virtual void UpdateState(MouseState &state) noexcept = 0;
31
32 /* ------------------------------------------------------------------------- */
37 /* ------------------------------------------------------------------------- */
38 virtual void PostUpdatePosition(const MouseState &state) noexcept = 0;
39
40 /* ------------------------------------------------------------------------- */
47 /* ------------------------------------------------------------------------- */
48 virtual bool SetCursorMode(CursorMode cursorMode) noexcept = 0;
49
50 /* ------------------------------------------------------------------------- */
55 /* ------------------------------------------------------------------------- */
56 [[nodiscard]] virtual CursorMode GetCursorMode() const noexcept = 0;
57
58 /* ------------------------------------------------------------------------- */
63 /* ------------------------------------------------------------------------- */
64 virtual void SetCursorVisibleMode(CursorVisibleMode visibleMode) noexcept = 0;
65
66 /* ------------------------------------------------------------------------- */
71 /* ------------------------------------------------------------------------- */
72 [[nodiscard]] virtual CursorVisibleMode GetCursorVisibleMode() const noexcept = 0;
73
74 /* ------------------------------------------------------------------------- */
80 /* ------------------------------------------------------------------------- */
81 [[nodiscard]] virtual bool IsConnecting() const noexcept = 0;
82};
83} // namespace MGL::Input
84
85#endif // INCGUARD_MGL_MOUSE_DELEGATE_H_1609145190
86
87// vim: et ts=4 sw=4 sts=4
マウス入力デリゲート基底クラス
Definition mgl_mouse_delegate.h:20
virtual CursorMode GetCursorMode() const noexcept=0
カーソルモードを取得
virtual void SetCursorVisibleMode(CursorVisibleMode visibleMode) noexcept=0
カーソルの表示モードを設定
virtual bool IsConnecting() const noexcept=0
マウスの接続状態を取得
virtual void UpdateState(MouseState &state) noexcept=0
マウス入力状態の更新処理
virtual bool SetCursorMode(CursorMode cursorMode) noexcept=0
カーソルモードを設定
virtual void PostUpdatePosition(const MouseState &state) noexcept=0
マウスの座標確定後の処理
virtual CursorVisibleMode GetCursorVisibleMode() const noexcept=0
カーソルの表示モードを取得
MGL マウス入力状態定義
CursorVisibleMode
表示設定
Definition mgl_mouse_state.h:75
CursorMode
カーソルモード
Definition mgl_mouse_state.h:67
マウスの状態
Definition mgl_mouse_state.h:52