pub struct DrawTextureOpts {
pub source_rect: Option<Rectangle>,
pub target_rect: Option<Rectangle>,
}Expand description
Optionen zum Zeichnen einer Textur.
Options for drawing a texture.
Fields§
§source_rect: Option<Rectangle>Quellrechteck des zu zeichnenden Texturausschnitts.
The source rectangle of the texture to draw.
target_rect: Option<Rectangle>Zielrechteck auf der Zieltextur.
The target rectangle of the texture to draw to.
Trait Implementations§
Source§impl Clone for DrawTextureOpts
impl Clone for DrawTextureOpts
impl Copy for DrawTextureOpts
Source§impl Default for DrawTextureOpts
impl Default for DrawTextureOpts
Source§impl<'de> Deserialize<'de> for DrawTextureOpts
impl<'de> Deserialize<'de> for DrawTextureOpts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DrawTextureOpts
impl RefUnwindSafe for DrawTextureOpts
impl Send for DrawTextureOpts
impl Sync for DrawTextureOpts
impl Unpin for DrawTextureOpts
impl UnsafeUnpin 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