All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Stylish::Border Class Reference

Styleable border, used by AttributeBorder to implement four different borders for CSSBoxModel. More...

#include <Stylish/Border.hpp>

Public Types

enum  Style { STYLE_NONE, STYLE_SOLID }
 

Public Member Functions

Radiant::Color color () const
 
STYLISH_API float computedWidth () const
 Computed width: absolute width or 0 if style is 'none' or 'hidden'.
 
STYLISH_API bool isVisible () const
 Border is visible if alpha and computedWidth both are above 0.
 
STYLISH_API bool operator== (const Border &rhs)
 Compares two borders. More...
 
void setColor (Radiant::Color color)
 
void setStyle (Border::Style style)
 
void setWidth (float width)
 
Border::Style style () const
 
float width () const
 

Detailed Description

Styleable border, used by AttributeBorder to implement four different borders for CSSBoxModel.

Member Enumeration Documentation

Member Function Documentation

Radiant::Color Stylish::Border::color ( ) const
inline
Returns
border color
STYLISH_API bool Stylish::Border::operator== ( const Border rhs)

Compares two borders.

Parameters
rhsother border
Returns
true if two borders have same parameters
void Stylish::Border::setColor ( Radiant::Color  color)
inline
Parameters
colornew border color
void Stylish::Border::setStyle ( Border::Style  style)
inline
Parameters
stylenew border style
void Stylish::Border::setWidth ( float  width)
inline
Parameters
widthnew border width in pixels
Border::Style Stylish::Border::style ( ) const
inline
Returns
border style
float Stylish::Border::width ( ) const
inline
Returns
border width in pixels