Public Types | Public Member Functions | Private Attributes | List of all members
nom::ui::GrayFrame Class Reference
Inheritance diagram for nom::ui::GrayFrame:
[legend]
Collaboration diagram for nom::ui::GrayFrame:
[legend]

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.
 

Detailed Description

Definition at line 46 of file GrayFrame.hpp.

Member Function Documentation

void nom::ui::GrayFrame::update ( void  )
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.

Todo:
Not all the interfaced (inherited) IDrawable objects in this library conform to the expectations stated above. We need to first figure out if we wish to stay on this course (of expectation), or diverge all together. Undecided. Jeffrey Carpenter jeffr.nosp@m.ey.c.nosp@m.arp@g.nosp@m.mail.nosp@m..com @ 2013-10-03

Implements nom::IDrawable.

Definition at line 59 of file GrayFrame.cpp.


The documentation for this class was generated from the following files: