Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Crate #128

Merged
merged 43 commits into from May 6, 2017
Merged

Crate #128

merged 43 commits into from May 6, 2017

Commits on Mar 9, 2017

  1. Wrong feature name

    Yamakaky committed Mar 9, 2017
    Copy the full SHA
    a08bde4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request gtk-rs#110 from Yamakaky/patch-1

    Wrong feature name
    GuillaumeGomez committed Mar 9, 2017
    Copy the full SHA
    3a7e247 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2017

  1. Copy the full SHA
    de862d4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request gtk-rs#111 from EPashkin/master

    Use crates in master, update versions
    GuillaumeGomez committed Mar 11, 2017
    Copy the full SHA
    7e28967 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2017

  1. Copy the full SHA
    b911652 View commit details
    Browse the repository at this point in the history
  2. Merge pull request gtk-rs#113 from EPashkin/revert-111-master

    Revert "Use crates in master, update versions"
    GuillaumeGomez committed Mar 12, 2017
    Copy the full SHA
    790b89d View commit details
    Browse the repository at this point in the history
  3. Add quartz functions

    GuillaumeGomez committed Mar 12, 2017
    Copy the full SHA
    0743a06 View commit details
    Browse the repository at this point in the history
  4. Merge pull request gtk-rs#115 from GuillaumeGomez/quartz

    Add quartz functions
    GuillaumeGomez committed Mar 12, 2017
    Copy the full SHA
    e5bf5d8 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2017

  1. 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
    andwur committed Apr 15, 2017
    Copy the full SHA
    a999597 View commit details
    Browse the repository at this point in the history
  2. 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
    andwur committed Apr 15, 2017
    Copy the full SHA
    c0ec712 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    42fcd51 View commit details
    Browse the repository at this point in the history
  4. Implement Context::glyph_path

    andwur committed Apr 15, 2017
    Copy the full SHA
    1a919ff View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    a42e063 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2017

  1. Copy the full SHA
    26e53f2 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    c5f707b View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    097fc71 View commit details
    Browse the repository at this point in the history
  4. use *const in ToGlibPtr

    johncf committed Apr 16, 2017
    Copy the full SHA
    82d3130 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    f87f713 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    3acafec View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    897c2bf View commit details
    Browse the repository at this point in the history
  8. Merge pull request gtk-rs#120 from johncf/glib-ptr

    impl *GlibPtr* for font types, make raw pointer fields private
    GuillaumeGomez committed Apr 16, 2017
    Copy the full SHA
    c5a8382 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2017

  1. Move major font types to its own modules

    Because `glib_wrapper!` can only be applied once per module.
    johncf committed Apr 22, 2017
    Copy the full SHA
    b47492f View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    e0c61d8 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    c90006e View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    add1910 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    b785da1 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    412e808 View commit details
    Browse the repository at this point in the history
  7. Copy the full SHA
    01b6335 View commit details
    Browse the repository at this point in the history
  8. Merge pull request gtk-rs#122 from johncf/glib-proper

    Proper glib bindings for font types
    GuillaumeGomez committed Apr 22, 2017
    Copy the full SHA
    55b073c View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2017

  1. Copy the full SHA
    7fdd2f7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request gtk-rs#123 from EPashkin/write_to_png

    Fix parameters for ImageSurface::create_from_png and write_to_png
    GuillaumeGomez committed Apr 23, 2017
    Copy the full SHA
    7e23bcd View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2017

  1. cairo-sys: fix enum types

    johncf committed Apr 24, 2017
    Copy the full SHA
    41249c7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request gtk-rs#125 from johncf/enums

    cairo-sys: fix enum types
    GuillaumeGomez committed Apr 24, 2017
    Copy the full SHA
    fb88daa View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2017

  1. Make glib dependency optional

    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 committed Apr 28, 2017
    Copy the full SHA
    e5f7577 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2017

  1. Create and use to_raw_none() for consistency

    Rob Tsuk committed May 1, 2017
    Copy the full SHA
    14e0a15 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    18a45b6 View commit details
    Browse the repository at this point in the history
  3. Formatting, naming and CI

    Rob Tsuk committed May 1, 2017
    Copy the full SHA
    f51c931 View commit details
    Browse the repository at this point in the history
  4. Include png feature for non-glib CI

    Rob Tsuk committed May 1, 2017
    Copy the full SHA
    f1a69e8 View commit details
    Browse the repository at this point in the history
  5. Add no-glib test to appveyor

    Rob Tsuk committed May 1, 2017
    Copy the full SHA
    eb97475 View commit details
    Browse the repository at this point in the history
  6. Fix win32 surface

    Rob Tsuk committed May 1, 2017
    Copy the full SHA
    ee0b18b View commit details
    Browse the repository at this point in the history

Commits on May 3, 2017

  1. use clone as in image_surface.rs

    Rob Tsuk committed May 3, 2017
    Copy the full SHA
    efa097e View commit details
    Browse the repository at this point in the history

Commits on May 4, 2017

  1. Merge pull request gtk-rs#127 from rtsuk/master

    Make glib dependency optional
    GuillaumeGomez committed May 4, 2017
    Copy the full SHA
    058ac45 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2017

  1. Update crate version

    GuillaumeGomez committed May 6, 2017
    Copy the full SHA
    54c8e78 View commit details
    Browse the repository at this point in the history