ROSE 0.11.145.192
|
Properties for a particular cell.
Definition at line 42 of file FormattedTable.h.
#include <Rose/FormattedTable.h>
Public Member Functions | |
CellProperties () | |
Default constructor. | |
CellProperties (const Sawyer::Optional< Color::HSV > &foreground, const Sawyer::Optional< Color::HSV > &background, const Sawyer::Optional< Alignment > &alignment) | |
Constructor. | |
const Sawyer::Optional< Color::HSV > & | foreground () const |
Property: Foreground color. | |
CellProperties & | foreground (const Sawyer::Optional< Color::HSV > &) |
Property: Foreground color. | |
const Sawyer::Optional< Color::HSV > & | background () const |
Property: Background color. | |
CellProperties & | background (const Sawyer::Optional< Color::HSV > &) |
Property: Background color. | |
const Sawyer::Optional< Alignment > & | alignment () const |
Property: Horizontal alignment. | |
CellProperties & | alignment (const Sawyer::Optional< Alignment > &) |
Property: Horizontal alignment. | |
Static Public Member Functions | |
static CellProperties | merge (const CellProperties &a, const CellProperties &b) |
Create new properties by merging two properties. | |
Rose::FormattedTable::CellProperties::CellProperties | ( | ) |
Default constructor.
No specific properties are set.
Rose::FormattedTable::CellProperties::CellProperties | ( | const Sawyer::Optional< Color::HSV > & | foreground, |
const Sawyer::Optional< Color::HSV > & | background, | ||
const Sawyer::Optional< Alignment > & | alignment | ||
) |
Constructor.
Sets properties as specified.
|
static |
Create new properties by merging two properties.
The return value has values from object a
or object b
, whichever is set, in that order.