Struct rin_gl::outline_material::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Implementations
impl Builder
[src]
impl Builder
[src]pub fn new(viewport: Vec2) -> Builder
[src]
Creates a material builder
Needs the size of the viewport used to calculate the thickness of the outline precissely
pub fn width(&mut self, width: f32) -> &mut Builder
[src]
Width of the outline in pixels
pub fn color<C: ToRgba>(&mut self, color: C) -> &mut Builder
[src]
Color of the outline
pub fn build(&self) -> OutlineMaterial
[src]
Create the material
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]