EMF::EMRPOLYGON(3)
π EMF::EMRPOLYGON π
okay bestie, welcome to libemf's manual page for EMF::EMRPOLYGON β the EMF Filled Polygon. yes it's a whole class. yes it draws a filled polygon. and yes, we're gonna read the whole thing together because you deserve to know. π¦
β¨ NAME β¨
EMF::EMRPOLYGON β EMF Filled Polygon. that's it, that's the name. iconic behavior honestly. π
πΈ SYNOPSIS πΈ
#include <libemf.h>
so the tea is: this class inherits from EMF::METARECORD, and also from EMRPOLYLINE. two parents, one polygon, main character energy fr fr. π
π Public Member Functions
EMRPOLYGON(const RECTL *bounds, const POINT *points, INT n)EMRPOLYGON(DATASTREAM &ds)~EMRPOLYGON()bool serialize(DATASTREAM ds)int size(void) constvoid execute(METAFILEDEVICECONTEXT *source, HDC dc) const
π Public Member Functions inherited from EMF::METARECORD
virtual ~METARECORD()
π«Ά Detailed Description π«Ά
EMF Filled Polygon.
Draw a filled polygon. that's the whole assignment bestie, and it ate. π₯
π Constructor & Destructor Documentation π
EMF::EMRPOLYGON::EMRPOLYGON(const RECTL *bounds, const POINT *points, INT n) [inline]
the glow-up constructor. it takes all the deets up front:
Parameters
boundsβ overall bounding box of polygon.pointsβ array of polygon vertices.nβ number of vertices inpoints.
like, hand it the box, hand it the corners, hand it how many corners, and it's giving polygon. β¨
EMF::EMRPOLYGON::EMRPOLYGON(DATASTREAM &ds) [inline]
Construct a Polygon record from the input stream. lowkey the "read it off the wire" era. π§
Parameters
dsβ Metafile datastream.
EMF::EMRPOLYGON::~EMRPOLYGON() [inline]
Destructor frees a copy of the points it buffered. so it did make a copy, and now it's letting go. closure, but make it memory management. ππ
β Member Function Documentation β
void EMF::EMRPOLYGON::execute(METAFILEDEVICECONTEXT *source, HDC dc) const [inline], [virtual]
Execute this record in the context of the given device context. it does the thing, in the place. π
Parameters
sourceβ the device context from which this record is taken.dcβ device context for execute.
Implements EMF::METARECORD.
bool EMF::EMRPOLYGON::serialize(DATASTREAM ds) [inline], [virtual]
Parameters
dsβ Metafile datastream.
Implements EMF::METARECORD.
int EMF::EMRPOLYGON::size(void) const [inline], [virtual]
Internally computed size of this record. it just knows its own size, no cap. π
Implements EMF::METARECORD.
π Author π
Generated automatically by Doxygen for libemf from the source code. so technically the author is Doxygen and we respect its grind. π
ngl bestie, if you're implementing this:executeis virtual andserializeandsizeare virtual too, so override accordingly and don't come for me. also everything here is[inline]which is a whole vibe. π«Ά
okay that's the page!! and for the cute sign-off: this was Version 1.0.9, dated Thu Jun 6 2024 23:01:07 β so if you're reading this way later, yes, we were all here, in the EMF::EMRPOLYGON(3) section of the libemf manual, slaying. πβ¨πΈπ¦π
π¦ 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