EMF::EMRPOLYGON(3)

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

πŸ’– 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) const
  • void 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 in points.

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: execute is virtual and serialize and size are 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