pangocairo-0.8.0/.gitignore010064400007650000024000000000221350341531000140350ustar0000000000000000Cargo.lock target pangocairo-0.8.0/.gitmodules010064400007650000024000000002301350341531000142230ustar0000000000000000[submodule "gir"] path = gir url = https://github.com/gtk-rs/gir [submodule "gir-files"] path = gir-files url = https://github.com/gtk-rs/gir-files pangocairo-0.8.0/.travis.yml010064400007650000024000000034271350341713700142030ustar0000000000000000dist: xenial language: rust matrix: include: - os: linux rust: nightly env: GTK=3.14 FEATURES= - os: linux rust: nightly env: GTK=3.24 FEATURES= - os: linux rust: beta env: GTK=3.14 FEATURES= - os: linux rust: beta env: GTK=3.24 FEATURES= - os: linux rust: 1.34.0 env: GTK=3.14 FEATURES= - os: linux rust: 1.34.0 env: GTK=3.24 FEATURES= - os: osx rust: nightly env: GTK=3.14 FEATURES= # - os: osx # rust: nightly # env: GTK=3.24 FEATURES= - os: osx rust: beta env: GTK=3.14 FEATURES= # - os: osx # rust: beta # env: GTK=3.24 FEATURES= - os: osx rust: stable env: GTK=3.14 FEATURES= # - os: osx # rust: stable # env: GTK=3.24 FEATURES= addons: apt: packages: - libgtk-3-dev - libmount-dev before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gtk+3 cairo atk; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig; fi script: - rustc --version - if [ "$TRAVIS_RUST_VERSION" == "nightly" ] && [ "$GTK" == "3.14" ]; then rustup component add rustfmt; make regen_check; fi - cargo doc --features "dox,embed-lgpl-docs" - cargo test --features "$FEATURES,embed-lgpl-docs" # catch any sneaked in lgpl docs - cargo build --features "$FEATURES,purge-lgpl-docs" --jobs 1 - git diff -R --exit-code - rustc --version - mkdir .cargo - echo 'paths = ["."]' > .cargo/config - git clone -q --depth 50 -b pending https://github.com/gtk-rs/examples _examples - cd _examples - ./build_travis.sh pangocairo-0.8.0/appveyor.yml010064400007650000024000000014071350341531000144450ustar0000000000000000environment: matrix: - RUST: stable BITS: 32 - RUST: stable BITS: 64 install: - IF "%BITS%" == "32" SET ARCH=i686 - IF "%BITS%" == "64" SET ARCH=x86_64 - curl -sSf -o rustup-init.exe https://win.rustup.rs - rustup-init.exe --default-host "%ARCH%-pc-windows-gnu" --default-toolchain %RUST% -y - SET PATH=C:\Users\appveyor\.cargo\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin - rustc -Vv - cargo -Vv - pacman --noconfirm -S mingw-w64-%ARCH%-gtk3 build_script: - cargo doc --features "dox" - cargo test - mkdir .cargo - echo paths = ["."] > .cargo\config - git clone -q --depth 50 -b pending https://github.com/gtk-rs/examples _examples - cd _examples - cargo build - cargo build --features gtk_3_24 test: false pangocairo-0.8.0/build.rs010064400007650000024000000007701350341713700135350ustar0000000000000000fn main() { manage_docs(); } #[cfg(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))] fn manage_docs() { extern crate lgpl_docs; const PATH: &'static str = "src"; const IGNORES: &'static [&'static str] = &["lib.rs"]; lgpl_docs::purge(PATH, IGNORES); if cfg!(feature = "embed-lgpl-docs") { lgpl_docs::embed(lgpl_docs::Library::PangoCairo, PATH, IGNORES); } } #[cfg(not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs")))] fn manage_docs() {} pangocairo-0.8.0/Cargo.toml.orig010064400007650000024000000020661350341713700147570ustar0000000000000000[package] name = "pangocairo" documentation = "http://gtk-rs.org/docs/pangocairo/" homepage = "http://gtk-rs.org/" authors = ["The Gtk-rs Project Developers"] keywords = ["pango", "cairo", "gtk-rs", "gnome"] readme = "README.md" version = "0.8.0" description = "Rust bindings for the PangoCairo library" repository = "https://github.com/gtk-rs/pangocairo" license = "MIT" build = "build.rs" exclude = [ "gir-files/*", ] [badges] appveyor = { repository = "GuillaumeGomez/pangocairo", service = "github" } travis-ci = { repository = "gtk-rs/pangocairo" } [features] dox = ["glib/dox", "pango/dox", "cairo-rs/dox"] purge-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/purge-lgpl-docs"] embed-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/embed-lgpl-docs"] [build-dependencies.gtk-rs-lgpl-docs] version = "0.1.3" optional = true [dependencies] glib = "0.8.0" glib-sys = "0.9.0" gobject-sys = "0.9.0" cairo-sys-rs = "0.9.0" cairo-rs = "0.7.0" pangocairo-sys = "0.10.0" pango-sys = "0.9.0" pango = "0.7.0" libc = "0.2" bitflags = "1.0" [dev-dependencies] gir-format-check = "^0.1" pangocairo-0.8.0/Cargo.toml0000644000000034340000000000000112240ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g. crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "pangocairo" version = "0.8.0" authors = ["The Gtk-rs Project Developers"] build = "build.rs" exclude = ["gir-files/*"] description = "Rust bindings for the PangoCairo library" homepage = "http://gtk-rs.org/" documentation = "http://gtk-rs.org/docs/pangocairo/" readme = "README.md" keywords = ["pango", "cairo", "gtk-rs", "gnome"] license = "MIT" repository = "https://github.com/gtk-rs/pangocairo" [dependencies.bitflags] version = "1.0" [dependencies.cairo-rs] version = "0.7.0" [dependencies.cairo-sys-rs] version = "0.9.0" [dependencies.glib] version = "0.8.0" [dependencies.glib-sys] version = "0.9.0" [dependencies.gobject-sys] version = "0.9.0" [dependencies.libc] version = "0.2" [dependencies.pango] version = "0.7.0" [dependencies.pango-sys] version = "0.9.0" [dependencies.pangocairo-sys] version = "0.10.0" [dev-dependencies.gir-format-check] version = "^0.1" [build-dependencies.gtk-rs-lgpl-docs] version = "0.1.3" optional = true [features] dox = ["glib/dox", "pango/dox", "cairo-rs/dox"] embed-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/embed-lgpl-docs"] purge-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/purge-lgpl-docs"] [badges.appveyor] repository = "GuillaumeGomez/pangocairo" service = "github" [badges.travis-ci] repository = "gtk-rs/pangocairo" pangocairo-0.8.0/Cargo.toml.orig0000644000000034350000000000000121640ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "pangocairo" version = "0.8.0" authors = ["The Gtk-rs Project Developers"] build = "build.rs" exclude = ["gir-files/*"] description = "Rust bindings for the PangoCairo library" homepage = "http://gtk-rs.org/" documentation = "http://gtk-rs.org/docs/pangocairo/" readme = "README.md" keywords = ["pango", "cairo", "gtk-rs", "gnome"] license = "MIT" repository = "https://github.com/gtk-rs/pangocairo" [dependencies.bitflags] version = "1.0" [dependencies.cairo-rs] version = "0.7.0" [dependencies.cairo-sys-rs] version = "0.9.0" [dependencies.glib] version = "0.8.0" [dependencies.glib-sys] version = "0.9.0" [dependencies.gobject-sys] version = "0.9.0" [dependencies.libc] version = "0.2" [dependencies.pango] version = "0.7.0" [dependencies.pango-sys] version = "0.9.0" [dependencies.pangocairo-sys] version = "0.10.0" [dev-dependencies.gir-format-check] version = "^0.1" [build-dependencies.gtk-rs-lgpl-docs] version = "0.1.3" optional = true [features] dox = ["glib/dox", "pango/dox", "cairo-rs/dox"] embed-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/embed-lgpl-docs"] purge-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/purge-lgpl-docs"] [badges.appveyor] repository = "GuillaumeGomez/pangocairo" service = "github" [badges.travis-ci] repository = "gtk-rs/pangocairo" pangocairo-0.8.0/Gir.toml010064400007650000024000000046511350341531000134770ustar0000000000000000[options] girs_dir = "gir-files" library = "PangoCairo" version = "1.0" target_path = "." work_mode = "normal" generate_safety_asserts = false min_cfg_version = "1.36" single_version_file = true deprecate_by_min_version = true generate = [ "PangoCairo.Font", ] manual = [ "cairo.Context", "cairo.FontOptions", "cairo.FontType", "cairo.ScaledFont", "GLib.Error", "Pango.Context", "Pango.Font", "Pango.FontMap", "Pango.GlyphItem", "Pango.GlyphString", "Pango.Layout", "Pango.LayoutLine", ] [[object]] name = "PangoCairo.*" status = "generate" [[object.function]] name = "context_get_font_options" ignore = true [[object.function]] name = "create_context" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "create_layout" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "error_underline_path" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "glyph_string_path" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "layout_line_path" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "layout_path" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "show_error_underline" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "show_glyph_item" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "show_glyph_string" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "show_layout" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "show_layout_line" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "update_context" [[object.function.parameter]] name = "cr" const = true [[object.function]] name = "update_layout" [[object.function.parameter]] name = "cr" const = true [[object]] name = "PangoCairo.FontMap" status = "generate" [[object.function]] name = "get_font_type" ignore = true [[object.function]] name = "new_for_font_type" ignore = true [[object.function]] name = "new" ignore = true pangocairo-0.8.0/LICENSE010064400007650000024000000021201350341531000130530ustar0000000000000000The MIT License (MIT) Copyright (c) 2013-2017, The Gtk-rs Project Developers. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. pangocairo-0.8.0/Makefile010064400007650000024000000012601350341713700135230ustar0000000000000000GIR = gir/target/bin/gir GIR_SRC = gir/Cargo.toml gir/Cargo.lock gir/build.rs $(shell find gir/src -name '*.rs') GIR_FILES = gir-files/Pango-1.0.gir # Run `gir` generating the bindings gir : src/auto/mod.rs cargo fmt doc: $(GIR) $(GIR_FILES) $(GIR) -m doc -c Gir.toml not_bound: $(GIR) $(GIR_FILES) $(GIR) -m not_bound -c Gir.toml regen_check: $(GIR) $(GIR_FILES) rm src/auto/* $(GIR) -c Gir.toml cargo fmt git diff -R --exit-code src/auto/mod.rs : Gir.toml $(GIR) $(GIR_FILES) $(GIR) -c Gir.toml $(GIR) : $(GIR_SRC) rm -f gir/target/bin/gir cargo install --path gir --root gir/target rm -f gir/target/.crates.toml $(GIR_SRC) $(GIR_FILES) : git submodule update --init pangocairo-0.8.0/README.md010064400007650000024000000011601350341531000133300ustar0000000000000000# pangocairo [![Build Status](https://travis-ci.org/gtk-rs/pangocairo.png?branch=master)](https://travis-ci.org/gtk-rs/pangocairo) [![Build status](https://ci.appveyor.com/api/projects/status/8pt381tk79kkuox0?svg=true)](https://ci.appveyor.com/project/GuillaumeGomez/pangocairo) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gtk-rs/gtk) PangoCairo bindings for Rust. - [Gtk-rs project site](http://gtk-rs.org/) - [Online documentation](http://gtk-rs.org/docs/) - [Readme](https://github.com/gtk-rs/gtk/blob/master/README.md) in our [main repo](https://github.com/gtk-rs/gtk) ## License MIT pangocairo-0.8.0/src/auto/font.rs010064400007650000024000000017131350341713700151410ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT use cairo; use glib::object::IsA; use glib::translate::*; use pango; use pango_cairo_sys; use std::fmt; glib_wrapper! { pub struct Font(Interface) @requires pango::Font; match fn { get_type => || pango_cairo_sys::pango_cairo_font_get_type(), } } pub const NONE_FONT: Option<&Font> = None; pub trait FontExt: 'static { fn get_scaled_font(&self) -> Option; } impl> FontExt for O { fn get_scaled_font(&self) -> Option { unsafe { from_glib_full(pango_cairo_sys::pango_cairo_font_get_scaled_font( self.as_ref().to_glib_none().0, )) } } } impl fmt::Display for Font { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "Font") } } pangocairo-0.8.0/src/auto/font_map.rs010064400007650000024000000027601350341713700160010ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT use glib::object::IsA; use glib::translate::*; use pango; use pango_cairo_sys; use std::fmt; glib_wrapper! { pub struct FontMap(Interface) @requires pango::FontMap; match fn { get_type => || pango_cairo_sys::pango_cairo_font_map_get_type(), } } impl FontMap { pub fn get_default() -> Option { unsafe { from_glib_none(pango_cairo_sys::pango_cairo_font_map_get_default()) } } } pub const NONE_FONT_MAP: Option<&FontMap> = None; pub trait FontMapExt: 'static { fn get_resolution(&self) -> f64; fn set_default(&self); fn set_resolution(&self, dpi: f64); } impl> FontMapExt for O { fn get_resolution(&self) -> f64 { unsafe { pango_cairo_sys::pango_cairo_font_map_get_resolution(self.as_ref().to_glib_none().0) } } fn set_default(&self) { unsafe { pango_cairo_sys::pango_cairo_font_map_set_default(self.as_ref().to_glib_none().0); } } fn set_resolution(&self, dpi: f64) { unsafe { pango_cairo_sys::pango_cairo_font_map_set_resolution( self.as_ref().to_glib_none().0, dpi, ); } } } impl fmt::Display for FontMap { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "FontMap") } } pangocairo-0.8.0/src/auto/functions.rs010064400007650000024000000115541350341713700162070ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT use cairo; use glib::object::IsA; use glib::translate::*; use pango; use pango_cairo_sys; pub fn context_get_resolution(context: &pango::Context) -> f64 { unsafe { pango_cairo_sys::pango_cairo_context_get_resolution(context.to_glib_none().0) } } //pub fn context_get_shape_renderer(context: &pango::Context, data: /*Unimplemented*/Option) -> /*Unimplemented*/Fn(&cairo::Context, /*Ignored*/pango::AttrShape, bool, /*Unimplemented*/Option) { // unsafe { TODO: call pango_cairo_sys:pango_cairo_context_get_shape_renderer() } //} pub fn context_set_font_options(context: &pango::Context, options: Option<&cairo::FontOptions>) { unsafe { pango_cairo_sys::pango_cairo_context_set_font_options( context.to_glib_none().0, options.to_glib_none().0, ); } } pub fn context_set_resolution(context: &pango::Context, dpi: f64) { unsafe { pango_cairo_sys::pango_cairo_context_set_resolution(context.to_glib_none().0, dpi); } } //pub fn context_set_shape_renderer(context: &pango::Context, func: /*Unimplemented*/Fn(&cairo::Context, /*Ignored*/pango::AttrShape, bool, /*Unimplemented*/Option), data: /*Unimplemented*/Option) { // unsafe { TODO: call pango_cairo_sys:pango_cairo_context_set_shape_renderer() } //} pub fn create_context(cr: &cairo::Context) -> Option { unsafe { from_glib_full(pango_cairo_sys::pango_cairo_create_context(mut_override( cr.to_glib_none().0, ))) } } pub fn create_layout(cr: &cairo::Context) -> Option { unsafe { from_glib_full(pango_cairo_sys::pango_cairo_create_layout(mut_override( cr.to_glib_none().0, ))) } } pub fn error_underline_path(cr: &cairo::Context, x: f64, y: f64, width: f64, height: f64) { unsafe { pango_cairo_sys::pango_cairo_error_underline_path( mut_override(cr.to_glib_none().0), x, y, width, height, ); } } pub fn glyph_string_path>( cr: &cairo::Context, font: &P, glyphs: &mut pango::GlyphString, ) { unsafe { pango_cairo_sys::pango_cairo_glyph_string_path( mut_override(cr.to_glib_none().0), font.as_ref().to_glib_none().0, glyphs.to_glib_none_mut().0, ); } } pub fn layout_line_path(cr: &cairo::Context, line: &pango::LayoutLine) { unsafe { pango_cairo_sys::pango_cairo_layout_line_path( mut_override(cr.to_glib_none().0), line.to_glib_none().0, ); } } pub fn layout_path(cr: &cairo::Context, layout: &pango::Layout) { unsafe { pango_cairo_sys::pango_cairo_layout_path( mut_override(cr.to_glib_none().0), layout.to_glib_none().0, ); } } pub fn show_error_underline(cr: &cairo::Context, x: f64, y: f64, width: f64, height: f64) { unsafe { pango_cairo_sys::pango_cairo_show_error_underline( mut_override(cr.to_glib_none().0), x, y, width, height, ); } } pub fn show_glyph_item(cr: &cairo::Context, text: &str, glyph_item: &mut pango::GlyphItem) { unsafe { pango_cairo_sys::pango_cairo_show_glyph_item( mut_override(cr.to_glib_none().0), text.to_glib_none().0, glyph_item.to_glib_none_mut().0, ); } } pub fn show_glyph_string>( cr: &cairo::Context, font: &P, glyphs: &mut pango::GlyphString, ) { unsafe { pango_cairo_sys::pango_cairo_show_glyph_string( mut_override(cr.to_glib_none().0), font.as_ref().to_glib_none().0, glyphs.to_glib_none_mut().0, ); } } pub fn show_layout(cr: &cairo::Context, layout: &pango::Layout) { unsafe { pango_cairo_sys::pango_cairo_show_layout( mut_override(cr.to_glib_none().0), layout.to_glib_none().0, ); } } pub fn show_layout_line(cr: &cairo::Context, line: &pango::LayoutLine) { unsafe { pango_cairo_sys::pango_cairo_show_layout_line( mut_override(cr.to_glib_none().0), line.to_glib_none().0, ); } } pub fn update_context(cr: &cairo::Context, context: &pango::Context) { unsafe { pango_cairo_sys::pango_cairo_update_context( mut_override(cr.to_glib_none().0), context.to_glib_none().0, ); } } pub fn update_layout(cr: &cairo::Context, layout: &pango::Layout) { unsafe { pango_cairo_sys::pango_cairo_update_layout( mut_override(cr.to_glib_none().0), layout.to_glib_none().0, ); } } pangocairo-0.8.0/src/auto/mod.rs010064400007650000024000000006571350341713700147600ustar0000000000000000// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // DO NOT EDIT mod font; pub use self::font::FontExt; pub use self::font::{Font, NONE_FONT}; mod font_map; pub use self::font_map::FontMapExt; pub use self::font_map::{FontMap, NONE_FONT_MAP}; pub mod functions; #[doc(hidden)] pub mod traits { pub use super::FontExt; pub use super::FontMapExt; } pangocairo-0.8.0/src/auto/versions.txt010064400007650000024000000001721350341713700162340ustar0000000000000000Generated by gir (https://github.com/gtk-rs/gir @ a2958cc) from gir-files (https://github.com/gtk-rs/gir-files @ 617a344) pangocairo-0.8.0/src/font_map.rs010064400007650000024000000020371350341713700150260ustar0000000000000000// Copyright 2017, The Gtk-rs Project Developers. // See the COPYRIGHT file at the top-level directory of this distribution. // Licensed under the MIT license, see the LICENSE file or use cairo; use glib::object::IsA; use glib::translate::*; use pango; use pango_cairo_sys; use FontMap; pub trait FontMapExtManual { fn get_font_type(&self) -> cairo::FontType; } impl> FontMapExtManual for O { fn get_font_type(&self) -> cairo::FontType { unsafe { pango_cairo_sys::pango_cairo_font_map_get_font_type(self.as_ref().to_glib_none().0) .into() } } } impl FontMap { pub fn new_for_font_type(fonttype: cairo::FontType) -> Option { unsafe { from_glib_full(pango_cairo_sys::pango_cairo_font_map_new_for_font_type( fonttype.into(), )) } } pub fn new() -> Option { unsafe { from_glib_full(pango_cairo_sys::pango_cairo_font_map_new()) } } } pangocairo-0.8.0/src/lib.rs010064400007650000024000000012751350341713700137740ustar0000000000000000// Copyright 2018, The Gtk-rs Project Developers. // See the COPYRIGHT file at the top-level directory of this distribution. // Licensed under the MIT license, see the LICENSE file or #![allow(deprecated)] extern crate cairo; extern crate cairo_sys; extern crate glib_sys; extern crate gobject_sys; extern crate pango; extern crate pango_cairo_sys; extern crate pango_sys; #[macro_use] extern crate glib; extern crate bitflags; extern crate libc; pub use glib::Error; #[cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] #[cfg_attr(feature = "cargo-clippy", allow(useless_transmute))] mod auto; pub use auto::*; mod font_map; pub use font_map::*; pangocairo-0.8.0/tests/check_gir.rs010064400007650000024000000006461350341531000155070ustar0000000000000000// Copyright 2013-2018, The Gtk-rs Project Developers. // See the COPYRIGHT file at the top-level directory of this distribution. // Licensed under the MIT license, see the LICENSE file or extern crate gir_format_check; #[test] fn check_gir_file() { let res = gir_format_check::check_gir_file("Gir.toml"); println!("{}", res.to_string()); assert_eq!(res.nb_errors, 0); } pangocairo-0.8.0/.cargo_vcs_info.json0000644000000001120000000000000132140ustar00{ "git": { "sha1": "0eadc40b4a83e8f4656583f0dbb1b780e91da53a" } }