DOM::CSSPrimitiveValue Class Reference
The CSSPrimitiveValue
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 } |
An integer indicating which type of unit applies to the value. More... | |
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 |
The type of the value as defined by the constants specified above. | |
void | setFloatValue (unsigned short unitType, float floatValue) |
A method to set the float value with a specified unit. | |
float | getFloatValue (unsigned short unitType) |
This method is used to get a float value in a specified unit. | |
void | setStringValue (unsigned short stringType, const DOM::DOMString &stringValue) |
A method to set the string value with a specified unit. | |
DOM::DOMString | getStringValue () |
This method is used to get the string value in a specified unit. | |
Counter | getCounterValue () |
This method is used to get the Counter value. | |
Rect | getRectValue () |
This method is used to get the Rect value. | |
RGBColor | getRGBColorValue () |
This method is used to get the RGB color. |
Detailed Description
The CSSPrimitiveValue
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 371 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 388 of file css_value.h. |
Member Function Documentation
|
The type of the value as defined by the constants specified above.
Definition at line 352 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 358 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 369 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 378 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 390 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 396 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 402 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 408 of file css_value.cpp. |
The documentation for this class was generated from the following files: