1set_tab(3)                      gstream manual                      set_tab(3)
2
3
4

NAME

6       set_tab
7

SYNOPSIS

9       #include <gstream.h>
10
11
12       void set_tab(int x, int color, FONT fnt);
13

DESCRIPTION

15       This  is the basic function - it creates a tab stop at the specified x-
16       coordinate with the specified colour and the specified  font.  But  the
17       function is overloaded so it is possible only to set a tab stop without
18       changing the font or the font colour, or just changing  the  colour  or
19       just  changing  the font: set_tab(int x), set_tab(int x, int color) and
20       set_tab(int x, FONT fnt) respectively.
21
22       A few examples are granted:
23
24          set_tab(130);
25          // set a tab stop at the x-position 130, don't change colour or font
26
27          set_tab(400);
28          // set a tab stop at 400, don't change colour or font
29
30          set_tab(80, 24);
31          // set a stop at 80 and let it change the colour to 24, no font change
32
33          set_tab(190, 57, my_arial_font);
34          // set tab stop at 190, change colour to 57 and font to 'my_arial_font'
35
36          set_tab(250, courier);
37          // set tab stop at 250, don't change colour, but change font to 'courier'
38
39
40       The first version of gstream didn't have  these  overloaded  functions,
41       but  used a more clumsy syntax (involving a constant) which is now dep‐
42       recated.
43
44

SEE ALSO

46       gstream-remove_tab(3), gstream-remove_all_tabs(3), gstream-restore(3)
47
48
49
50gstream                           version 1.6                       set_tab(3)
Impressum