pub struct Page { /* private fields */ }Trait Implementations§
Source§impl AsPart<PageData<TypeHolder>> for Page
impl AsPart<PageData<TypeHolder>> for Page
Source§fn as_part(&self) -> &PageData<TypeHolder>
fn as_part(&self) -> &PageData<TypeHolder>
Borrow part of composed type.
Source§fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
Mutably borrow part of composed type.
Source§impl AsPart<PageData<TypeHolder>> for Page
impl AsPart<PageData<TypeHolder>> for Page
Source§fn as_part(&self) -> &PageData<TypeHolder>
fn as_part(&self) -> &PageData<TypeHolder>
Borrow part of composed type.
Source§fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
Mutably borrow part of composed type.
Source§impl AsPart<PageData<TypeHolder>> for Page
impl AsPart<PageData<TypeHolder>> for Page
Source§fn as_part(&self) -> &PageData<TypeHolder>
fn as_part(&self) -> &PageData<TypeHolder>
Borrow part of composed type.
Source§fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
Mutably borrow part of composed type.
Source§impl AsPart<PageData<TypeHolder>> for Page
impl AsPart<PageData<TypeHolder>> for Page
Source§fn as_part(&self) -> &PageData<TypeHolder>
fn as_part(&self) -> &PageData<TypeHolder>
Borrow part of composed type.
Source§fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
fn as_part_mut(&mut self) -> &mut PageData<TypeHolder>
Mutably borrow part of composed type.
Source§impl EnvAssociatedTypes for Page
impl EnvAssociatedTypes for Page
Source§type AssociatedTypesHolder = TypeHolder
type AssociatedTypesHolder = TypeHolder
Type with the associated types defined on it.
Source§impl EnvAssociatedTypes for Page
impl EnvAssociatedTypes for Page
Source§type AssociatedTypesHolder = TypeHolder
type AssociatedTypesHolder = TypeHolder
Type with the associated types defined on it.
Source§impl Page for Page
impl Page for Page
Source§fn start_group(&mut self)
fn start_group(&mut self)
Signals the ream is starting processing events for this page. Read more
Source§fn next_event_in_group(&mut self) -> Option<Self::Event>
fn next_event_in_group(&mut self) -> Option<Self::Event>
Get the next event in this group of events if there is one.
Source§fn before_event(&mut self, event: &Self::Event)
fn before_event(&mut self, event: &Self::Event)
Process an event before it is passed to the sketch to handle.
Source§fn finish_event(&mut self, event: Self::Event)
fn finish_event(&mut self, event: Self::Event)
Process an event after it is passed to the sketch.
Auto Trait Implementations§
impl Freeze for Page
impl !RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl !UnwindSafe for Page
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§impl<T, S, R, C> IntoShape<S, R, C> for Twhere
S: ShapeFrom<T, R, C>,
impl<T, S, R, C> IntoShape<S, R, C> for Twhere
S: ShapeFrom<T, R, C>,
Source§fn into_shape(self, context: &Context<R, C>) -> Shape<R, C>
fn into_shape(self, context: &Context<R, C>) -> Shape<R, C>
Convert the value in relation to a context.
Source§impl<T> SketchExt for T
impl<T> SketchExt for T
Source§fn update_rate<R>(&mut self, rate: R)
fn update_rate<R>(&mut self, rate: R)
Set the rate the update handler is called.
The environment may not be able to actually call the update handler at the rate given.
Source§impl<T> SketchExt for T
impl<T> SketchExt for T
Source§fn width(
&self,
) -> <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real
fn width( &self, ) -> <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real
Get the width of the page.
Source§fn height(
&self,
) -> <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real
fn height( &self, ) -> <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real
Get the height of the page.
Source§fn size(
&self,
) -> Size2<<<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real>
fn size( &self, ) -> Size2<<<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real>
Get the size of the page.
Source§fn ellipse_mode(&mut self, mode: Mode)
fn ellipse_mode(&mut self, mode: Mode)
Get the ellipse mode.
Source§fn background<C>(&mut self, color: C)
fn background<C>(&mut self, color: C)
Set the background color of the page. Read more
Source§fn circle<S>(&mut self, circle: S)where
S: IntoShape<Circle<<<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>,
fn circle<S>(&mut self, circle: S)where
S: IntoShape<Circle<<<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>,
Draw a circle.
Source§fn rect<S>(&mut self, rectangle: S)where
S: IntoShape<Rectangle<<<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>,
fn rect<S>(&mut self, rectangle: S)where
S: IntoShape<Rectangle<<<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Real, <<T as EnvAssociatedTypes>::AssociatedTypesHolder as AssociatedTypes>::Color>,
Draw a rectangle.
Source§fn frame_rate<R>(&mut self, rate: R)
fn frame_rate<R>(&mut self, rate: R)
set the frame rate. Read more
Source§impl<T, X> TryAsPart<X> for Twhere
T: AsPart<X>,
impl<T, X> TryAsPart<X> for Twhere
T: AsPart<X>,
Source§fn try_as_part(&self) -> Option<&X>
fn try_as_part(&self) -> Option<&X>
Try to borrow part of composed type.
Source§fn try_as_part_mut(&mut self) -> Option<&mut X>
fn try_as_part_mut(&mut self) -> Option<&mut X>
Try to mutably borrow part of composed type.
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read more