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
Tipos Públicos | Métodos Públicos | Atributos Públicos | Atributos Privados | Lista de todos os Membros
Referência da Classe UIgridGroup

#include <UIgridGroup.h>

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

Tipos Públicos

enum  ConstraintType { FIXED_N_ROWS, FIXED_N_COLS }
 
enum  BehaviorOnLess { CENTER, STRETCH, NORMAL }
 
- Tipos Públicos inherited from UIelement
enum  BehaviorType { FIT, FILL, STRETCH }
 

Métodos Públicos

 UIgridGroup (UIgridGroup::ConstraintType constraintType, int number, UIgridGroup::BehaviorOnLess behaviorOnLess=UIgridGroup::BehaviorOnLess::NORMAL, UIelement::BehaviorType behavior=UIelement::BehaviorType::STRETCH)
 
virtual void Update (float dt, Rect parentCanvas)
 
void SetConstraint (UIgridGroup::ConstraintType newConstraint, int value)
 
bool Is (std::string UItype) const
 
- Métodos Públicos inherited from UIcanvas
 UIcanvas (UIelement::BehaviorType behavior=UIelement::BehaviorType::STRETCH)
 
 UIcanvas (Vec2 aspectRatio, UIelement::BehaviorType behavior=UIelement::BehaviorType::FIT)
 
void SetAspectRatio (Vec2 aspectRatio)
 
- 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
 

Atributos Públicos

std::vector< UIelement * > groupedElements
 
Vec2 padding
 

Atributos Privados

UIgridGroup::ConstraintType constraint
 
int number
 
UIgridGroup::BehaviorOnLess behaviorOnLess
 

Additional Inherited Members

- 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
 

Enumerações

Valores enumerados
CENTER 
STRETCH 
NORMAL 
Valores enumerados
FIXED_N_ROWS 
FIXED_N_COLS 

Construtores & Destrutores

UIgridGroup::UIgridGroup ( UIgridGroup::ConstraintType  constraintType,
int  number,
UIgridGroup::BehaviorOnLess  behaviorOnLess = UIgridGroup::BehaviorOnLess::NORMAL,
UIelement::BehaviorType  behavior = UIelement::BehaviorType::STRETCH 
)

Métodos

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

Reimplementação de UIcanvas.

void UIgridGroup::SetConstraint ( UIgridGroup::ConstraintType  newConstraint,
int  value 
)
void UIgridGroup::Update ( float  dt,
Rect  parentCanvas 
)
virtual

Reimplementação de UIcanvas.

Atributos

UIgridGroup::BehaviorOnLess UIgridGroup::behaviorOnLess
private
UIgridGroup::ConstraintType UIgridGroup::constraint
private
std::vector<UIelement*> UIgridGroup::groupedElements
int UIgridGroup::number
private
Vec2 UIgridGroup::padding

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