MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_window_module_win32.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_WINDOW_MODULE_WIN32_H_1617004597
12#define INCGUARD_MGL_WINDOW_MODULE_WIN32_H_1617004597
13
14#include <mgl/mgl_environment.h>
15#if defined(MGL_TARGET_WIN32)
16
18
19namespace MGL::System
20{
23{
24public:
25 /* ------------------------------------------------------------------------- */
31 /* ------------------------------------------------------------------------- */
32 [[nodiscard]] bool IsAvailable() const noexcept override
33 {
34 return true;
35 }
36
37 void Resize(uint32_t width, uint32_t height) noexcept override;
38
39 void SetFullscreen(bool isEnabled) noexcept override;
40 void ToggleFullscreen() noexcept override;
41 [[nodiscard]] bool IsFullscreen() const noexcept override;
42
43 void Focus() noexcept override;
44 [[nodiscard]] bool IsFocused() const noexcept override;
45
46 void Alert(const char *message) const noexcept override;
47
48 void SetTitle(const char *title) noexcept override;
49
50 [[nodiscard]] int32_t GetIdentifier() const noexcept override;
51
52 [[nodiscard]] ScreenSize GetScreenSize() const noexcept override;
53};
54} // namespace MGL::System
55
56#endif // MGL_TARGET_WIN32
57#endif // INCGUARD_MGL_WINDOW_MODULE_WIN32_H_1617004597
58
59// vim: et ts=4 sw=4 sts=4
Win32用ウィンドウモジュール
Definition mgl_window_module_win32.h:23
ScreenSize GetScreenSize() const noexcept override
ウィンドウが存在している画面のサイズ情報を取得
Definition mgl_window_module_win32.cc:165
bool IsFullscreen() const noexcept override
フルスクリーン状態の取得
Definition mgl_window_module_win32.cc:75
void ToggleFullscreen() noexcept override
フルスクリーンの有効・無効の切り替え
Definition mgl_window_module_win32.cc:59
void Resize(uint32_t width, uint32_t height) noexcept override
サイズの変更
Definition mgl_window_module_win32.cc:31
void SetTitle(const char *title) noexcept override
ウィンドウタイトルの設定
Definition mgl_window_module_win32.cc:139
void Alert(const char *message) const noexcept override
アラートの表示
Definition mgl_window_module_win32.cc:120
bool IsAvailable() const noexcept override
ウィンドウ機能が有効かを取得
Definition mgl_window_module_win32.h:32
void SetFullscreen(bool isEnabled) noexcept override
フルスクリーンの設定
Definition mgl_window_module_win32.cc:45
void Focus() noexcept override
ウィンドウにフォーカスを設定
Definition mgl_window_module_win32.cc:91
int32_t GetIdentifier() const noexcept override
ウィンドウの識別子を取得
Definition mgl_window_module_win32.cc:153
bool IsFocused() const noexcept override
フォーカス状態の取得
Definition mgl_window_module_win32.cc:106
ウィンドウ機能のインターフェース
Definition mgl_window_module_interface.h:22
MGL 環境定義
MGL ウィンドウ機能のインターフェース
画面サイズ情報
Definition mgl_system_defs.h:20