Back to Seed Clases

Pango


Classes

Interfaces

Structs

Unions

Enums

Enum Pango.Gravity

Import line: Pango = imports.gi.Pango;
GIR File: Pango-1.0.gir
C documentation: Pango.Gravity
Enum : Gravity
The PangoGravity type represents the orientation of glyphs in a segment
of text. This is useful when rendering vertical text layouts. In
those situations, the layout is rotated using a non-identity PangoMatrix,
and then glyph orientation is controlled using PangoGravity.
Not every value in this enumeration makes sense for every usage of
PangoGravity; for example, PANGO_GRAVITY_AUTO only can be passed to
pango_context_set_base_gravity() and can only be returned by
pango_context_get_base_gravity().
Values
Properties
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Pango
Method
Pango.gravity_get_for_matrix (Matrix matrix) : Pango.Gravity
Finds the gravity that best matches the rotation component
in a PangoMatrix.
Pango
Method
Pango.gravity_get_for_script (Script script, Gravity base_gravity, GravityHint hint) : Pango.Gravity
Based on the script, base gravity, and hint, returns actual gravity
to use in laying out a single PangoItem.
Pango
Method
Pango.gravity_get_for_script_and_width (Script script, gboolean wide, Gravity base_gravity, GravityHint hint) : Pango.Gravity
Based on the script, East Asian width, base gravity, and hint,
returns actual gravity to use in laying out a single character
or PangoItem.
Pango
Method
Pango.gravity_to_rotation (Gravity gravity) : gdouble
Converts a PangoGravity value to its natural rotation in radians.
Pango.Context
Method
get_base_gravity () : Pango.Gravity
Retrieves the base gravity for the context.
Pango.Context
Method
get_gravity () : Pango.Gravity
Retrieves the gravity for the context.
Pango.Context
Method
set_base_gravity (Gravity gravity) : none
Sets the base gravity for the context.
Pango.FontDescription
Method
get_gravity () : Pango.Gravity
Gets the gravity field of a font description.
Pango.FontDescription
Method
set_gravity (Gravity gravity) : none
Sets the gravity field of a font description.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:16:41 GMT+0800 (HKT)