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

#include <UIimage.h>

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

Métodos Públicos

 UIimage (std::string file, UIelement::BehaviorType behavior=UIelement::BehaviorType::STRETCH)
 
virtual ~UIimage ()
 
virtual void Render (bool debugRender=false) const
 
float GetSpriteWidth (void)
 
float GetSpriteHeight (void)
 
Vec2 GetSpriteDimensions (void)
 
void SetSpriteScale (float scale)
 
void SetSpriteColorMultiplier (Color scale, SDL_BlendMode blendMode=ALPHA_BLEND)
 
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 Update (float dt, Rect parentCanvas)
 
Rect GetBoundingBox (void) const
 
Rect ComputeBoundingbox (Rect parentCanvas)
 
Rect ComputeBox (Rect boundingBox={-1.,-1.,-1.,-1.})
 
 operator Rect () const
 

Atributos Públicos

float angle
 

Métodos Protegidos

 UIimage (UIelement::BehaviorType behavior=UIelement::BehaviorType::STRETCH)
 
- Métodos Protegidos inherited from UIelement
 UIelement (BehaviorType behavior=BehaviorType::STRETCH, Vec2 center=Vec2(0.5, 0.5))
 

Atributos Protegidos

Spritesp
 
- Atributos Protegidos inherited from UIelement
Rect boundingBox
 
Rect box
 
Vec2 kernelSize
 
Vec2 center
 

Additional Inherited Members

- Tipos Públicos inherited from UIelement
enum  BehaviorType { FIT, FILL, STRETCH }
 

Construtores & Destrutores

UIimage::UIimage ( std::string  file,
UIelement::BehaviorType  behavior = UIelement::BehaviorType::STRETCH 
)
UIimage::~UIimage ( )
virtual
UIimage::UIimage ( UIelement::BehaviorType  behavior = UIelement::BehaviorType::STRETCH)
protected

Métodos

Vec2 UIimage::GetSpriteDimensions ( void  )
float UIimage::GetSpriteHeight ( void  )
float UIimage::GetSpriteWidth ( void  )
bool UIimage::Is ( std::string  UItype) const
virtual

Reimplementação de UIelement.

Reimplementado por UIimageButton.

void UIimage::Render ( bool  debugRender = false) const
virtual

Reimplementação de UIelement.

void UIimage::SetSpriteColorMultiplier ( Color  scale,
SDL_BlendMode  blendMode = ALPHA_BLEND 
)
void UIimage::SetSpriteScale ( float  scale)

Atributos

float UIimage::angle
Sprite* UIimage::sp
protected

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