Struct xpcom::interfaces::nsISelectionPrivate [] [src]

#[repr(C)]
pub struct nsISelectionPrivate { /* fields omitted */ }

interface nsISelectionPrivate : nsISupports

Methods

impl nsISelectionPrivate
[src]

[src]

Cast this nsISelectionPrivate to one of its base interfaces.

impl nsISelectionPrivate
[src]

ENDOFPRECEDINGLINE: i64 = 0

STARTOFNEXTLINE: i64 = 1

TABLESELECTION_NONE: i64 = 0

TABLESELECTION_CELL: i64 = 1

TABLESELECTION_ROW: i64 = 2

TABLESELECTION_COLUMN: i64 = 3

TABLESELECTION_TABLE: i64 = 4

TABLESELECTION_ALLCELLS: i64 = 5

[src]

attribute boolean interlinePosition;

[src]

attribute boolean interlinePosition;

[src]

[noscript] attribute nsIContent ancestorLimiter;

[src]

[noscript] attribute nsIContent ancestorLimiter;

[src]

DOMString toStringWithFormat (in string formatType, in unsigned long flags, in int32_t wrapColumn);

[src]

void addSelectionListener (in nsISelectionListener newListener);

[src]

void removeSelectionListener (in nsISelectionListener listenerToRemove);

[src]

/** Test if supplied range points to a single table element:
      *    Result is one of above constants. "None" means
      *    a table element isn't selected.
      */

[noscript] long getTableSelectionType (in nsIDOMRange range);

[src]

[noscript] attribute boolean canCacheFrameOffset;

[src]

[noscript] attribute boolean canCacheFrameOffset;

[src]

/**
     * Returns the type of the selection (see nsISelectionController for
     * available constants).
     */

readonly attribute short type;

[src]

/**
     * Return array of ranges intersecting with the given DOM interval.
     */

void GetRangesForInterval (in nsIDOMNode beginNode, in int32_t beginOffset, in nsIDOMNode endNode, in int32_t endOffset, in boolean allowAdjacent, out uint32_t resultCount, [array, size_is (resultCount), retval] out nsIDOMRange results);

[src]

/**
     * Scrolls a region of the selection, so that it is visible in
     * the scrolled view.
     *
     * @param aRegion - the region inside the selection to scroll into view
     *                  (see selection region constants defined in
     *                   nsISelectionController).
     * @param aIsSynchronous - when true, scrolls the selection into view
     *                         before returning. If false, posts a request which
     *                         is processed at some point after the method returns.
     * @param aVPercent - how to align the frame vertically.
     * @param aHPercent - how to align the frame horizontally.
     */

void scrollIntoView (in short aRegion, in boolean aIsSynchronous, in int16_t aVPercent, in int16_t aHPercent);

[src]

/**
     * Modifies the cursor Bidi level after a change in keyboard direction
     * @param langRTL is PR_TRUE if the new language is right-to-left or
     *                PR_FALSE if the new language is left-to-right.
     */

[noscript] void selectionLanguageChange (in boolean langRTL);

[src]

/**
     * setColors() sets custom colors for the selection.
     * Currently, this is supported only when the selection type is SELECTION_FIND.
     * Otherwise, throws an exception.
     *
     * @param aForegroundColor     The foreground color of the selection.
     *                             If this is "currentColor", foreground color
     *                             isn't changed by this selection.
     * @param aBackgroundColor     The background color of the selection.
     *                             If this is "transparent", background color is
     *                             never painted.
     * @param aAltForegroundColor  The alternative foreground color of the
     *                             selection.
     *                             If aBackgroundColor doesn't have sufficient
     *                             contrast with its around or foreground color
     *                             if "currentColor" is specified, alternative
     *                             colors are used if it have higher contrast.
     * @param aAltBackgroundColor  The alternative background color of the
     *                             selection.
     */

void setColors (in DOMString aForegroundColor, in DOMString aBackgroundColor, in DOMString aAltForegroundColor, in DOMString aAltBackgroundColor);

[src]

/**
     * resetColors() forget the customized colors which were set by setColors().
     */

void resetColors ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsISelectionPrivate
[src]

IID: nsIID = nsID(211767156, 61054, 20457, [190, 107, 11, 168, 86, 54, 129, 120])

[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 nsISelectionPrivate
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISelectionPrivate
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.