pub struct NineSliceSprite {Show 14 fields
pub shader: Option<ShaderRef>,
pub textures: SmallVec<[SpriteTexture; 4]>,
pub uniforms: HashMap<Cow<'static, str>, GlowUniformValue>,
pub region: Rect<f32, f32>,
pub page: f32,
pub margins_source: NineSliceMargins,
pub margins_target: NineSliceMargins,
pub frame_only: bool,
pub tint: Rgba<f32>,
pub transform: Transform<f32, f32, f32>,
pub size: Option<Vec2<f32>>,
pub pivot: Vec2<f32>,
pub blending: Option<GlowBlending>,
pub screen_space: bool,
}
Fields§
§shader: Option<ShaderRef>
§textures: SmallVec<[SpriteTexture; 4]>
§uniforms: HashMap<Cow<'static, str>, GlowUniformValue>
§region: Rect<f32, f32>
§page: f32
§margins_source: NineSliceMargins
§margins_target: NineSliceMargins
§frame_only: bool
§tint: Rgba<f32>
§transform: Transform<f32, f32, f32>
§size: Option<Vec2<f32>>
§pivot: Vec2<f32>
§blending: Option<GlowBlending>
§screen_space: bool
Implementations§
Source§impl NineSliceSprite
impl NineSliceSprite
pub fn single(texture: SpriteTexture) -> Self
pub fn shader(self, value: ShaderRef) -> Self
pub fn texture(self, value: SpriteTexture) -> Self
pub fn uniform(self, key: Cow<'static, str>, value: GlowUniformValue) -> Self
pub fn region_page(self, region: Rect<f32, f32>, page: f32) -> Self
pub fn margins_source(self, margins: NineSliceMargins) -> Self
pub fn margins_target(self, margins: NineSliceMargins) -> Self
pub fn frame_only(self, value: bool) -> Self
pub fn tint(self, value: Rgba<f32>) -> Self
pub fn transform(self, value: Transform<f32, f32, f32>) -> Self
pub fn position(self, value: Vec2<f32>) -> Self
pub fn orientation(self, value: Quaternion<f32>) -> Self
pub fn rotation(self, angle_radians: f32) -> Self
pub fn scale(self, value: Vec2<f32>) -> Self
pub fn size(self, value: Vec2<f32>) -> Self
pub fn pivot(self, value: Vec2<f32>) -> Self
pub fn blending(self, value: GlowBlending) -> Self
pub fn screen_space(self, value: bool) -> Self
Trait Implementations§
Source§impl Clone for NineSliceSprite
impl Clone for NineSliceSprite
Source§fn clone(&self) -> NineSliceSprite
fn clone(&self) -> NineSliceSprite
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NineSliceSprite
impl Debug for NineSliceSprite
Source§impl Default for NineSliceSprite
impl Default for NineSliceSprite
Source§impl Drawable for NineSliceSprite
impl Drawable for NineSliceSprite
Auto Trait Implementations§
impl Freeze for NineSliceSprite
impl !RefUnwindSafe for NineSliceSprite
impl !Send for NineSliceSprite
impl !Sync for NineSliceSprite
impl Unpin for NineSliceSprite
impl !UnwindSafe for NineSliceSprite
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