WIP: start on editor element
This commit is contained in:
parent
580694dbda
commit
d3b02c4de4
5 changed files with 215 additions and 94 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue