al_inhibit_screensaver(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, this is the Allegro 5 API page for al_inhibit_screensaver β€” and yes, the manual it lives in is al_inhibit_screensaver(3alleg5), say it with me πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

bool al_inhibit_screensaver(bool inhibit)

πŸ’– DESCRIPTION πŸ’–

so like, this function is your little bodyguard against the system screensaver 🫢 it lets you, the user, stop the screensaver from starting up β€” but only if you pass true. no cap.

and if you pass false? it resets the system right back to the default state, aka the state things were in when the program started. iconic behaviour honestly 🌈

it returns true if the state was set successfully, otherwise false. periodt.

ngl bestie, check that return value β€” it's giving "yes I did it" vs "it did NOT happen" and you deserve to know which πŸ’€

and that's the whole page, angel πŸ’œ it's from the Allegro reference manual, manual page al_inhibit_screensaver(3alleg5), and that footer date/version energy is just the source + date stamp living at the bottom of the original β€” consider it signed, sealed, and slayed πŸŽ€βœ¨

πŸ“¦ where this page comes from