Functions
pango_tab_array_new ()
PangoTabArray *
pango_tab_array_new (gint initial_size,
gboolean positions_in_pixels);
Creates an array of initial_size
tab stops. Tab stops are specified in
pixel units if positions_in_pixels
is TRUE, otherwise in Pango
units. All stops are initially at position 0.
pango_tab_array_new_with_positions ()
PangoTabArray *
pango_tab_array_new_with_positions (gint size,
gboolean positions_in_pixels,
PangoTabAlign first_alignment,
gint first_position,
...);
This is a convenience function that creates a PangoTabArray
and allows you to specify the alignment and position of each
tab stop. You must provide an alignment
and position for size
tab stops.
pango_tab_array_free ()
void
pango_tab_array_free (PangoTabArray *tab_array);
Frees a tab array and associated resources.
pango_tab_array_get_size ()
gint
pango_tab_array_get_size (PangoTabArray *tab_array);
Gets the number of tab stops in tab_array
.
Returns
the number of tab stops in the array.
pango_tab_array_resize ()
void
pango_tab_array_resize (PangoTabArray *tab_array,
gint new_size);
Resizes a tab array. You must subsequently initialize any tabs that
were added as a result of growing the array.
pango_tab_array_set_tab ()
void
pango_tab_array_set_tab (PangoTabArray *tab_array,
gint tab_index,
PangoTabAlign alignment,
gint location);
Sets the alignment and location of a tab stop.
alignment
must always be PANGO_TAB_LEFT in the current
implementation.
pango_tab_array_get_tab ()
void
pango_tab_array_get_tab (PangoTabArray *tab_array,
gint tab_index,
PangoTabAlign *alignment,
gint *location);
Gets the alignment and position of a tab stop.
pango_tab_array_get_positions_in_pixels ()
gboolean
pango_tab_array_get_positions_in_pixels
(PangoTabArray *tab_array);
Returns TRUE if the tab positions are in pixels, FALSE if they are
in Pango units.
Returns
whether positions are in pixels.