EMF::EMRSETWINDOWEXTEX(3)

πŸ“¦
version 1.0.13 Β· 5 versions
, in debian trixie, ubuntu questing

✨ 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 off
  • EMRSETWINDOWEXTEX (DATASTREAM &ds) β€” build one by reading it out of a datastream
  • bool serialize (DATASTREAM ds) β€” write this record out to a datastream
  • int size (void) const β€” how many bytes this record takes up
  • void 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