Crate pango[][src]

Expand description

Rust Pango bindings

This library contains safe Rust bindings for Pango. It is a part of gtk-rs.

Pango 1.38 is the lowest supported version for the underlying library.

Re-exports

pub use ffi;
pub use glib;
pub use crate::analysis::Analysis;
pub use crate::attr_class::AttrClass;
pub use crate::language::Language;
pub use crate::layout::HitPosition;
pub use crate::rectangle::Rectangle;
pub use glyph::GlyphGeometry;
pub use glyph::GlyphInfo;

Modules

analysis
attr_class
attr_iterator
attr_list
attribute
functions
glyph
item
language
layout
prelude

Traits and essential types inteded for blanket imports.

rectangle

Structs

AttrIterator
AttrList
Attribute
Color
Context
Coverage
Font
FontDescription
FontFace
FontFamily
FontMap
FontMask
FontMetrics
Fontset
FontsetSimple
GlyphItem
GlyphItemIter
GlyphString
Item
Layout
LayoutIter
LayoutLine
Matrix
Renderer
ShapeFlags
ShowFlags
TabArray

Enums

Alignment
AttrType
BidiType
CoverageLevel
Direction
EllipsizeMode
Gravity
GravityHint
Overlinev1_46
RenderPart
Script
Stretch
Style
TabAlign
Underline
Variant
Weight
WrapMode

Constants

NONE_FONT
NONE_FONTSET
NONE_FONT_FACE
NONE_FONT_FAMILY
NONE_FONT_MAP
NONE_RENDERER
SCALE
SCALE_LARGE

The scale factor for one magnification step (1.2).

SCALE_MEDIUM

The scale factor for normal size (1.0).

SCALE_SMALL

The scale factor for one shrinking step (1 / 1.2).

SCALE_XX_LARGE

The scale factor for three magnification steps (1.2 * 1.2 * 1.2).

SCALE_XX_SMALL

The scale factor for three shrinking steps (1 / (1.2 * 1.2 * 1.2)).

SCALE_X_LARGE

The scale factor for two magnification steps (1.2 * 1.2).

SCALE_X_SMALL

The scale factor for two shrinking steps (1 / (1.2 * 1.2)).

Functions

extents_to_pixels
find_base_dir
find_paragraph_boundary
is_zero_width
itemize
itemize_with_base_dir
parse_markup
parse_stretch
parse_style
parse_variant
parse_weight
quantize_line_geometry
reorder_items
shape
shape_full
shape_with_flagsv1_44
unichar_direction
units_from_double
units_to_double
version
version_check
version_string

Type Definitions

Glyph
GlyphUnit
LayoutRun