Struct sktablelayout::CellProperties[][src]

pub struct CellProperties {
    pub size: SizeGrouping,
    pub flags: CellFlags,
    pub colspan: u8,
    pub callback: Option<Box<PositioningFn>>,
}

Encapsulates all properties for a cell; contributes to eventual layout decisions.

Fields

Controls the desired sizes for this cell.

Controls various binary flags for the cell.

Controls how many columns this cell will occupy.

Applies positioning updates for this cell. Note that this value always becomes None when cloned, so you cannot set default callbacks for cell policies.

Methods

impl CellProperties
[src]

Inherits the default settings as determined by a TableLayout. Will first try to match the defaults for the column this would be added to, then the row, then the fallback defaults. Note that these defaults apply only if the cell was added next and if the defaults have not been changed since. The correct use of with_defaults is to initialize CellProperties for immediate insertion to a layout.

Trait Implementations

impl Default for CellProperties
[src]

Returns the "default value" for a type. Read more

impl Clone for CellProperties
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations