|
MGL(Win32)
|
Win32用ウィンドウクラス [詳解]
#include <mgl_win32_window.h>
クラス | |
| struct | Descriptor |
| ウィンドウ初期化用記述子 [詳解] | |
公開メンバ関数 | |
| bool | Initialize (HINSTANCE hInstance, int nCmdShow, WNDPROC windowProc, const Descriptor &descriptor) noexcept |
| 初期化処理 | |
| constexpr HWND | GetWindowHandler () noexcept |
| ウィンドウハンドラの取得 | |
| constexpr int | GetWidth () const noexcept |
| ウィンドウの幅を取得 | |
| constexpr int | GetHeight () const noexcept |
| ウィンドウの高さを取得 | |
| constexpr HINSTANCE | GetAppInstanceHandle () const noexcept |
| アプリケーションインスタンスのハンドルを取得 | |
| void | SetWindowTitle (const char *title) noexcept |
| ウィンドウタイトルの設定 | |
| bool | Resize (int width, int height) noexcept |
| ウィンドウのリサイズ | |
| float | GetLogicalScaleFactor () const noexcept |
| ウィンドウの論理サイズの倍率を取得 | |
| void | Update () noexcept |
| ウィンドウの更新処理 | |
基底クラス MGL::SharedSingleton< Window > に属する継承公開メンバ関数 | |
| SharedSingleton (const SharedSingleton &) noexcept=delete | |
| SharedSingleton (SharedSingleton &&) noexcept=delete | |
| SharedSingleton & | operator= (const SharedSingleton &) noexcept=delete |
| SharedSingleton & | operator= (SharedSingleton &&) noexcept=delete |
静的公開メンバ関数 | |
| static STL::unique_ptr< Window > & | GetInstanceRef () noexcept |
| インスタンスの取得 | |
基底クラス MGL::SharedSingleton< Window > に属する継承静的公開メンバ関数 | |
| static Window & | CreateInstance (Args... args) noexcept |
| インスタンスの生成 | |
| static Window & | GetInstance () noexcept |
| インスタンスの取得 | |
| static void | DestroyInstance () noexcept |
| インスタンスの破棄 | |
| static bool | HasInstance () noexcept |
| 有効なインスタンスを保持しているかを取得 | |
Win32用ウィンドウクラス
|
inlinenodiscardconstexprnoexcept |
ウィンドウの高さを取得
|
staticnoexcept |
インスタンスの取得
|
nodiscardnoexcept |
ウィンドウの論理サイズの倍率を取得
|
inlinenodiscardconstexprnoexcept |
ウィンドウの幅を取得
|
noexcept |
初期化処理
| [in] | hInstance | アプリケーションインスタンス |
| [in] | nCmdShow | ウィンドウの表示方法 |
| [in] | windowProc | ウィンドウプロシージャのアドレス |
| [in] | descriptor | 初期化用の記述子 |
| true | 成功 |
| false | 失敗 |
|
noexcept |
ウィンドウのリサイズ
| [in] | width | 幅 |
| [in] | height | 高さ |
|
noexcept |
ウィンドウタイトルの設定
| [in] | title | ウィンドウタイトル |