New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Format::stride_for_width() as a wrapper for cairo_format_stride_f… #147

Merged
merged 1 commit into from Aug 12, 2017

Conversation

Projects
None yet
3 participants
@federicomenaquintero
Contributor

federicomenaquintero commented Aug 11, 2017

…or_width()

#145

@federicomenaquintero

This comment has been minimized.

Show comment
Hide comment
@federicomenaquintero

federicomenaquintero Aug 11, 2017

Contributor

Just so I don't delete them accidentally, these are the doc comments:

    /// Computes the distance between rows, in bytes, that an image
    /// of the specified `width` would have for the `Format`.
    ///
    /// Cairo requires that each row in image data be aligned in a
    /// particular way for each format.  You can pass the number
    /// inside the `Result` for this function to
    /// `ImageSurface::create_with_data()` as the `stride` argument.
    ///
    /// # Errors
    /// If the supplied `width` is too large for Cairo, this function
    /// will return `Err(())`.
    ///
    /// # Panics
    /// This function will panic if `width` is greater than i32::MAX.
    /// This is a limitation in Cairo.
Contributor

federicomenaquintero commented Aug 11, 2017

Just so I don't delete them accidentally, these are the doc comments:

    /// Computes the distance between rows, in bytes, that an image
    /// of the specified `width` would have for the `Format`.
    ///
    /// Cairo requires that each row in image data be aligned in a
    /// particular way for each format.  You can pass the number
    /// inside the `Result` for this function to
    /// `ImageSurface::create_with_data()` as the `stride` argument.
    ///
    /// # Errors
    /// If the supplied `width` is too large for Cairo, this function
    /// will return `Err(())`.
    ///
    /// # Panics
    /// This function will panic if `width` is greater than i32::MAX.
    /// This is a limitation in Cairo.
@EPashkin

This comment has been minimized.

Show comment
Hide comment
@EPashkin

EPashkin Aug 12, 2017

Member

👍 Thanks

Member

EPashkin commented Aug 12, 2017

👍 Thanks

@GuillaumeGomez

This comment has been minimized.

Show comment
Hide comment
@GuillaumeGomez

GuillaumeGomez Aug 12, 2017

Member

Thanks!

Member

GuillaumeGomez commented Aug 12, 2017

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit 7ab279c into gtk-rs:master Aug 12, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment