EMF::EMRSETWINDOWEXTEX(3)
β¨ NAME β¨
EMF::EMRSETWINDOWEXTEX β the EMF Set Window Extent (ex) record, bestie π
It's part of libemf, section 3 of the manual, and it's here to tell your metafile how big the logical window is. Iconic, honestly.
π¦ SYNOPSIS π¦
#include <libemf.h>
So the tea is: this class inherits from EMF::METARECORD, and also from EMRSETVIEWPORTEXTEX. She's got a whole family tree. Family reunion energy. π
π Public Member Functions π
EMRSETWINDOWEXTEX (INT cx, INT cy)β build one from a width and a height, go offEMRSETWINDOWEXTEX (DATASTREAM &ds)β build one by reading it out of a datastreambool serialize (DATASTREAM ds)β write this record out to a datastreamint size (void) constβ how many bytes this record takes upvoid execute (METAFILEDEVICECONTEXT *source, HDC dc) constβ actually run this record against a device context
π§ Public Member Functions inherited from EMF::METARECORD
virtual ~METARECORD ()β the destructor she got from her parent, no notes π
π Detailed Description π
EMF Set Window Extent (ex). That's the whole vibe. β¨
Okay so the window extents define the scale of the logical coordinates. That's the main character mechanic right there. For example, if your XY plot goes from [-10,-10] to [10,10], then the window extents are [20,20]. Math ate that. π₯
π Constructor & Destructor Documentation π
EMF::EMRSETWINDOWEXTEX::EMRSETWINDOWEXTEX (INT cx, INT cy) [inline]
Make a brand new one with the extents you want, periodt.
Parameters
cxβ width of window in logical coordinates.cyβ height of window in logical coordinates.
EMF::EMRSETWINDOWEXTEX::EMRSETWINDOWEXTEX (DATASTREAM & ds) [inline]
Construct a SetWindowExtEx record from the input stream. Reading it in, not writing it out β important distinction, iykyk. π
Parameters
dsβ Metafile datastream.
πΈ Member Function Documentation πΈ
void EMF::EMRSETWINDOWEXTEX::execute (METAFILEDEVICECONTEXT * source, HDC dc) const [inline], [virtual]
Execute this record in the context of the given device context. She's doing her thing live on stage. π€
Parameters
sourceβ the device context from which this record is taken.dcβ device context for execute.
Implements EMF::METARECORD.
bool EMF::EMRSETWINDOWEXTEX::serialize (DATASTREAM ds) [inline], [virtual]
Serializing. That's it, that's the function. βοΈ
Parameters
dsβ Metafile datastream.
Implements EMF::METARECORD.
int EMF::EMRSETWINDOWEXTEX::size (void) const [inline], [virtual]
Internally computed size of this record. She knows her own measurements, no external validation needed. π
Implements EMF::METARECORD.
β Author β
Generated automatically by Doxygen for libemf from the source code. The robot wrote it, I just did her makeup. π€π
ok that's the whole page bestie, no cap, every single line accounted for π«Ά
Version 1.0.9, dated Thu Jun 6 2024 23:01:07 β and that's the libemf source code signing off. Byeee ππ
π¦ 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