|
MGL(Win32)
|
UIウィジットクラス [詳解]
#include <mgl_ui_widget.h>
公開メンバ関数 | |
| Widget (uint32_t typeIdentifier) noexcept | |
| コンストラクタ | |
| void | Update (const MGL::Vector2 &offset=MGL::Vector2(0.0f, 0.0f), bool updateEvent=true) noexcept |
| 更新処理 | |
| void | Render (const MGL::Vector2 &offset=MGL::Vector2(0.0f, 0.0f)) noexcept |
| 描画処理 | |
| void | Update (bool updateEvent) noexcept |
| 更新処理(オフセットなし) | |
| virtual MGL::Rectangle | GetRectangle () const noexcept=0 |
| 矩形の取得 | |
| constexpr uint32_t | GetTypeIdentifier () const noexcept |
| ウィジットの種類の識別子を取得 | |
| void | SetVisible (bool isVisible) noexcept |
| 可視状態の設定 | |
| bool | IsVisible () const noexcept |
| 可視状態の取得 | |
| constexpr bool | GetLocalVisibleFlag () const noexcept |
| このウィジットに設定された可視状態のフラグを取得 | |
| constexpr void | SetTransparency (float transparency) noexcept |
| 透過値の設定 | |
| constexpr float | GetLocalTransparency () const noexcept |
| このウィジットに設定された透過値の設定 | |
| float | GetTransparency () const noexcept |
| 透過値の取得 | |
| MGL::Vector2 | GetPosition () const noexcept |
| 位置を取得 | |
| MGL_MAYBE_CONSTEXPR MGL::Vector2 | GetSize () const noexcept |
| サイズを取得 | |
| MGL::Vector2 | GetParentSize () const noexcept |
| 親のサイズを取得 | |
| bool | AddChild (Widget *child) noexcept |
| 子ウィジットの追加 | |
| bool | RemoveChild (Widget *child) noexcept |
| 子ウィジットの削除 | |
| const Widget * | GetParent () const noexcept |
| 親ウィジットの取得 | |
| const MGL::STL::list< Widget * > & | GetChildren () const noexcept |
| 子ウィジットの取得 | |
| bool | ActivateEventContext (EventListener *listener, EventDelegate *delegate) noexcept |
| イベントコンテキストのアクティベート | |
| bool | ActivateEventContext (EventListener *listener) noexcept |
| イベントコンテキストのアクティベート | |
| constexpr void | SetEventIdentifier (EventID identifier) noexcept |
| イベントIDを設定 | |
| constexpr EventID | GetEventIdentifier () const noexcept |
| イベントIDを取得 | |
| constexpr void | SetPivot (const MGL::Alignment &pivotAlignment) noexcept |
| ウィジットの中心アライメントを設定 | |
| constexpr const MGL::Alignment & | GetPivot () const noexcept |
| ウィジットの中心アライメントを取得 | |
| constexpr void | SetAnchor (const MGL::Alignment &anchorAlignment) noexcept |
| ウィジットのアンカーを設定 | |
| constexpr const MGL::Alignment & | GetAnchor () const noexcept |
| ウィジットのアンカー取得 | |
| constexpr EventState | GetEventState () const noexcept |
| イベントのステートを取得 | |
| constexpr MGL::Input::TouchID | GetEventTouchID () const noexcept |
| イベントのタッチIDを取得 | |
限定公開メンバ関数 | |
| virtual void | OnUpdate (const MGL::Vector2 &position) noexcept |
| 更新処理 | |
| virtual void | OnRender (const MGL::Vector2 &position) noexcept |
| 描画処理 | |
| virtual void | OnNotifiedEvent (EventType eventType, uint32_t argument) noexcept |
| イベント通知後の処理 | |
UIウィジットクラス
|
noexcept |
イベントコンテキストのアクティベート
| [in] | listener | イベントリスナー |
| true | 成功 |
| false | 失敗 |
|
noexcept |
イベントコンテキストのアクティベート
| [in] | listener | イベントリスナー |
| [in] | delegate | イベントデリゲート |
| true | 成功 |
| false | 失敗 |
|
noexcept |
子ウィジットの追加
| [in] | child | 子ウィジット |
|
inlinenodiscardconstexprnoexcept |
ウィジットのアンカー取得
|
inlinenodiscardnoexcept |
子ウィジットの取得
|
inlinenodiscardconstexprnoexcept |
イベントIDを取得
|
inlinenodiscardconstexprnoexcept |
イベントのステートを取得
|
inlinenodiscardconstexprnoexcept |
イベントのタッチIDを取得
|
inlinenodiscardconstexprnoexcept |
このウィジットに設定された透過値の設定
|
inlinenodiscardconstexprnoexcept |
このウィジットに設定された可視状態のフラグを取得
|
inlinenodiscardnoexcept |
親ウィジットの取得
|
nodiscardnoexcept |
親のサイズを取得
|
inlinenodiscardconstexprnoexcept |
ウィジットの中心アライメントを取得
|
nodiscardnoexcept |
位置を取得
|
nodiscardpure virtualnoexcept |
矩形の取得
|
inlinenodiscardnoexcept |
サイズを取得
|
nodiscardnoexcept |
透過値の取得
|
inlinenodiscardconstexprnoexcept |
ウィジットの種類の識別子を取得
|
nodiscardnoexcept |
可視状態の取得
| true | 可視 |
| false | 不可視 |
|
inlineprotectedvirtualnoexcept |
イベント通知後の処理
| [in] | eventType | 通知したイベントの種類 |
|
inlineprotectedvirtualnoexcept |
描画処理
| [in] | position | このウィジットの位置 |
|
inlineprotectedvirtualnoexcept |
更新処理
| [in] | position | このウィジットの位置 |
|
noexcept |
子ウィジットの削除
| [in] | child | 削除するウィジット |
| true | 成功 |
| false | 失敗 |
|
noexcept |
描画処理
| [in] | offset | オフセット |
|
inlineconstexprnoexcept |
ウィジットのアンカーを設定
| [in] | anchorAlignment | アンカー設定 |
|
inlineconstexprnoexcept |
イベントIDを設定
| [in] | identifier | 設定するイベントID |
|
inlineconstexprnoexcept |
ウィジットの中心アライメントを設定
| [in] | pivotAlignment | 中心位置のアライメント |
|
inlineconstexprnoexcept |
透過値の設定
| [in] | transparency | 設定する透過値 |
|
noexcept |
可視状態の設定
| [in] | isVisible | 設定する可視状態.trueで可視 |
|
inlinenoexcept |
更新処理(オフセットなし)
| [in] | updateEvent | イベント更新を行うかのフラグ |
|
noexcept |
更新処理
| [in] | offset | オフセット |
| [in] | updateEvent | イベント更新フラグ |