Commits on Mar 9, 2017
-
-
Merge pull request gtk-rs#110 from Yamakaky/patch-1
Wrong feature name
Commits on Mar 11, 2017
-
-
Merge pull request gtk-rs#111 from EPashkin/master
Use crates in master, update versions
Commits on Mar 12, 2017
-
-
Merge pull request gtk-rs#113 from EPashkin/revert-111-master
Revert "Use crates in master, update versions"
-
-
Merge pull request gtk-rs#115 from GuillaumeGomez/quartz
Add quartz functions
Commits on Apr 15, 2017
-
Fix FFI prototypes for cairo_scaled_font functions
These functions had parameters incorrectly marked as ptr-to-mutable while the C declarations have these parameters as ptr-to-immutable. cairo_scaled_font_text_extents takes a *const c_char not a *mut c_char. cairo_scaled_font_glyph_extents takes a *const Glyph not a *mut Glyph. cairo_scaled_font_text_to_glyphs takes *const c_char not *mut c_char. See https://cairographics.org/manual/cairo-cairo-scaled-font-t.html
-
Implement missing ScaledFont functions
This adds the following new functions: ScaledFont::extents ScaledFont::text_extents ScaledFont::glyph_extents ScaledFont::text_to_glyphs This function has a large unsafe block due to cairo_scaled_font_text_to_glyphs returning two pointers that are allocated using opaque methods, i.e. not under our control, and so must be copied into Vec<>'s. The other option would have been to return a special container type for [Glyph] and [TextCluster] that called the relevant cairo_{glyph,text_cluster}_free function upon drop. Less copying but greater complexity and poor ergonomics. ScaledFont::get_font_face ScaledFont::get_font_options I opted for an explicit allocation and return of a FontOptions structure (wrapped opaque pointer) instead of allowing a caller to pass in an &mut FontOptions as I felt that wasn't idiomatic Rust code. ScaledFont::get_font_matrix ScaledFont::get_ctm ScaledFont::get_scale_matrix
-
Fix FFI definition for cairo_glyph_path
glyphs is *const and not *mut. See https://www.cairographics.org/manual/cairo-Paths.html#cairo-glyph-path
-
-
Merge pull request gtk-rs#118 from andwur/scaled-fonts
Scaled fonts
Commits on Apr 16, 2017
-
-
-
-
-
-
-
-
Merge pull request gtk-rs#120 from johncf/glib-ptr
impl *GlibPtr* for font types, make raw pointer fields private
Commits on Apr 22, 2017
-
Move major font types to its own modules
Because `glib_wrapper!` can only be applied once per module.
-
-
-
-
-
-
-
Merge pull request gtk-rs#122 from johncf/glib-proper
Proper glib bindings for font types
Commits on Apr 23, 2017
-
Merge pull request gtk-rs#123 from EPashkin/write_to_png
Fix parameters for ImageSurface::create_from_png and write_to_png
Commits on Apr 24, 2017
-
-
Merge pull request gtk-rs#125 from johncf/enums
cairo-sys: fix enum types
Commits on Apr 28, 2017
-
The cairo bindings used the glib::translate traits to handle internal reference counting discipline. However, these are not actually required, and should be possible to use cairo without a dependency on glib. This patch makes the dependency optional, and changes the implementation to not use the glib traits internally.
Rob Tsuk committedApr 28, 2017
Commits on May 1, 2017
-
Create and use to_raw_none() for consistency
Rob Tsuk committedMay 1, 2017 -
Make a helper function for creating Option<String>
Rob Tsuk committedMay 1, 2017 -
Rob Tsuk committed
May 1, 2017 -
Include png feature for non-glib CI
Rob Tsuk committedMay 1, 2017 -
Rob Tsuk committed
May 1, 2017 -
Rob Tsuk committed
May 1, 2017
Commits on May 3, 2017
-
use clone as in image_surface.rs
Rob Tsuk committedMay 3, 2017
Commits on May 4, 2017
-
Merge pull request gtk-rs#127 from rtsuk/master
Make glib dependency optional