Struct xpcom::interfaces::nsIClipboardCommands
[−]
[src]
#[repr(C)]pub struct nsIClipboardCommands { /* fields omitted */ }
interface nsIClipboardCommands : nsISupports
/**
* An interface for embedding clients who wish to interact with
* the system-wide OS clipboard. Mozilla does not use a private
* clipboard, instead it places its data directly onto the system
* clipboard. The webshell implements this interface.
*/
Methods
impl nsIClipboardCommands
[src]
pub fn coerce<T: nsIClipboardCommandsCoerce>(&self) -> &T
[src]
Cast this nsIClipboardCommands
to one of its base interfaces.
impl nsIClipboardCommands
[src]
pub unsafe fn CanCutSelection(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Returns whether there is a selection and it is not read-only.
*
* @return <code>true</code> if the current selection can be cut,
* <code>false</code> otherwise.
*/
boolean canCutSelection ();
pub unsafe fn CanCopySelection(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Returns whether there is a selection and it is copyable.
*
* @return <code>true</code> if there is a selection,
* <code>false</code> otherwise.
*/
boolean canCopySelection ();
pub unsafe fn CanCopyLinkLocation(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Returns whether we can copy a link location.
*
* @return <code>true</code> if a link is selected,
* <code>false</code> otherwise.
*/
boolean canCopyLinkLocation ();
pub unsafe fn CanCopyImageLocation(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Returns whether we can copy an image location.
*
* @return <code>true</code> if an image is selected,
<code>false</code> otherwise.
*/
boolean canCopyImageLocation ();
pub unsafe fn CanCopyImageContents(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Returns whether we can copy an image's contents.
*
* @return <code>true</code> if an image is selected,
* <code>false</code> otherwise
*/
boolean canCopyImageContents ();
pub unsafe fn CanPaste(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Returns whether the current contents of the clipboard can be
* pasted and if the current selection is not read-only.
*
* @return <code>true</code> there is data to paste on the clipboard
* and the current selection is not read-only,
* <code>false</code> otherwise
*/
boolean canPaste ();
pub unsafe fn CutSelection(&self) -> nsresult
[src]
/**
* Cut the current selection onto the clipboard.
*/
void cutSelection ();
pub unsafe fn CopySelection(&self) -> nsresult
[src]
/**
* Copy the current selection onto the clipboard.
*/
void copySelection ();
pub unsafe fn CopyLinkLocation(&self) -> nsresult
[src]
/**
* Copy the link location of the current selection (e.g.,
* the |href| attribute of a selected |a| tag).
*/
void copyLinkLocation ();
pub unsafe fn CopyImageLocation(&self) -> nsresult
[src]
/**
* Copy the location of the selected image.
*/
void copyImageLocation ();
pub unsafe fn CopyImageContents(&self) -> nsresult
[src]
/**
* Copy the contents of the selected image.
*/
void copyImageContents ();
pub unsafe fn Paste(&self) -> nsresult
[src]
/**
* Paste the contents of the clipboard into the current selection.
*/
void paste ();
pub unsafe fn SelectAll(&self) -> nsresult
[src]
/**
* Select the entire contents.
*/
void selectAll ();
pub unsafe fn SelectNone(&self) -> nsresult
[src]
/**
* Clear the current selection (if any). Insertion point ends up
* at beginning of current selection.
*/
void selectNone ();
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 nsIClipboardCommands
[src]
const IID: nsIID
IID: nsIID = nsID(3088059536, 29630, 4562, [146, 165, 0, 16, 90, 27, 13, 100])
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 nsIClipboardCommands
[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 nsIClipboardCommands
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.