None
DE
Efficient custom shapes in QtQuick with Rust
[]
Carl Schwan
#[cxx::bridge] mod ffi { pub struct LyonPoint { x : f32 , y : f32 , } pub struct LyonVector { x : f32 , y : f32 , } pub struct LyonGeometry { vertices : Vec < LyonPoint > , indices : Vec < u16 > , } extern "Rust" { type LyonBuilder ; fn new_builder () -> Box < LyonBuilder > ; fn move_to ( self : & mut LyonBuilder , point : & LyonPoint ); fn line_to ( self : & mut LyonBuilder , point : & LyonPoint ); fn relative_move_to ( self : & mut LyonBuilder , to : LyonVector ); fn close ( self : & mut LyonBuilder ); fn quadratic_bezier_to ( self : & mut LyonBuilder , ctrl : & LyonPoint , to : & LyonPoint ); fn cubic_bezier_to ( self : & mut LyonBuilder , ctrl1 : & LyonPoint , ctrl2 : & LyonPoint , to : & LyonPoint ); fn build_fill ( builder : Box < LyonBuilder > ) -> LyonGeometry ; fn build_stroke (…