1 /*
2  * Distributed under the Boost Software License, Version 1.0.
3  *    (See accompanying file LICENSE_1_0.txt or copy at
4  *          http://www.boost.org/LICENSE_1_0.txt)
5  */
6 module pango.c.tabs;
7 
8 import glib;
9 import gobject;
10 
11 extern(C):
12 
13 struct PangoTabArray;
14 
15 /**
16  * PangoTabAlign:
17  * @PANGO_TAB_LEFT: the tab stop appears to the left of the text.
18  *
19  * A #PangoTabAlign specifies where a tab stop appears relative to the text.
20  */
21 enum PangoTabAlign
22 {
23   PANGO_TAB_LEFT
24 
25   /* These are not supported now, but may be in the
26    * future.
27    *
28    *  PANGO_TAB_RIGHT,
29    *  PANGO_TAB_CENTER,
30    *  PANGO_TAB_NUMERIC
31    */
32 }
33 
34 /**
35  * PANGO_TYPE_TAB_ARRAY:
36  *
37  * The #GObject type for #PangoTabArray.
38  */
39 
40 PangoTabArray *pango_tab_array_new (gint initial_size,
41 						     gboolean positions_in_pixels);
42 PangoTabArray *pango_tab_array_new_with_positions (gint size,
43 						     gboolean       positions_in_pixels,
44 						     PangoTabAlign  first_alignment,
45 						     gint           first_position,
46 						     ...);
47 pure GType           pango_tab_array_get_type            ();
48 PangoTabArray  *pango_tab_array_copy                (PangoTabArray *src);
49 void            pango_tab_array_free                (PangoTabArray *tab_array);
50 gint            pango_tab_array_get_size            (PangoTabArray *tab_array);
51 void            pango_tab_array_resize              (PangoTabArray *tab_array,
52 						     gint           new_size);
53 void            pango_tab_array_set_tab             (PangoTabArray *tab_array,
54 						     gint           tab_index,
55 						     PangoTabAlign  alignment,
56 						     gint           location);
57 void            pango_tab_array_get_tab             (PangoTabArray *tab_array,
58 						     gint           tab_index,
59 						     PangoTabAlign *alignment,
60 						     gint          *location);
61 void            pango_tab_array_get_tabs            (PangoTabArray *tab_array,
62 						     PangoTabAlign **alignments,
63 						     gint          **locations);
64 
65 gboolean        pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array);
66