pub struct Texture(/* private fields */);
Implementations§
Source§impl Texture
impl Texture
pub fn new(cx: &mut Cx) -> Texture
pub fn new_with_format(cx: &mut Cx, format: TextureFormat) -> Texture
pub fn set_animation(&self, cx: &mut Cx, animation: Option<TextureAnimation>)
pub fn animation<'a>(&self, cx: &'a mut Cx) -> &'a Option<TextureAnimation>
pub fn get_format<'a>(&self, cx: &'a mut Cx) -> &'a mut TextureFormat
pub fn take_vec_u32(&self, cx: &mut Cx) -> Vec<u32>
pub fn swap_vec_u32(&self, cx: &mut Cx, vec: &mut Vec<u32>)
pub fn put_back_vec_u32( &self, cx: &mut Cx, new_data: Vec<u32>, dirty_rect: Option<RectUsize>, )
pub fn take_vec_u8(&self, cx: &mut Cx) -> Vec<u8> ⓘ
pub fn put_back_vec_u8( &self, cx: &mut Cx, new_data: Vec<u8>, dirty_rect: Option<RectUsize>, )
pub fn take_vec_f32(&self, cx: &mut Cx) -> Vec<f32>
pub fn put_back_vec_f32( &self, cx: &mut Cx, new_data: Vec<f32>, dirty_rect: Option<RectUsize>, )
Trait Implementations§
impl StructuralPartialEq for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl !RefUnwindSafe for Texture
impl !Send for Texture
impl !Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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