API reference - Class QFontDatabase_WritingSystem

Notation used in Ruby API documentation

Module: QtGui

Description: This class represents the QFontDatabase::WritingSystem enum

This class is equivalent to the class QFontDatabase::WritingSystem

Public constructors

new QFontDatabase_WritingSystem ptrnew(int i)Creates an enum from an integer value
new QFontDatabase_WritingSystem ptrnew(string s)Creates an enum from a string value

Public methods

[const]bool!=(const QFontDatabase_WritingSystem other)Compares two enums for inequality
[const]bool!=(int other)Compares an enum with an integer for inequality
[const]bool<(const QFontDatabase_WritingSystem other)Returns true if the first enum is less (in the enum symbol order) than the second
[const]bool<(int other)Returns true if the enum is less (in the enum symbol order) than the integer value
[const]bool==(const QFontDatabase_WritingSystem other)Compares two enums
[const]bool==(int other)Compares an enum with an integer value
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidassign(const QFontDatabase_WritingSystem other)Assigns another object to self
[const]new QFontDatabase_WritingSystem ptrdupCreates a copy of self
[const]stringinspectConverts an enum to a visual string
[const]intto_iGets the integer value from the enum
[const]stringto_sGets the symbolic string from an enum
[const]QFontDatabase_QFlags_WritingSystem|(const QFontDatabase_WritingSystem other)Creates a flag set by combining the two flags
[const]QFontDatabase_QFlags_WritingSystem|(const QFontDatabase_QFlags_WritingSystem other)Combines the flag and the flag set

Public static methods and constants

[static,const]QFontDatabase_WritingSystemAnyEnum constant QFontDatabase::Any
[static,const]QFontDatabase_WritingSystemArabicEnum constant QFontDatabase::Arabic
[static,const]QFontDatabase_WritingSystemArmenianEnum constant QFontDatabase::Armenian
[static,const]QFontDatabase_WritingSystemBengaliEnum constant QFontDatabase::Bengali
[static,const]QFontDatabase_WritingSystemCyrillicEnum constant QFontDatabase::Cyrillic
[static,const]QFontDatabase_WritingSystemDevanagariEnum constant QFontDatabase::Devanagari
[static,const]QFontDatabase_WritingSystemGeorgianEnum constant QFontDatabase::Georgian
[static,const]QFontDatabase_WritingSystemGreekEnum constant QFontDatabase::Greek
[static,const]QFontDatabase_WritingSystemGujaratiEnum constant QFontDatabase::Gujarati
[static,const]QFontDatabase_WritingSystemGurmukhiEnum constant QFontDatabase::Gurmukhi
[static,const]QFontDatabase_WritingSystemHebrewEnum constant QFontDatabase::Hebrew
[static,const]QFontDatabase_WritingSystemJapaneseEnum constant QFontDatabase::Japanese
[static,const]QFontDatabase_WritingSystemKannadaEnum constant QFontDatabase::Kannada
[static,const]QFontDatabase_WritingSystemKhmerEnum constant QFontDatabase::Khmer
[static,const]QFontDatabase_WritingSystemKoreanEnum constant QFontDatabase::Korean
[static,const]QFontDatabase_WritingSystemLaoEnum constant QFontDatabase::Lao
[static,const]QFontDatabase_WritingSystemLatinEnum constant QFontDatabase::Latin
[static,const]QFontDatabase_WritingSystemMalayalamEnum constant QFontDatabase::Malayalam
[static,const]QFontDatabase_WritingSystemMyanmarEnum constant QFontDatabase::Myanmar
[static,const]QFontDatabase_WritingSystemNkoEnum constant QFontDatabase::Nko
[static,const]QFontDatabase_WritingSystemOghamEnum constant QFontDatabase::Ogham
[static,const]QFontDatabase_WritingSystemOriyaEnum constant QFontDatabase::Oriya
[static,const]QFontDatabase_WritingSystemOtherEnum constant QFontDatabase::Other
[static,const]QFontDatabase_WritingSystemRunicEnum constant QFontDatabase::Runic
[static,const]QFontDatabase_WritingSystemSimplifiedChineseEnum constant QFontDatabase::SimplifiedChinese
[static,const]QFontDatabase_WritingSystemSinhalaEnum constant QFontDatabase::Sinhala
[static,const]QFontDatabase_WritingSystemSymbolEnum constant QFontDatabase::Symbol
[static,const]QFontDatabase_WritingSystemSyriacEnum constant QFontDatabase::Syriac
[static,const]QFontDatabase_WritingSystemTamilEnum constant QFontDatabase::Tamil
[static,const]QFontDatabase_WritingSystemTeluguEnum constant QFontDatabase::Telugu
[static,const]QFontDatabase_WritingSystemThaanaEnum constant QFontDatabase::Thaana
[static,const]QFontDatabase_WritingSystemThaiEnum constant QFontDatabase::Thai
[static,const]QFontDatabase_WritingSystemTibetanEnum constant QFontDatabase::Tibetan
[static,const]QFontDatabase_WritingSystemTraditionalChineseEnum constant QFontDatabase::TraditionalChinese
[static,const]QFontDatabase_WritingSystemVietnameseEnum constant QFontDatabase::Vietnamese
[static,const]QFontDatabase_WritingSystemWritingSystemsCountEnum constant QFontDatabase::WritingSystemsCount

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

!=

(1) Signature: [const] bool != (const QFontDatabase_WritingSystem other)

Description: Compares two enums for inequality

(2) Signature: [const] bool != (int other)

Description: Compares an enum with an integer for inequality

<

(1) Signature: [const] bool < (const QFontDatabase_WritingSystem other)

Description: Returns true if the first enum is less (in the enum symbol order) than the second

(2) Signature: [const] bool < (int other)

Description: Returns true if the enum is less (in the enum symbol order) than the integer value

==

(1) Signature: [const] bool == (const QFontDatabase_WritingSystem other)

Description: Compares two enums

(2) Signature: [const] bool == (int other)

Description: Compares an enum with an integer value

Any

Signature: [static,const] QFontDatabase_WritingSystem Any

Description: Enum constant QFontDatabase::Any

Python specific notes:
The object exposes a readable attribute 'Any'. This is the getter.

Arabic

Signature: [static,const] QFontDatabase_WritingSystem Arabic

Description: Enum constant QFontDatabase::Arabic

Python specific notes:
The object exposes a readable attribute 'Arabic'. This is the getter.

Armenian

Signature: [static,const] QFontDatabase_WritingSystem Armenian

Description: Enum constant QFontDatabase::Armenian

Python specific notes:
The object exposes a readable attribute 'Armenian'. This is the getter.

Bengali

Signature: [static,const] QFontDatabase_WritingSystem Bengali

Description: Enum constant QFontDatabase::Bengali

Python specific notes:
The object exposes a readable attribute 'Bengali'. This is the getter.

Cyrillic

Signature: [static,const] QFontDatabase_WritingSystem Cyrillic

Description: Enum constant QFontDatabase::Cyrillic

Python specific notes:
The object exposes a readable attribute 'Cyrillic'. This is the getter.

Devanagari

Signature: [static,const] QFontDatabase_WritingSystem Devanagari

Description: Enum constant QFontDatabase::Devanagari

Python specific notes:
The object exposes a readable attribute 'Devanagari'. This is the getter.

Georgian

Signature: [static,const] QFontDatabase_WritingSystem Georgian

Description: Enum constant QFontDatabase::Georgian

Python specific notes:
The object exposes a readable attribute 'Georgian'. This is the getter.

Greek

Signature: [static,const] QFontDatabase_WritingSystem Greek

Description: Enum constant QFontDatabase::Greek

Python specific notes:
The object exposes a readable attribute 'Greek'. This is the getter.

Gujarati

Signature: [static,const] QFontDatabase_WritingSystem Gujarati

Description: Enum constant QFontDatabase::Gujarati

Python specific notes:
The object exposes a readable attribute 'Gujarati'. This is the getter.

Gurmukhi

Signature: [static,const] QFontDatabase_WritingSystem Gurmukhi

Description: Enum constant QFontDatabase::Gurmukhi

Python specific notes:
The object exposes a readable attribute 'Gurmukhi'. This is the getter.

Hebrew

Signature: [static,const] QFontDatabase_WritingSystem Hebrew

Description: Enum constant QFontDatabase::Hebrew

Python specific notes:
The object exposes a readable attribute 'Hebrew'. This is the getter.

Japanese

Signature: [static,const] QFontDatabase_WritingSystem Japanese

Description: Enum constant QFontDatabase::Japanese

Python specific notes:
The object exposes a readable attribute 'Japanese'. This is the getter.

Kannada

Signature: [static,const] QFontDatabase_WritingSystem Kannada

Description: Enum constant QFontDatabase::Kannada

Python specific notes:
The object exposes a readable attribute 'Kannada'. This is the getter.

Khmer

Signature: [static,const] QFontDatabase_WritingSystem Khmer

Description: Enum constant QFontDatabase::Khmer

Python specific notes:
The object exposes a readable attribute 'Khmer'. This is the getter.

Korean

Signature: [static,const] QFontDatabase_WritingSystem Korean

Description: Enum constant QFontDatabase::Korean

Python specific notes:
The object exposes a readable attribute 'Korean'. This is the getter.

Lao

Signature: [static,const] QFontDatabase_WritingSystem Lao

Description: Enum constant QFontDatabase::Lao

Python specific notes:
The object exposes a readable attribute 'Lao'. This is the getter.

Latin

Signature: [static,const] QFontDatabase_WritingSystem Latin

Description: Enum constant QFontDatabase::Latin

Python specific notes:
The object exposes a readable attribute 'Latin'. This is the getter.

Malayalam

Signature: [static,const] QFontDatabase_WritingSystem Malayalam

Description: Enum constant QFontDatabase::Malayalam

Python specific notes:
The object exposes a readable attribute 'Malayalam'. This is the getter.

Myanmar

Signature: [static,const] QFontDatabase_WritingSystem Myanmar

Description: Enum constant QFontDatabase::Myanmar

Python specific notes:
The object exposes a readable attribute 'Myanmar'. This is the getter.

Nko

Signature: [static,const] QFontDatabase_WritingSystem Nko

Description: Enum constant QFontDatabase::Nko

Python specific notes:
The object exposes a readable attribute 'Nko'. This is the getter.

Ogham

Signature: [static,const] QFontDatabase_WritingSystem Ogham

Description: Enum constant QFontDatabase::Ogham

Python specific notes:
The object exposes a readable attribute 'Ogham'. This is the getter.

Oriya

Signature: [static,const] QFontDatabase_WritingSystem Oriya

Description: Enum constant QFontDatabase::Oriya

Python specific notes:
The object exposes a readable attribute 'Oriya'. This is the getter.

Other

Signature: [static,const] QFontDatabase_WritingSystem Other

Description: Enum constant QFontDatabase::Other

Python specific notes:
The object exposes a readable attribute 'Other'. This is the getter.

Runic

Signature: [static,const] QFontDatabase_WritingSystem Runic

Description: Enum constant QFontDatabase::Runic

Python specific notes:
The object exposes a readable attribute 'Runic'. This is the getter.

SimplifiedChinese

Signature: [static,const] QFontDatabase_WritingSystem SimplifiedChinese

Description: Enum constant QFontDatabase::SimplifiedChinese

Python specific notes:
The object exposes a readable attribute 'SimplifiedChinese'. This is the getter.

Sinhala

Signature: [static,const] QFontDatabase_WritingSystem Sinhala

Description: Enum constant QFontDatabase::Sinhala

Python specific notes:
The object exposes a readable attribute 'Sinhala'. This is the getter.

Symbol

Signature: [static,const] QFontDatabase_WritingSystem Symbol

Description: Enum constant QFontDatabase::Symbol

Python specific notes:
The object exposes a readable attribute 'Symbol'. This is the getter.

Syriac

Signature: [static,const] QFontDatabase_WritingSystem Syriac

Description: Enum constant QFontDatabase::Syriac

Python specific notes:
The object exposes a readable attribute 'Syriac'. This is the getter.

Tamil

Signature: [static,const] QFontDatabase_WritingSystem Tamil

Description: Enum constant QFontDatabase::Tamil

Python specific notes:
The object exposes a readable attribute 'Tamil'. This is the getter.

Telugu

Signature: [static,const] QFontDatabase_WritingSystem Telugu

Description: Enum constant QFontDatabase::Telugu

Python specific notes:
The object exposes a readable attribute 'Telugu'. This is the getter.

Thaana

Signature: [static,const] QFontDatabase_WritingSystem Thaana

Description: Enum constant QFontDatabase::Thaana

Python specific notes:
The object exposes a readable attribute 'Thaana'. This is the getter.

Thai

Signature: [static,const] QFontDatabase_WritingSystem Thai

Description: Enum constant QFontDatabase::Thai

Python specific notes:
The object exposes a readable attribute 'Thai'. This is the getter.

Tibetan

Signature: [static,const] QFontDatabase_WritingSystem Tibetan

Description: Enum constant QFontDatabase::Tibetan

Python specific notes:
The object exposes a readable attribute 'Tibetan'. This is the getter.

TraditionalChinese

Signature: [static,const] QFontDatabase_WritingSystem TraditionalChinese

Description: Enum constant QFontDatabase::TraditionalChinese

Python specific notes:
The object exposes a readable attribute 'TraditionalChinese'. This is the getter.

Vietnamese

Signature: [static,const] QFontDatabase_WritingSystem Vietnamese

Description: Enum constant QFontDatabase::Vietnamese

Python specific notes:
The object exposes a readable attribute 'Vietnamese'. This is the getter.

WritingSystemsCount

Signature: [static,const] QFontDatabase_WritingSystem WritingSystemsCount

Description: Enum constant QFontDatabase::WritingSystemsCount

Python specific notes:
The object exposes a readable attribute 'WritingSystemsCount'. This is the getter.

_create

Signature: 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.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

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

_destroyed?

Signature: [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.

_is_const_object?

Signature: [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.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

assign

Signature: void assign (const QFontDatabase_WritingSystem other)

Description: Assigns another object to self

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

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.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

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

destroyed?

Signature: [const] bool destroyed?

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

Use of this method is deprecated. Use _destroyed? instead

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.

dup

Signature: [const] new QFontDatabase_WritingSystem ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

inspect

Signature: [const] string inspect

Description: Converts an enum to a visual string

Python specific notes:
This method is also available as 'repr(object)'.

is_const_object?

Signature: [const] bool is_const_object?

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

Use of this method is deprecated. Use _is_const_object? instead

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

new

(1) Signature: [static] new QFontDatabase_WritingSystem ptr new (int i)

Description: Creates an enum from an integer value

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QFontDatabase_WritingSystem ptr new (string s)

Description: Creates an enum from a string value

Python specific notes:
This method is the default initializer of the object.

to_i

Signature: [const] int to_i

Description: Gets the integer value from the enum

to_s

Signature: [const] string to_s

Description: Gets the symbolic string from an enum

Python specific notes:
This method is also available as 'str(object)'.

|

(1) Signature: [const] QFontDatabase_QFlags_WritingSystem | (const QFontDatabase_WritingSystem other)

Description: Creates a flag set by combining the two flags

(2) Signature: [const] QFontDatabase_QFlags_WritingSystem | (const QFontDatabase_QFlags_WritingSystem other)

Description: Combines the flag and the flag set