Crate pangocairo
source ·Expand description
Rust PangoCairo bindings
Rust bindings and wrappers for PangoCairo, part of gtk-rs-core.
PangoCairo 1.40 is the lowest supported version for the underlying library.
Minimum supported Rust version
Currently, the minimum supported Rust version is 1.70.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]
pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pangocairo" }
Avoid mixing versioned and git crates like this:
# This will not compile
[dependencies]
pangocairo = "0.13"
pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core.git", package = "pangocairo" }
See Also
License
pangocairo is available under the MIT License, please refer to it.
Re-exports
Modules
Structs
Fontis an interface exported by fonts for use with Cairo.FontMapis an interface exported by font maps for use with Cairo.
Functions
- Gets the resolution for the context.
- Sets the font options used when rendering text with this context.
- Sets the resolution for the context.
- Creates a context object set up to match the current transformation and target surface of the Cairo context.
- Creates a layout object set up to match the current transformation and target surface of the Cairo context.
- Add a squiggly line to the current path in the specified cairo context that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
- Adds the glyphs in
glyphsto the current path in the specified cairo context. - Adds the text in
pango::LayoutLineto the current path in the specified cairo context. - Adds the text in a
pango::Layoutto the current path in the specified cairo context. - Draw a squiggly line in the specified cairo context that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
- Draws the glyphs in
glyph_itemin the specified cairo context, - Draws the glyphs in
glyphsin the specified cairo context. - Draws a
pango::Layoutin the specified cairo context. - Draws a
pango::LayoutLinein the specified cairo context. - Updates a
pango::Contextpreviously created for use with Cairo to match the current transformation and target surface of a Cairo context. - Updates the private
pango::Contextof apango::Layoutcreated with [funccreate_layout] to match the current transformation and target surface of a Cairo context.