Struct xpcom::interfaces::nsIEditorStyleSheets
[−]
[src]
#[repr(C)]pub struct nsIEditorStyleSheets { /* fields omitted */ }
interface nsIEditorStyleSheets : nsISupports
Methods
impl nsIEditorStyleSheets
[src]
pub fn coerce<T: nsIEditorStyleSheetsCoerce>(&self) -> &T
[src]
Cast this nsIEditorStyleSheets
to one of its base interfaces.
impl nsIEditorStyleSheets
[src]
pub unsafe fn ReplaceStyleSheet(&self, aURL: &nsAString) -> nsresult
[src]
/** Load and apply the style sheet, specified by aURL, to the
* editor's document, replacing the last style sheet added (if any).
* This is always asynchronous, and may cause network I/O.
*
* @param aURL The style sheet to be loaded and applied.
*/
void replaceStyleSheet (in AString aURL);
pub unsafe fn AddStyleSheet(&self, aURL: &nsAString) -> nsresult
[src]
/** Add the given style sheet to the editor's document,
* on top of any that are already there.
* This is always asynchronous, and may cause network I/O.
*
* @param aURL The style sheet to be loaded and applied.
*/
void addStyleSheet (in AString aURL);
pub unsafe fn ReplaceOverrideStyleSheet(&self, aURL: &nsAString) -> nsresult
[src]
/** Load and apply the override style sheet, specified by aURL, to the
* editor's document, replacing the last override style sheet added (if any).
* This is always synchronous, so aURL should be a local file with only
* local @imports. This action is not undoable. It is not intended for
* "user" style sheets, only for editor developers to add sheets to change
* display behavior for editing (like showing special cursors) that will
* not be affected by loading "document" style sheets with addStyleSheet or
* especially replaceStyleSheet.
*
* @param aURL The style sheet to be loaded and applied.
*/
void replaceOverrideStyleSheet (in AString aURL);
pub unsafe fn AddOverrideStyleSheet(&self, aURL: &nsAString) -> nsresult
[src]
/** Load and apply an override style sheet, specified by aURL, to
* the editor's document, on top of any that are already there.
* This is always synchronous, so the same caveats about local files and no
* non-local @import as replaceOverrideStyleSheet apply here, too.
*
* @param aURL The style sheet to be loaded and applied.
*/
void addOverrideStyleSheet (in AString aURL);
pub unsafe fn RemoveStyleSheet(&self, aURL: &nsAString) -> nsresult
[src]
/** Remove the given style sheet from the editor's document
* This is always synchronous
*
* @param aURL The style sheet to be removed
*/
void removeStyleSheet (in AString aURL);
pub unsafe fn RemoveOverrideStyleSheet(&self, aURL: &nsAString) -> nsresult
[src]
/** Remove the given override style sheet from the editor's document
* This is always synchronous
*
* @param aURL The style sheet to be removed.
*/
void removeOverrideStyleSheet (in AString aURL);
pub unsafe fn EnableStyleSheet(
&self,
aURL: &nsAString,
aEnable: bool
) -> nsresult
[src]
&self,
aURL: &nsAString,
aEnable: bool
) -> nsresult
/** Enable or disable the given style sheet from the editor's document
* This is always synchronous
*
* @param aURL The style sheet to be enabled or disabled
* @param aEnable true to enable, or false to disable the style sheet
*/
void enableStyleSheet (in AString aURL, in boolean aEnable);
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 nsIEditorStyleSheets
[src]
const IID: nsIID
IID: nsIID = nsID(1208346242, 18873, 4563, [156, 228, 237, 96, 189, 108, 181, 188])
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 nsIEditorStyleSheets
[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 nsIEditorStyleSheets
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.