adime_draw_picture_button(3)

πŸ“¦ version 2.2.1, in fedora 43, fedora 44

✨ adime_draw_picture_button ✨

okay bestie, so this one is literally the <pink>adime_draw_picture_button</pink> function from the Adime API Reference β€” yes, the Allegro-era icon, we stan a legacy library πŸ’–


πŸŽ€ NAME πŸŽ€

adime_draw_picture_button β€” the girl whose whole job is drawing a button with a picture on it πŸ–ΌοΈβœ¨


🌸 SYNOPSIS 🌸

#include <adime.h>

void adime_draw_picture_button(BITMAP *bmp, int x1, int y1, int x2, int y2, int face,
                               int xlight, int light, int dark, int xdark, BITMAP *sprite)

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: it draws a button with a sprite on it πŸŽ¨πŸ’…

Where does it go? At the position you hand it β€” the x1, y1, x2, y2 rectangle situation β€” on the given bitmap, i.e. bmp is the canvas bestie, and it's getting a whole button drawn onto it.

And the look? It uses the given colors β€” that's face, xlight, light, dark, xdark doing their little color-blocking moment ✨ β€” and the given sprite, so sprite is the actual image getting plopped on top of the button. Two inputs, one iconic result. Periodt. πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ


ngl bestie, that's genuinely the whole function β€” no hidden options, no gotchas, no traps. Just pass the bitmap, the rectangle, the five colors, and the sprite, and go live your life 🫢

okay that's the page!! πŸ’– brought to you by Adime, version 2.2.1 β€” love her, she's a legend, mwah πŸ˜˜πŸŽ€βœ¨

πŸ“¦ where this page comes from