pub struct RenderImageCallbackInfo { /* private fields */ }Expand description
Information passed to image rendering callbacks
Implementations§
Source§impl RenderImageCallbackInfo
impl RenderImageCallbackInfo
pub 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 unsafe fn set_callable_ptr(&mut self, ptr: *const OptionRefAny)
pub unsafe fn set_callable_ptr(&mut self, ptr: *const OptionRefAny)
Set the callable pointer (called before invoking callback)
pub fn get_callback_node_id(&self) -> DomNodeId
pub 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 Freeze for RenderImageCallbackInfo
impl RefUnwindSafe for RenderImageCallbackInfo
impl !Send for RenderImageCallbackInfo
impl !Sync for RenderImageCallbackInfo
impl Unpin 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