EMF::EMRSETVIEWPORTEXTEX(3)

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

πŸ’– 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) const
  • void 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 coordinates
  • cy β€” 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