Index

Package: Tabs

Description

package Pango.Tabs is

Types

Pango_Tab_Array

type Pango_Tab_Array is limited private;

Pango_Tab_Align

type Pango_Tab_Align is (Pango_Tab_Left);

Constants & Global variables

Null_Tab_Array (Pango_Tab_Array)

Null_Tab_Array : constant Pango_Tab_Array;
This type contains an array of tab stops. Each such stop has an alignment and a position. Several methods are provided to create such an array, either by spacing out the stops regularly, or by positioning them by yourself.

Subprograms & Entries

Pango_New

procedure Pango_New 
(Tab_Array: out Pango_Tab_Array;
Initial_Size: Glib.Gint;
Positions_In_Pixels: Boolean := True);
Create an array of Initial_Size tab stops. The position of these stops will be specified in pixel units if Position_In_Pixels is True, or in Pango units otherwise (see Pango.Enums.Pango_Scale). All stops are initially at position 0. It is legal to create an array of size 0.

Get_Type

function Get_Type return Glib.GType;
Return the internal type associated with a Pango_Tab_Array

Copy

procedure Copy 
(Src: Pango_Tab_Array;
Target: out Pango_Tab_Array);
Return a newly allocated copy of Src.

Free

procedure Free 
(Tab_Array: Pango_Tab_Array);
Free the memory occupied by Tab_Array

Get_Size

function Get_Size 
(Tab_Array: Pango_Tab_Array) return Glib.Gint;
Return the number of tab stops in Tab_Array.

Resize

procedure Resize 
(Tab_Array: Pango_Tab_Array;
New_Size: Glib.Gint);
Resize Tab_Array. You must then initialize any stop that was added as a result of growing the array.

Set_Tab

procedure Set_Tab 
(Tab_Array: Pango_Tab_Array;
Tab_Index: Glib.Gint;
Alignment: Pango_Tab_Align := Pango_Tab_Left;
Location: Glib.Gint);
Set the alignment and location of a tab stop. Location is either in pixel units or in pango units, depending on how Tab_Array was created. Tab_Index starts at 0.

Get_Tab

procedure Get_Tab 
(Tab_Array: Pango_Tab_Array;
Tab_Index: Glib.Gint;
Alignment: out Pango_Tab_Align;
Location: out Glib.Gint);
Return the alignment and location of a tab stop. Tab_Index starts at 0.

Get_Positions_In_Pixels

function Get_Positions_In_Pixels 
(Tab_Array: Pango_Tab_Array) return Boolean;
Whether the position of tab stops is in pixel units, or in pango units.