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

feat: set total size of QRCode #2606

Merged
merged 3 commits into from
Oct 2, 2024
Merged

Conversation

tvolk131
Copy link
Contributor

No description provided.

@@ -84,11 +84,17 @@ where
}

/// Sets the size of the squares of the grid cell of the [`QRCode`].
pub fn cell_size(mut self, cell_size: u16) -> Self {
pub fn cell_size(mut self, cell_size: f32) -> Self {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for reviewer: This is a breaking change to the public API. Let me know if that's a problem! We can easily keep the rest of the changes and revert this back to accepting a u16.

@hecrj hecrj added this to the 0.14 milestone Oct 2, 2024
@hecrj hecrj added feature New feature or request widget addition labels Oct 2, 2024
@hecrj hecrj enabled auto-merge October 2, 2024 15:15
@hecrj hecrj merged commit 4a080e2 into iced-rs:master Oct 2, 2024
15 checks passed
@tvolk131 tvolk131 deleted the qr_code_fixed_size branch October 2, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants