Struct lotus_script::graphics::textures::DrawTextureOpts
source · pub struct DrawTextureOpts {
pub source_rect: Option<Rectangle>,
pub target_rect: Option<Rectangle>,
}
Expand description
Options for drawing a texture.
Fields§
§source_rect: Option<Rectangle>
The source rectangle of the texture to draw.
target_rect: Option<Rectangle>
The target rectangle of the texture to draw to.
Trait Implementations§
source§impl Clone for DrawTextureOpts
impl Clone for DrawTextureOpts
source§fn clone(&self) -> DrawTextureOpts
fn clone(&self) -> DrawTextureOpts
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 Default for DrawTextureOpts
impl Default for DrawTextureOpts
source§fn default() -> DrawTextureOpts
fn default() -> DrawTextureOpts
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DrawTextureOpts
impl<'de> Deserialize<'de> for DrawTextureOpts
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<DrawTextureOpts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DrawTextureOpts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for DrawTextureOpts
impl Serialize for DrawTextureOpts
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for DrawTextureOpts
Auto Trait Implementations§
impl Freeze for DrawTextureOpts
impl RefUnwindSafe for DrawTextureOpts
impl Send for DrawTextureOpts
impl Sync for DrawTextureOpts
impl Unpin for DrawTextureOpts
impl UnwindSafe for DrawTextureOpts
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