pangocairo-sys-0.10.0/Cargo.toml.orig010064400007650000024000000010621350341713700156370ustar0000000000000000[build-dependencies] pkg-config = "0.3.7" [dependencies] cairo-sys-rs = "0.9.0" glib-sys = "0.9.0" pango-sys = "0.9.0" libc = "0.2" [dev-dependencies] shell-words = "0.1.0" tempdir = "0.3" [features] dox = [] [lib] name = "pango_cairo_sys" [package] authors = ["The Gtk-rs Project Developers"] build = "build.rs" description = "FFI bindings to libgtk-3" homepage = "http://gtk-rs.org/" keywords = ["gtk", "ffi", "gtk-rs", "gnome"] license = "MIT" links = "pango_cairo" name = "pangocairo-sys" repository = "https://github.com/gtk-rs/sys" version = "0.10.0" pangocairo-sys-0.10.0/Cargo.toml0000644000000022670000000000000121140ustar00# 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-sys" version = "0.10.0" authors = ["The Gtk-rs Project Developers"] build = "build.rs" links = "pango_cairo" description = "FFI bindings to libgtk-3" homepage = "http://gtk-rs.org/" keywords = ["gtk", "ffi", "gtk-rs", "gnome"] license = "MIT" repository = "https://github.com/gtk-rs/sys" [lib] name = "pango_cairo_sys" [dependencies.cairo-sys-rs] version = "0.9.0" [dependencies.glib-sys] version = "0.9.0" [dependencies.libc] version = "0.2" [dependencies.pango-sys] version = "0.9.0" [dev-dependencies.shell-words] version = "0.1.0" [dev-dependencies.tempdir] version = "0.3" [build-dependencies.pkg-config] version = "0.3.7" [features] dox = [] pangocairo-sys-0.10.0/Cargo.toml.orig0000644000000022700000000000000130450ustar00# 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-sys" version = "0.10.0" authors = ["The Gtk-rs Project Developers"] build = "build.rs" links = "pango_cairo" description = "FFI bindings to libgtk-3" homepage = "http://gtk-rs.org/" keywords = ["gtk", "ffi", "gtk-rs", "gnome"] license = "MIT" repository = "https://github.com/gtk-rs/sys" [lib] name = "pango_cairo_sys" [dependencies.cairo-sys-rs] version = "0.9.0" [dependencies.glib-sys] version = "0.9.0" [dependencies.libc] version = "0.2" [dependencies.pango-sys] version = "0.9.0" [dev-dependencies.shell-words] version = "0.1.0" [dev-dependencies.tempdir] version = "0.3" [build-dependencies.pkg-config] version = "0.3.7" [features] dox = [] pangocairo-sys-0.10.0/LICENSE010064400007650000024000000021201350341526700137530ustar0000000000000000The MIT License (MIT) Copyright (c) 2013-2015, 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-sys-0.10.0/build.rs010064400007650000024000000042331350341607000144130ustar0000000000000000// 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 extern crate pkg_config; use pkg_config::{Config, Error}; use std::env; use std::io; use std::io::prelude::*; use std::process; fn main() { if let Err(s) = find() { let _ = writeln!(io::stderr(), "{}", s); process::exit(1); } } fn find() -> Result<(), Error> { let package_name = "pangocairo"; let shared_libs = ["pangocairo-1.0"]; let version = { "1.36" }; if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") { println!("cargo:include={}", inc_dir); } if let Ok(lib_dir) = env::var("GTK_LIB_DIR") { for lib_ in shared_libs.iter() { println!("cargo:rustc-link-lib=dylib={}", lib_); } println!("cargo:rustc-link-search=native={}", lib_dir); return Ok(()); } let target = env::var("TARGET").expect("TARGET environment variable doesn't exist"); let hardcode_shared_libs = target.contains("windows"); let mut config = Config::new(); config.atleast_version(version); config.print_system_libs(false); if hardcode_shared_libs { config.cargo_metadata(false); } match config.probe(package_name) { Ok(library) => { if let Ok(paths) = std::env::join_paths(library.include_paths) { println!("cargo:include={}", paths.to_string_lossy()); } if hardcode_shared_libs { for lib_ in shared_libs.iter() { println!("cargo:rustc-link-lib=dylib={}", lib_); } for path in library.link_paths.iter() { println!( "cargo:rustc-link-search=native={}", path.to_str().expect("library path doesn't exist") ); } } Ok(()) } Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => { for lib_ in shared_libs.iter() { println!("cargo:rustc-link-lib=dylib={}", lib_); } Ok(()) } Err(err) => Err(err), } } pangocairo-sys-0.10.0/src/lib.rs010064400007650000024000000124211350341607000146470ustar0000000000000000// 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 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow( clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal )] extern crate cairo_sys as cairo; extern crate glib_sys as glib; extern crate libc; extern crate pango_sys as pango; #[allow(unused_imports)] use libc::{ c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE, }; #[allow(unused_imports)] use glib::{gboolean, gconstpointer, gpointer, GType}; // Callbacks pub type PangoCairoShapeRendererFunc = Option< unsafe extern "C" fn(*mut cairo::cairo_t, *mut pango::PangoAttrShape, gboolean, gpointer), >; // Interfaces #[repr(C)] pub struct PangoCairoFont(c_void); impl ::std::fmt::Debug for PangoCairoFont { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "PangoCairoFont @ {:?}", self as *const _) } } #[repr(C)] pub struct PangoCairoFontMap(c_void); impl ::std::fmt::Debug for PangoCairoFontMap { fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { write!(f, "PangoCairoFontMap @ {:?}", self as *const _) } } extern "C" { //========================================================================= // PangoCairoFont //========================================================================= pub fn pango_cairo_font_get_type() -> GType; pub fn pango_cairo_font_get_scaled_font( font: *mut PangoCairoFont, ) -> *mut cairo::cairo_scaled_font_t; //========================================================================= // PangoCairoFontMap //========================================================================= pub fn pango_cairo_font_map_get_type() -> GType; pub fn pango_cairo_font_map_get_default() -> *mut pango::PangoFontMap; pub fn pango_cairo_font_map_new() -> *mut pango::PangoFontMap; pub fn pango_cairo_font_map_new_for_font_type( fonttype: cairo::cairo_font_type_t, ) -> *mut pango::PangoFontMap; pub fn pango_cairo_font_map_create_context( fontmap: *mut PangoCairoFontMap, ) -> *mut pango::PangoContext; pub fn pango_cairo_font_map_get_font_type( fontmap: *mut PangoCairoFontMap, ) -> cairo::cairo_font_type_t; pub fn pango_cairo_font_map_get_resolution(fontmap: *mut PangoCairoFontMap) -> c_double; pub fn pango_cairo_font_map_set_default(fontmap: *mut PangoCairoFontMap); pub fn pango_cairo_font_map_set_resolution(fontmap: *mut PangoCairoFontMap, dpi: c_double); //========================================================================= // Other functions //========================================================================= pub fn pango_cairo_context_get_font_options( context: *mut pango::PangoContext, ) -> *const cairo::cairo_font_options_t; pub fn pango_cairo_context_get_resolution(context: *mut pango::PangoContext) -> c_double; pub fn pango_cairo_context_get_shape_renderer( context: *mut pango::PangoContext, data: *mut gpointer, ) -> PangoCairoShapeRendererFunc; pub fn pango_cairo_context_set_font_options( context: *mut pango::PangoContext, options: *const cairo::cairo_font_options_t, ); pub fn pango_cairo_context_set_resolution(context: *mut pango::PangoContext, dpi: c_double); pub fn pango_cairo_context_set_shape_renderer( context: *mut pango::PangoContext, func: PangoCairoShapeRendererFunc, data: gpointer, dnotify: glib::GDestroyNotify, ); pub fn pango_cairo_create_context(cr: *mut cairo::cairo_t) -> *mut pango::PangoContext; pub fn pango_cairo_create_layout(cr: *mut cairo::cairo_t) -> *mut pango::PangoLayout; pub fn pango_cairo_error_underline_path( cr: *mut cairo::cairo_t, x: c_double, y: c_double, width: c_double, height: c_double, ); pub fn pango_cairo_glyph_string_path( cr: *mut cairo::cairo_t, font: *mut pango::PangoFont, glyphs: *mut pango::PangoGlyphString, ); pub fn pango_cairo_layout_line_path(cr: *mut cairo::cairo_t, line: *mut pango::PangoLayoutLine); pub fn pango_cairo_layout_path(cr: *mut cairo::cairo_t, layout: *mut pango::PangoLayout); pub fn pango_cairo_show_error_underline( cr: *mut cairo::cairo_t, x: c_double, y: c_double, width: c_double, height: c_double, ); pub fn pango_cairo_show_glyph_item( cr: *mut cairo::cairo_t, text: *const c_char, glyph_item: *mut pango::PangoGlyphItem, ); pub fn pango_cairo_show_glyph_string( cr: *mut cairo::cairo_t, font: *mut pango::PangoFont, glyphs: *mut pango::PangoGlyphString, ); pub fn pango_cairo_show_layout(cr: *mut cairo::cairo_t, layout: *mut pango::PangoLayout); pub fn pango_cairo_show_layout_line(cr: *mut cairo::cairo_t, line: *mut pango::PangoLayoutLine); pub fn pango_cairo_update_context(cr: *mut cairo::cairo_t, context: *mut pango::PangoContext); pub fn pango_cairo_update_layout(cr: *mut cairo::cairo_t, layout: *mut pango::PangoLayout); } pangocairo-sys-0.10.0/versions.txt010064400007650000024000000001721350341607000153550ustar0000000000000000Generated by gir (https://github.com/gtk-rs/gir @ fab39bc) from gir-files (https://github.com/gtk-rs/gir-files @ 02dfee2) pangocairo-sys-0.10.0/.cargo_vcs_info.json0000644000000001120000000000000141010ustar00{ "git": { "sha1": "ed19f4b308103c3533023b69dfc8ae4e040bdaec" } }