GA::kit v0.3
G&A's in-house C++ application framework
Loading...
Searching...
No Matches
ga::Image Class Reference

#include <image_component.h>

Inheritance diagram for ga::Image:
ga::Component

Public Member Functions

 Image ()=default
 
 Image (const std::string &texName, const ga::Rect &bounds, const ga::FitMode &fit, const HorzAlign &hAlign=HorzAlign::LEFT, const VertAlign &vAlign=VertAlign::TOP, const bool &bCrop=false)
 
void draw ()
 
ga::Rect getDrawBounds ()
 
- Public Member Functions inherited from ga::Component
 Component ()=default
 
virtual ~Component ()=default
 
 Component (const Component &other)
 
Componentoperator= (const Component &other)
 
std::shared_ptr< NodegetNode () const
 

Public Attributes

std::string textureName = ""
 
ga::Rect bounds2D = { 0, 0, 0, 0 }
 
ga::FitMode fitMode = ga::FitMode::NONE
 
HorzAlign horzAlign = HorzAlign::LEFT
 
VertAlign vertAlign = VertAlign::TOP
 
bool crop = false
 

Additional Inherited Members

- Protected Member Functions inherited from ga::Component
virtual void update ()
 
virtual void draw ()
 
virtual void setNode (std::shared_ptr< Node > node)
 
virtual void setScene (std::shared_ptr< Scene > scene)
 
- Protected Attributes inherited from ga::Component
std::weak_ptr< Nodem_node
 

Constructor & Destructor Documentation

◆ Image() [1/2]

ga::Image::Image ( )
default

◆ Image() [2/2]

ga::Image::Image ( const std::string &  texName,
const ga::Rect bounds,
const ga::FitMode fit,
const HorzAlign hAlign = HorzAlign::LEFT,
const VertAlign vAlign = VertAlign::TOP,
const bool &  bCrop = false 
)
inline

Member Function Documentation

◆ draw()

void ga::Image::draw ( )
inlinevirtual

Reimplemented from ga::Component.

◆ getDrawBounds()

ga::Rect ga::Image::getDrawBounds ( )
inline

Member Data Documentation

◆ bounds2D

ga::Rect ga::Image::bounds2D = { 0, 0, 0, 0 }

◆ crop

bool ga::Image::crop = false

◆ fitMode

ga::FitMode ga::Image::fitMode = ga::FitMode::NONE

◆ horzAlign

HorzAlign ga::Image::horzAlign = HorzAlign::LEFT

◆ textureName

std::string ga::Image::textureName = ""

◆ vertAlign

VertAlign ga::Image::vertAlign = VertAlign::TOP

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