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

API reference - Class QMargins

Notation used in Ruby API documentation

Description: Binding of QMargins

Public constructors

new QMarginsnewConstructor QMargins::QMargins()
new QMarginsnew(int left,
int top,
int right,
int bottom)
Constructor QMargins::QMargins(int left, int top, int right, int bottom)

Public methods

[const]bool!=(const QMargins m1)Operator bool ::operator!=(const QMargins &m1, const QMargins &m2)
[const]bool==(const QMargins m1)Operator bool ::operator==(const QMargins &m1, const QMargins &m2)
[const]voidassign(const QMargins other)Assign the contents of another object to self
[const]intbottomMethod int QMargins::bottom()
voidbottom=(int bottom)Method void QMargins::setBottom(int bottom)
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QMarginsdupCreates a copy of self
[const]boolisNullMethod bool QMargins::isNull()
[const]boolisNull?Method bool QMargins::isNull()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]intleftMethod int QMargins::left()
voidleft=(int left)Method void QMargins::setLeft(int left)
[const]intrightMethod int QMargins::right()
voidright=(int right)Method void QMargins::setRight(int right)
voidsetBottom(int bottom)Method void QMargins::setBottom(int bottom)
voidsetLeft(int left)Method void QMargins::setLeft(int left)
voidsetRight(int right)Method void QMargins::setRight(int right)
voidsetTop(int top)Method void QMargins::setTop(int top)
[const]inttopMethod int QMargins::top()
voidtop=(int top)Method void QMargins::setTop(int top)

Detailed description

[const] bool !=(const QMargins m1)

Description: Operator bool ::operator!=(const QMargins &m1, const QMargins &m2)

This is the mapping of the global operator to the instance method.

[const] bool ==(const QMargins m1)

Description: Operator bool ::operator==(const QMargins &m1, const QMargins &m2)

This is the mapping of the global operator to the instance method.

[const] void assign(const QMargins 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] int bottom

Description: Method int QMargins::bottom()

void bottom=(int bottom)

Description: Method void QMargins::setBottom(int bottom)

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

Description: Creates a copy of self

[const] bool isNull

Description: Method bool QMargins::isNull()

[const] bool isNull?

Description: Method bool QMargins::isNull()

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

[const] int left

Description: Method int QMargins::left()

void left=(int left)

Description: Method void QMargins::setLeft(int left)

[static] new QMargins new

Description: Constructor QMargins::QMargins()

This method creates an object of class QMargins.

[static] new QMargins new(int left,int top,int right,int bottom)

Description: Constructor QMargins::QMargins(int left, int top, int right, int bottom)

This method creates an object of class QMargins.

[const] int right

Description: Method int QMargins::right()

void right=(int right)

Description: Method void QMargins::setRight(int right)

void setBottom(int bottom)

Description: Method void QMargins::setBottom(int bottom)

void setLeft(int left)

Description: Method void QMargins::setLeft(int left)

void setRight(int right)

Description: Method void QMargins::setRight(int right)

void setTop(int top)

Description: Method void QMargins::setTop(int top)

[const] int top

Description: Method int QMargins::top()

void top=(int top)

Description: Method void QMargins::setTop(int top)