Enum i_slint_compiler::expression_tree::Unit
source · pub enum Unit {
Show 15 variants
None,
Percent,
Phx,
Px,
Cm,
Mm,
In,
Pt,
Rem,
S,
Ms,
Deg,
Grad,
Turn,
Rad,
}
Expand description
The units that can be used after numbers in the language
Variants§
None
No unit was given
Percent
Phx
Physical pixels
Px
Logical pixels
Cm
Centimeters
Mm
Millimeters
In
inches
Pt
Points
Rem
Logical pixels multiplied with the window’s default-font-size
S
Seconds
Ms
Milliseconds
Deg
Degree
Grad
Gradians
Turn
Turns
Rad
Radians
Implementations§
Trait Implementations§
source§impl Ord for Unit
impl Ord for Unit
source§impl PartialOrd<Unit> for Unit
impl PartialOrd<Unit> for Unit
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more