EMF::ENHMETAHEADER(3)
π 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) constvoid 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
- 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