Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
nw4hbm::lyt::Window Class Reference

#include <window.h>

+ Inheritance diagram for nw4hbm::lyt::Window:
+ Collaboration diagram for nw4hbm::lyt::Window:

Classes

struct  Content
 
struct  Frame
 

Public Member Functions

 Window (const res::Window *pBlock, const ResBlockSet &resBlockSet)
 
virtual ~Window ()
 
virtual void DrawSelf (const DrawInfo &drawInfo)
 
virtual void AnimateSelf (u32 option)
 
virtual ut::Color GetVtxColor (u32 idx) const
 
virtual void SetVtxColor (u32 idx, ut::Color value)
 
virtual u8 GetVtxColorElement (u32 idx) const
 
virtual void SetVtxColorElement (u32 idx, u8 value)
 
virtual MaterialFindMaterialByName (const char *findName, bool bRecursive)
 
virtual void UnbindAnimationSelf (AnimTransform *animTrans)
 
virtual AnimationLinkFindAnimationLink (AnimTransform *animTrans)
 
virtual void SetAnimationEnable (AnimTransform *animTrans, bool bEnable, bool bRecursive)
 
virtual MaterialGetContentMaterial () const
 
virtual MaterialGetFrameMaterial (u32 frameIdx) const
 
virtual void DrawContent (const math::VEC2 &basePt, const WindowFrameSize &frameSize, u8 alpha)
 
virtual void DrawFrame (const math::VEC2 &basePt, const Frame &frame, const WindowFrameSize &frameSize, u8 alpha)
 
virtual void DrawFrame4 (const math::VEC2 &basePt, const Frame *frames, const WindowFrameSize &frameSize, u8 alpha)
 
virtual void DrawFrame8 (const math::VEC2 &basePt, const Frame *frames, const WindowFrameSize &frameSize, u8 alpha)
 
WindowFrameSize GetFrameSize (u8 frameNum, const Frame *frames)
 
- Public Member Functions inherited from nw4hbm::lyt::Pane
 Pane ()
 
 Pane (const res::Pane *pBlock)
 
virtual ~Pane ()
 
virtual void CalculateMtx (const DrawInfo &drawInfo)
 
virtual void Draw (const DrawInfo &drawInfo)
 
virtual void Animate (u32 option=0)
 
virtual u8 GetColorElement (u32 idx) const
 
virtual void SetColorElement (u32 idx, u8 color)
 
virtual PaneFindPaneByName (const char *findName, bool bRecursive=true)
 
virtual void BindAnimation (AnimTransform *animTrans, bool bRecursive=true)
 
virtual void UnbindAnimation (AnimTransform *animTrans, bool bRecursive=true)
 
virtual void UnbindAllAnimation (bool bRecursive=true)
 
virtual MaterialGetMaterial () const
 
virtual void LoadMtx (const DrawInfo &drawInfo)
 
PaneGetParent () const
 
PaneListGetChildList ()
 
const math::VEC3GetTranslate ()
 
void SetTranslate (const math::VEC3 &translate)
 
void SetTranslate (const math::VEC2 &translate)
 
const math::VEC3GetRotate () const
 
void SetRotate (const math::VEC3 &rotate)
 
const math::VEC2GetScale () const
 
void SetScale (const math::VEC2 &scale)
 
const SizeGetSize () const
 
void SetSize (const Size &size)
 
bool IsVisible ()
 
void SetVisible (bool visible)
 
bool IsInfluencedAlpha ()
 
void SetInfluencedAlpha (bool visible)
 
bool IsLocationAdjust ()
 
void SetLocationAdjust (bool visible)
 
const math::MTX34GetGlobalMtx () const
 
void SetGlobalMtx (const math::MTX34 &mtx)
 
const math::MTX34GetMtx () const
 
void SetMtx (const math::MTX34 &mtx)
 
u8 GetAlpha ()
 
void SetAlpha (u8 alpha)
 
const char * GetName () const
 
void SetSRTElement (u32 idx, f32 value)
 
bool IsUserAllocated () const
 
const ut::Rect GetPaneRect (const DrawInfo &drawInfo) const
 
math::VEC2 GetVtxPos () const
 
void SetName (const char *name)
 
void SetUserData (const char *userData)
 
void Init ()
 
void InsertChild (PaneList::Iterator next, Pane *pChild)
 
void InsertChild (Pane *pNext, Pane *pChild)
 
void PrependChild (Pane *pChild)
 
void AppendChild (Pane *pChild)
 
void RemoveChild (Pane *pChild)
 
void CalculateMtxChild (const DrawInfo &drawInfo)
 
void AddAnimationLink (AnimationLink *animationLink)
 

Public Attributes

 NW4HBM_UT_RUNTIME_TYPEINFO
 
- Public Attributes inherited from nw4hbm::lyt::Pane
 NW4HBM_UT_RUNTIME_TYPEINFO
 

Private Types

typedef struct nw4hbm::lyt::Window::Content Content
 
typedef struct nw4hbm::lyt::Window::Frame Frame
 

Private Attributes

InflationLRTB mContentInflation
 
Content mContent
 
FramemFrames
 
u8 mFrameNum
 

Additional Inherited Members

- Protected Attributes inherited from nw4hbm::lyt::Pane
PanempParent
 
PaneList mChildList
 
AnimationLinkList mAnimList
 
MaterialmpMaterial
 
math::VEC3 mTranslate
 
math::VEC3 mRotate
 
math::VEC2 mScale
 
Size mSize
 
math::MTX34 mMtx
 
math::MTX34 mGlbMtx
 
char mName [16]
 
char mUserData [8]
 
u8 mBasePosition
 
u8 mAlpha
 
u8 mGlbAlpha
 
u8 mFlag
 
bool mbUserAllocated
 

Member Typedef Documentation

◆ Content

struct nw4hbm::lyt::Window::Content nw4hbm::lyt::Window::Content
private

◆ Frame

struct nw4hbm::lyt::Window::Frame nw4hbm::lyt::Window::Frame
private

Constructor & Destructor Documentation

◆ Window()

nw4hbm::lyt::Window::Window ( const res::Window * pBlock,
const ResBlockSet & resBlockSet )

◆ ~Window()

nw4hbm::lyt::Window::~Window ( )
virtual

Member Function Documentation

◆ AnimateSelf()

void nw4hbm::lyt::Window::AnimateSelf ( u32 option)
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ DrawContent()

void nw4hbm::lyt::Window::DrawContent ( const math::VEC2 & basePt,
const WindowFrameSize & frameSize,
u8 alpha )
virtual

◆ DrawFrame()

void nw4hbm::lyt::Window::DrawFrame ( const math::VEC2 & basePt,
const Frame & frame,
const WindowFrameSize & frameSize,
u8 alpha )
virtual

◆ DrawFrame4()

void nw4hbm::lyt::Window::DrawFrame4 ( const math::VEC2 & basePt,
const Frame * frames,
const WindowFrameSize & frameSize,
u8 alpha )
virtual

◆ DrawFrame8()

void nw4hbm::lyt::Window::DrawFrame8 ( const math::VEC2 & basePt,
const Frame * frames,
const WindowFrameSize & frameSize,
u8 alpha )
virtual

◆ DrawSelf()

void nw4hbm::lyt::Window::DrawSelf ( const DrawInfo & drawInfo)
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ FindAnimationLink()

AnimationLink * nw4hbm::lyt::Window::FindAnimationLink ( AnimTransform * animTrans)
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ FindMaterialByName()

Material * nw4hbm::lyt::Window::FindMaterialByName ( const char * findName,
bool bRecursive )
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ GetContentMaterial()

Material * nw4hbm::lyt::Window::GetContentMaterial ( ) const
virtual

◆ GetFrameMaterial()

Material * nw4hbm::lyt::Window::GetFrameMaterial ( u32 frameIdx) const
virtual

◆ GetFrameSize()

WindowFrameSize nw4hbm::lyt::Window::GetFrameSize ( u8 frameNum,
const Frame * frames )

◆ GetVtxColor()

ut::Color nw4hbm::lyt::Window::GetVtxColor ( u32 idx) const
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ GetVtxColorElement()

u8 nw4hbm::lyt::Window::GetVtxColorElement ( u32 idx) const
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ SetAnimationEnable()

void nw4hbm::lyt::Window::SetAnimationEnable ( AnimTransform * animTrans,
bool bEnable,
bool bRecursive )
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ SetVtxColor()

void nw4hbm::lyt::Window::SetVtxColor ( u32 idx,
ut::Color value )
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ SetVtxColorElement()

void nw4hbm::lyt::Window::SetVtxColorElement ( u32 idx,
u8 value )
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ UnbindAnimationSelf()

void nw4hbm::lyt::Window::UnbindAnimationSelf ( AnimTransform * animTrans)
virtual

Reimplemented from nw4hbm::lyt::Pane.

Member Data Documentation

◆ mContent

Content nw4hbm::lyt::Window::mContent
private

◆ mContentInflation

InflationLRTB nw4hbm::lyt::Window::mContentInflation
private

◆ mFrameNum

u8 nw4hbm::lyt::Window::mFrameNum
private

◆ mFrames

Frame* nw4hbm::lyt::Window::mFrames
private

◆ NW4HBM_UT_RUNTIME_TYPEINFO

nw4hbm::lyt::Window::NW4HBM_UT_RUNTIME_TYPEINFO

The documentation for this class was generated from the following files: