adime_draw_picture_button(3)
β¨ 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 π
adime_draw_picture_button_down(3)β the pressed-down version, main character energy πadime_draw_empty_button(3)β no sprite, just vibesadime_draw_text_button(3)β words instead of pics, also slay
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
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms