pub struct Container<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> Container<'a>
impl<'a> Container<'a>
pub const VT_NODE_ID: VOffsetT = 4
pub const VT_CHILDREN: VOffsetT = 6
pub const VT_LAYOUT: VOffsetT = 8
pub const VT_DIRECTION: VOffsetT = 10
pub const VT_MAIN_ALIGN: VOffsetT = 12
pub const VT_CROSS_ALIGN: VOffsetT = 14
pub const VT_GAP: VOffsetT = 16
pub const VT_PADDING: VOffsetT = 18
pub const VT_WRAP: VOffsetT = 20
pub const VT_GRID_COLUMNS: VOffsetT = 22
pub const VT_GRID_ROWS: VOffsetT = 24
pub const VT_WIDTH: VOffsetT = 26
pub const VT_HEIGHT: VOffsetT = 28
pub const VT_MIN_WIDTH: VOffsetT = 30
pub const VT_MAX_WIDTH: VOffsetT = 32
pub const VT_MIN_HEIGHT: VOffsetT = 34
pub const VT_MAX_HEIGHT: VOffsetT = 36
pub const VT_OVERFLOW_X: VOffsetT = 38
pub const VT_OVERFLOW_Y: VOffsetT = 40
pub const VT_CLIP: VOffsetT = 42
pub const VT_POSITION: VOffsetT = 44
pub const VT_TOP: VOffsetT = 46
pub const VT_RIGHT: VOffsetT = 48
pub const VT_BOTTOM: VOffsetT = 50
pub const VT_LEFT: VOffsetT = 52
pub const VT_Z_INDEX: VOffsetT = 54
pub const VT_OPACITY: VOffsetT = 56
pub const VT_BACKGROUND: VOffsetT = 58
pub const VT_BORDER: VOffsetT = 60
pub const VT_CORNER_RADIUS: VOffsetT = 62
pub const VT_SHADOW: VOffsetT = 64
pub const VT_SEMANTIC_NODE_ID: VOffsetT = 66
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 ContainerArgs<'args>, ) -> WIPOffset<Container<'bldr>>
pub fn node_id(&self) -> &'a str
pub fn children(&self) -> Option<Vector<'a, ForwardsUOffset<ChildNode<'a>>>>
pub fn layout(&self) -> ContainerLayout
pub fn direction(&self) -> LayoutDirection
pub fn main_align(&self) -> Alignment
pub fn cross_align(&self) -> Alignment
pub fn gap(&self) -> Option<Length<'a>>
pub fn padding(&self) -> Option<EdgeInsets<'a>>
pub fn wrap(&self) -> bool
pub fn grid_columns(&self) -> Option<Vector<'a, ForwardsUOffset<Length<'a>>>>
pub fn grid_rows(&self) -> Option<Vector<'a, ForwardsUOffset<Length<'a>>>>
pub fn width(&self) -> Option<Length<'a>>
pub fn height(&self) -> Option<Length<'a>>
pub fn min_width(&self) -> Option<Length<'a>>
pub fn max_width(&self) -> Option<Length<'a>>
pub fn min_height(&self) -> Option<Length<'a>>
pub fn max_height(&self) -> Option<Length<'a>>
pub fn overflow_x(&self) -> Overflow
pub fn overflow_y(&self) -> Overflow
pub fn clip(&self) -> bool
pub fn position(&self) -> Position
pub fn top(&self) -> Option<Length<'a>>
pub fn right(&self) -> Option<Length<'a>>
pub fn bottom(&self) -> Option<Length<'a>>
pub fn left(&self) -> Option<Length<'a>>
pub fn z_index(&self) -> i32
pub fn opacity(&self) -> f32
pub fn background(&self) -> Option<&'a Color>
pub fn border(&self) -> Option<BorderSides<'a>>
pub fn corner_radius(&self) -> Option<CornerRadii<'a>>
pub fn shadow(&self) -> Option<Vector<'a, ForwardsUOffset<Shadow<'a>>>>
pub fn semantic_node_id(&self) -> Option<&'a str>
Trait Implementations§
Source§impl Verifiable for Container<'_>
impl Verifiable for Container<'_>
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 Container<'a>
impl<'a> StructuralPartialEq for Container<'a>
Auto Trait Implementations§
impl<'a> Freeze for Container<'a>
impl<'a> RefUnwindSafe for Container<'a>
impl<'a> Send for Container<'a>
impl<'a> Sync for Container<'a>
impl<'a> Unpin for Container<'a>
impl<'a> UnsafeUnpin for Container<'a>
impl<'a> UnwindSafe for Container<'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