nsIDOMCSSPrimitiveValue
| IID: | e249031f-8df9-4e7a-b644-18946dce0019 |
| Inherits From: | nsIDOMCSSValue |
Constants
| The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive
CSS value in the Document Object Model.
For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Style | ||
| PRUint16 | CSS_UNKNOWN | = 0 |
| PRUint16 | CSS_NUMBER | = 1 |
| PRUint16 | CSS_PERCENTAGE | = 2 |
| PRUint16 | CSS_EMS | = 3 |
| PRUint16 | CSS_EXS | = 4 |
| PRUint16 | CSS_PX | = 5 |
| PRUint16 | CSS_CM | = 6 |
| PRUint16 | CSS_MM | = 7 |
| PRUint16 | CSS_IN | = 8 |
| PRUint16 | CSS_PT | = 9 |
| PRUint16 | CSS_PC | = 10 |
| PRUint16 | CSS_DEG | = 11 |
| PRUint16 | CSS_RAD | = 12 |
| PRUint16 | CSS_GRAD | = 13 |
| PRUint16 | CSS_MS | = 14 |
| PRUint16 | CSS_S | = 15 |
| PRUint16 | CSS_HZ | = 16 |
| PRUint16 | CSS_KHZ | = 17 |
| PRUint16 | CSS_DIMENSION | = 18 |
| PRUint16 | CSS_STRING | = 19 |
| PRUint16 | CSS_URI | = 20 |
| PRUint16 | CSS_IDENT | = 21 |
| PRUint16 | CSS_ATTR | = 22 |
| PRUint16 | CSS_COUNTER | = 23 |
| PRUint16 | CSS_RECT | = 24 |
| PRUint16 | CSS_RGBCOLOR | = 25 |
Properties
readonly PRUint16 primitiveType
Methods
nsIDOMCounter getCounterValue ( )
float getFloatValue ( PRUint16 unitType )
nsIDOMRect getRectValue ( )
nsIDOMRGBColor getRGBColorValue ( )
DOMString getStringValue ( )
void setFloatValue ( PRUint16 unitType , float floatValue )
void setStringValue ( PRUint16 stringType , DOMString stringValue )
nsIDOMCounter getCounterValue ( )
nsIDOMRect getRectValue ( )
nsIDOMRGBColor getRGBColorValue ( )
void setStringValue ( PRUint16 stringType , DOMString stringValue )
- Arguments:
- stringType
- stringValue
References
This interface is the type of the following properties:
nsIDOMNSRGBAColor.alpha, nsIDOMRGBColor.blue, nsIDOMRGBColor.green, nsIDOMRGBColor.red, nsIDOMRect.bottom, nsIDOMRect.left, nsIDOMRect.right, nsIDOMRect.top
Reference documentation is generated from Mozilla's source.
