pub struct TextNode<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> TextNode<'a>
impl<'a> TextNode<'a>
pub const VT_NODE_ID: VOffsetT = 4
pub const VT_CONTENT: VOffsetT = 6
pub const VT_CONTENT_BINDING: VOffsetT = 8
pub const VT_LOCALIZED_CONTENT: VOffsetT = 10
pub const VT_FONT_FAMILY: VOffsetT = 12
pub const VT_FONT_SIZE: VOffsetT = 14
pub const VT_FONT_WEIGHT: VOffsetT = 16
pub const VT_LINE_HEIGHT: VOffsetT = 18
pub const VT_LETTER_SPACING: VOffsetT = 20
pub const VT_TEXT_ALIGN: VOffsetT = 22
pub const VT_TEXT_OVERFLOW: VOffsetT = 24
pub const VT_TEXT_DECORATION: VOffsetT = 26
pub const VT_MAX_LINES: VOffsetT = 28
pub const VT_COLOR: VOffsetT = 30
pub const VT_OPACITY: VOffsetT = 32
pub const VT_HEADING_LEVEL: VOffsetT = 34
pub const VT_SEMANTIC_NODE_ID: VOffsetT = 36
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args TextNodeArgs<'args>, ) -> WIPOffset<TextNode<'bldr>>
pub fn node_id(&self) -> &'a str
pub fn content(&self) -> Option<&'a str>
pub fn content_binding(&self) -> Option<DataBinding<'a>>
pub fn localized_content(&self) -> Option<LocalizedString<'a>>
pub fn font_family(&self) -> Option<&'a str>
pub fn font_size(&self) -> Option<Length<'a>>
pub fn font_weight(&self) -> FontWeight
pub fn line_height(&self) -> f32
pub fn letter_spacing(&self) -> Option<Length<'a>>
pub fn text_align(&self) -> TextAlign
pub fn text_overflow(&self) -> TextOverflow
pub fn text_decoration(&self) -> TextDecoration
pub fn max_lines(&self) -> i32
pub fn color(&self) -> Option<&'a Color>
pub fn opacity(&self) -> f32
pub fn heading_level(&self) -> i8
pub fn semantic_node_id(&self) -> Option<&'a str>
Trait Implementations§
Source§impl Verifiable for TextNode<'_>
impl Verifiable for TextNode<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for TextNode<'a>
impl<'a> StructuralPartialEq for TextNode<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextNode<'a>
impl<'a> RefUnwindSafe for TextNode<'a>
impl<'a> Send for TextNode<'a>
impl<'a> Sync for TextNode<'a>
impl<'a> Unpin for TextNode<'a>
impl<'a> UnsafeUnpin for TextNode<'a>
impl<'a> UnwindSafe for TextNode<'a>
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