pub struct VelloWindowRenderer { /* private fields */ }Implementations§
Source§impl VelloWindowRenderer
impl VelloWindowRenderer
pub fn new() -> Self
pub fn with_features_and_limits( features: Option<Features>, limits: Option<Limits>, ) -> Self
pub fn current_device_handle(&self) -> Option<&DeviceHandle>
pub fn register_custom_paint_source( &mut self, source: Box<dyn CustomPaintSource>, ) -> u64
pub fn unregister_custom_paint_source(&mut self, id: u64)
Trait Implementations§
Source§impl WindowRenderer for VelloWindowRenderer
impl WindowRenderer for VelloWindowRenderer
type ScenePainter<'a> = VelloScenePainter<'a> where Self: 'a
fn is_active(&self) -> bool
fn resume( &mut self, window_handle: Arc<dyn WindowHandle>, width: u32, height: u32, )
fn suspend(&mut self)
fn set_size(&mut self, width: u32, height: u32)
fn render<F: FnOnce(&mut Self::ScenePainter<'_>)>(&mut self, draw_fn: F)
Auto Trait Implementations§
impl !Freeze for VelloWindowRenderer
impl !RefUnwindSafe for VelloWindowRenderer
impl !Send for VelloWindowRenderer
impl !Sync for VelloWindowRenderer
impl Unpin for VelloWindowRenderer
impl !UnwindSafe for VelloWindowRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more