Struct vizia_core::vg::pdf::StructureElementNode
pub struct StructureElementNode(/* private fields */);
Implementations§
§impl StructureElementNode
impl StructureElementNode
A node in a PDF structure tree, giving a semantic representation
of the content. Each node ID is associated with content
by passing the crate::Canvas
and node ID to Self::set_node_id()
when drawing.
NodeIDs should be unique within each tree.
pub fn new(type_string: impl AsRef<str>) -> StructureElementNode
pub fn set_type_string( &mut self, type_string: impl AsRef<str>, ) -> &mut StructureElementNode
pub fn type_string(&self) -> &str
pub fn set_child_vector( &mut self, child_vector: Vec<StructureElementNode>, ) -> &mut StructureElementNode
pub fn append_child( &mut self, node: StructureElementNode, ) -> &mut StructureElementNode
pub fn child_vector(&self) -> &[StructureElementNode]
pub fn set_node_id(&mut self, node_id: i32) -> &mut StructureElementNode
pub fn node_id(&self) -> i32
pub fn attributes(&self) -> &Handle<SkPDF_AttributeList>
pub fn attributes_mut(&mut self) -> &mut Handle<SkPDF_AttributeList>
pub fn set_alt(&mut self, alt: impl AsRef<str>) -> &mut StructureElementNode
pub fn alt(&self) -> &str
pub fn set_lang(&mut self, lang: impl AsRef<str>) -> &mut StructureElementNode
pub fn lang(&self) -> &str
Trait Implementations§
§impl Debug for StructureElementNode
impl Debug for StructureElementNode
§impl Default for StructureElementNode
impl Default for StructureElementNode
§fn default() -> StructureElementNode
fn default() -> StructureElementNode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructureElementNode
impl !RefUnwindSafe for StructureElementNode
impl !Send for StructureElementNode
impl !Sync for StructureElementNode
impl Unpin for StructureElementNode
impl !UnwindSafe for StructureElementNode
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.