pub struct RenderCommand<CustomElementData> {
pub bounding_box: BoundingBox,
pub config: RenderCommandConfig<CustomElementData>,
pub id: u32,
pub z_index: i16,
pub effects: Vec<ShaderConfig>,
pub shape_rotation: Option<ShapeRotationConfig>,
}Expand description
Represents a render command for drawing an element on the screen.
Fields§
§bounding_box: BoundingBoxThe bounding box defining the area occupied by the element.
config: RenderCommandConfig<CustomElementData>The specific configuration for rendering this command.
id: u32A unique identifier for the render command.
z_index: i16The z-index determines the stacking order of elements. Higher values are drawn above lower values.
effects: Vec<ShaderConfig>Per-element shader effects (chained in order).
shape_rotation: Option<ShapeRotationConfig>Shape rotation applied at the vertex level (only for Rectangle / Image / Custom / Border).
Trait Implementations§
Source§impl<CustomElementData: Clone> Clone for RenderCommand<CustomElementData>
impl<CustomElementData: Clone> Clone for RenderCommand<CustomElementData>
Source§fn clone(&self) -> RenderCommand<CustomElementData>
fn clone(&self) -> RenderCommand<CustomElementData>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<CustomElementData> Freeze for RenderCommand<CustomElementData>where
CustomElementData: Freeze,
impl<CustomElementData> RefUnwindSafe for RenderCommand<CustomElementData>where
CustomElementData: RefUnwindSafe,
impl<CustomElementData> Send for RenderCommand<CustomElementData>where
CustomElementData: Send,
impl<CustomElementData> Sync for RenderCommand<CustomElementData>where
CustomElementData: Sync,
impl<CustomElementData> Unpin for RenderCommand<CustomElementData>where
CustomElementData: Unpin,
impl<CustomElementData> UnsafeUnpin for RenderCommand<CustomElementData>where
CustomElementData: UnsafeUnpin,
impl<CustomElementData> UnwindSafe for RenderCommand<CustomElementData>where
CustomElementData: UnwindSafe,
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