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 TableLayoutpub fn new() -> TableLayout[src]
pub fn new() -> TableLayoutpub 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 SelfAdds 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 SelfHands 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 TableLayoutfn default() -> TableLayout[src]
fn default() -> TableLayoutReturns the "default value" for a type. Read more
Auto Trait Implementations
impl !Send for TableLayout
impl !Send for TableLayoutimpl !Sync for TableLayout
impl !Sync for TableLayout