API reference - Class QInputMethodEvent

Notation used in Ruby API documentation

Description: Binding of QInputMethodEvent

Class hierarchy: QInputMethodEvent » QEvent

Public constructors

new QInputMethodEventnewConstructor QInputMethodEvent::QInputMethodEvent()
new QInputMethodEventnew(string preeditText,
QInputMethodEvent_Attribute[] attributes)
Constructor QInputMethodEvent::QInputMethodEvent(const QString &preeditText, const QList<QInputMethodEvent::Attribute> &attributes)
new QInputMethodEventnew(const QInputMethodEvent other)Constructor QInputMethodEvent::QInputMethodEvent(const QInputMethodEvent &other)

Public methods

[const]voidassign(const QInputMethodEvent other)Assign the contents of another object to self
[const]QInputMethodEvent_Attribute[]attributesMethod const QList<QInputMethodEvent::Attribute> &QInputMethodEvent::attributes()
[const]stringcommitStringMethod const QString &QInputMethodEvent::commitString()
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QInputMethodEventdupCreates a copy of self
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]stringpreeditStringMethod const QString &QInputMethodEvent::preeditString()
[const]intreplacementLengthMethod int QInputMethodEvent::replacementLength()
[const]intreplacementStartMethod int QInputMethodEvent::replacementStart()
voidsetCommitString(string commitString,
int replaceFrom = 0,
int replaceLength = 0)
Method void QInputMethodEvent::setCommitString(const QString &commitString, int replaceFrom, int replaceLength)

Public static methods and constants

QInputMethodEvent_AttributeTypeCursorEnum constant QInputMethodEvent::Cursor
QInputMethodEvent_AttributeTypeLanguageEnum constant QInputMethodEvent::Language
QInputMethodEvent_AttributeTypeRubyEnum constant QInputMethodEvent::Ruby
QInputMethodEvent_AttributeTypeSelectionEnum constant QInputMethodEvent::Selection
QInputMethodEvent_AttributeTypeTextFormatEnum constant QInputMethodEvent::TextFormat

Detailed description

[static] QInputMethodEvent_AttributeType Cursor

Description: Enum constant QInputMethodEvent::Cursor

[static] QInputMethodEvent_AttributeType Language

Description: Enum constant QInputMethodEvent::Language

[static] QInputMethodEvent_AttributeType Ruby

Description: Enum constant QInputMethodEvent::Ruby

[static] QInputMethodEvent_AttributeType Selection

Description: Enum constant QInputMethodEvent::Selection

[static] QInputMethodEvent_AttributeType TextFormat

Description: Enum constant QInputMethodEvent::TextFormat

[const] void assign(const QInputMethodEvent other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

[const] QInputMethodEvent_Attribute[] attributes

Description: Method const QList<QInputMethodEvent::Attribute> &QInputMethodEvent::attributes()

[const] string commitString

Description: Method const QString &QInputMethodEvent::commitString()

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QInputMethodEvent dup

Description: Creates a copy of self

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[static] new QInputMethodEvent new

Description: Constructor QInputMethodEvent::QInputMethodEvent()

This method creates an object of class QInputMethodEvent.

[static] new QInputMethodEvent new(string preeditText,QInputMethodEvent_Attribute[] attributes)

Description: Constructor QInputMethodEvent::QInputMethodEvent(const QString &preeditText, const QList<QInputMethodEvent::Attribute> &attributes)

This method creates an object of class QInputMethodEvent.

[static] new QInputMethodEvent new(const QInputMethodEvent other)

Description: Constructor QInputMethodEvent::QInputMethodEvent(const QInputMethodEvent &other)

This method creates an object of class QInputMethodEvent.

[const] string preeditString

Description: Method const QString &QInputMethodEvent::preeditString()

[const] int replacementLength

Description: Method int QInputMethodEvent::replacementLength()

[const] int replacementStart

Description: Method int QInputMethodEvent::replacementStart()

void setCommitString(string commitString,int replaceFrom = 0,int replaceLength = 0)

Description: Method void QInputMethodEvent::setCommitString(const QString &commitString, int replaceFrom, int replaceLength)