MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
include
mgl
input
mouse
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
14
#include <
mgl/input/mouse/mgl_mouse_state.h
>
15
16
namespace
MGL::Input
17
{
19
class
MouseDelegate
20
{
21
public
:
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
MGL::Input::MouseDelegate
マウス入力デリゲート基底クラス
Definition
mgl_mouse_delegate.h:20
MGL::Input::MouseDelegate::GetCursorMode
virtual CursorMode GetCursorMode() const noexcept=0
カーソルモードを取得
MGL::Input::MouseDelegate::SetCursorVisibleMode
virtual void SetCursorVisibleMode(CursorVisibleMode visibleMode) noexcept=0
カーソルの表示モードを設定
MGL::Input::MouseDelegate::IsConnecting
virtual bool IsConnecting() const noexcept=0
マウスの接続状態を取得
MGL::Input::MouseDelegate::UpdateState
virtual void UpdateState(MouseState &state) noexcept=0
マウス入力状態の更新処理
MGL::Input::MouseDelegate::SetCursorMode
virtual bool SetCursorMode(CursorMode cursorMode) noexcept=0
カーソルモードを設定
MGL::Input::MouseDelegate::PostUpdatePosition
virtual void PostUpdatePosition(const MouseState &state) noexcept=0
マウスの座標確定後の処理
MGL::Input::MouseDelegate::GetCursorVisibleMode
virtual CursorVisibleMode GetCursorVisibleMode() const noexcept=0
カーソルの表示モードを取得
mgl_mouse_state.h
MGL マウス入力状態定義
MGL::Input::CursorVisibleMode
CursorVisibleMode
表示設定
Definition
mgl_mouse_state.h:75
MGL::Input::CursorMode
CursorMode
カーソルモード
Definition
mgl_mouse_state.h:67
MGL::Input::MouseState
マウスの状態
Definition
mgl_mouse_state.h:52
構築:
1.12.0