Expand description
§Rust Pango bindings
Rust bindings and wrappers for Pango, part of gtk-rs-core.
Pango 1.40 is the lowest supported version for the underlying library.
§Minimum supported Rust version
Currently, the minimum supported Rust version is 1.83.0.
§Documentation
§Using
We recommend using crates from crates.io, as demonstrated here.
If you want to track the bleeding edge, use the git dependency instead:
[dependencies]
pango = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pango" }Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
pango = "0.13"
pango = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pango" }§See Also
§License
pango is available under the MIT License, please refer to it.
Re-exports§
Modules§
- prelude
- Traits and essential types intended for blanket imports.
Structs§
- Analysis
- GLib type: Inline allocated boxed type with stack copy semantics.
- Attr
Class - Attr
Color - GLib type: Boxed type with copy-on-clone semantics.
- Attr
Float - GLib type: Boxed type with copy-on-clone semantics.
- Attr
Font Desc - GLib type: Boxed type with copy-on-clone semantics.
- Attr
Font Features - GLib type: Boxed type with copy-on-clone semantics.
- AttrInt
- GLib type: Boxed type with copy-on-clone semantics.
- Attr
Into Iter - Attr
Iterator - Attr
Language - GLib type: Boxed type with copy-on-clone semantics.
- Attr
List - GLib type: Shared boxed type with reference counted clone semantics.
- Attr
Shape - GLib type: Boxed type with copy-on-clone semantics.
- Attr
Size - GLib type: Boxed type with copy-on-clone semantics.
- Attr
String - GLib type: Boxed type with copy-on-clone semantics.
- Attribute
- GLib type: Boxed type with copy-on-clone semantics.
- Color
- GLib type: Inline allocated boxed type with stack copy semantics.
- Context
- GLib type: GObject with reference counted clone semantics.
- Coverage
- GLib type: GObject with reference counted clone semantics.
- Font
- GLib type: GObject with reference counted clone semantics.
- Font
Description - GLib type: Boxed type with copy-on-clone semantics.
- Font
Face - GLib type: GObject with reference counted clone semantics.
- Font
Family - GLib type: GObject with reference counted clone semantics.
- FontMap
- GLib type: GObject with reference counted clone semantics.
- Font
Mask - Font
Metrics - GLib type: Shared boxed type with reference counted clone semantics.
- Fontset
- GLib type: GObject with reference counted clone semantics.
- Fontset
Simple - GLib type: GObject with reference counted clone semantics.
- Glyph
Geometry - GLib type: Inline allocated boxed type with stack copy semantics.
- Glyph
Info - GLib type: Inline allocated boxed type with stack copy semantics.
- Glyph
Item - GLib type: Boxed type with copy-on-clone semantics.
- Glyph
Item Into Iter - Glyph
Item Iter - Glyph
String - GLib type: Boxed type with copy-on-clone semantics.
- HitPosition
- The result of
LayoutLine::x_to_index. - Item
- GLib type: Boxed type with copy-on-clone semantics.
- Language
- GLib type: Boxed type with copy-on-clone semantics.
- Layout
- GLib type: GObject with reference counted clone semantics.
- Layout
Deserialize Flags v1_50 - Layout
Iter - GLib type: Boxed type with copy-on-clone semantics.
- Layout
Line - GLib type: Shared boxed type with reference counted clone semantics.
- Layout
Serialize Flags v1_50 - Matrix
- GLib type: Inline allocated boxed type with stack copy semantics.
- Rectangle
- GLib type: Inline allocated boxed type with stack copy semantics.
- Renderer
- GLib type: GObject with reference counted clone semantics.
- Script
Into Iter - Script
Iter - Shape
Flags v1_44 - Show
Flags v1_44 - TabArray
- GLib type: Boxed type with copy-on-clone semantics.
Enums§
- Alignment
- Attr
Type - Baseline
Shift v1_50 - Bidi
Type Deprecated - Coverage
Level - Direction
- Ellipsize
Mode - Font
Color v1_57 - Font
Scale v1_50 - Gravity
- Gravity
Hint - Overline
v1_46 - Render
Part - Script
- Stretch
- Style
- TabAlign
- Text
Transform v1_50 - Underline
- Variant
- Weight
- Wrap
Mode
Constants§
- ANALYSIS_
FLAG_ CENTERED_ BASELINE - ANALYSIS_
FLAG_ IS_ ELLIPSIS - ANALYSIS_
FLAG_ NEED_ HYPHEN - ATTR_
INDEX_ FROM_ TEXT_ BEGINNING - ATTR_
INDEX_ TO_ TEXT_ END - GLYPH_
EMPTY - GLYPH_
INVALID_ INPUT - GLYPH_
UNKNOWN_ FLAG - 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)).
Traits§
Functions§
- extents_
to_ pixels - find_
base_ dir - find_
paragraph_ boundary - is_
zero_ width - itemize
- itemize_
with_ base_ dir - markup_
parser_ finish - markup_
parser_ new - parse_
markup - parse_
stretch - parse_
style - parse_
variant - parse_
weight - quantize_
line_ geometry - reorder_
items - shape
- shape_
full - shape_
with_ flags v1_44 - unichar_
direction - units_
from_ double - units_
to_ double - version
- version_
check - version_
string