pub struct RenderImageCallbackInfo { /* private fields */ }Implementations§
Source§impl RenderImageCallbackInfo
impl RenderImageCallbackInfo
pub fn new<'a>( gl_context: &'a OptionGlContextPtr, image_cache: &'a ImageCache, system_fonts: &'a FcFontCache, node_hierarchy: &'a NodeHierarchyItemVec, words_cache: &'a BTreeMap<NodeId, Words>, shaped_words_cache: &'a BTreeMap<NodeId, ShapedWords>, positioned_words_cache: &'a BTreeMap<NodeId, (WordPositions, FontInstanceKey)>, positioned_rects: &'a NodeDataContainer<PositionedRectangle>, bounds: HidpiAdjustedBounds, callback_node_id: DomNodeId, ) -> Self
pub fn get_gl_context(&self) -> OptionGlContextPtr
pub fn get_bounds(&self) -> HidpiAdjustedBounds
pub fn get_callback_node_id(&self) -> DomNodeId
pub fn get_inline_text(&self, node_id: DomNodeId) -> Option<InlineText>
pub fn get_parent(&self, node_id: DomNodeId) -> Option<DomNodeId>
pub fn get_previous_sibling(&self, node_id: DomNodeId) -> Option<DomNodeId>
pub fn get_next_sibling(&self, node_id: DomNodeId) -> Option<DomNodeId>
pub fn get_first_child(&self, node_id: DomNodeId) -> Option<DomNodeId>
pub fn get_last_child(&self, node_id: DomNodeId) -> Option<DomNodeId>
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