Struct rin::graphics::ttf::Shape [−][src]
pub struct Shape {
pub rect: Rect<f32>,
pub glyph: TextureGlyph,
pub next_position: Point<f32, U2>,
pub last_position: Point<f32, U2>,
pub is_last: bool,
pub row: u32,
pub col: u32,
}Fields
rect: Rect<f32>glyph: TextureGlyphnext_position: Point<f32, U2>last_position: Point<f32, U2>is_last: boolrow: u32col: u32Implementations
impl Shape[src]
impl Shape[src]pub fn to_vertices(&self) -> SmallVec<[Vertex2DTex; 6]>[src]
pub fn to_vertices_color<C>(&self, color: &C) -> SmallVec<[Vertex2DTexColor; 6]> where
C: ToRgba, [src]
C: ToRgba,
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<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]