EMF::ENHMETAHEADER(3)

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

πŸ’– NAME πŸ’–

EMF::ENHMETAHEADER β€” the Enhanced Metafile Header Record. bestie this is a libemf page from section 3 of the manual, and it's giving "small class, big responsibilities" energy. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libemf.h>

Inherits EMF::METARECORD, and ENHMETAHEADER.

✨ Public Member Functions ✨

  • ENHMETAHEADER (LPCWSTR description=0)
  • ~ENHMETAHEADER ()
  • bool serialize (DATASTREAM ds)
  • bool unserialize (DATASTREAM ds)
  • int size (void) const
  • void execute (METAFILEDEVICECONTEXT *source, HDC dc) const

🌸 Public Member Functions inherited from EMF::METARECORD 🌸

  • virtual ~METARECORD ()

πŸ‘‘ Detailed Description πŸ‘‘

Enhanced Metafile Header Record. that's the whole vibe, but let me tell you why it matters, because this one is doing two jobs at once and honestly? main character energy. πŸ’…

The ENHMETAHEADER serves two purposes in this library:

  • it keeps track of the size of the metafile (in physical dimensions) and the number of records and handles that are ultimately to be written to the disk file πŸ“
  • and it's also a real record that must be written out. so like, it's the scorekeeper AND a player on the field. iconic.

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

πŸ’œ EMF::ENHMETAHEADER::ENHMETAHEADER (LPCWSTR description = 0) [inline]

Parameters

  • description β€” an optional description argument. it's a UNICODE-like string with the following format: 'some text\0some more text\0\0'. the W32 interface defines UNICODE characters to be two-byte (unsigned short strings). the constructor makes a copy of the argument, so no cap, it's not borrowing your string, it's keeping its own. 🫢

πŸ’œ EMF::ENHMETAHEADER::~ENHMETAHEADER () [inline]

Destructor deletes memory allocated for description. she cleans up after herself, as she should. πŸ’–


🌈 Member Function Documentation 🌈

⭐ void EMF::ENHMETAHEADER::execute (METAFILEDEVICECONTEXT * source, HDC dc) const [inline], [virtual]

Execute this record in the context of the given device context.

Parameters

  • source β€” the device context from which this record is taken.
  • dc β€” device context for execute.

Implements EMF::METARECORD.

⭐ bool EMF::ENHMETAHEADER::serialize (DATASTREAM ds) [inline], [virtual]

Serializing the header is an example of an extended record. lowkey a flex ngl.

Parameters

  • ds β€” Metafile datastream.

Implements EMF::METARECORD.

⭐ int EMF::ENHMETAHEADER::size (void) const [inline], [virtual]

Internally computed size of this record.

Implements EMF::METARECORD.

Referenced by EMF::METAFILEDEVICECONTEXT::nextHandle().

⭐ bool EMF::ENHMETAHEADER::unserialize (DATASTREAM ds) [inline]

Read a header record from the datastream. πŸ“


🧚 Author 🧚

Generated automatically by Doxygen for libemf from the source code. not a human typing this out by hand, it's the robot doing its thing, and honestly? slay. πŸ’…


okay that's the whole page bestie, every flag, param, path and caveat is in there, no cap. go forth and metafile. πŸ¦‹

Version 1.0.9 β€” Thu Jun 6 2024 23:01:07 and that's a wrap, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from