Struct sktablelayout::CellProperties[][src]

pub struct CellProperties {
    pub size: SizeGrouping,
    pub flags: CellFlags,
    pub colspan: u8,
    pub padding: Rectangle,
    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.

Controls how many pixels are intentionally wasted around this cell.

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.

Sets the padding around this cell to the supplied top, left, right and bottom values as specified by a rectangle struct.

Sets the padding on the top side of this cell.

Sets the padding on the left side of this cell.

Sets the padding on the bottom side of this cell.

Sets the padding on the right side of this cell.

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