KLayout Manual: Main Index » Class Index » API reference - Class Qt_GlobalColor

API reference - Class Qt_GlobalColor

Notation used in Ruby API documentation

Description: This class represents the Qt::GlobalColor enum

Public constructors

new Qt_GlobalColornew(unsigned int arg1)Creates the enum object from an integer

Public methods

[const]bool==(Qt_GlobalColor other)Compares the enum class against an enum of it's own type
[const]bool==(unsigned int other)Compares the enum class against an integer
[const]voidassign(const Qt_GlobalColor other)Assign the contents of another object to self
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]Qt_GlobalColordupCreates a copy of self
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]unsigned intto_iConverts the enum class to an integer
[const]stringto_sConverts the enum class to a string

Public static methods and constants

new Qt_GlobalColorblackEnum constant Qt::black
new Qt_GlobalColorblueEnum constant Qt::blue
new Qt_GlobalColorcolor0Enum constant Qt::color0
new Qt_GlobalColorcolor1Enum constant Qt::color1
new Qt_GlobalColorcyanEnum constant Qt::cyan
new Qt_GlobalColordarkBlueEnum constant Qt::darkBlue
new Qt_GlobalColordarkCyanEnum constant Qt::darkCyan
new Qt_GlobalColordarkGrayEnum constant Qt::darkGray
new Qt_GlobalColordarkGreenEnum constant Qt::darkGreen
new Qt_GlobalColordarkMagentaEnum constant Qt::darkMagenta
new Qt_GlobalColordarkRedEnum constant Qt::darkRed
new Qt_GlobalColordarkYellowEnum constant Qt::darkYellow
new Qt_GlobalColorgrayEnum constant Qt::gray
new Qt_GlobalColorgreenEnum constant Qt::green
new Qt_GlobalColorlightGrayEnum constant Qt::lightGray
new Qt_GlobalColormagentaEnum constant Qt::magenta
new Qt_GlobalColorredEnum constant Qt::red
new Qt_GlobalColortransparentEnum constant Qt::transparent
new Qt_GlobalColorwhiteEnum constant Qt::white
new Qt_GlobalColoryellowEnum constant Qt::yellow

Detailed description

[const] bool ==(Qt_GlobalColor other)

Description: Compares the enum class against an enum of it's own type

[const] bool ==(unsigned int other)

Description: Compares the enum class against an integer

[const] void assign(const Qt_GlobalColor 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.

[static] new Qt_GlobalColor black

Description: Enum constant Qt::black

[static] new Qt_GlobalColor blue

Description: Enum constant Qt::blue

[static] new Qt_GlobalColor color0

Description: Enum constant Qt::color0

[static] new Qt_GlobalColor color1

Description: Enum constant Qt::color1

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.

[static] new Qt_GlobalColor cyan

Description: Enum constant Qt::cyan

[static] new Qt_GlobalColor darkBlue

Description: Enum constant Qt::darkBlue

[static] new Qt_GlobalColor darkCyan

Description: Enum constant Qt::darkCyan

[static] new Qt_GlobalColor darkGray

Description: Enum constant Qt::darkGray

[static] new Qt_GlobalColor darkGreen

Description: Enum constant Qt::darkGreen

[static] new Qt_GlobalColor darkMagenta

Description: Enum constant Qt::darkMagenta

[static] new Qt_GlobalColor darkRed

Description: Enum constant Qt::darkRed

[static] new Qt_GlobalColor darkYellow

Description: Enum constant Qt::darkYellow

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] Qt_GlobalColor dup

Description: Creates a copy of self

[static] new Qt_GlobalColor gray

Description: Enum constant Qt::gray

[static] new Qt_GlobalColor green

Description: Enum constant Qt::green

[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 Qt_GlobalColor lightGray

Description: Enum constant Qt::lightGray

[static] new Qt_GlobalColor magenta

Description: Enum constant Qt::magenta

[static] new Qt_GlobalColor new(unsigned int arg1)

Description: Creates the enum object from an integer

[static] new Qt_GlobalColor red

Description: Enum constant Qt::red

[const] unsigned int to_i

Description: Converts the enum class to an integer

[const] string to_s

Description: Converts the enum class to a string

[static] new Qt_GlobalColor transparent

Description: Enum constant Qt::transparent

[static] new Qt_GlobalColor white

Description: Enum constant Qt::white

[static] new Qt_GlobalColor yellow

Description: Enum constant Qt::yellow