Bare Metal Programming Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | List of all members
bmptk::graphics::frame_dummy Class Reference

writing to this frame does nothing More...

#include <graphics.h>

Inheritance diagram for bmptk::graphics::frame_dummy:
bmptk::graphics::frame

Public Member Functions

 frame_dummy (const vector size=vector::origin())
 construct a dummy frame
 
- Public Member Functions inherited from bmptk::graphics::frame
 frame (const vector size)
 create a frame of specified size
 
vector size_get () const
 get the size of the frame
 
virtual vector translate_outfrom (const vector p) const
 translate a subframe coordinate to a master frame coordinate
 
virtual vector translate_into (const vector p) const
 translate a master frame coordinate to a subframe coordinate
 
bool is_valid (vector p)
 whether p is within the frame
 
color bg_get ()
 get the backround color
 
void write (const vector p, const color c)
 write one pixel, address specified by vector
 
virtual void clear (const color c=color::white())
 fill the full frame with the indicated color
 
virtual void flush ()
 for buffered frames: write the changes to the underlying frame
 

Protected Member Functions

void checked_write (const vector p, const color c)
 checked_write implementation as required by frame
 

Additional Inherited Members

- Protected Attributes inherited from bmptk::graphics::frame
const vector size
 frame size
 
color bg
 most recently applied background color (as used in clear())
 

Detailed Description

writing to this frame does nothing

Definition at line 783 of file graphics.h.

Constructor & Destructor Documentation

bmptk::graphics::frame_dummy::frame_dummy ( const vector  size = vector::origin())
inline

construct a dummy frame

This constror creates a dummy frame. All writes to this frame are ignored. Hence the specified size is not important (out-of-bounds writes are equally ignored), except that it is the size reported by size_get().

Definition at line 793 of file graphics.h.

Member Function Documentation

void bmptk::graphics::frame_dummy::checked_write ( const vector  p,
const color  c 
)
inlineprotectedvirtual

checked_write implementation as required by frame

This method does nothing.

Implements bmptk::graphics::frame.

Definition at line 801 of file graphics.h.


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