![]() |
GA::kit v0.3
G&A's in-house C++ application framework
|
#include <image_component.h>
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) | |
| Component & | operator= (const Component &other) |
| std::shared_ptr< Node > | getNode () 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< Node > | m_node |
|
default |
|
inline |
|
inlinevirtual |
Reimplemented from ga::Component.
|
inline |
| ga::Rect ga::Image::bounds2D = { 0, 0, 0, 0 } |
| bool ga::Image::crop = false |
| ga::FitMode ga::Image::fitMode = ga::FitMode::NONE |
| HorzAlign ga::Image::horzAlign = HorzAlign::LEFT |
| std::string ga::Image::textureName = "" |
| VertAlign ga::Image::vertAlign = VertAlign::TOP |