29 #include "nomlib/gui/GrayFrame.hpp"
34 GrayFrame::GrayFrame (
void ) : updated ( false ) {}
36 GrayFrame::~GrayFrame (
void ) {}
38 GrayFrame::GrayFrame ( int32 x, int32 y, int32 width, int32 height, int32 padding )
40 this->setPosition ( x, y );
41 this->setSize ( width, height, padding );
46 void GrayFrame::setPosition ( int32 x, int32 y )
52 void GrayFrame::setSize ( int32 width, int32 height, int32 padding )
69 int32 x_offset = x + width;
70 int32 y_offset = y + height;
91 for (
auto idx = 0; idx != this->
frame.size(); ++idx )
93 this->
frame[idx]->draw ( target );
int32 padding
Deprecated; this will be removed in a future version.
IDrawable::UniqueDrawables frame
Holds our line objects used for rendering the object.
Coords frame_position
Position & Size.
void draw(RenderTarget target) const
Render the object onto the primary video buffer – your visible screen.
std::unique_ptr< IDrawable > UniquePtr
std::unique_ptr definition type for your convenience, sir!
Utility class container for RGBA colors.
bool updated
Track object logic changes for updating its rendering.