pub struct DrawWindow<CW: CustomWindow> { /* private fields */ }
Expand description
Per-window pipeline data
Trait Implementations§
Source§impl<CW> Default for DrawWindow<CW>where
CW: Default + CustomWindow,
impl<CW> Default for DrawWindow<CW>where
CW: Default + CustomWindow,
Source§impl<CW: CustomWindow> DrawCustom<CW> for DrawWindow<CW>
impl<CW: CustomWindow> DrawCustom<CW> for DrawWindow<CW>
Source§impl<CW: CustomWindow> DrawImpl for DrawWindow<CW>
impl<CW: CustomWindow> DrawImpl for DrawWindow<CW>
Source§fn common_mut(&mut self) -> &mut WindowCommon
fn common_mut(&mut self) -> &mut WindowCommon
Access common data
Source§fn new_pass(
&mut self,
parent_pass: PassId,
rect: Rect,
offset: Offset,
class: PassType,
) -> PassId
fn new_pass( &mut self, parent_pass: PassId, rect: Rect, offset: Offset, class: PassType, ) -> PassId
Add a draw pass Read more
Source§fn frame(&mut self, pass: PassId, outer: Quad, inner: Quad, col: Rgba)
fn frame(&mut self, pass: PassId, outer: Quad, inner: Quad, col: Rgba)
Draw a frame of uniform colour
Source§fn animate_at(&mut self, time: Instant)
fn animate_at(&mut self, time: Instant)
Request a redraw at a specific time Read more
Source§impl<CW: CustomWindow> DrawRoundedImpl for DrawWindow<CW>
impl<CW: CustomWindow> DrawRoundedImpl for DrawWindow<CW>
Source§fn rounded_line(
&mut self,
pass: PassId,
p1: Vec2,
p2: Vec2,
radius: f32,
col: Rgba,
)
fn rounded_line( &mut self, pass: PassId, p1: Vec2, p2: Vec2, radius: f32, col: Rgba, )
Draw a line with rounded ends and uniform colour
Source§fn circle(&mut self, pass: PassId, rect: Quad, inner_radius: f32, col: Rgba)
fn circle(&mut self, pass: PassId, rect: Quad, inner_radius: f32, col: Rgba)
Draw a circle or oval of uniform colour
Source§fn circle_2col(&mut self, pass: PassId, rect: Quad, col1: Rgba, col2: Rgba)
fn circle_2col(&mut self, pass: PassId, rect: Quad, col1: Rgba, col2: Rgba)
Draw a circle or oval with two colours
Source§impl<CW: CustomWindow> DrawShadedImpl for DrawWindow<CW>
impl<CW: CustomWindow> DrawShadedImpl for DrawWindow<CW>
Source§fn shaded_square(
&mut self,
pass: PassId,
rect: Quad,
norm: (f32, f32),
col: Rgba,
)
fn shaded_square( &mut self, pass: PassId, rect: Quad, norm: (f32, f32), col: Rgba, )
Add a shaded square to the draw buffer
Source§fn shaded_circle(
&mut self,
pass: PassId,
rect: Quad,
norm: (f32, f32),
col: Rgba,
)
fn shaded_circle( &mut self, pass: PassId, rect: Quad, norm: (f32, f32), col: Rgba, )
Add a shaded circle to the draw buffer
Auto Trait Implementations§
impl<CW> Freeze for DrawWindow<CW>where
CW: Freeze,
impl<CW> !RefUnwindSafe for DrawWindow<CW>
impl<CW> Send for DrawWindow<CW>where
CW: Send,
impl<CW> Sync for DrawWindow<CW>where
CW: Sync,
impl<CW> Unpin for DrawWindow<CW>where
CW: Unpin,
impl<CW> !UnwindSafe for DrawWindow<CW>
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
Source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
Source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
Source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
Source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.