Skip to content
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 surface scale functions #231

Merged
merged 1 commit into from Jan 23, 2019

Conversation

Projects
None yet
3 participants
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Jan 23, 2019

@@ -141,6 +141,17 @@ impl Surface {
unsafe { ffi::cairo_surface_get_device_offset(self.to_raw_none(), &mut x_offset, &mut y_offset); }
(x_offset, y_offset)
}

pub fn set_device_scale(&mut self, x_scale: f64, y_scale: f64) {

This comment has been minimized.

@sdroege

sdroege Jan 23, 2019

Member

Looks good, but what about the fallback resolution? Any other functions in this group missing?

This comment has been minimized.

@GuillaumeGomez

GuillaumeGomez Jan 23, 2019

Author Member

Oh good point! I'll add them all at once.

@GuillaumeGomez GuillaumeGomez force-pushed the GuillaumeGomez:scale branch from c7813fd to 5b0ce64 Jan 23, 2019

@sdroege

This comment has been minimized.

Copy link
Member

sdroege commented Jan 23, 2019

👍

1 similar comment
@EPashkin

This comment has been minimized.

Copy link
Member

EPashkin commented Jan 23, 2019

👍

@GuillaumeGomez GuillaumeGomez merged commit 045a737 into gtk-rs:master Jan 23, 2019

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@GuillaumeGomez GuillaumeGomez deleted the GuillaumeGomez:scale branch Jan 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.