skia_safe::pdf

Type Alias AttributeList

Source
pub type AttributeList = Handle<SkPDF_AttributeList>;

Aliased Type§

struct AttributeList(/* private fields */);

Implementations§

Source§

impl AttributeList

Attributes for nodes in the PDF tree.

Each attribute must have an owner (e.g. “Layout”, “List”, “Table”, etc) and an attribute name (e.g. “BBox”, “RowSpan”, etc.) from PDF32000_2008 14.8.5, and then a value of the proper type according to the spec.

Source

pub fn append_int( &mut self, owner: impl AsRef<str>, name: impl AsRef<str>, value: i32, ) -> &mut Self

Source

pub fn append_float( &mut self, owner: impl AsRef<str>, name: impl AsRef<str>, value: f32, ) -> &mut Self

Source

pub fn append_float_array( &mut self, owner: impl AsRef<str>, name: impl AsRef<str>, value: &[f32], ) -> &mut Self

Trait Implementations§

Source§

impl Debug for AttributeList

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for AttributeList

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Send for AttributeList

Source§

impl Sync for AttributeList