Struct xpcom::interfaces::nsIAccessibleTextRange [] [src]

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

interface nsIAccessibleTextRange : nsISupports

/**
 * A range representing a piece of text in the document.
 */

Methods

impl nsIAccessibleTextRange
[src]

[src]

Cast this nsIAccessibleTextRange to one of its base interfaces.

impl nsIAccessibleTextRange
[src]

EndPoint_Start: i64 = 1
/**
   * The two endpoints of the range (starting and ending).
   */

EndPoint_End: i64 = 2

FormatUnit: i64 = 0

WordUnit: i64 = 1

LineUnit: i64 = 2

ParagraphUnit: i64 = 3

PageUnit: i64 = 4

DocumentUnit: i64 = 5

AnimationStyleAttr: i64 = 0
/**
   * Text attributes. Used in conjunction with findAttrs().
   */

AnnotationObjectsAttr: i64 = 1

AnnotationTypesAttr: i64 = 2

BackgroundColorAttr: i64 = 3

BulletStyleAttr: i64 = 4

CapStyleAttr: i64 = 5

CaretBidiModeAttr: i64 = 6

CaretPositionAttr: i64 = 7

CultureAttr: i64 = 8

FontNameAttr: i64 = 9

FontSizeAttr: i64 = 10

FontWeightAttr: i64 = 11

ForegroundColorAttr: i64 = 12

HorizontalTextAlignmentAttr: i64 = 13

IndentationFirstLineAttr: i64 = 14

IndentationLeadingAttr: i64 = 15

IndentationTrailingAttr: i64 = 16

IsActiveAttr: i64 = 17

IsHiddenAttr: i64 = 18

IsItalicAttr: i64 = 19

IsReadOnlyAttr: i64 = 20

IsSubscriptAttr: i64 = 21

IsSuperscriptAttr: i64 = 22

LinkAttr: i64 = 23

MarginBottomAttr: i64 = 24

MarginLeadingAttr: i64 = 25

MarginTopAttr: i64 = 26

MarginTrailingAttr: i64 = 27

OutlineStylesAttr: i64 = 28

OverlineColorAttr: i64 = 29

OverlineStyleAttr: i64 = 30

SelectionActiveEndAttr: i64 = 31

StrikethroughColorAttr: i64 = 32

StrikethroughStyleAttr: i64 = 33

StyleIdAttr: i64 = 34

StyleNameAttr: i64 = 35

TabsAttr: i64 = 36

TextFlowDirectionsAttr: i64 = 37

UnderlineColorAttr: i64 = 38

UnderlineStyleAttr: i64 = 39

AlignToTop: i64 = 0

AlignToBottom: i64 = 1

[src]

readonly attribute nsIAccessibleText startContainer;

[src]

readonly attribute long startOffset;

[src]

readonly attribute nsIAccessibleText endContainer;

[src]

readonly attribute long endOffset;

[src]

/**
   * Return an accessible containing the whole range
   */

readonly attribute nsIAccessible container;

[src]

/**
   * Return embedded children within the range.
   */

readonly attribute nsIArray embeddedChildren;

[src]

/**
   * Return true if this range has the same end points of the given range.
   */

boolean compare (in nsIAccessibleTextRange aOtherRange);

[src]

/**
   * Compare this and given ranges end points.
   *
   * @return -1/0/1 if this range end point is before/equal/after the given
   *          range end point.
   */

long compareEndPoints (in unsigned long aEndPoint, in nsIAccessibleTextRange aOtherRange, in unsigned long aOtherRangeEndPoint);

[src]

/**
   * Return text within the range.
   */

readonly attribute AString text;

[src]

/**
   * Return list of rects of the range.
   */

readonly attribute nsIArray bounds;

[src]

/**
   *  Move the boundary(ies) by the given number of the unit.
   */

void move (in unsigned long aUnit, in long aCount);

[src]

void moveStart (in unsigned long aUnit, in long aCount);

[src]

void moveEnd (in unsigned long aUnit, in long aCount);

[src]

/**
   * Normalize the range to the closest unit of the given type.
   */

void normalize (in unsigned long aUnit);

[src]

/**
   * Crops the range by the given accessible element.
   */

boolean crop (in nsIAccessible aContainer);

[src]

/**
   * Return range enclosing the found text.
   */

nsIAccessibleTextRange findText (in AString aText, in boolean aIsBackward, in boolean aIsIgnoreCase);

[src]

/**
   * Return range enslosing the text having requested attribute.
   */

nsIAccessibleTextRange findAttr (in unsigned long aAttr, in nsIVariant aValue, in boolean aIsBackward);

[src]

/**
   * Add/remove the text range from selection.
   */

void addToSelection ();

[src]

void removeFromSelection ();

[src]

void select ();

[src]

/**
   * Scroll the range into view.
   */

void scrollIntoView (in unsigned long aHow);

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

IID: nsIID = nsID(3293664803, 22009, 17731, [163, 213, 193, 233, 175, 165, 136, 244])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIAccessibleTextRange
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.