Index

Package: Enums

Description

package Pango.Enums is
---------------------------------------------------------------------------- -- Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet -- Copyright (C) 2000-2014, AdaCore -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3, or (at your option) any later -- version. This library is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- -- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- -- As a special exception under Section 7 of GPL version 3, you are granted -- additional permissions described in the GCC Runtime Library Exception, -- version 3.1, as published by the Free Software Foundation. -- -- You should have received a copy of the GNU General Public License and -- a copy of the GCC Runtime Library Exception along with this program; -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- <http://www.gnu.org/licenses/>. -- -- ----------------------------------------------------------------------------

Packages

Alignment_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Alignment_Properties is
      new Generic_Internal_Discrete_Property (Alignment);

Attr_Type_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Attr_Type_Properties is
      new Generic_Internal_Discrete_Property (Attr_Type);

Coverage_Level_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Coverage_Level_Properties is
      new Generic_Internal_Discrete_Property (Coverage_Level);

Direction_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Direction_Properties is
      new Generic_Internal_Discrete_Property (Direction);

Font_Mask_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Font_Mask_Properties is
      new Generic_Internal_Discrete_Property (Font_Mask);

Gravity_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Gravity_Properties is
      new Generic_Internal_Discrete_Property (Gravity);

GravityHint_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package GravityHint_Properties is
      new Generic_Internal_Discrete_Property (GravityHint);

Stretch_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Stretch_Properties is
      new Generic_Internal_Discrete_Property (Stretch);

Underline_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Underline_Properties is
      new Generic_Internal_Discrete_Property (Underline);

Variant_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Variant_Properties is
      new Generic_Internal_Discrete_Property (Variant);

Wrap_Mode_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Wrap_Mode_Properties is
      new Generic_Internal_Discrete_Property (Wrap_Mode);

Types

Alignment

type Alignment is (
      Pango_Align_Left,
      Pango_Align_Center,
      Pango_Align_Right);

Attr_Type

type Attr_Type is (
      Pango_Attr_Invalid,
      Pango_Attr_Language,
      Pango_Attr_Family,
      Pango_Attr_Style,
      Pango_Attr_Weight,
      Pango_Attr_Variant,
      Pango_Attr_Stretch,
      Pango_Attr_Size,
      Pango_Attr_Font_Desc,
      Pango_Attr_Foreground,
      Pango_Attr_Background,
      Pango_Attr_Underline,
      Pango_Attr_Strikethrough,
      Pango_Attr_Rise,
      Pango_Attr_Shape,
      Pango_Attr_Scale,
      Pango_Attr_Fallback,
      Pango_Attr_Letter_Spacing,
      Pango_Attr_Underline_Color,
      Pango_Attr_Strikethrough_Color,
      Pango_Attr_Absolute_Size,
      Pango_Attr_Gravity,
      Pango_Attr_Gravity_Hint);

Coverage_Level

type Coverage_Level is (
      Pango_Coverage_None,
      Pango_Coverage_Fallback,
      Pango_Coverage_Approximate,
      Pango_Coverage_Exact);

Direction

type Direction is (
      Pango_Direction_Ltr,
      Pango_Direction_Rtl,
      Pango_Direction_Ttb_Ltr,
      Pango_Direction_Ttb_Rtl,
      Pango_Direction_Weak_Ltr,
      Pango_Direction_Weak_Rtl,
      Pango_Direction_Neutral);

Font_Mask

type Font_Mask is mod 2 ** Integer'Size;

Gravity

type Gravity is (
      Pango_Gravity_South,
      Pango_Gravity_East,
      Pango_Gravity_North,
      Pango_Gravity_West,
      Pango_Gravity_Auto);

GravityHint

type GravityHint is (
      Pango_Gravity_Hint_Natural,
      Pango_Gravity_Hint_Strong,
      Pango_Gravity_Hint_Line);

Stretch

type Stretch is (
      Pango_Stretch_Ultra_Condensed,
      Pango_Stretch_Extra_Condensed,
      Pango_Stretch_Condensed,
      Pango_Stretch_Semi_Condensed,
      Pango_Stretch_Normal,
      Pango_Stretch_Semi_Expanded,
      Pango_Stretch_Expanded,
      Pango_Stretch_Extra_Expanded,
      Pango_Stretch_Ultra_Expanded);

Style

type Style is (
      Pango_Style_Normal,
      Pango_Style_Oblique,
      Pango_Style_Italic);

Underline

type Underline is (
      Pango_Underline_None,
      Pango_Underline_Single,
      Pango_Underline_Double,
      Pango_Underline_Low,
      Pango_Underline_Error);

Variant

type Variant is (
      Pango_Variant_Normal,
      Pango_Variant_Small_Caps);

Weight

type Weight is (
      Pango_Weight_Thin,
      Pango_Weight_Ultralight,
      Pango_Weight_Light,
      Pango_Weight_Book,
      Pango_Weight_Normal,
      Pango_Weight_Medium,
      Pango_Weight_Semibold,
      Pango_Weight_Bold,
      Pango_Weight_Ultrabold,
      Pango_Weight_Heavy,
      Pango_Weight_Ultraheavy);

Wrap_Mode

type Wrap_Mode is (
      Pango_Wrap_Word,
      Pango_Wrap_Char,
      Pango_Wrap_Word_Char);

Property_Alignment

type Property_Alignment is new Alignment_Properties.Property;

Property_Attr_Type

type Property_Attr_Type is new Attr_Type_Properties.Property;

Property_Coverage_Level

type Property_Coverage_Level is new Coverage_Level_Properties.Property;

Property_Direction

type Property_Direction is new Direction_Properties.Property;

Property_Font_Mask

type Property_Font_Mask is new Font_Mask_Properties.Property;

Property_Gravity

type Property_Gravity is new Gravity_Properties.Property;

Property_GravityHint

type Property_GravityHint is new GravityHint_Properties.Property;

Property_Stretch

type Property_Stretch is new Stretch_Properties.Property;

Property_Style

type Property_Style is new Style_Properties.Property;

Property_Underline

type Property_Underline is new Underline_Properties.Property;

Property_Variant

type Property_Variant is new Variant_Properties.Property;

Property_Weight

type Property_Weight is new Weight_Properties.Property;

Property_Wrap_Mode

type Property_Wrap_Mode is new Wrap_Mode_Properties.Property;

Constants & Global variables

Pango_Font_Mask_Family (Font_Mask)

Pango_Font_Mask_Family : constant Font_Mask := 1;

Pango_Font_Mask_Style (Font_Mask)

Pango_Font_Mask_Style : constant Font_Mask := 2;

Pango_Font_Mask_Variant (Font_Mask)

Pango_Font_Mask_Variant : constant Font_Mask := 4;

Pango_Font_Mask_Weight (Font_Mask)

Pango_Font_Mask_Weight : constant Font_Mask := 8;

Pango_Font_Mask_Stretch (Font_Mask)

Pango_Font_Mask_Stretch : constant Font_Mask := 16;

Pango_Font_Mask_Size (Font_Mask)

Pango_Font_Mask_Size : constant Font_Mask := 32;

Pango_Font_Mask_Gravity (Font_Mask)

Pango_Font_Mask_Gravity : constant Font_Mask := 64;

Pango_Scale

Pango_Scale : constant := 1024;
All internal units in Pango are expressed in terms of this unit. A typical pango size must be divided by Pango_Scale to get the equivalent in pixels.

Subprograms & Entries

To_Pixels

function To_Pixels 
(Pango_Units: Gint) return Gint;
Convert a size in pango units to pixels. This is a rounding of Pango_Units divided by Pango_Scale