UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::ui::TexturedRectangle Class Reference

#include <ugdk/ui/drawable/texturedrectangle.h>

Inheritance diagram for ugdk::ui::TexturedRectangle:
Collaboration diagram for ugdk::ui::TexturedRectangle:

Public Member Functions

 TexturedRectangle (const graphic::GLTexture *texture)
 
 TexturedRectangle (const graphic::GLTexture *texture, const math::Vector2D &_size)
 
 ~TexturedRectangle ()
 
void Draw (graphic::Canvas &canvas) const override
 
const math::Vector2Dsize () const override
 
- Public Member Functions inherited from ugdk::ui::Drawable
virtual ~Drawable ()
 
void set_draw_setup_function (const std::function< void(const Drawable *, graphic::Canvas &)> &func)
 
void set_hotspot (const ugdk::math::Vector2D &_hotspot)
 
void set_hotspot (const HookPoint &hook)
 
double width () const
 
double height () const
 
const math::Vector2Dhotspot () const
 

Additional Inherited Members

- Protected Member Functions inherited from ugdk::ui::Drawable
 Drawable ()
 
- Protected Attributes inherited from ugdk::ui::Drawable
math::Vector2D hotspot_
 
std::function< void(const
Drawable *, graphic::Canvas &)> 
draw_setup_function_
 

Constructor & Destructor Documentation

ugdk::ui::TexturedRectangle::TexturedRectangle ( const graphic::GLTexture *  texture)
ugdk::ui::TexturedRectangle::TexturedRectangle ( const graphic::GLTexture *  texture,
const math::Vector2D _size 
)
ugdk::ui::TexturedRectangle::~TexturedRectangle ( )

Member Function Documentation

void ugdk::ui::TexturedRectangle::Draw ( graphic::Canvas canvas) const
overridevirtual

Implements ugdk::ui::Drawable.

const math::Vector2D& ugdk::ui::TexturedRectangle::size ( ) const
inlineoverridevirtual

Implements ugdk::ui::Drawable.


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