Projeto IDJ - Towers Of Madness
TowerDefenseLovecraftnianoZombicida
|
#include <UIimage.h>
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 |
![]() | |
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) | |
![]() | |
UIelement (BehaviorType behavior=BehaviorType::STRETCH, Vec2 center=Vec2(0.5, 0.5)) | |
Atributos Protegidos | |
Sprite * | sp |
![]() | |
Rect | boundingBox |
Rect | box |
Vec2 | kernelSize |
Vec2 | center |
Additional Inherited Members | |
![]() | |
enum | BehaviorType { FIT, FILL, STRETCH } |
UIimage::UIimage | ( | std::string | file, |
UIelement::BehaviorType | behavior = UIelement::BehaviorType::STRETCH |
||
) |
|
virtual |
|
protected |
Vec2 UIimage::GetSpriteDimensions | ( | void | ) |
float UIimage::GetSpriteHeight | ( | void | ) |
float UIimage::GetSpriteWidth | ( | void | ) |
|
virtual |
Reimplementação de UIelement.
Reimplementado por UIimageButton.
|
virtual |
Reimplementação de UIelement.
void UIimage::SetSpriteColorMultiplier | ( | Color | scale, |
SDL_BlendMode | blendMode = ALPHA_BLEND |
||
) |
void UIimage::SetSpriteScale | ( | float | scale | ) |
float UIimage::angle |
|
protected |