UGDK
0.5.0
|
#include <ugdk/ui/drawable/texturedrectangle.h>
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::Vector2D & | size () 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::Vector2D & | hotspot () 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_ |
ugdk::ui::TexturedRectangle::TexturedRectangle | ( | const graphic::GLTexture * | texture | ) |
ugdk::ui::TexturedRectangle::TexturedRectangle | ( | const graphic::GLTexture * | texture, |
const math::Vector2D & | _size | ||
) |
ugdk::ui::TexturedRectangle::~TexturedRectangle | ( | ) |
|
overridevirtual |
Implements ugdk::ui::Drawable.
|
inlineoverridevirtual |
Implements ugdk::ui::Drawable.