EMF::EMRSETBKMODE(3)

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

πŸ’– EMF::EMRSETBKMODE β€” the libemf girlie's guide πŸ’–

okay so bestie, welcome to EMF::EMRSETBKMODE(3) β€” that's section 3 of the libemf manual, we're in library-call territory, and this one is genuinely such a cute little record. it's giving "background mode setter" energy and i'm obsessed. let's get into it πŸŽ€


✨ NAME ✨

EMF::EMRSETBKMODE β€” EMF Set Background Mode. that's it, that's the whole vibe. periodt. πŸ’…


🌸 SYNOPSIS 🌸

#include <libemf.h>

Inherits EMF::METARECORD, and EMRSELECTCLIPPATH. so it's got that family tree going on, we love a class with lineage πŸ‘‘

✨ Public Member Functions ✨

  • EMRSETBKMODE (DWORD mode) β€” constructor, takes the mode.
  • EMRSETBKMODE (DATASTREAM &ds) β€” constructor, builds it from a datastream.
  • bool serialize (DATASTREAM ds) β€” serialize it, obvs.
  • int size (void) const β€” how big is this record, internally computed.
  • void execute (METAFILEDEVICECONTEXT *source, HDC dc) const β€” run it inside a device context.

🌈 Public Member Functions inherited from EMF::METARECORD 🌈

  • virtual ~METARECORD () β€” the destructor, inherited, doing its lil cleanup thing.

πŸ’œ Detailed Description πŸ’œ

EMF Set Background Mode.

so what does it actually do? it sets the background mode: transparent or opaque. those are your two options, no in-between, no third secret option, we respect the binary πŸ’€

Seems to be ignored by StarOffice. (Appears to work for text, though.)

not me reading that and going 😭 β€” StarOffice just does not care, apparently. but for text? text it works. so slay for text i guess ✨


🧚 Constructor & Destructor Documentation 🧚

EMF::EMRSETBKMODE::EMRSETBKMODE (DWORD mode) [inline]

Parameters:

  • mode β€” background mode.

that's the one. you hand it a mode, it becomes a record. simple, iconic, no notes 🫢

EMF::EMRSETBKMODE::EMRSETBKMODE (DATASTREAM & ds) [inline]

Construct a SetBkMode record from the input datastream.

Parameters:

  • ds β€” Metafile datastream.

so if you've already got a stream of metafile bytes just lying around, this constructor is your girl. feed it the ds and it reconstructs the whole record. main character energy fr fr πŸ’–


πŸ”₯ Member Function Documentation πŸ”₯

void EMF::EMRSETBKMODE::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.

ngl this is the one that actually does the thing β€” it takes your record and runs it inside the device context. two args, both device contexts, don't mix them up bestie πŸŽ€

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

Parameters:

  • ds β€” Metafile datastream.

Implements EMF::METARECORD.

returns a bool, so you'll know if it worked. lowkey love a function that just tells you the truth πŸ’…

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

Internally computed size of this record.

Implements EMF::METARECORD.

you don't compute it, it computes it. internally. you just ask and receive. so generous of it honestly 🌸


⭐ Author ⭐

Generated automatically by Doxygen for libemf from the source code. so like, not a human, a robot did this, and honestly? the robot ate. πŸ€–βœ¨


and that's the page bestie!! πŸ’– no cap, that's every flag, every parameter, every inherited member, every Implements line β€” all of it, preserved, untouched, exactly as the source gods intended. i would never gatekeep a detail from you 🫢

πŸŽ€ cute lil sign-off: this is version 1.0.9, dated Thu Jun 6 2024 23:01:07, and it lives in the libemf manual. screenshot it, memorize it, live it. bye bestie!! πŸ¦‹πŸ’œ
πŸ“¦ where this page comes from