Struct xpcom::interfaces::nsIPlaintextEditor [] [src]

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

interface nsIPlaintextEditor : nsISupports

Methods

impl nsIPlaintextEditor
[src]

[src]

Cast this nsIPlaintextEditor to one of its base interfaces.

impl nsIPlaintextEditor
[src]

eEditorPlaintextMask: i64 = 1

eEditorSingleLineMask: i64 = 2

eEditorPasswordMask: i64 = 4

eEditorReadonlyMask: i64 = 8

eEditorDisabledMask: i64 = 16

eEditorFilterInputMask: i64 = 32

eEditorMailMask: i64 = 64

eEditorEnableWrapHackMask: i64 = 128

eEditorWidgetMask: i64 = 256

eEditorNoCSSMask: i64 = 512

eEditorAllowInteraction: i64 = 1024

eEditorDontEchoPassword: i64 = 2048

eEditorRightToLeft: i64 = 4096

eEditorLeftToRight: i64 = 8192

eEditorSkipSpellCheck: i64 = 16384

eNewlinesPasteIntact: i64 = 0

eNewlinesPasteToFirst: i64 = 1

eNewlinesReplaceWithSpaces: i64 = 2

eNewlinesStrip: i64 = 3

eNewlinesReplaceWithCommas: i64 = 4

eNewlinesStripSurroundingWhitespace: i64 = 5

[src]

/**
    * The length of the contents in characters.
    * XXX change this type to 'unsigned long'
    */

readonly attribute long textLength;

[src]

/**
    * The maximum number of characters allowed.
    *   default: -1 (unlimited).
    */

attribute long maxTextLength;

[src]

/**
    * The maximum number of characters allowed.
    *   default: -1 (unlimited).
    */

attribute long maxTextLength;

[src]

/** Get and set the body wrap width.
    *
    * Special values:
    *    0 = wrap to window width
    *   -1 = no wrap at all
    */

attribute long wrapWidth;

[src]

/** Get and set the body wrap width.
    *
    * Special values:
    *    0 = wrap to window width
    *   -1 = no wrap at all
    */

attribute long wrapWidth;

[src]

/**
   * Similar to the setter for wrapWidth, but just sets the editor
   * internal state without actually changing the content being edited
   * to wrap at that column.  This should only be used by callers who
   * are sure that their content is already set up correctly.
   */

void setWrapColumn (in long aWrapColumn);

[src]

/** Get and set newline handling.
   *
   *  Values are the constants defined above.
   */

attribute long newlineHandling;

[src]

/** Get and set newline handling.
   *
   *  Values are the constants defined above.
   */

attribute long newlineHandling;

[src]

/**
   * Inserts a string at the current location,
   * given by the selection.
   * If the selection is not collapsed, the selection is deleted
   * and the insertion takes place at the resulting collapsed selection.
   *
   * @param aString   the string to be inserted
   */

void insertText (in DOMString aStringToInsert);

[src]

/**
   * Replace existed string with a string.
   * This is fast path to replace all string when using single line control.
   *
   * @ param aString   the string to be set
   */

[noscript] void setText (in DOMString aString);

[src]

/**
   * Insert a line break into the content model.
   * The interpretation of a break is up to the implementation:
   * it may enter a character, split a node in the tree, etc.
   * This may be more efficient than calling InsertText with a newline.
   */

void insertLineBreak ();

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

IID: nsIID = nsID(3075453272, 4709, 16642, [145, 235, 237, 208, 19, 107, 73, 248])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPlaintextEditor
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.