Enum pixel_widgets::draw::Command [−][src]
pub enum Command {
Nop,
Clip {
scissor: Rectangle,
},
Colored {
offset: usize,
count: usize,
},
Textured {
texture: usize,
offset: usize,
count: usize,
},
}Expand description
A draw Command that is to be translated to a draw command specific to the backend
Variants
Do nothing. Appending a Nop to another command will flush the other command.
Sets a new scissor rect, which is used to confine geometry to a certain area on screen.
Show fields
Fields of Clip
scissor: RectangleThe scissor rectangle
Draw a list of vertices without an active texture
Show fields
Fields of Colored
offset: usizeOffset in vertices from the start of the vertex buffer
count: usizeThe number of vertices to draw
Draw a list of vertices with the active texture denoted by it’s index
Show fields
Fields of Textured
texture: usizeTexture id to be used
offset: usizeOffset in vertices from the start of the vertex buffer
count: usizeThe number of vertices to draw
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<T> DragDropId for T where
T: 'static + Copy + Send, [src]
T: 'static + Copy + Send,