Wt
3.3.8
|
A value class that defines the CSS border style of a widget. More...
#include <Wt/WBorder>
Public Types |
Public Member Functions | |
WBorder () | |
Creates a border indicating no border. | |
WBorder (Style style, Width=Medium, WColor color=WColor()) | |
Creates a border with given style, thickness and color. | |
WBorder (Style style, const WLength &width, WColor color=WColor()) | |
Creates a border with an absolute width. | |
bool | operator== (const WBorder &other) const |
Comparison operator. | |
bool | operator!= (const WBorder &other) const |
Comparison operator. | |
void | setWidth (Width width, const WLength &explicitWidth=WLength::Auto) |
Sets the border width. More... | |
void | setColor (WColor color) |
Sets the border color. | |
void | setStyle (Style style) |
Sets the border style. | |
Width | width () const |
Returns the border width. More... | |
WLength | explicitWidth () const |
Returns the border width when set explicitly. More... | |
WColor | color () const |
Returns the border color. More... | |
Style | style () const |
Returns the border style. More... | |
std::string | cssText () const |
Returns the CSS text for this border style. | |
A value class that defines the CSS border style of a widget.
enum Wt::WBorder::Style |
Enumeration for border style.
enum Wt::WBorder::Width |
Enumeration for border width.
Enumerator | |
---|---|
Thin |
Browser-dependent 'thin' border. |
Medium |
Browser-dependent 'medium' border, default. |
Thick |
Browser-dependent 'thick' border. |
Explicit |
Explicit width. See also explicitWidth() |
WColor Wt::WBorder::color | ( | ) | const |
Returns the border color.
WLength Wt::WBorder::explicitWidth | ( | ) | const |
Returns the border width when set explicitly.
void Wt::WBorder::setWidth | ( | Width | width, |
const WLength & | explicitWidth = WLength::Auto |
||
) |
Sets the border width.
If width == Explicit, then the width specified in explicitWidth
is used.
Style Wt::WBorder::style | ( | ) | const |
Returns the border style.
Width Wt::WBorder::width | ( | ) | const |
Returns the border width.