DOM::CSSPrimitiveValue Class Reference
TheCSSPrimitiveValue interface represents a single CSS value .
More...
#include <css_value.h>
Inheritance diagram for DOM::CSSPrimitiveValue:

Public Types | |
| enum | UnitTypes { CSS_UNKNOWN = 0, CSS_NUMBER = 1, CSS_PERCENTAGE = 2, CSS_EMS = 3, CSS_EXS = 4, CSS_PX = 5, CSS_CM = 6, CSS_MM = 7, CSS_IN = 8, CSS_PT = 9, CSS_PC = 10, CSS_DEG = 11, CSS_RAD = 12, CSS_GRAD = 13, CSS_MS = 14, CSS_S = 15, CSS_HZ = 16, CSS_KHZ = 17, CSS_DIMENSION = 18, CSS_STRING = 19, CSS_URI = 20, CSS_IDENT = 21, CSS_ATTR = 22, CSS_COUNTER = 23, CSS_RECT = 24, CSS_RGBCOLOR = 25, CSS_HTML_RELATIVE = 255 } |
Public Member Functions | |
| CSSPrimitiveValue (const CSSPrimitiveValue &other) | |
| CSSPrimitiveValue (const CSSValue &other) | |
| CSSPrimitiveValue (CSSPrimitiveValueImpl *impl) | |
| CSSPrimitiveValue & | operator= (const CSSPrimitiveValue &other) |
| CSSPrimitiveValue & | operator= (const CSSValue &other) |
| unsigned short | primitiveType () const |
| void | setFloatValue (unsigned short unitType, float floatValue) |
| float | getFloatValue (unsigned short unitType) |
| void | setStringValue (unsigned short stringType, const DOM::DOMString &stringValue) |
| DOM::DOMString | getStringValue () |
| Counter | getCounterValue () |
| Rect | getRectValue () |
| RGBColor | getRGBColorValue () |
Detailed Description
TheCSSPrimitiveValue interface represents a single CSS value .
This interface may be used to determine the value of a specific style property currently set in a block or to set a specific style properties explicitly within the block. An instance of this interface can be obtained from the getPropertyCSSValue method of the CSSStyleDeclaration interface.
Definition at line 372 of file css_value.h.
Member Enumeration Documentation
|
|
An integer indicating which type of unit applies to the value.
Reimplemented from DOM::CSSValue. Definition at line 389 of file css_value.h. |
Member Function Documentation
|
|
The type of the value as defined by the constants specified above.
Definition at line 350 of file css_value.cpp. Referenced by getFloatValue(). |
|
||||||||||||
|
A method to set the float value with a specified unit.
If the property attached with this value can not accept the specified unit or the float value, the value will be unchanged and a
Definition at line 356 of file css_value.cpp. |
|
|
This method is used to get a float value in a specified unit.
If this CSS value doesn't contain a float value or can't be converted into the specified unit, a
Definition at line 367 of file css_value.cpp. References primitiveType(). |
|
||||||||||||
|
A method to set the string value with a specified unit.
If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a
Definition at line 376 of file css_value.cpp. |
|
|
This method is used to get the string value in a specified unit.
If the CSS value doesn't contain a string value, a
Definition at line 388 of file css_value.cpp. |
|
|
This method is used to get the Counter value.
If this CSS value doesn't contain a counter value, a
Definition at line 394 of file css_value.cpp. |
|
|
This method is used to get the Rect value.
If this CSS value doesn't contain a rect value, a
Definition at line 400 of file css_value.cpp. |
|
|
This method is used to get the RGB color.
If this CSS value doesn't contain a RGB color value, a
Definition at line 406 of file css_value.cpp. |
The documentation for this class was generated from the following files:
