openMSX
Public Member Functions | Static Public Attributes | List of all members
openmsx::Paper Class Reference
Collaboration diagram for openmsx::Paper:
Collaboration graph
[legend]

Public Member Functions

 Paper (unsigned x, unsigned y, double dotSizeX, double dotSizeY)
 
std::string save () const
 
void setDotSize (double sizeX, double sizeY)
 
void plot (double x, double y)
 

Static Public Attributes

static constexpr std::string_view PRINT_DIR = "prints"
 
static constexpr std::string_view PRINT_EXTENSION = ".png"
 

Detailed Description

Definition at line 21 of file Printer.cc.

Constructor & Destructor Documentation

◆ Paper()

openmsx::Paper::Paper ( unsigned  x,
unsigned  y,
double  dotSizeX,
double  dotSizeY 
)

Definition at line 1581 of file Printer.cc.

References ranges::fill(), and setDotSize().

Member Function Documentation

◆ plot()

void openmsx::Paper::plot ( double  x,
double  y 
)

Definition at line 1662 of file Printer.cc.

References sum(), t, and xrange().

◆ save()

std::string openmsx::Paper::save ( ) const

◆ setDotSize()

void openmsx::Paper::setDotSize ( double  sizeX,
double  sizeY 
)

Definition at line 1601 of file Printer.cc.

Referenced by Paper().

Member Data Documentation

◆ PRINT_DIR

constexpr std::string_view openmsx::Paper::PRINT_DIR = "prints"
staticconstexpr

Definition at line 24 of file Printer.cc.

Referenced by save().

◆ PRINT_EXTENSION

constexpr std::string_view openmsx::Paper::PRINT_EXTENSION = ".png"
staticconstexpr

Definition at line 25 of file Printer.cc.

Referenced by save().


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