Skip to content

Commit

Permalink
window: document the value 0 in set_min/max_size
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
elinorbgr committed Aug 6, 2020
1 parent dd70b9e commit dceca4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ impl<F: Frame + 'static> Window<F> {
/// Provide either a tuple `Some((width, height))` or `None` to unset the
/// minimum size.
///
/// Setting either value in the tuple to `0` means that this axis should not
/// be limited.
///
/// The provided size is the interior size, not counting decorations.
///
/// This size is expressed in logical pixels, like the one received
Expand All @@ -578,6 +581,9 @@ impl<F: Frame + 'static> Window<F> {
/// Provide either a tuple `Some((width, height))` or `None` to unset the
/// maximum size.
///
/// Setting either value in the tuple to `0` means that this axis should not
/// be limited.
///
/// The provided size is the interior size, not counting decorations.
///
/// This size is expressed in logical pixels, like the one received
Expand Down

0 comments on commit dceca4d

Please sign in to comment.