set_tab(3)
β¨ NAME β¨
set_tab β the lil function that plants a tab stop exactly where u want it π
πΈ SYNOPSIS πΈ
#include <gstream.h>
void set_tab(int x, int color, FONT fnt);
π DESCRIPTION π
okay bestie, listen. this is the basic function. it does one thing and it does it gorgeously: it creates a tab stop at the x-coordinate you give it, with the colour you give it and the font you give it. that's it. that's the vibe. π¦
but here's the tea β the function is overloaded, so you're not locked into passing all three args every single time. if you just wanna drop a tab stop without touching the font or the colour, you can. if you only wanna change the colour, you can. if you only wanna swap the font, you can too. like:
set_tab(int x)set_tab(int x, int color)set_tab(int x, FONT fnt)
respectively, obviously. π«Ά
π some examples, as a treat π
set_tab(130);
// set a tab stop at the x-position 130, don't change colour or font
set_tab(400);
// set a tab stop at 400, don't change colour or font
set_tab(80, 24);
// set a stop at 80 and let it change the colour to 24, no font change
set_tab(190, 57, my_arial_font);
// set tab stop at 190, change colour to 57 and font to 'my_arial_font'
set_tab(250, courier);
// set tab stop at 250, don't change colour, but change font to 'courier'
ngl the overloads are lowkey the whole point of this function, so use them, they're serving π
π a lil history lesson π
so, the first version of gstream did not have these overloaded functions. instead it used a way more clumsy syntax (it involved a constant, ikr π) and that whole situation is deprecated now. so don't do that. do this. periodt. π
β SEE ALSO β
okay that's the whole page, love u, go set some tabs π this was set_tab from the gstream manual, version 1.6 β mwah, bye bestie πβ¨
π¦ where this page comes from
- fedora 43: gstream-devel 1.6-35.fc43 Β· Giftware
- fedora 43: gstream-devel 1.6-35.fc43 Β· Giftware
- fedora 44: gstream-devel 1.6-36.fc44 Β· Giftware
- fedora 44: gstream-devel 1.6-36.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms