32 #ifndef TBX_DRAWFILE_H_ 33 #define TBX_DRAWFILE_H_ 37 #include "drawtransform.h" 60 bool load(
const std::string &file_name);
68 virtual void plot(
int x,
int y)
const;
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
bool is_valid() const
Check if a draw file has been loaded.
Definition: drawfile.h:65
DrawFile & operator=(const DrawFile &other)
Make into a copy of another draw file.
Definition: drawfile.cc:77
Class to represent a two dimensional bounding box.
Definition: bbox.h:37
void declare_fonts(bool download_fonts=true) const
Declare all the fonts in the drawfile for printing using PDriver_DeclareFonts.
Definition: drawfile.cc:212
DrawFile()
Construct an unloaded draw file.
Definition: drawfile.cc:42
virtual ~DrawFile()
Destructor deletes loaded drawfile.
Definition: drawfile.cc:69
Class to render a draw file to the screen.
Definition: drawfile.h:48
bool load(const std::string &file_name)
Load JPEG from file.
Definition: drawfile.cc:100
Base class image classes providing a consistent interface to plot the to the screen.
Definition: image.h:44
void render(DrawTransform *dt=0, BBox *clip=0, int flatness=-1) const
Render a draw file to screen.
Definition: drawfile.cc:166
virtual void plot(int x, int y) const
Plot draw file at given location.
Definition: drawfile.cc:139
Class to represent a position in two dimensional space.
Definition: point.h:36
void bounds(BBox &bounds, DrawTransform *dt=0) const
Return the bounding box for a drawfile with the given transform.
Definition: drawfile.cc:194