cwidget 0.5.16
|
Defines how a single column is to be generated. More...
#include <column_definition.h>
Public Types | |
enum | column_type { COLUMN_LITERAL, COLUMN_GENERATED, COLUMN_PARAM } |
The available column types. More... | |
Public Member Functions | |
column_definition (const std::wstring &_arg, bool _expand, bool _shrink) | |
Create a literal column. | |
column_definition (column_type _type, int _ival, int _width, bool _expand, bool _shrink, bool _dynamic_size) | |
Create a generated or parametric column. | |
Public Attributes | |
column_type | type |
The type of this column. | |
int | ival |
The parameter number (for positional parameter columns) or column type (for generated columns). | |
std::wstring | arg |
The text of this column if it is a literal column. | |
unsigned int | width |
The width of this column if it is generated or taken from a positional parameter. | |
bool | expand:1 |
If true, this column is allowed to expand during layout. | |
bool | shrink:1 |
If true, this column is allowed to shrink during layout. | |
bool | dynamic_size:1 |
Whether to redefine the column width based on the actual string (for generated and parametric columns). |
Defines how a single column is to be generated.
The available column types.
COLUMN_LITERAL |
A literal column. The text of a literal column is taken from its arg member. |
COLUMN_GENERATED |
A dynamically generated column. The text and width of a generated column are computed by calling column_generator::setup_column. |
COLUMN_PARAM |
A column defined by a positional parameter. The text of a column defined by a positional parameter is constructed by calling column_parameters::get_param.
|
cwidget::config::column_definition::column_definition | ( | const std::wstring & | _arg, |
bool | _expand, | ||
bool | _shrink | ||
) | [inline] |
Create a literal column.
cwidget::config::column_definition::column_definition | ( | column_type | _type, |
int | _ival, | ||
int | _width, | ||
bool | _expand, | ||
bool | _shrink, | ||
bool | _dynamic_size | ||
) | [inline] |
Create a generated or parametric column.
std::wstring cwidget::config::column_definition::arg |
The text of this column if it is a literal column.
Whether to redefine the column width based on the actual string (for generated and parametric columns).
If true, then width will be ignored and the true width of the actual string will be used in layout.
If true, this column is allowed to expand during layout.
The parameter number (for positional parameter columns) or column type (for generated columns).
If true, this column is allowed to shrink during layout.
The type of this column.
unsigned int cwidget::config::column_definition::width |
The width of this column if it is generated or taken from a positional parameter.