Skip to content

feat: set total size of QRCode#2606

Merged
hecrj merged 3 commits intoiced-rs:masterfrom
tvolk131:qr_code_fixed_size
Oct 2, 2024
Merged

feat: set total size of QRCode#2606
hecrj merged 3 commits intoiced-rs:masterfrom
tvolk131:qr_code_fixed_size

Conversation

@tvolk131
Copy link
Contributor

No description provided.


/// 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 force-pushed the qr_code_fixed_size branch from 374e30f to b02ec8b Compare October 2, 2024 15:14
@hecrj hecrj enabled auto-merge October 2, 2024 15:15
@hecrj hecrj merged commit 4a080e2 into iced-rs:master Oct 2, 2024
@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