Struct xpcom::interfaces::nsIFeedTextConstruct
[−]
[src]
#[repr(C)]pub struct nsIFeedTextConstruct { /* fields omitted */ }
interface nsIFeedTextConstruct : nsISupports
/**
* nsIFeedTextConstructs represent feed text fields that can contain
* one of text, HTML, or XHTML. Some extension elements also have "type"
* parameters, and this interface could be used there as well.
*/
Methods
impl nsIFeedTextConstruct
[src]
pub fn coerce<T: nsIFeedTextConstructCoerce>(&self) -> &T
[src]
Cast this nsIFeedTextConstruct
to one of its base interfaces.
impl nsIFeedTextConstruct
[src]
pub unsafe fn GetBase(&self, aBase: *mut *const nsIURI) -> nsresult
[src]
/**
* If the text construct contains (X)HTML, relative references in
* the content should be resolved against this base URI.
*/
attribute nsIURI base;
pub unsafe fn SetBase(&self, aBase: *const nsIURI) -> nsresult
[src]
/**
* If the text construct contains (X)HTML, relative references in
* the content should be resolved against this base URI.
*/
attribute nsIURI base;
pub unsafe fn GetLang(&self, aLang: &mut nsAString) -> nsresult
[src]
/**
* The language of the text. For example, "en-US" for US English.
*/
attribute AString lang;
pub unsafe fn SetLang(&self, aLang: &nsAString) -> nsresult
[src]
/**
* The language of the text. For example, "en-US" for US English.
*/
attribute AString lang;
pub unsafe fn GetType(&self, aType: &mut nsAString) -> nsresult
[src]
/**
* One of "text", "html", or "xhtml". If the type is (x)html, a '<'
* character represents markup. To display that character, an escape
* such as < must be used. If the type is "text", the '<'
* character represents the character itself, and such text should
* not be embedded in markup without escaping it first.
*/
attribute AString type;
pub unsafe fn SetType(&self, aType: &nsAString) -> nsresult
[src]
/**
* One of "text", "html", or "xhtml". If the type is (x)html, a '<'
* character represents markup. To display that character, an escape
* such as < must be used. If the type is "text", the '<'
* character represents the character itself, and such text should
* not be embedded in markup without escaping it first.
*/
attribute AString type;
pub unsafe fn GetText(&self, aText: &mut nsAString) -> nsresult
[src]
/**
* The content of the text construct.
*/
attribute AString text;
pub unsafe fn SetText(&self, aText: &nsAString) -> nsresult
[src]
/**
* The content of the text construct.
*/
attribute AString text;
pub unsafe fn PlainText(&self, _retval: &mut nsAString) -> nsresult
[src]
/**
* Returns the text of the text construct, with all markup stripped
* and all entities decoded. If the type attribute's value is "text",
* this function returns the value of the text attribute unchanged.
*/
AString plainText ();
pub unsafe fn CreateDocumentFragment(
&self,
element: *const nsIDOMElement,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
[src]
&self,
element: *const nsIDOMElement,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
/**
* Return an nsIDocumentFragment containing the text and markup.
*/
nsIDOMDocumentFragment createDocumentFragment (in nsIDOMElement element);
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 nsIFeedTextConstruct
[src]
const IID: nsIID
IID: nsIID = nsID(4237796009, 54857, 17556, [147, 30, 219, 129, 161, 86, 200, 115])
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 nsIFeedTextConstruct
[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 nsIFeedTextConstruct
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.