MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
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
15#include <mgl/mgl_environment.h>
16
17namespace MGL::Input
18{
21{
22public:
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
56private:
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
タッチサーバクラス
Definition mgl_touch_server.h:29
void SetBounds(const Rectangle &bounds) noexcept
タッチの入力範囲を設定
Definition mgl_touch_server.cc:228
MGL タッチ入力設定
Definition mgl_touch_settings.h:21
void SetBounds(const Rectangle &bounds, const Vector2 &logicalSize) noexcept
タッチの入力範囲を論理サイズで設定
Definition mgl_touch_settings.h:51
void SetBounds(const Rectangle &bounds) noexcept
タッチの入力範囲を設定
Definition mgl_touch_settings.h:39
TouchSettings() noexcept
コンストラクタ
Definition mgl_touch_settings.h:28
MGL 環境定義
MGL タッチ入力サーバ
矩形
Definition mgl_rectangle.h:20
2Dベクトル
Definition mgl_vector2.h:23