pub struct RenderImageCallbackInfo { /* private fields */ }Expand description
Information passed to image rendering callbacks
Implementations§
Source§impl RenderImageCallbackInfo
impl RenderImageCallbackInfo
pub const fn new<'a>( callback_node_id: DomNodeId, bounds: HidpiAdjustedBounds, gl_context: &'a OptionGlContextPtr, image_cache: &'a ImageCache, system_fonts: &'a FcFontCache, ) -> Self
Sourcepub fn get_ctx(&self) -> OptionRefAny
pub fn get_ctx(&self) -> OptionRefAny
Get the callable for FFI language bindings (Python, etc.)
Sourcepub const unsafe fn set_callable_ptr(&mut self, ptr: *const OptionRefAny)
pub const unsafe fn set_callable_ptr(&mut self, ptr: *const OptionRefAny)
Set the callable pointer (called before invoking callback)
§Safety
ptr must either be null or point to an OptionRefAny that stays valid
for as long as this CallbackInfo may read it (i.e. until the pointer is
replaced or the callback returns). The pointee is read by get_ctx; a
dangling or misaligned ptr is undefined behavior.
pub const fn get_callback_node_id(&self) -> DomNodeId
pub const fn get_bounds(&self) -> HidpiAdjustedBounds
pub fn get_gl_context(&self) -> OptionGlContextPtr
Trait Implementations§
Source§impl Clone for RenderImageCallbackInfo
impl Clone for RenderImageCallbackInfo
Auto Trait Implementations§
impl !Send for RenderImageCallbackInfo
impl !Sync for RenderImageCallbackInfo
impl Freeze for RenderImageCallbackInfo
impl RefUnwindSafe for RenderImageCallbackInfo
impl Unpin for RenderImageCallbackInfo
impl UnsafeUnpin for RenderImageCallbackInfo
impl UnwindSafe for RenderImageCallbackInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more