pub struct LineMaterial {
pub color: Color,
pub width: f32,
pub dash_size: f32,
pub gap_size: f32,
pub world_units: bool,
pub alpha_mode: AlphaMode,
}Expand description
Line material with optional dash pattern.
Fields§
§color: ColorLine color in linear RGBA.
width: f32Line width in logical pixels unless world_units is true.
dash_size: f32Dash length. 0.0 disables dashed rendering.
gap_size: f32Gap length between dashes.
world_units: boolInterpret width in world units instead of logical pixels.
alpha_mode: AlphaModeAlpha behavior.
Implementations§
Trait Implementations§
Source§impl Clone for LineMaterial
impl Clone for LineMaterial
Source§fn clone(&self) -> LineMaterial
fn clone(&self) -> LineMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineMaterial
Source§impl Debug for LineMaterial
impl Debug for LineMaterial
Source§impl Default for LineMaterial
impl Default for LineMaterial
Source§impl Material for LineMaterial
impl Material for LineMaterial
Source§fn pipeline_key(&self) -> PipelineKey
fn pipeline_key(&self) -> PipelineKey
Returns the renderer pipeline selector for this material state.
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Returns whether the material should be rendered in a transparent path.
Source§fn double_sided(&self) -> bool
fn double_sided(&self) -> bool
Returns whether back-face culling should be disabled.
Source§fn alpha_cutoff(&self) -> Option<f32>
fn alpha_cutoff(&self) -> Option<f32>
Returns the alpha-test cutoff for masked materials.
Source§impl PartialEq for LineMaterial
impl PartialEq for LineMaterial
impl StructuralPartialEq for LineMaterial
Auto Trait Implementations§
impl Freeze for LineMaterial
impl RefUnwindSafe for LineMaterial
impl Send for LineMaterial
impl Sync for LineMaterial
impl Unpin for LineMaterial
impl UnsafeUnpin for LineMaterial
impl UnwindSafe for LineMaterial
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