#include <Printer.hh>
|
void | write (uint8_t data) override |
|
void | forceFormFeed () override |
|
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 |
|
std::string_view | getClass () const final |
| A pluggable belongs to a certain class.
|
|
virtual | ~Pluggable ()=default |
|
virtual std::string_view | getName () const |
| Name used to identify this pluggable.
|
|
virtual std::string_view | getDescription () const =0 |
| Description for this pluggable.
|
|
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.
|
|
Connector * | getConnector () const |
| Get the connector this Pluggable is plugged into.
|
|
bool | isPluggedIn () const |
| Returns true if this pluggable is currently plugged into a connector.
|
|
Definition at line 51 of file Printer.hh.
◆ CountryCode
Enumerator |
---|
CC_USA | |
CC_FRANCE | |
CC_GERMANY | |
CC_UNITED_KINGDOM | |
CC_DENMARK | |
CC_SWEDEN | |
CC_ITALY | |
CC_SPAIN | |
CC_JAPAN | |
Definition at line 100 of file Printer.hh.
◆ ImagePrinter()
openmsx::ImagePrinter::ImagePrinter |
( |
MSXMotherBoard & |
motherBoard, |
|
|
bool |
graphicsHiLo |
|
) |
| |
|
protected |
◆ ~ImagePrinter()
openmsx::ImagePrinter::~ImagePrinter |
( |
| ) |
|
|
overrideprotected |
◆ calcEscSequenceLength()
virtual unsigned openmsx::ImagePrinter::calcEscSequenceLength |
( |
uint8_t |
character | ) |
|
|
protectedpure virtual |
◆ ensurePrintPage()
void openmsx::ImagePrinter::ensurePrintPage |
( |
| ) |
|
|
protected |
◆ flushEmulatedPrinter()
void openmsx::ImagePrinter::flushEmulatedPrinter |
( |
| ) |
|
|
protected |
Definition at line 211 of file Printer.cc.
References openmsx::MSXMotherBoard::getMSXCliComm(), hpos, leftBorder, pageTop, printAreaBottom, printAreaTop, openmsx::CliComm::printInfo(), openmsx::CliComm::printWarning(), and vpos.
Referenced by forceFormFeed(), seekPrinterHeadRelative(), and ~ImagePrinter().
◆ forceFormFeed()
void openmsx::ImagePrinter::forceFormFeed |
( |
| ) |
|
|
overridevirtual |
◆ getNumberOfDots()
virtual std::pair< unsigned, unsigned > openmsx::ImagePrinter::getNumberOfDots |
( |
| ) |
|
|
protectedpure virtual |
◆ plot9Dots()
void openmsx::ImagePrinter::plot9Dots |
( |
double |
x, |
|
|
double |
y, |
|
|
unsigned |
pattern |
|
) |
| |
|
protected |
◆ printGraphicByte()
void openmsx::ImagePrinter::printGraphicByte |
( |
uint8_t |
data | ) |
|
|
protected |
Definition at line 160 of file Printer.cc.
References ensurePrintPage(), graphDensity, hpos, pixelSizeX, pixelSizeY, plot9Dots(), printAreaBottom, printAreaTop, Math::reverseByte(), seekPrinterHeadRelative(), and vpos.
Referenced by write().
◆ printVisibleCharacter()
void openmsx::ImagePrinter::printVisibleCharacter |
( |
uint8_t |
data | ) |
|
|
protected |
Definition at line 242 of file Printer.cc.
References bold, openmsx::ImagePrinter::FontInfo::charWidth, doubleStrike, doubleWidth, end(), ensurePrintPage(), fontDensity, fontInfo, hpos, openmsx::ImagePrinter::FontInfo::pixelDelta, pixelSizeX, pixelSizeY, plot9Dots(), printAreaBottom, printAreaTop, proportional, openmsx::ImagePrinter::FontInfo::ram, openmsx::ImagePrinter::FontInfo::rom, seekPrinterHeadRelative(), subscript, subspan(), superscript, underline, openmsx::ImagePrinter::FontInfo::useRam, vpos, and xrange().
◆ processCharacter()
virtual void openmsx::ImagePrinter::processCharacter |
( |
uint8_t |
data | ) |
|
|
protectedpure virtual |
◆ processEscSequence()
virtual void openmsx::ImagePrinter::processEscSequence |
( |
| ) |
|
|
protectedpure virtual |
◆ resetEmulatedPrinter()
void openmsx::ImagePrinter::resetEmulatedPrinter |
( |
| ) |
|
|
protected |
◆ resetSettings()
virtual void openmsx::ImagePrinter::resetSettings |
( |
| ) |
|
|
protectedpure virtual |
◆ seekPrinterHeadRelative()
void openmsx::ImagePrinter::seekPrinterHeadRelative |
( |
double |
offset | ) |
|
|
protected |
◆ write()
void openmsx::ImagePrinter::write |
( |
uint8_t |
data | ) |
|
|
overridevirtual |
Implements openmsx::PrinterCore.
Definition at line 102 of file Printer.cc.
References abEscSeq, calcEscSequenceLength(), eightBit, escSequence, ranges::fill(), fontInfo, printGraphicByte(), processCharacter(), processEscSequence(), openmsx::ImagePrinter::FontInfo::ram, ramLoadEnd, ramLoadOffset, remainingCommandBytes, sizeEscPos, and sizeRemainingDataBytes.
◆ abEscSeq
◆ alternateChar
bool openmsx::ImagePrinter::alternateChar = false |
|
protected |
◆ bold
bool openmsx::ImagePrinter::bold = false |
|
protected |
◆ compressed
bool openmsx::ImagePrinter::compressed = false |
|
protected |
◆ countryCode
◆ detectPaperOut
bool openmsx::ImagePrinter::detectPaperOut = false |
|
protected |
◆ doubleStrike
bool openmsx::ImagePrinter::doubleStrike = false |
|
protected |
◆ doubleWidth
bool openmsx::ImagePrinter::doubleWidth = false |
|
protected |
◆ eightBit
int openmsx::ImagePrinter::eightBit = 0 |
|
protected |
◆ elite
bool openmsx::ImagePrinter::elite = false |
|
protected |
◆ escSequence
bool openmsx::ImagePrinter::escSequence = false |
|
protected |
◆ fontDensity
double openmsx::ImagePrinter::fontDensity |
|
protected |
◆ fontInfo
◆ fontWidth
unsigned openmsx::ImagePrinter::fontWidth |
|
protected |
◆ graphDensity
double openmsx::ImagePrinter::graphDensity |
|
protected |
◆ hpos
double openmsx::ImagePrinter::hpos |
|
protected |
◆ italic
bool openmsx::ImagePrinter::italic = false |
|
protected |
◆ japanese
bool openmsx::ImagePrinter::japanese = false |
|
protected |
◆ leftBorder
unsigned openmsx::ImagePrinter::leftBorder |
|
protected |
◆ leftToRight
bool openmsx::ImagePrinter::leftToRight = false |
|
protected |
◆ letterQuality
bool openmsx::ImagePrinter::letterQuality = false |
|
protected |
◆ lineFeed
double openmsx::ImagePrinter::lineFeed |
|
protected |
◆ lines
unsigned openmsx::ImagePrinter::lines |
|
protected |
◆ MAX_ESC_CMDSIZE
constexpr int openmsx::ImagePrinter::MAX_ESC_CMDSIZE = 8 |
|
staticconstexprprotected |
◆ MAX_FONT_WIDTH
constexpr int openmsx::ImagePrinter::MAX_FONT_WIDTH = 12 |
|
staticconstexprprotected |
◆ ninePinGraphics
bool openmsx::ImagePrinter::ninePinGraphics = false |
|
protected |
◆ noHighEscapeCodes
bool openmsx::ImagePrinter::noHighEscapeCodes = false |
|
protected |
◆ normalAfterLine
bool openmsx::ImagePrinter::normalAfterLine = false |
|
protected |
◆ pageHeight
double openmsx::ImagePrinter::pageHeight |
|
protected |
◆ pageTop
double openmsx::ImagePrinter::pageTop |
|
protected |
◆ perforationSkip
unsigned openmsx::ImagePrinter::perforationSkip = 0 |
|
protected |
◆ PIXEL_WIDTH
constexpr unsigned openmsx::ImagePrinter::PIXEL_WIDTH = 8 |
|
staticconstexprprotected |
◆ pixelSizeX
double openmsx::ImagePrinter::pixelSizeX |
|
protected |
◆ pixelSizeY
double openmsx::ImagePrinter::pixelSizeY |
|
protected |
◆ printAreaBottom
double openmsx::ImagePrinter::printAreaBottom = 0.0 |
|
protected |
◆ printAreaTop
double openmsx::ImagePrinter::printAreaTop = -1.0 |
|
protected |
◆ proportional
bool openmsx::ImagePrinter::proportional = false |
|
protected |
◆ ramLoadEnd
unsigned openmsx::ImagePrinter::ramLoadEnd = 0 |
|
protected |
◆ ramLoadOffset
unsigned openmsx::ImagePrinter::ramLoadOffset = 0 |
|
protected |
◆ remainingCommandBytes
unsigned openmsx::ImagePrinter::remainingCommandBytes = 0 |
|
protected |
◆ rightBorder
unsigned openmsx::ImagePrinter::rightBorder |
|
protected |
◆ sizeEscPos
unsigned openmsx::ImagePrinter::sizeEscPos = 0 |
|
protected |
◆ sizeRemainingDataBytes
unsigned openmsx::ImagePrinter::sizeRemainingDataBytes = 0 |
|
protected |
◆ subscript
bool openmsx::ImagePrinter::subscript = false |
|
protected |
◆ superscript
bool openmsx::ImagePrinter::superscript = false |
|
protected |
◆ underline
bool openmsx::ImagePrinter::underline = false |
|
protected |
◆ vpos
double openmsx::ImagePrinter::vpos |
|
protected |
The documentation for this class was generated from the following files: