[−][src]Enum pixel_widgets::draw::Primitive
A high level primitive that can be drawn without any further data.
Variants
PushClip(Rectangle)
Pushes a clipping rectangle on a clipping rectangle stack. The topmost clipping rectangle is used by the renderer. When a clipping rectangle is active, only pixels inside of the rectangle are actually drawn to the screen. This is useful for scrolling like behaviour.
Pops a clipping rectangle from a clipping rectangle stack. All PushClip
s should have
a matching PopClip
.
Move following commands one layer up. Higher layers always draw in front of lower layers.
Move following commands one layer down. Higher layers always draw in front of lower layers.
Draw a rectangle filled with a color.
Draw some text within the bounds of a rectangle.
See Text
for more information.
Draw a 9 patch spanning the bounds of a rectangle, multiplied by a color.
Draw an image stretched to the bounds of a rectangle, multiplied by a color.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Primitive<'a>
impl<'a> Send for Primitive<'a>
impl<'a> Sync for Primitive<'a>
impl<'a> Unpin for Primitive<'a>
impl<'a> UnwindSafe for Primitive<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,