DOM::CSS2BackgroundPosition Class Reference
The CSS2BackgroundPosition
interface represents the background-position CSS Level 2 property.
More...
#include <css_extensions.h>
Inheritance diagram for DOM::CSS2BackgroundPosition:

Public Methods | |
unsigned short | horizontalType () const |
A code defining the type of the horizontal value. | |
unsigned short | verticalType () const |
A code defining the type of the horizontal value. | |
DOM::DOMString | horizontalIdentifier () const |
If horizontalType is CSS_IDENT or CSS_INHERIT , this attribute contains the string representation of the ident, otherwise it contains an empty string. | |
DOM::DOMString | verticalIdentifier () const |
If verticalType is CSS_IDENT or CSS_INHERIT , this attribute contains the string representation of the ident, otherwise it contains an empty string. | |
float | getHorizontalPosition (const float horizontalType) |
This method is used to get the float value in a specified unit if the horizontalPosition represents a length or a percentage. | |
float | getVerticalPosition (const float verticalType) |
This method is used to get the float value in a specified unit if the verticalPosition represents a length or a percentage. | |
void | setHorizontalPosition (const unsigned short horizontalType, const float value) |
This method is used to set the horizontal position with a specified unit. | |
void | setVerticalPosition (const unsigned short verticalType, const float value) |
This method is used to set the vertical position with a specified unit. | |
void | setPositionIdentifier (const DOM::DOMString &horizontalIdentifier, const DOM::DOMString &verticalIdentifier) |
Sets the identifiers. |
Detailed Description
The CSS2BackgroundPosition
interface represents the background-position CSS Level 2 property.
Definition at line 147 of file css_extensions.h.
Member Function Documentation
|
A code defining the type of the horizontal value.
It would be one Definition at line 113 of file css_extensions.cpp. Referenced by getHorizontalPosition(), and setHorizontalPosition(). |
|
A code defining the type of the horizontal value.
The code can be one of the following units : Definition at line 119 of file css_extensions.cpp. Referenced by getVerticalPosition(), and setVerticalPosition(). |
|
If
Definition at line 125 of file css_extensions.cpp. |
|
If
The value is Definition at line 131 of file css_extensions.cpp. |
|
This method is used to get the float value in a specified unit if the
If the float doesn't contain a float value or can't be converted into the specified unit, a
Definition at line 137 of file css_extensions.cpp. References horizontalType(). |
|
This method is used to get the float value in a specified unit if the
If the float doesn't contain a float value or can't be converted into the specified unit, a
Definition at line 143 of file css_extensions.cpp. References verticalType(). |
|
This method is used to set the horizontal position with a specified unit.
If the vertical value is not a percentage or a length, it sets the vertical position to
Definition at line 149 of file css_extensions.cpp. References horizontalType(). |
|
This method is used to set the vertical position with a specified unit.
If the horizontal value is not a percentage or a length, it sets the vertical position to
Definition at line 155 of file css_extensions.cpp. References verticalType(). |
|
Sets the identifiers.
If the second identifier is the empty string, the vertical identifier is set to his default value (
Definition at line 161 of file css_extensions.cpp. |
The documentation for this class was generated from the following files: