KHTML
DOM::CSS2BorderSpacing Class Reference
TheCSS2BorderSpacing
interface represents the border-spacing CSS Level 2 property.
More...
#include <css_extensions.h>
Public Member Functions | |
CSS2BorderSpacing (CSS2BorderSpacingImpl *impl) | |
CSS2BorderSpacing (const CSS2BorderSpacing &other) | |
CSS2BorderSpacing () | |
float | getHorizontalSpacing (const float horizontalType) |
float | getVerticalSpacing (const float verticalType) |
unsigned short | horizontalType () const |
CSS2BorderSpacing & | operator= (const CSS2BorderSpacing &other) |
void | setHorizontalSpacing (const unsigned short horizontalType, const float value) |
void | setInherit () |
void | setVerticalSpacing (const unsigned short verticalType, const float value) |
unsigned short | verticalType () const |
~CSS2BorderSpacing () |
Detailed Description
TheCSS2BorderSpacing
interface represents the border-spacing CSS Level 2 property.
Definition at line 317 of file css_extensions.h.
Constructor & Destructor Documentation
CSS2BorderSpacing::CSS2BorderSpacing | ( | ) |
Definition at line 168 of file css_extensions.cpp.
CSS2BorderSpacing::CSS2BorderSpacing | ( | const CSS2BorderSpacing & | other | ) |
Definition at line 172 of file css_extensions.cpp.
CSS2BorderSpacing::CSS2BorderSpacing | ( | CSS2BorderSpacingImpl * | impl | ) |
Definition at line 176 of file css_extensions.cpp.
CSS2BorderSpacing::~CSS2BorderSpacing | ( | ) |
Definition at line 186 of file css_extensions.cpp.
Member Function Documentation
float CSS2BorderSpacing::getHorizontalSpacing | ( | const float | horizontalType | ) |
This method is used to get the float value in a specified unit if the horizontalSpacing
represents a length.
If the float doesn't contain a float value or can't be converted into the specified unit, a DOMException
is raised.
- Parameters:
-
horizontalType The specified unit.
- Returns:
- The float value.
- Exceptions:
-
DOMException INVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted.
Definition at line 202 of file css_extensions.cpp.
float CSS2BorderSpacing::getVerticalSpacing | ( | const float | verticalType | ) |
This method is used to get the float value in a specified unit if the verticalSpacing
represents a length.
If the float doesn't contain a float value or can't be converted into the specified unit, a DOMException
is raised. The value is 0
if only the horizontal value has been specified.
- Parameters:
-
verticalType The specified unit.
- Returns:
- The float value.
- Exceptions:
-
DOMException INVALID_ACCESS_ERR: Raises if the property doesn't contain a float or the value can't be converted.
Definition at line 208 of file css_extensions.cpp.
unsigned short CSS2BorderSpacing::horizontalType | ( | ) | const |
The A code defining the type of the value as defined in CSSValue
.
It would be one of CSS_EMS
, CSS_EXS
, CSS_PX
, CSS_CM
, CSS_MM
, CSS_IN
, CSS_PT
, CSS_PC
or CSS_INHERIT
.
Definition at line 190 of file css_extensions.cpp.
CSS2BorderSpacing & CSS2BorderSpacing::operator= | ( | const CSS2BorderSpacing & | other | ) |
Definition at line 180 of file css_extensions.cpp.
void CSS2BorderSpacing::setHorizontalSpacing | ( | const unsigned short | horizontalType, | |
const float | value | |||
) |
This method is used to set the horizontal spacing with a specified unit.
If the vertical value is a length, it sets the vertical spacing to 0
.
- Parameters:
-
horizontalType The specified unit. value The new value.
- Returns:
- Exceptions:
-
DOMException INVALID_ACCESS_ERR: Raises if the specified unit is not a length.
Definition at line 214 of file css_extensions.cpp.
void CSS2BorderSpacing::setInherit | ( | ) |
Set this property as inherit.
horizontalType
and verticalType
will be inherited.
- Returns:
Definition at line 226 of file css_extensions.cpp.
void CSS2BorderSpacing::setVerticalSpacing | ( | const unsigned short | verticalType, | |
const float | value | |||
) |
This method is used to set the vertical spacing with a specified unit.
If the horizontal value is not a length, it sets the vertical spacing to 0
.
- Parameters:
-
verticalType The specified unit. value The new value.
- Returns:
- Exceptions:
-
DOMException INVALID_ACCESS_ERR: Raises if the specified unit is not a length or a percentage.
Definition at line 220 of file css_extensions.cpp.
unsigned short CSS2BorderSpacing::verticalType | ( | ) | const |
The A code defining the type of the value as defined in CSSValue
.
It would be one of CSS_EMS
, CSS_EXS
, CSS_PX
, CSS_CM
, CSS_MM
, CSS_IN
, CSS_PT
, CSS_PC
or CSS_INHERIT
.
Definition at line 196 of file css_extensions.cpp.
The documentation for this class was generated from the following files: