FloatingGroup::scale is a declared prop (display scale, pixels per point)

This commit is contained in:
aiongg committed 2026-11-21 06:46:13 +00:00
1 parent e3773a63eb
commit 45ad4f55d7
1 file changed
+3 -10
+3 -10
View File
@@ -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 {