WIP: start on editor element
This commit is contained in:
@@ -825,6 +825,12 @@ impl From<Pixels> for u32 {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<u32> for Pixels {
|
||||
fn from(pixels: u32) -> Self {
|
||||
Pixels(pixels as f32)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Pixels> for usize {
|
||||
fn from(pixels: Pixels) -> Self {
|
||||
pixels.0 as usize
|
||||
|
||||
Reference in New Issue
Block a user