[−][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>
[src]
impl<'a> Send for Primitive<'a>
[src]
impl<'a> Sync for Primitive<'a>
[src]
impl<'a> Unpin for Primitive<'a>
[src]
impl<'a> UnwindSafe for Primitive<'a>
[src]
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,
pub 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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,