Type Alias ImageGenerator

pub type ImageGenerator = RefHandle<SkImageGenerator>;

Aliased Type§

struct ImageGenerator(/* private fields */);

Implementations

§

impl RefHandle<SkImageGenerator>

pub fn unique_id(&self) -> u32

pub fn encoded_data(&mut self) -> Option<RCHandle<SkData>>

pub fn info(&self) -> &Handle<SkImageInfo>

pub fn is_valid( &self, context: Option<&mut RCHandle<GrRecordingContext>>, ) -> bool

pub fn is_protected(self) -> bool

pub fn get_pixels( &mut self, info: &Handle<SkImageInfo>, pixels: &mut [u8], row_bytes: usize, ) -> bool

pub fn query_yuva_info( &self, supported_data_types: &Handle<SkYUVAPixmapInfo_SupportedDataTypes>, ) -> Option<Handle<SkYUVAPixmapInfo>>

pub fn is_texture_generator(&self) -> bool

pub fn from_encoded( _encoded: impl Into<RCHandle<SkData>>, ) -> Option<RefHandle<SkImageGenerator>>

👎Deprecated since 0.64.0: Removed, will return None. Use Image::deferred_from_encoded_data() or Codec::from_data()

Trait Implementations

§

impl Debug for RefHandle<SkImageGenerator>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<N> Drop for RefHandle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> PartialEq for RefHandle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &RefHandle<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<N> PointerWrapper<N> for RefHandle<N>
where N: NativeDrop,

§

fn wrap(ptr: *mut N) -> Option<RefHandle<N>>

Wraps a native pointer into a wrapper type. Returns None if the pointer is null.
§

fn unwrap(self) -> *mut N

Unwraps the wrapper type into the native pointer.
§

fn inner(&self) -> &N

Access the wrapped pointer.
§

fn inner_mut(&mut self) -> &mut N

Access the wrapped pointer.
§

impl<T> RunIterator for RefHandle<T>
where T: NativeDrop + NativeBase<SkShaper_RunIterator>,

§

fn consume(&mut self)

§

fn end_of_current_run(&self) -> usize

§

fn at_end(&self) -> bool

§

impl Send for RefHandle<SkImageGenerator>

§

impl Sync for RefHandle<SkImageGenerator>