mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
FloatingGroup::scale is a declared prop (display scale, pixels per point)
This commit is contained in:
1 parent
e3773a63eb
commit
45ad4f55d7
1 file changed
+3
-10
@@ -277,8 +277,9 @@ pub struct FloatingGroup<'a> {
|
||||
placed: Option<PlacementChange>,
|
||||
/// The width a resize gave the collapsed column this pass.
|
||||
collapsed_width: Option<f32>,
|
||||
/// The display scale of the OS window the group shows in, which sizes the rule under its title row; unset, the
|
||||
/// running window's.
|
||||
/// The display scale of the OS window the group shows in (`native::pixels_per_point`), when it differs from the
|
||||
/// running window's: its chrome, the rule under its title row included, is sized at that scale.
|
||||
#[prop(quantity = "display scale, pixels per point")]
|
||||
scale: Option<f32>,
|
||||
/// Starts the window-unit drag; set by `window_of`.
|
||||
start_drag: Option<StartDrag<'a>>,
|
||||
@@ -363,14 +364,6 @@ impl<'a> FloatingGroup<'a> {
|
||||
self
|
||||
}
|
||||
|
||||
/// The display scale of the OS window the group shows in (`native::pixels_per_point`), when it differs from the
|
||||
/// running window's: its chrome is sized at that scale.
|
||||
#[must_use]
|
||||
pub fn scale(mut self, pixels_per_point: f32) -> Self {
|
||||
self.scale = Some(pixels_per_point);
|
||||
self
|
||||
}
|
||||
|
||||
/// The action parts at the end of the title row, in reading order.
|
||||
#[must_use]
|
||||
pub fn actions(mut self, actions: impl IntoIterator<Item = HeaderAction>) -> Self {
|
||||
|
||||
Reference in new issue
Block a user