diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-07-24 08:46:52 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-07-24 08:46:52 +0200 |
| commit | cd60ea17b021ce4442bc5efea8b7082463c682b8 (patch) | |
| tree | d71ebd36d0b7cdca4f7424ba0e19a19f53faf187 /FL/Fl_PostScript.H | |
| parent | 2cedae1ece9a356e6777a0220ab70daf761b16ae (diff) | |
Add Fl_PostScript_File_Device::set_current() and end_current() members.
Diffstat (limited to 'FL/Fl_PostScript.H')
| -rw-r--r-- | FL/Fl_PostScript.H | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H index 546145576..bb9b27d79 100644 --- a/FL/Fl_PostScript.H +++ b/FL/Fl_PostScript.H @@ -71,6 +71,10 @@ class Fl_PostScript_Graphics_Driver; */ class FL_EXPORT Fl_PostScript_File_Device : public Fl_Paged_Device { +private: + // memorize the display's current font to restore it when the object ceases being current + Fl_Font display_font_; + Fl_Fontsize display_size_; protected: /** \brief Returns the PostScript driver of this drawing surface. @@ -139,6 +143,8 @@ public: FILE *file(); /** Sets the function end_job() calls to close the file() */ void close_command(Fl_PostScript_Close_Command cmd); + virtual void set_current(); + virtual void end_current(); }; /** Encapsulated PostScript drawing surface. |
