|
KCGStudyDXLibProject
|
ボタン [詳解]
#include <Button.h>


公開メンバ関数 | |
| Button () | |
| コンストラクタ | |
| void | start () override |
| 初期化時実行 | |
| void | update () override |
| 毎フレーム実行 | |
| void | fixedUpdate () override |
| 固定間隔で実行 | |
| void | destroy () override |
| 破棄時実行 | |
| Button * | setIsSelect (const bool isSelect) |
| 選択状態のセット | |
| Button * | setUpButton (Button **upButton) |
| 上のボタンをセット | |
| Button * | setDownButton (Button **downButton) |
| 下のボタンをセット | |
| template<class T> | |
| Button * | setSelectChangeEvent (T *obj, void(T::*method)(bool)) |
| 選択状態変更監視用追加 | |
| template<class T> | |
| Button * | destroySelectChangeEvent (T *obj, void(T::*method)(bool)) |
| 選択状態変更監視用破棄 | |
| template<class T> | |
| Button * | setEnterEvent (T *obj, void(T::*method)(bool)) |
| エンター状態変更監視用追加 | |
| template<class T> | |
| Button * | destoryEnterEvent (T *obj, void(T::*method)(bool)) |
| エンター状態変更監視用破棄 | |
| void | selectChange (bool up, bool down) |
| 選択状態の変更 | |
| void | enter (bool isEnter) |
| エンターしたかどうか | |
| 基底クラス IComponent に属する継承公開メンバ関数 | |
| IComponent ()=default | |
| コンストラクタ | |
| virtual | ~IComponent ()=default |
| デストラクタ | |
| void | setGameObject (GameObject *obj) |
| アタッチされているゲームオブジェクトをセットする | |
| GameObject * | getGameObject () const |
| アタッチされているゲームオブジェクトの取得 | |
その他の継承メンバ | |
| 基底クラス IComponent に属する継承限定公開変数類 | |
| GameObject * | _gameObject = nullptr |
ボタン
|
inline |
エンター状態変更監視用破棄
| T | 型 |
| obj | インスタンス |
| method | 関数 |
|
overridevirtual |
破棄時実行
IComponentを実装しています。
|
inline |
選択状態変更監視用破棄
| T | 型 |
| obj | インスタンス |
| method | 関数 |
| void Button::enter | ( | bool | isEnter | ) |
エンターしたかどうか
| isEnter | trueならエンターした |
|
overridevirtual |
固定間隔で実行
IComponentを実装しています。
| void Button::selectChange | ( | bool | up, |
| bool | down ) |
選択状態の変更
| up | 上 |
| down | 下 |
|
inline |
エンター状態変更監視用追加
| T | 型 |
| obj | インスタンス |
| method | 関数 |
| Button * Button::setIsSelect | ( | const bool | isSelect | ) |
選択状態のセット
| isSelect | trueなら選択している |
|
inline |
選択状態変更監視用追加
| T | 型 |
| obj | インスタンス |
| method | 関数 |
|
overridevirtual |
初期化時実行
IComponentを実装しています。
|
overridevirtual |
毎フレーム実行
IComponentを実装しています。