#[repr(transparent)]pub struct RefHandle<N: NativeDrop>(_);
Expand description
A wrapper type that represents a native type with a pointer to the native object.
Implementations§
source§impl RefHandle<SkDrawable_GpuDrawHandler>
impl RefHandle<SkDrawable_GpuDrawHandler>
pub fn draw(&mut self, info: &BackendDrawableInfo)
source§impl RefHandle<SkImageGenerator>
impl RefHandle<SkImageGenerator>
pub fn unique_id(&self) -> u32
pub fn encoded_data(&mut self) -> Option<Data>
pub fn info(&self) -> &ImageInfo
pub fn is_valid(&self, context: Option<&mut RecordingContext>) -> bool
pub fn get_pixels( &mut self, info: &ImageInfo, pixels: &mut [u8], row_bytes: usize ) -> bool
pub fn query_yuva_info( &self, supported_data_types: &SupportedDataTypes ) -> Option<YUVAPixmapInfo>
pub fn is_texture_generator(&self) -> bool
pub fn from_encoded(_encoded: impl Into<Data>) -> Option<Self>
👎Deprecated since 0.64.0: Removed, will return
None
. Use Image::deferred_from_encoded_data() or Codec::from_data()source§impl RefHandle<GrBackendTexture>
impl RefHandle<GrBackendTexture>
pub unsafe fn new_gl( (width, height): (i32, i32), mipmapped: Mipmapped, gl_info: TextureInfo ) -> Self
pub unsafe fn new_gl_with_label( (width, height): (i32, i32), mipmapped: Mipmapped, gl_info: TextureInfo, label: impl AsRef<str> ) -> Self
pub fn dimensions(&self) -> ISize
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn label(&self) -> &str
pub fn mipmapped(&self) -> Mipmapped
pub fn has_mip_maps(&self) -> bool
👎Deprecated since 0.35.0: Use has_mipmaps()
pub fn has_mipmaps(&self) -> bool
pub fn backend(&self) -> BackendAPI
pub fn gl_texture_info(&self) -> Option<TextureInfo>
pub fn gl_texture_parameters_modified(&mut self)
pub fn backend_format(&self) -> BackendFormat
pub fn set_mutable_state(&mut self, state: &MutableTextureState)
pub fn is_protected(&self) -> bool
pub fn is_valid(&self) -> bool
👎Deprecated since 0.37.0: Invalid BackendTextures aren’t supported
pub fn is_same_texture(&mut self, texture: &BackendTexture) -> bool
source§impl RefHandle<Sk3DView>
impl RefHandle<Sk3DView>
pub fn new() -> Self
pub fn save(&mut self) -> &mut Self
pub fn restore(&mut self) -> &mut Self
pub fn translate(&mut self, d: impl Into<V3>) -> &mut Self
pub fn rotate_x(&mut self, deg: scalar) -> &mut Self
pub fn rotate_y(&mut self, deg: scalar) -> &mut Self
pub fn rotate_z(&mut self, deg: scalar) -> &mut Self
pub fn matrix(&self) -> Matrix
pub fn apply_to_canvas(&self, canvas: &mut Canvas) -> &Self
pub fn dot_with_normal(&self, d: impl Into<V3>) -> scalar
Trait Implementations§
Auto Trait Implementations§
impl<N> RefUnwindSafe for RefHandle<N>where N: RefUnwindSafe,
impl<N> !Send for RefHandle<N>
impl<N> !Sync for RefHandle<N>
impl<N> Unpin for RefHandle<N>
impl<N> UnwindSafe for RefHandle<N>where N: RefUnwindSafe,
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