Struct rin::gl::outline_material::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Implementations
impl Builder
[src]
impl Builder
[src]pub fn new(
viewport: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) -> Builder
[src]
viewport: Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) -> Builder
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>(&mut self, color: C) -> &mut Builder where
C: ToRgba,
[src]
C: ToRgba,
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<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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]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]