Struct xpcom::interfaces::nsIDOMCSSPrimitiveValue
[−]
[src]
#[repr(C)]pub struct nsIDOMCSSPrimitiveValue { /* fields omitted */ }
interface nsIDOMCSSPrimitiveValue : nsIDOMCSSValue
Methods
impl nsIDOMCSSPrimitiveValue
[src]
pub fn coerce<T: nsIDOMCSSPrimitiveValueCoerce>(&self) -> &T
[src]
Cast this nsIDOMCSSPrimitiveValue
to one of its base interfaces.
impl nsIDOMCSSPrimitiveValue
[src]
pub const CSS_UNKNOWN: i64
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
*/
pub const CSS_NUMBER: i64
CSS_NUMBER: i64 = 1
pub const CSS_PERCENTAGE: i64
CSS_PERCENTAGE: i64 = 2
pub const CSS_EMS: i64
CSS_EMS: i64 = 3
pub const CSS_EXS: i64
CSS_EXS: i64 = 4
pub const CSS_PX: i64
CSS_PX: i64 = 5
pub const CSS_CM: i64
CSS_CM: i64 = 6
pub const CSS_MM: i64
CSS_MM: i64 = 7
pub const CSS_IN: i64
CSS_IN: i64 = 8
pub const CSS_PT: i64
CSS_PT: i64 = 9
pub const CSS_PC: i64
CSS_PC: i64 = 10
pub const CSS_DEG: i64
CSS_DEG: i64 = 11
pub const CSS_RAD: i64
CSS_RAD: i64 = 12
pub const CSS_GRAD: i64
CSS_GRAD: i64 = 13
pub const CSS_MS: i64
CSS_MS: i64 = 14
pub const CSS_S: i64
CSS_S: i64 = 15
pub const CSS_HZ: i64
CSS_HZ: i64 = 16
pub const CSS_KHZ: i64
CSS_KHZ: i64 = 17
pub const CSS_DIMENSION: i64
CSS_DIMENSION: i64 = 18
pub const CSS_STRING: i64
CSS_STRING: i64 = 19
pub const CSS_URI: i64
CSS_URI: i64 = 20
pub const CSS_IDENT: i64
CSS_IDENT: i64 = 21
pub const CSS_ATTR: i64
CSS_ATTR: i64 = 22
pub const CSS_COUNTER: i64
CSS_COUNTER: i64 = 23
pub const CSS_RECT: i64
CSS_RECT: i64 = 24
pub const CSS_RGBCOLOR: i64
CSS_RGBCOLOR: i64 = 25
pub unsafe fn GetPrimitiveType(&self, aPrimitiveType: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short primitiveType;
pub unsafe fn SetFloatValue(
&self,
unitType: uint16_t,
floatValue: c_float
) -> nsresult
[src]
&self,
unitType: uint16_t,
floatValue: c_float
) -> nsresult
void setFloatValue (in unsigned short unitType, in float floatValue) raises (DOMException);
pub unsafe fn GetFloatValue(
&self,
unitType: uint16_t,
_retval: *mut c_float
) -> nsresult
[src]
&self,
unitType: uint16_t,
_retval: *mut c_float
) -> nsresult
float getFloatValue (in unsigned short unitType) raises (DOMException);
pub unsafe fn SetStringValue(
&self,
stringType: uint16_t,
stringValue: &nsAString
) -> nsresult
[src]
&self,
stringType: uint16_t,
stringValue: &nsAString
) -> nsresult
void setStringValue (in unsigned short stringType, in DOMString stringValue) raises (DOMException);
pub unsafe fn GetStringValue(&self, _retval: &mut nsAString) -> nsresult
[src]
DOMString getStringValue () raises (DOMException);
pub unsafe fn GetCounterValue(
&self,
_retval: *mut *const nsIDOMCounter
) -> nsresult
[src]
&self,
_retval: *mut *const nsIDOMCounter
) -> nsresult
nsIDOMCounter getCounterValue () raises (DOMException);
pub unsafe fn GetRectValue(&self, _retval: *mut *const nsIDOMRect) -> nsresult
[src]
nsIDOMRect getRectValue () raises (DOMException);
Methods from Deref<Target = nsIDOMCSSValue>
pub fn coerce<T: nsIDOMCSSValueCoerce>(&self) -> &T
[src]
Cast this nsIDOMCSSValue
to one of its base interfaces.
pub const CSS_INHERIT: i64
pub const CSS_PRIMITIVE_VALUE: i64
pub const CSS_VALUE_LIST: i64
pub const CSS_CUSTOM: i64
pub unsafe fn GetCssText(&self, aCssText: &mut nsAString) -> nsresult
[src]
attribute DOMString cssText;
pub unsafe fn SetCssText(&self, aCssText: &nsAString) -> nsresult
[src]
attribute DOMString cssText;
pub unsafe fn GetCssValueType(&self, aCssValueType: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short cssValueType;
Trait Implementations
impl XpCom for nsIDOMCSSPrimitiveValue
[src]
const IID: nsIID
IID: nsIID = nsID(4141838995, 11721, 19641, [149, 49, 119, 140, 175, 67, 112, 224])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDOMCSSPrimitiveValue
[src]
type Target = nsIDOMCSSValue
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMCSSValue
[src]
Dereferences the value.