pangocairo-sys-0.14.0/.cargo_vcs_info.json0000644000000001120000000000100140460ustar { "git": { "sha1": "1855f0372e4389e9a85cfef169d0b8410ef50b4d" } } pangocairo-sys-0.14.0/Cargo.toml0000644000000025200000000000100120510ustar # 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] edition = "2018" name = "pangocairo-sys" version = "0.14.0" authors = ["The gtk-rs Project Developers"] build = "build.rs" links = "pangocairo-1.0" 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/gtk-rs-core" [package.metadata.docs.rs] features = ["dox"] [package.metadata.system-deps.pangocairo] name = "pangocairo" version = "1.38" [lib] name = "pango_cairo_sys" [dependencies.cairo-sys-rs] version = "0.14.0" [dependencies.glib-sys] version = "0.14.0" [dependencies.libc] version = "0.2" [dependencies.pango-sys] version = "0.14.0" [dev-dependencies.shell-words] version = "1.0.0" [dev-dependencies.tempfile] version = "3" [build-dependencies.system-deps] version = "3" [features] dox = [] pangocairo-sys-0.14.0/Cargo.toml.orig000064400000000000000000000014240072674642500155640ustar 00000000000000[build-dependencies] system-deps = "3" [dependencies] libc = "0.2" [dependencies.cairo-sys-rs] version = "0.14.0" [dependencies.glib-sys] version = "0.14.0" [dependencies.pango-sys] version = "0.14.0" [dev-dependencies] shell-words = "1.0.0" tempfile = "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 = "pangocairo-1.0" name = "pangocairo-sys" repository = "https://github.com/gtk-rs/gtk-rs-core" version = "0.14.0" edition = "2018" [package.metadata.docs.rs] features = ["dox"] [package.metadata.system-deps.pangocairo] name = "pangocairo" version = "1.38" pangocairo-sys-0.14.0/Gir.toml000064400000000000000000000003350072674642500143130ustar 00000000000000[options] work_mode = "sys" library = "PangoCairo" version = "1.0" min_cfg_version = "1.38" single_version_file = "." girs_directories = ["../../gir-files"] external_libraries = [ "GLib", "Pango", "Cairo", ] pangocairo-sys-0.14.0/build.rs000064400000000000000000000007110072674642500143400ustar 00000000000000// 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 #[cfg(not(feature = "dox"))] use std::process; #[cfg(feature = "dox")] fn main() {} // prevent linking libraries to avoid documentation failure #[cfg(not(feature = "dox"))] fn main() { if let Err(s) = system_deps::Config::new().probe() { println!("cargo:warning={}", s); process::exit(1); } } pangocairo-sys-0.14.0/src/lib.rs000064400000000000000000000124750072674642500146100ustar 00000000000000// 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, clippy::upper_case_acronyms )] #![cfg_attr(feature = "dox", feature(doc_cfg))] use cairo_sys as cairo; use glib_sys as glib; use 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 @ {:p}", self) } } #[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 @ {:p}", self) } } #[link(name = "pangocairo-1.0")] 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.14.0/versions.txt000064400000000000000000000001720072674642500153050ustar 00000000000000Generated by gir (https://github.com/gtk-rs/gir @ 6ed30fc) from gir-files (https://github.com/gtk-rs/gir-files @ 7d95377)