Struct xpcom::interfaces::nsIDOMCSSPrimitiveValue [] [src]

#[repr(C)]
pub struct nsIDOMCSSPrimitiveValue { /* fields omitted */ }

interface nsIDOMCSSPrimitiveValue : nsIDOMCSSValue

Methods

impl nsIDOMCSSPrimitiveValue
[src]

[src]

Cast this nsIDOMCSSPrimitiveValue to one of its base interfaces.

impl nsIDOMCSSPrimitiveValue
[src]

CSS_UNKNOWN: i64 = 0
/**
 * 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
 */

CSS_NUMBER: i64 = 1

CSS_PERCENTAGE: i64 = 2

CSS_EMS: i64 = 3

CSS_EXS: i64 = 4

CSS_PX: i64 = 5

CSS_CM: i64 = 6

CSS_MM: i64 = 7

CSS_IN: i64 = 8

CSS_PT: i64 = 9

CSS_PC: i64 = 10

CSS_DEG: i64 = 11

CSS_RAD: i64 = 12

CSS_GRAD: i64 = 13

CSS_MS: i64 = 14

CSS_S: i64 = 15

CSS_HZ: i64 = 16

CSS_KHZ: i64 = 17

CSS_DIMENSION: i64 = 18

CSS_STRING: i64 = 19

CSS_URI: i64 = 20

CSS_IDENT: i64 = 21

CSS_ATTR: i64 = 22

CSS_COUNTER: i64 = 23

CSS_RECT: i64 = 24

CSS_RGBCOLOR: i64 = 25

[src]

readonly attribute unsigned short primitiveType;

[src]

void setFloatValue (in unsigned short unitType, in float floatValue) raises (DOMException);

[src]

float getFloatValue (in unsigned short unitType) raises (DOMException);

[src]

void setStringValue (in unsigned short stringType, in DOMString stringValue) raises (DOMException);

[src]

DOMString getStringValue () raises (DOMException);

[src]

nsIDOMCounter getCounterValue () raises (DOMException);

[src]

nsIDOMRect getRectValue () raises (DOMException);

Methods from Deref<Target = nsIDOMCSSValue>

[src]

Cast this nsIDOMCSSValue to one of its base interfaces.

[src]

attribute DOMString cssText;

[src]

attribute DOMString cssText;

[src]

readonly attribute unsigned short cssValueType;

Trait Implementations

impl XpCom for nsIDOMCSSPrimitiveValue
[src]

IID: nsIID = nsID(4141838995, 11721, 19641, [149, 49, 119, 140, 175, 67, 112, 224])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIDOMCSSPrimitiveValue
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMCSSPrimitiveValue
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.