TabArray
Object Hierarchy:
Pango.TabArray
Pango.TabArray
Pango.TabArray
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "pango_tab_array_get_type ()" ) ] [ Compact ]public class TabArray
A `PangoTabArray` contains an array of tab stops.
`PangoTabArray` can be used to set tab stops in a `PangoLayout`. Each tab stop has an alignment, a position, and optionally a character to use
as decimal point.
Content:
Static methods:
Creation methods:
Methods:
public TabArray copy ()
Copies a `PangoTabArray`.
public void free ()
Frees a tab array and associated resources.
public unichar get_decimal_point (int tab_index)
Gets the Unicode character to use as decimal point.
public bool get_positions_in_pixels ()
Returns true if the tab positions are in
pixels, false if they are in Pango units.
public int get_size ()
Gets the number of tab stops in this .
public void get_tab (int tab_index, out TabAlign alignment, out int location)
Gets the alignment and position of a tab stop.
public void get_tabs (out TabAlign alignments, out int [] locations)
If non-null , alignments
and
locations
are filled with allocated arrays.
public void resize (int new_size)
Resizes a tab array.
public void set_decimal_point (int tab_index, unichar decimal_point)
Sets the Unicode character to use as decimal point.
public void set_positions_in_pixels (bool positions_in_pixels)
Sets whether positions in this array are specified in pixels.
public void set_tab (int tab_index, TabAlign alignment, int location)
Sets the alignment and location of a tab stop.
public void sort ()
Utility function to ensure that the tab stops are in increasing order.
public string to_string ()
Serializes a `PangoTabArray` to a string.