Files
tp/include/f_pc/f_pc_layer.h
T

55 lines
1.8 KiB
C
Raw Normal View History

2021-03-28 22:49:05 +02:00
2021-04-01 12:06:29 +02:00
#ifndef F_PC_LAYER_H_
#define F_PC_LAYER_H_
2023-05-12 12:10:14 -07:00
#include "SSystem/SComponent/c_list.h"
2021-04-01 12:06:29 +02:00
#include "SSystem/SComponent/c_node.h"
#include "SSystem/SComponent/c_tree.h"
2021-03-28 22:49:05 +02:00
#include "dolphin/types.h"
2023-05-12 12:10:14 -07:00
typedef struct create_tag_class create_tag_class;
typedef struct process_method_tag_class process_method_tag_class;
2021-04-01 12:06:29 +02:00
typedef struct process_node_class process_node_class;
typedef struct layer_class {
2022-12-30 16:43:15 -08:00
/* 0x00 */ node_class mNode;
/* 0x0C */ u32 mLayerID;
/* 0x10 */ node_lists_tree_class mNodeListTree;
/* 0x18 */ process_node_class* mpPcNode;
/* 0x1C */ node_list_class mCancelList;
2021-04-01 12:06:29 +02:00
struct {
2022-12-30 16:43:15 -08:00
/* 0x28 */ s16 mCreatingCount;
/* 0x2A */ s16 mDeletingCount;
2021-04-01 12:06:29 +02:00
} counts;
} layer_class;
void fpcLy_SetCurrentLayer(layer_class* pLayer);
layer_class* fpcLy_CurrentLayer(void);
layer_class* fpcLy_RootLayer(void);
layer_class* fpcLy_Layer(unsigned int id);
layer_class* fpcLy_Search(unsigned int id);
void fpcLy_Regist(layer_class* pLayer);
void fpcLy_CreatedMesg(layer_class* pLayer);
void fpcLy_CreatingMesg(layer_class* pLayer);
void fpcLy_DeletedMesg(layer_class* pLayer);
void fpcLy_DeletingMesg(layer_class* pLayer);
BOOL fpcLy_IsCreatingMesg(layer_class* pLayer);
BOOL fpcLy_IsDeletingMesg(layer_class* pLayer);
s32 fpcLy_IntoQueue(layer_class* pLayer, int treeListIdx, create_tag_class* pTag, int idx);
s32 fpcLy_ToQueue(layer_class* pLayer, int treeListIdx, create_tag_class* pTag);
s32 fpcLy_QueueTo(layer_class* pLayer, create_tag_class* pTag);
void fpcLy_Cancel(layer_class* pLayer);
2023-05-12 12:10:14 -07:00
bool fpcLy_CancelMethod(process_method_tag_class* pLayer);
2021-04-01 12:06:29 +02:00
2023-05-12 12:10:14 -07:00
void fpcLy_CancelQTo(process_method_tag_class* pMthd);
s32 fpcLy_ToCancelQ(layer_class* pLayer, process_method_tag_class* pMthd);
2021-04-01 12:06:29 +02:00
void fpcLy_Create(layer_class* pLayer, void* pPcNode, node_list_class* pLists, int listNum);
s32 fpcLy_Delete(layer_class* pLayer);
#endif