TICKIT_RECT_INIT_SIZED(3)

πŸ’– TICKIT_RECT_INIT_SIZED πŸ’–

okay bestie, so this is a tickit manual page β€” third section, library functions, the whole vibe β€” and it's literally just about initialising a rectangle struct. that's it. that's the page. but it's iconic and we're gonna treat it with respect. ✨


🌸 NAME 🌸

tickit_rect_init_sized, tickit_rect_init_bounded β€” initialise a rectangle struct πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

void tickit_rect_init_sized(TickitRect *rect, int top, int left,
    int lines, int cols);
void tickit_rect_init_bounded(TickitRect *rect, int top, int left,
    int bottom, int right);

and don't forget to Link with -ltickit or none of this is happening, no cap. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

✨ tickit_rect_init_sized() ✨

so this one initialises a TickitRect structure so it holds the given top left corner plus the size. and yes, it is equivalent to just initialising the four fields one by one yourself β€” like, same energy, same result. it's just sitting in the API "for completeness." that's the whole reason it exists. it said "i'm here for the plot." 🫢

✨ tickit_rect_init_bounded() ✨

and this one initialises a TickitRect structure so it holds the given top left and bottom right bounds. two corners, one rectangle, slay. 🌈


⭐ RETURN VALUE ⭐

Neither function returns a value. they're void. they just do the thing and dip. main character behaviour honestly. πŸ’€


🧚 SEE ALSO 🧚


and that's the whole page, bestie β€” stay hydrated, initialise your rects, and iykyk. πŸ“πŸ’œ

this was TICKIT_RECT_INIT_SIZED(3) from the Library Functions Manual β€” mwah, bye! πŸ’–βœ¨πŸŽ€