29 #ifndef NOMLIB_SDL2_GRAYFRAME_HPP
30 #define NOMLIB_SDL2_GRAYFRAME_HPP
37 #include "nomlib/config.hpp"
38 #include "nomlib/math/Coords.hpp"
39 #include "nomlib/graphics/IDrawable.hpp"
40 #include "nomlib/graphics/Window.hpp"
41 #include "nomlib/graphics/shapes/Line.hpp"
50 typedef std::shared_ptr<GrayFrame>
SharedPtr;
51 typedef std::unique_ptr<GrayFrame>
UniquePtr;
55 GrayFrame ( int32 x, int32 y, int32 width, int32 height, int32
padding = 1 );
59 void setPosition( int32 x, int32 y );
62 void setSize( int32 width, int32 height, int32
padding = 1 );
88 #endif // include guard defined
int32 padding
Deprecated; this will be removed in a future version.
IDrawable::UniqueDrawables frame
Holds our line objects used for rendering the object.
std::shared_ptr< IDrawable > SharedPtr
std::shared_ptr definition type at your leisure, sir!
Coords frame_position
Position & Size.
void draw(RenderTarget target) const
Render the object onto the primary video buffer – your visible screen.
Base interface class for grouping objects under a united front.
std::unique_ptr< IDrawable > UniquePtr
std::unique_ptr definition type for your convenience, sir!
Coordinate values (x, y, z, width, height ) wrapper.
std::vector< std::unique_ptr< IDrawable > > UniqueDrawables
std::unique_ptr vector container type
bool updated
Track object logic changes for updating its rendering.