Projeto IDJ - Towers Of Madness
TowerDefenseLovecraftnianoZombicida
 Todos Classes Arquivos Funções Variáveis Definições de Tipos Enumerações Valores enumerados Definições e Macros Páginas
Métodos Públicos | Lista de todos os Membros
Referência da Classe UIcanvas

#include <UIcanvas.h>

Diagrama de Hierarquia para UIcanvas:
[legenda]
Diagrama de colaboração para UIcanvas:
[legenda]

Métodos Públicos

 UIcanvas (UIelement::BehaviorType behavior=UIelement::BehaviorType::STRETCH)
 
 UIcanvas (Vec2 aspectRatio, UIelement::BehaviorType behavior=UIelement::BehaviorType::FIT)
 
virtual void Update (float dt, Rect parentCanvas)
 
void SetAspectRatio (Vec2 aspectRatio)
 
bool Is (std::string UItype) const
 
- Métodos Públicos inherited from UIelement
void SetCenter (Vec2 center)
 
void SetAnchors (Vec2 min, Vec2 max)
 
void SetOffsets (Vec2 min, Vec2 max)
 
void SetBehavior (BehaviorType type)
 
Rect GetAnchors (void) const
 
Rect GetOffsets (void) const
 
virtual void Render (bool debugRender=false) const
 
Rect GetBoundingBox (void) const
 
Rect ComputeBoundingbox (Rect parentCanvas)
 
Rect ComputeBox (Rect boundingBox={-1.,-1.,-1.,-1.})
 
 operator Rect () const
 

Additional Inherited Members

- Tipos Públicos inherited from UIelement
enum  BehaviorType { FIT, FILL, STRETCH }
 
- Métodos Protegidos inherited from UIelement
 UIelement (BehaviorType behavior=BehaviorType::STRETCH, Vec2 center=Vec2(0.5, 0.5))
 
- Atributos Protegidos inherited from UIelement
Rect boundingBox
 
Rect box
 
Vec2 kernelSize
 
Vec2 center
 

Construtores & Destrutores

UIcanvas::UIcanvas ( UIelement::BehaviorType  behavior = UIelement::BehaviorType::STRETCH)
UIcanvas::UIcanvas ( Vec2  aspectRatio,
UIelement::BehaviorType  behavior = UIelement::BehaviorType::FIT 
)

Métodos

bool UIcanvas::Is ( std::string  UItype) const
virtual

Reimplementação de UIelement.

Reimplementado por UIgridGroup, UIhorizontalGroup e UIverticalGroup.

void UIcanvas::SetAspectRatio ( Vec2  aspectRatio)
void UIcanvas::Update ( float  dt,
Rect  parentCanvas 
)
virtual

Reimplementação de UIelement.

Reimplementado por UIgridGroup, UIhorizontalGroup e UIverticalGroup.


A documentação para esta classe foi gerada a partir dos seguintes arquivos: