openMSX
Public Member Functions | List of all members
openmsx::ImagePrinterMSX Class Referencefinal

#include <Printer.hh>

Inheritance diagram for openmsx::ImagePrinterMSX:
Inheritance graph
[legend]
Collaboration diagram for openmsx::ImagePrinterMSX:
Collaboration graph
[legend]

Public Member Functions

 ImagePrinterMSX (MSXMotherBoard &motherBoard)
 
std::string_view getName () const override
 Name used to identify this pluggable.
 
std::string_view getDescription () const override
 Description for this pluggable.
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::ImagePrinter
void write (uint8_t data) override
 
void forceFormFeed () override
 
- Public Member Functions inherited from openmsx::PrinterCore
bool getStatus (EmuTime::param time) override
 Returns the STATUS signal: false = low = ready, true = high = not ready.
 
void setStrobe (bool strobe, EmuTime::param time) override
 Sets the strobe signal: false = low, true = high.
 
void writeData (uint8_t data, EmuTime::param time) override
 Sets the data signals.
 
void plugHelper (Connector &connector, EmuTime::param time) override
 
void unplugHelper (EmuTime::param time) override
 
- Public Member Functions inherited from openmsx::PrinterPortDevice
std::string_view getClass () const final
 A pluggable belongs to a certain class.
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
void plug (Connector &connector, EmuTime::param time)
 This method is called when this pluggable is inserted in a connector.
 
void unplug (EmuTime::param time)
 This method is called when this pluggable is removed from a connector.
 
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into.
 
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector.
 

Additional Inherited Members

- Protected Types inherited from openmsx::ImagePrinter
enum  CountryCode {
  CC_USA = 0 , CC_FRANCE = 1 , CC_GERMANY = 2 , CC_UNITED_KINGDOM = 3 ,
  CC_DENMARK = 4 , CC_SWEDEN = 5 , CC_ITALY = 6 , CC_SPAIN = 7 ,
  CC_JAPAN = 8
}
 
- Protected Member Functions inherited from openmsx::ImagePrinter
 ImagePrinter (MSXMotherBoard &motherBoard, bool graphicsHiLo)
 
 ~ImagePrinter () override
 
void resetEmulatedPrinter ()
 
void printGraphicByte (uint8_t data)
 
void seekPrinterHeadRelative (double offset)
 
void ensurePrintPage ()
 
void flushEmulatedPrinter ()
 
void printVisibleCharacter (uint8_t data)
 
void plot9Dots (double x, double y, unsigned pattern)
 
- Protected Member Functions inherited from openmsx::PrinterCore
 PrinterCore ()=default
 
 ~PrinterCore () override=default
 
- Protected Member Functions inherited from openmsx::Pluggable
 Pluggable ()
 
void setConnector (Connector *conn)
 
- Protected Attributes inherited from openmsx::ImagePrinter
double graphDensity
 
double fontDensity
 
double hpos
 
double vpos
 
double pageTop
 
double lineFeed
 
double pageHeight
 
double printAreaTop = -1.0
 
double printAreaBottom = 0.0
 
double pixelSizeX
 
double pixelSizeY
 
int eightBit = 0
 
unsigned perforationSkip = 0
 
unsigned leftBorder
 
unsigned rightBorder
 
unsigned fontWidth
 
unsigned remainingCommandBytes = 0
 
unsigned sizeEscPos = 0
 
unsigned sizeRemainingDataBytes = 0
 
unsigned ramLoadOffset = 0
 
unsigned ramLoadEnd = 0
 
unsigned lines
 
CountryCode countryCode = CC_USA
 
std::array< uint8_t, MAX_ESC_CMDSIZEabEscSeq
 
struct openmsx::ImagePrinter::FontInfo fontInfo
 
bool letterQuality = false
 
bool bold = false
 
bool proportional = false
 
bool italic = false
 
bool superscript = false
 
bool subscript = false
 
bool doubleWidth = false
 
bool underline = false
 
bool doubleStrike = false
 
bool escSequence = false
 
bool alternateChar = false
 
bool detectPaperOut = false
 
bool japanese = false
 
bool normalAfterLine = false
 
bool ninePinGraphics = false
 
bool leftToRight = false
 
bool elite = false
 
bool compressed = false
 
bool noHighEscapeCodes = false
 
- Static Protected Attributes inherited from openmsx::ImagePrinter
static constexpr unsigned PIXEL_WIDTH = 8
 
static constexpr int MAX_ESC_CMDSIZE = 8
 
static constexpr int MAX_FONT_WIDTH = 12
 

Detailed Description

Definition at line 173 of file Printer.hh.

Constructor & Destructor Documentation

◆ ImagePrinterMSX()

openmsx::ImagePrinterMSX::ImagePrinterMSX ( MSXMotherBoard motherBoard)
explicit

Definition at line 615 of file Printer.cc.

References openmsx::ImagePrinter::resetEmulatedPrinter().

Member Function Documentation

◆ getDescription()

std::string_view openmsx::ImagePrinterMSX::getDescription ( ) const
overridevirtual

Description for this pluggable.

Implements openmsx::Pluggable.

Definition at line 626 of file Printer.cc.

◆ getName()

std::string_view openmsx::ImagePrinterMSX::getName ( ) const
overridevirtual

Name used to identify this pluggable.

Reimplemented from openmsx::Pluggable.

Definition at line 621 of file Printer.cc.

◆ serialize()

template<typename Archive >
void openmsx::ImagePrinterMSX::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 890 of file Printer.cc.


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