SDL_ExposeEvent(3)

✨ NAME ✨

SDL_ExposeEvent β€” Quit requested event πŸ’–

okay so bestie, welcome to the SDL API Reference page for SDL_ExposeEvent(3) β€” yes it's giving very "why is this so short", but it's important, trust. 🫢


πŸŽ€ STRUCTURE DEFINITION πŸŽ€

here's the whole lil guy, no cap, this is literally all of it:

typedef struct{
  Uint8 type
} SDL_ExposeEvent;

🌸 STRUCTURE DATA 🌸

  • type β€” SDL_VIDEOEXPOSE ⭐

πŸ’… DESCRIPTION πŸ’…

SDL_ExposeEvent is a member of the SDL_Event union, and it gets used when an event of type SDL_VIDEOEXPOSE is reported. slay. ✨

A VIDEOEXPOSE event is triggered when the screen has been modified outside of the application β€” usually by the window manager β€” and it needs to be redrawn. so basically the WM said "not me changing things behind your back" πŸ’€ and now your app has to redraw everything. main character energy honestly.

bestie this one is NOT the same as a quit event, okay?? the NAME line says "Quit requested event" but the actual description is about screen redraw. iconic typo behavior, but the facts are the facts. πŸ“

πŸ¦‹ SEE ALSO πŸ¦‹

  • SDL_Event
  • SDL_SetEventFilter

and that's the whole page, periodt πŸ’œ

this lil gem came from SDL, dated Tue 11 Sep 2001, 23:00 β€” yeah, 2001 said hi, and it's still out here doing its thing. no cap, obsessed. πŸ’–πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from