MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_window_module_macos.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_WINDOW_MODULE_MACOS_H_1613715419
12#define INCGUARD_MGL_WINDOW_MODULE_MACOS_H_1613715419
13
14#include <mgl/mgl_environment.h>
15#if defined(MGL_TARGET_MACOS)
16
18#include <mgl/event/mgl_event.h>
19
20namespace MGL::System
21{
23class MacOSWindowModule : public WindowModuleInterface
24{
25public:
26 MacOSWindowModule() noexcept;
27
28 [[nodiscard]] bool IsAvailable() const noexcept override
29 {
30 return true;
31 }
32
33 void Resize(uint32_t width, uint32_t height) noexcept override;
34
35 void SetFullscreen(bool isEnabled) noexcept override;
36 void ToggleFullscreen() noexcept override;
37 [[nodiscard]] bool IsFullscreen() const noexcept override;
38
39 void Focus() noexcept override;
40 [[nodiscard]] bool IsFocused() const noexcept override;
41
42 void Alert(const char *message) const noexcept override;
43
44 void SetTitle(const char *title) noexcept override;
45
46 [[nodiscard]] int32_t GetIdentifier() const noexcept override;
47
48 [[nodiscard]] ScreenSize GetScreenSize() const noexcept override;
49};
50} // namespace MGL::System
51
52#endif // MGL_TARGET_MACOS
53#endif // INCGUARD_MGL_WINDOW_MODULE_MACOS_H_1613715419
54
55// vim: et ts=4 sw=4 sts=4
MGL 環境定義
MGL イベント
MGL ウィンドウ機能のインターフェース