Merge 15939a3425
into f964ee1e3a
This commit is contained in:
commit
0b116ddbd0
@ -127,6 +127,13 @@ impl ComputedNode {
|
|||||||
self.unrounded_size
|
self.unrounded_size
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The calculated node size as width and height in physical pixels, accounting for a non-uniform window scale factor.
|
||||||
|
///
|
||||||
|
#[inline]
|
||||||
|
pub fn logical_size(&self) -> Vec2 {
|
||||||
|
self.size() * self.inverse_scale_factor()
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns the thickness of the UI node's outline in physical pixels.
|
/// Returns the thickness of the UI node's outline in physical pixels.
|
||||||
/// If this value is negative or `0.` then no outline will be rendered.
|
/// If this value is negative or `0.` then no outline will be rendered.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user