Struct xpcom::interfaces::nsITooltipListener
[−]
[src]
#[repr(C)]pub struct nsITooltipListener { /* fields omitted */ }
interface nsITooltipListener : nsISupports
/**
* An optional interface for embedding clients wishing to receive
* notifications for when a tooltip should be displayed or removed.
* The embedder implements this interface on the web browser chrome
* object associated with the window that notifications are required
* for.
*
* @see nsITooltipTextProvider
*/
Methods
impl nsITooltipListener
[src]
pub fn coerce<T: nsITooltipListenerCoerce>(&self) -> &T
[src]
Cast this nsITooltipListener
to one of its base interfaces.
impl nsITooltipListener
[src]
pub unsafe fn OnShowTooltip(
&self,
aXCoords: int32_t,
aYCoords: int32_t,
aTipText: *const int16_t,
aTipDir: *const int16_t
) -> nsresult
[src]
&self,
aXCoords: int32_t,
aYCoords: int32_t,
aTipText: *const int16_t,
aTipDir: *const int16_t
) -> nsresult
/**
* Called when a tooltip should be displayed.
*
* @param aXCoords The tooltip left edge X coordinate.
* @param aYCoords The tooltip top edge Y coordinate.
* @param aTipText The text to display in the tooltip, typically obtained
* from the TITLE attribute of the node (or containing parent)
* over which the pointer has been positioned.
* @param aTipDir The direction (ltr or rtl) in which to display the text
*
* @note
* Coordinates are specified in pixels, relative to the top-left
* corner of the browser area.
*
* @return <code>NS_OK</code> if the tooltip was displayed.
*/
void onShowTooltip (in long aXCoords, in long aYCoords, in wstring aTipText, in wstring aTipDir);
pub unsafe fn OnHideTooltip(&self) -> nsresult
[src]
/**
* Called when the tooltip should be hidden, either because the pointer
* has moved or the tooltip has timed out.
*/
void onHideTooltip ();
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 nsITooltipListener
[src]
const IID: nsIID
IID: nsIID = nsID(1152877446, 7634, 4530, [154, 210, 228, 238, 226, 202, 25, 22])
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 nsITooltipListener
[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 nsITooltipListener
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.