ROSE  0.11.96.11
Public Member Functions | Static Public Member Functions | List of all members
Rose::FormattedTable::CellProperties Class Reference

Description

Properties for a particular cell.

Definition at line 42 of file FormattedTable.h.

#include <FormattedTable.h>

Public Member Functions

 CellProperties ()
 Default constructor. More...
 
 CellProperties (const Sawyer::Optional< Color::HSV > &foreground, const Sawyer::Optional< Color::HSV > &background, const Sawyer::Optional< Alignment > &alignment)
 Constructor. More...
 
const Sawyer::Optional< Color::HSV > & foreground () const
 Property: Foreground color.
 
CellPropertiesforeground (const Sawyer::Optional< Color::HSV > &)
 Property: Foreground color.
 
const Sawyer::Optional< Color::HSV > & background () const
 Property: Background color.
 
CellPropertiesbackground (const Sawyer::Optional< Color::HSV > &)
 Property: Background color.
 
const Sawyer::Optional< Alignment > & alignment () const
 Property: Horizontal alignment.
 
CellPropertiesalignment (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. More...
 

Constructor & Destructor Documentation

◆ CellProperties() [1/2]

Rose::FormattedTable::CellProperties::CellProperties ( )

Default constructor.

No specific properties are set.

◆ CellProperties() [2/2]

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.

Member Function Documentation

◆ merge()

static CellProperties Rose::FormattedTable::CellProperties::merge ( const CellProperties a,
const CellProperties b 
)
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.


The documentation for this class was generated from the following file: