- nom
- ui
- GrayFrame
Public Types | |
|
typedef std::shared_ptr < GrayFrame > | SharedPtr |
|
typedef std::unique_ptr < GrayFrame > | UniquePtr |
| typedef GrayFrame * | RawPtr |
Public Types inherited from nom::IDrawable | |
|
typedef std::unique_ptr < IDrawable > | UniquePtr |
| std::unique_ptr definition type for your convenience, sir! | |
|
typedef std::shared_ptr < IDrawable > | SharedPtr |
| std::shared_ptr definition type at your leisure, sir! | |
|
typedef std::vector < std::shared_ptr< IDrawable > > | SharedDrawables |
| Vector of std::shared_ptr definition type for the brotherhood, sir! | |
|
typedef std::vector < std::unique_ptr< IDrawable > > | UniqueDrawables |
| std::unique_ptr vector container type | |
| typedef const Window & | RenderTarget |
Public Member Functions | |
| GrayFrame (int32 x, int32 y, int32 width, int32 height, int32 padding=1) | |
| void | setPosition (int32 x, int32 y) |
| void | setSize (int32 width, int32 height, int32 padding=1) |
| void | update (void) |
| void | draw (RenderTarget target) const |
| Render the object onto the primary video buffer – your visible screen. | |
Public Member Functions inherited from nom::IDrawable | |
| IDrawable (void) | |
| Do nothing at all default constructor. | |
| virtual | ~IDrawable (void) |
| Do nothing at all destructor. | |
Private Attributes | |
| IDrawable::UniqueDrawables | frame |
| Holds our line objects used for rendering the object. | |
| Coords | frame_position |
| Position & Size. | |
| bool | updated |
| Track object logic changes for updating its rendering. | |
| int32 | padding |
| Deprecated; this will be removed in a future version. | |
Definition at line 46 of file GrayFrame.hpp.
|
virtual |
Intended to be used internally by the class re-implementing this method; for use in preparing the buffer to be drawn using the draw method call. Whereas both Update & Draw are typically publicly exposed to the end-user, only the Draw method call should be expected of the end-user to be explicitly called.
Implements nom::IDrawable.
Definition at line 59 of file GrayFrame.cpp.