Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
group.h
Go to the documentation of this file.
1#ifndef NW4HBM_LYT_GROUP_H
2#define NW4HBM_LYT_GROUP_H
3
4#include <revolution/types.h>
5
6#include "pane.h"
7
8#include "../ut/LinkList.h"
9
10namespace nw4hbm {
11 namespace lyt {
12
13 namespace detail {
14 typedef struct PaneLink {
16
17 /* 0x08 */ Pane* mTarget;
19 } // namespace detail
21
22 class Group {
23 public:
24 Group();
25 Group(const res::Group* pResGroup, Pane* pRootPane);
26
27 /* 0x08 */ virtual ~Group();
28
29 const char* GetName() const { return mName; }
30 bool IsUserAllocated() const { return mbUserAllocated; }
31
33
34 void Init();
35 void AppendPane(Pane* pane);
36
37 /* 0x00 (vtable) */
39
40 protected:
42 /* 0x18 */ char mName[16];
43 /* 0x29 */ bool mbUserAllocated;
44 /* 0x2A */ u8 mPadding[2];
45 };
46 typedef ut::LinkList<Group, offsetof(Group, mLink)> GroupList;
47
49 public:
52
54
55 void AppendGroup(Group* pGroup);
56 Group* FindGroupByName(const char* findName);
57
58 protected:
60 };
61
62 } // namespace lyt
63} // namespace nw4hbm
64
65#endif
Definition group.h:48
void AppendGroup(Group *pGroup)
Definition lyt_group.cpp:69
~GroupContainer()
Definition lyt_group.cpp:55
GroupContainer()
Definition group.h:50
Group * FindGroupByName(const char *findName)
Definition lyt_group.cpp:73
GroupList & GetGroupList()
Definition group.h:53
GroupList mGroupList
Definition group.h:59
Definition group.h:22
char mName[16]
Definition group.h:42
bool IsUserAllocated() const
Definition group.h:30
u8 mPadding[2]
Definition group.h:44
const char * GetName() const
Definition group.h:29
void Init()
Definition lyt_group.cpp:31
PaneLinkList mPaneLinkList
Definition group.h:41
Group()
Definition lyt_group.cpp:13
virtual ~Group()
Definition lyt_group.cpp:35
bool mbUserAllocated
Definition group.h:43
ut::LinkListNode mLink
Definition group.h:38
void AppendPane(Pane *pane)
Definition lyt_group.cpp:46
PaneLinkList & GetPaneList()
Definition group.h:32
Definition pane.h:42
Definition LinkList.h:23
unsigned char u8
Definition types.h:8
struct nw4hbm::lyt::detail::PaneLink PaneLink
ut::LinkList< Group, offsetof(Group, mLink)> GroupList
Definition group.h:46
ut::LinkList< detail::PaneLink, offsetof(detail::PaneLink, mLink)> PaneLinkList
Definition group.h:20
Definition HBMAnmController.h:6
Definition resources.h:244