Struct xpcom::interfaces::nsIStyleSheetService
[−]
[src]
#[repr(C)]pub struct nsIStyleSheetService { /* fields omitted */ }
interface nsIStyleSheetService : nsISupports
Methods
impl nsIStyleSheetService
[src]
pub fn coerce<T: nsIStyleSheetServiceCoerce>(&self) -> &T
[src]
Cast this nsIStyleSheetService
to one of its base interfaces.
impl nsIStyleSheetService
[src]
pub const AGENT_SHEET: i64
AGENT_SHEET: i64 = 0
pub const USER_SHEET: i64
USER_SHEET: i64 = 1
pub const AUTHOR_SHEET: i64
AUTHOR_SHEET: i64 = 2
pub unsafe fn LoadAndRegisterSheet(
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
[src]
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
/**
* Synchronously loads a style sheet from |sheetURI| and adds it to the list
* of user or agent style sheets.
*
* A user sheet loaded via this API will come before userContent.css and
* userChrome.css in the cascade (so the rules in it will have lower
* precedence than rules in those sheets).
*
* An agent sheet loaded via this API will come after ua.css in the cascade
* (so the rules in it will have higher precedence than rules in ua.css).
*
* The relative ordering of two user or two agent sheets loaded via
* this API is undefined.
*
* Sheets added via this API take effect on all documents, including
* already-loaded ones, immediately.
*/
void loadAndRegisterSheet (in nsIURI sheetURI, in unsigned long type);
pub unsafe fn SheetRegistered(
&self,
sheetURI: *const nsIURI,
type_: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
sheetURI: *const nsIURI,
type_: uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Returns true if a style sheet at |sheetURI| has previously been
* added to the list of style sheets specified by |type|.
*/
boolean sheetRegistered (in nsIURI sheetURI, in unsigned long type);
pub unsafe fn PreloadSheet(
&self,
sheetURI: *const nsIURI,
type_: uint32_t,
_retval: *mut *const nsIPreloadedStyleSheet
) -> nsresult
[src]
&self,
sheetURI: *const nsIURI,
type_: uint32_t,
_retval: *mut *const nsIPreloadedStyleSheet
) -> nsresult
/**
* Synchronously loads a style sheet from |sheetURI| and returns the
* new style sheet object. Can be used with nsIDOMWindowUtils.addSheet.
*/
nsIPreloadedStyleSheet preloadSheet (in nsIURI sheetURI, in unsigned long type);
pub unsafe fn UnregisterSheet(
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
[src]
&self,
sheetURI: *const nsIURI,
type_: uint32_t
) -> nsresult
/**
* Remove the style sheet at |sheetURI| from the list of style sheets
* specified by |type|. The removal takes effect immediately, even for
* already-loaded documents.
*/
void unregisterSheet (in nsIURI sheetURI, in unsigned long type);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIStyleSheetService
[src]
const IID: nsIID
IID: nsIID = nsID(1306953878, 59627, 16862, [130, 55, 167, 151, 181, 112, 172, 74])
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 nsIStyleSheetService
[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 nsIStyleSheetService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.