mirror of
https://github.com/penpot/penpot.git
synced 2026-05-23 17:03:41 +00:00
15 lines
290 B
Rust
15 lines
290 B
Rust
use crate::shapes::{Color, SolidColor};
|
|
|
|
#[repr(C)]
|
|
#[repr(align(4))]
|
|
#[derive(Debug, PartialEq, Clone, Copy)]
|
|
pub struct RawSolidData {
|
|
pub color: u32,
|
|
}
|
|
|
|
impl From<RawSolidData> for SolidColor {
|
|
fn from(value: RawSolidData) -> Self {
|
|
Self(Color::new(value.color))
|
|
}
|
|
}
|