Struct rin_graphics::ttf::Shape [−][src]
pub struct Shape { pub rect: Rect<f32>, pub glyph: TextureGlyph, pub next_position: Pnt2, pub last_position: Pnt2, pub is_last: bool, pub row: u32, pub col: u32, }
Fields
rect: Rect<f32>
glyph: TextureGlyph
next_position: Pnt2
last_position: Pnt2
is_last: bool
row: u32
col: u32
Implementations
impl Shape
[src]
impl Shape
[src]pub fn to_vertices(&self) -> SmallVec<[Vertex2DTex; 6]>
[src]
pub fn to_vertices_color<C: ToRgba>(
&self,
color: &C
) -> SmallVec<[Vertex2DTexColor; 6]>
[src]
&self,
color: &C
) -> SmallVec<[Vertex2DTexColor; 6]>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Shape
impl !Send for Shape
impl !Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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]