pub struct ImagePrimitiveBuilder { /* private fields */ }Implementations§
Source§impl ImagePrimitiveBuilder
impl ImagePrimitiveBuilder
pub fn new(texture: RcTexture) -> Self
Sourcepub fn position(self, position: Point) -> Self
pub fn position(self, position: Point) -> Self
The position of the top-left corner of the image (before rotation) in logical points.
pub fn scale(self, scale_x: Scale, scale_y: Scale) -> Self
pub fn rotation(self, angle: Angle, origin_normal: Point) -> Self
pub fn transform(self, transform: Transform) -> Self
pub fn unnormalized_uv_rect(self, uv_rect: Rect) -> Self
pub fn normalized_uv_rect(self, uv_rect: Rect) -> Self
pub fn build(self) -> ImagePrimitive
Trait Implementations§
Source§impl From<ImagePrimitiveBuilder> for ImagePrimitive
impl From<ImagePrimitiveBuilder> for ImagePrimitive
Source§fn from(i: ImagePrimitiveBuilder) -> Self
fn from(i: ImagePrimitiveBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImagePrimitiveBuilder
impl !RefUnwindSafe for ImagePrimitiveBuilder
impl !Send for ImagePrimitiveBuilder
impl !Sync for ImagePrimitiveBuilder
impl Unpin for ImagePrimitiveBuilder
impl !UnwindSafe for ImagePrimitiveBuilder
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