libyui
3.0.13
|
#include <YTableHeader.h>
Public Member Functions | |
YTableHeader () | |
virtual | ~YTableHeader () |
void | addColumn (const std::string &header, YAlignmentType alignment=YAlignBegin) |
int | columns () const |
bool | hasColumn (int column) const |
std::string | header (int column) const |
YAlignmentType | alignment (int column) const |
Helper class for YTable for table column properties:
Definition at line 43 of file YTableHeader.h.
YTableHeader::YTableHeader | ( | ) |
Constructor.
Definition at line 48 of file YTableHeader.cc.
|
virtual |
Destructor.
Definition at line 55 of file YTableHeader.cc.
void YTableHeader::addColumn | ( | const std::string & | header, |
YAlignmentType | alignment = YAlignBegin |
||
) |
Add a column with the specified colum header text and alignment.
Definition at line 62 of file YTableHeader.cc.
YAlignmentType YTableHeader::alignment | ( | int | column | ) | const |
Return the alignment for the specified column.
Definition at line 94 of file YTableHeader.cc.
int YTableHeader::columns | ( | ) | const |
Return the number of columns.
Definition at line 70 of file YTableHeader.cc.
bool YTableHeader::hasColumn | ( | int | column | ) | const |
Return 'true' if this table header has a column no. 'column' (counting from 0 on).
Definition at line 77 of file YTableHeader.cc.
std::string YTableHeader::header | ( | int | column | ) | const |
Return the header text for the specified column.
Definition at line 84 of file YTableHeader.cc.