![]() |
Gorgon Game Engine
|
A drawable object that does not have a size and requires a region to draw. More...
Public Member Functions | |
virtual | ~SizelessDrawable () |
Protected Member Functions | |
virtual Geometry::Size | calculatesize (const Geometry::Size &area) const =0 |
This function should return the size of the object when it is requested to be drawn in the given area. More... | |
virtual Geometry::Size | calculatesize (const SizeController &controller, const Geometry::Size &s) const =0 |
This function should return the size of the object when it is requested to be drawn in the given area. More... | |
virtual void | drawin (TextureTarget &target, const Geometry::Rectanglef &r, RGBAf color) const =0 |
This function should draw this drawable inside the given rectangle. More... | |
virtual void | drawin (TextureTarget &target, const SizeController &controller, const Geometry::Rectanglef &r, RGBAf color) const =0 |
This function should draw this drawable inside the given rectangle according to the given controller. More... | |
A drawable object that does not have a size and requires a region to draw.
|
virtual |
|
protectedpure virtual |
This function should return the size of the object when it is requested to be drawn in the given area.
If size contains is a negative value, this function should try to return native size of the object. If no such size exists, a logical size should be returned.
|
protectedpure virtual |
This function should return the size of the object when it is requested to be drawn in the given area.
This variant should use the given size controller. If the object already has a controller, given controller should be given priority. If h parameter is a negative value, this function should try to return native size of the object. If no such size exists, a logical size should be returned.
|
protectedpure virtual |
This function should draw this drawable inside the given rectangle.
|
protectedpure virtual |
This function should draw this drawable inside the given rectangle according to the given controller.
If this object already have a size controller, this given controller should be given priority.