Struct comfy_wgpu::DrawTextureParams
source · pub struct DrawTextureParams {
pub dest_size: Option<Size>,
pub source_rect: Option<IRect>,
pub scroll_offset: Vec2,
pub rotation: f32,
pub flip_x: bool,
pub flip_y: bool,
pub pivot: Option<Vec2>,
pub blend_mode: BlendMode,
}Fields§
§dest_size: Option<Size>§source_rect: Option<IRect>§scroll_offset: Vec2§rotation: f32§flip_x: bool§flip_y: bool§pivot: Option<Vec2>§blend_mode: BlendModeImplementations§
source§impl DrawTextureParams
impl DrawTextureParams
pub fn blend(blend_mode: BlendMode) -> DrawTextureParams
Trait Implementations§
source§impl Clone for DrawTextureParams
impl Clone for DrawTextureParams
source§fn clone(&self) -> DrawTextureParams
fn clone(&self) -> DrawTextureParams
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 DrawTextureParams
impl Debug for DrawTextureParams
source§impl Default for DrawTextureParams
impl Default for DrawTextureParams
source§fn default() -> DrawTextureParams
fn default() -> DrawTextureParams
Returns the “default value” for a type. Read more
impl Copy for DrawTextureParams
Auto Trait Implementations§
impl RefUnwindSafe for DrawTextureParams
impl Send for DrawTextureParams
impl Sync for DrawTextureParams
impl Unpin for DrawTextureParams
impl UnwindSafe for DrawTextureParams
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