Struct sktablelayout::TableLayout [−][src]
pub struct TableLayout { pub cell_defaults: CellProperties, pub row_defaults: BTreeMap<u8, CellProperties>, pub column_defaults: BTreeMap<u8, CellProperties>, pub opcodes: Vec<LayoutOp>, pub row: u8, pub column: u8, }
Fields
cell_defaults: CellProperties
row_defaults: BTreeMap<u8, CellProperties>
column_defaults: BTreeMap<u8, CellProperties>
opcodes: Vec<LayoutOp>
row: u8
column: u8
Methods
impl TableLayout
[src]
impl TableLayout
pub fn new() -> TableLayout
[src]
pub fn new() -> TableLayout
pub fn get_rows_cols(&self) -> (u8, u8)
[src]
pub fn get_rows_cols(&self) -> (u8, u8)
Calculates the number of rows and columns which exist in this table layout.
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Removes all layout declarations from the table. Does not remove row or column defaults.
pub fn full_clear(&mut self)
[src]
pub fn full_clear(&mut self)
Removes all layout declarations and resets ALL settings to factory default.
pub fn with_row(&mut self) -> &mut Self
[src]
pub fn with_row(&mut self) -> &mut Self
Adds a new row to the layout.
pub fn with_cell(&mut self, properties: CellProperties) -> &mut Self
[src]
pub fn with_cell(&mut self, properties: CellProperties) -> &mut Self
Hands the cell off to the layout.
pub fn impose(&mut self, width: f32, height: f32)
[src]
pub fn impose(&mut self, width: f32, height: f32)
Trait Implementations
impl Default for TableLayout
[src]
impl Default for TableLayout
fn default() -> TableLayout
[src]
fn default() -> TableLayout
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl !Send for TableLayout
impl !Send for TableLayout
impl !Sync for TableLayout
impl !Sync for TableLayout