MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
include
mgl
input
touch
mgl_touch_settings.h
[詳解]
1
// SPDX-License-Identifier: Zlib
2
/* ------------------------------------------------------------------------- */
9
/* ------------------------------------------------------------------------- */
10
11
#ifndef INCGUARD_MGL_TOUCH_SETTINGS_H_1665446068
12
#define INCGUARD_MGL_TOUCH_SETTINGS_H_1665446068
13
14
#include <
mgl/input/touch/mgl_touch_server.h
>
15
#include <
mgl/mgl_environment.h
>
16
17
namespace
MGL::Input
18
{
20
class
TouchSettings
21
{
22
public
:
23
/* ------------------------------------------------------------------------- */
27
/* ------------------------------------------------------------------------- */
28
TouchSettings
() noexcept
29
: _server(
TouchServer
::GetInstance())
30
{
31
}
32
33
/* ------------------------------------------------------------------------- */
38
/* ------------------------------------------------------------------------- */
39
void
SetBounds
(
const
Rectangle
&bounds)
noexcept
40
{
41
_server.
SetBounds
(bounds);
42
}
43
44
/* ------------------------------------------------------------------------- */
50
/* ------------------------------------------------------------------------- */
51
void
SetBounds
(
const
Rectangle
&bounds,
const
Vector2
&logicalSize)
noexcept
52
{
53
_server.
SetBounds
(bounds, logicalSize);
54
}
55
56
private
:
57
TouchServer
&_server;
58
};
59
}
// namespace MGL::Input
60
61
#endif
// INCGUARD_MGL_TOUCH_SETTINGS_H_1665446068
62
63
// vim: et ts=4 sw=4 sts=4
MGL::Input::TouchServer
タッチサーバクラス
Definition
mgl_touch_server.h:29
MGL::Input::TouchServer::SetBounds
void SetBounds(const Rectangle &bounds) noexcept
タッチの入力範囲を設定
Definition
mgl_touch_server.cc:228
MGL::Input::TouchSettings
MGL タッチ入力設定
Definition
mgl_touch_settings.h:21
MGL::Input::TouchSettings::SetBounds
void SetBounds(const Rectangle &bounds, const Vector2 &logicalSize) noexcept
タッチの入力範囲を論理サイズで設定
Definition
mgl_touch_settings.h:51
MGL::Input::TouchSettings::SetBounds
void SetBounds(const Rectangle &bounds) noexcept
タッチの入力範囲を設定
Definition
mgl_touch_settings.h:39
MGL::Input::TouchSettings::TouchSettings
TouchSettings() noexcept
コンストラクタ
Definition
mgl_touch_settings.h:28
mgl_environment.h
MGL 環境定義
mgl_touch_server.h
MGL タッチ入力サーバ
MGL::Rectangle
矩形
Definition
mgl_rectangle.h:20
MGL::Vector2
2Dベクトル
Definition
mgl_vector2.h:23
構築:
1.12.0