pub struct OverlayGeometry { /* private fields */ }Implementations§
Source§impl OverlayGeometry
impl OverlayGeometry
pub fn new(layer_count: usize) -> Self
pub fn begin_frame(&mut self)
pub fn push_text( &mut self, layer: Layer, text: &str, position: Point, color: Color, ) -> (Point, Point)
pub fn push_rectangle( &mut self, layer: Layer, rect: &(Point, Point), color0: Color, color1: Color, )
pub fn push_mesh( &mut self, layer: Layer, vertices: &[PointF], indices: &[u16], color: Color, )
Auto Trait Implementations§
impl Freeze for OverlayGeometry
impl RefUnwindSafe for OverlayGeometry
impl Send for OverlayGeometry
impl Sync for OverlayGeometry
impl Unpin for OverlayGeometry
impl UnwindSafe for OverlayGeometry
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