DUDS
Distributed Update of Data from Something
SimulatedBppDisplay.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2020 Jeff Jackowski
9  */
11 
12 namespace duds { namespace hardware { namespace devices { namespace displays {
13 
25  bool bottom = false;
31  virtual void outputFrame(const duds::ui::graphics::BppImage *img);
32 public:
52  SimulatedBppDisplay(unsigned int w, unsigned int h) :
53  SimulatedBppDisplay(duds::ui::graphics::ImageDimensions(w, h)) { }
71  void configure(unsigned int w, unsigned int h) {
73  }
74 };
75 
76 } } } }
SimulatedBppDisplay()
Creates the object with an invalid display size.
void configure(unsigned int w, unsigned int h)
Initializes the object to a usable state.
Stores the dimensions of an image.
Definition: BppImage.hpp:125
bool bottom
True after rendering a frame to denote output is at the bottom of the frame.
SimulatedBppDisplay(unsigned int w, unsigned int h)
Initializes the object to a usable state.
General graphics related code.
Definition: HD44780.hpp:15
Writes text, expecting a typical Linux terminal, to simulate a bit-per-pixel graphic display...
Base class for bit-per-pixel graphic displays.
virtual void outputFrame(const duds::ui::graphics::BppImage *img)
Writes out only the changed portions of the image to the display, and updates the image in frmbuf to ...
void configure(const duds::ui::graphics::ImageDimensions &id)
Initializes the object to a usable state.
An image that uses a single bit to represent the state of each pixel; a black or white picture...
Definition: BppImage.hpp:321