EMF::EMRSETVIEWPORTEXTEX(3)
π EMF::EMRSETVIEWPORTEXTEX(3) π
okay bestie, so we're in the libemf manual, and today's main character is EMF::EMRSETVIEWPORTEXTEX. it's giving "one specific metafile record and honestly it has some opinions about itself." let's get into it π
β¨ NAME β¨
EMF::EMRSETVIEWPORTEXTEX β EMF Set Viewport Extents (ex)
πΈ SYNOPSIS πΈ
#include <libemf.h>
Inherits EMF::METARECORD, and EMRSETVIEWPORTEXTEX.
π«Ά Public Member Functions π«Ά
EMRSETVIEWPORTEXTEX(INT cx, INT cy)EMRSETVIEWPORTEXTEX(DATASTREAM &ds)bool serialize(DATASTREAM ds)int size(void) constvoid execute(METAFILEDEVICECONTEXT *source, HDC dc) const
π Public Member Functions inherited from EMF::METARECORD
virtual ~METARECORD()
π Detailed Description π
EMF Set Viewport Extents (ex) β¨
so like, the viewport extent is the device coordinate size of the viewport β aka, it's measured in pixels, bestie. that's the vibe.
and then there's the tea: since W32 doesn't do any clipping, the purpose of this whole thing isβ¦ not clear. π like, we said what we said. the manpage said what it said. no cap.
π Constructor & Destructor Documentation π
π
EMF::EMRSETVIEWPORTEXTEX::EMRSETVIEWPORTEXTEX (INT cx, INT cy) [inline]
Parameters
cxβ width of viewport in device coordinatescyβ height of viewport in device coordinates
so you hand it a width and a height, in device coordinates, and boom. that's the whole vibe. π¦
π
EMF::EMRSETVIEWPORTEXTEX::EMRSETVIEWPORTEXTEX (DATASTREAM &ds) [inline]
Construct a SetViewportExtEx record from the input stream. π
Parameters
dsβ Metafile datastream.
β Member Function Documentation β
π void EMF::EMRSETVIEWPORTEXTEX::execute (METAFILEDEVICECONTEXT *source, HDC dc) const [inline], [virtual]
Execute this record in the context of the given device context. periodt.
Parameters
sourceβ the device context from which this record is taken.dcβ device context for execute.
Implements EMF::METARECORD.
π bool EMF::EMRSETVIEWPORTEXTEX::serialize (DATASTREAM ds) [inline], [virtual]
Parameters
dsβ Metafile datastream.
Implements EMF::METARECORD.
π int EMF::EMRSETVIEWPORTEXTEX::size (void) const [inline], [virtual]
Internally computed size of this record. it just knows its own size, iconic behavior honestly π
Implements EMF::METARECORD.
π Author π
Generated automatically by Doxygen for libemf from the source code. so like, no human wrote this, it just spawned. main character energy fr fr. π€π
okay that's the whole page bestie, you ate that. go forth and set those viewport extents (ex). π«Ά
Version 1.0.9 β¨ Thu Jun 6 2024 23:01:07 β¨ and that's the libemf manual page EMF::EMRSETVIEWPORTEXTEX(3), signing off π
ππ
π¦ where this page comes from
- debian trixie: libemf-doc 1.0.13-8 Β· GPL-2.0-only
- ubuntu questing: libemf-doc 1.0.13-8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms