|
MGL(Win32)
|
イベントハンドルクラス [詳解]
#include <mgl_event_handle.h>
公開メンバ関数 | |
| Handle () noexcept | |
| コンストラクタ | |
| Handle (NotifyType type, CallbackFunction callback, void *callbackArg) noexcept | |
| コンストラクタ | |
| ~Handle () noexcept | |
| デストラクタ | |
| void | Set (NotifyType type, UniqueID id) noexcept |
| パラメータの設定 | |
| constexpr NotifyType | GetType () const noexcept |
| 通知タイプの取得 | |
| constexpr UniqueID | GetUniqueID () const noexcept |
| ユニークIDを取得 | |
| constexpr bool | IsValid () const noexcept |
| ハンドルの有効状態を取得 | |
| void | Unregister () noexcept |
| 登録解除 | |
| Handle (const Handle &)=delete | |
| Handle & | operator= (const Handle &)=delete |
| constexpr | Handle (Handle &&other) noexcept |
| ムーブコンストラクタ | |
| constexpr Handle & | operator= (Handle &&other) noexcept |
| ムーブ代入演算 | |
イベントハンドルクラス
|
noexcept |
コンストラクタ
| [in] | type | 通知タイプ |
| [in] | callback | コールバック関数 |
| [in] | callbackArg | コールバック関数の引数 |
|
inlineconstexprnoexcept |
ムーブコンストラクタ
| [in] | other | 移動元ハンドル |
|
inlinenodiscardconstexprnoexcept |
通知タイプの取得
|
inlinenodiscardconstexprnoexcept |
ユニークIDを取得
|
inlinenodiscardconstexprnoexcept |
ハンドルの有効状態を取得
| true | 有効 |
| false | 無効 |
ムーブ代入演算
| [in] | other | 移動元ハンドル |
|
noexcept |
パラメータの設定
| [in] | type | 通知タイプ |
| [in] | id | 通知ID |