API reference - Class QCursor

Notation used in Ruby API documentation

Description: Binding of QCursor

Public constructors

new QCursornewConstructor QCursor::QCursor()
new QCursornew(const Qt_CursorShape shape)Constructor QCursor::QCursor(Qt::CursorShape shape)
new QCursornew(const QBitmap bitmap,
const QBitmap mask,
int hotX = -1,
int hotY = -1)
Constructor QCursor::QCursor(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY)
new QCursornew(const QPixmap pixmap,
int hotX = -1,
int hotY = -1)
Constructor QCursor::QCursor(const QPixmap &pixmap, int hotX, int hotY)
new QCursornew(const QCursor cursor)Constructor QCursor::QCursor(const QCursor &cursor)

Public methods

QCursorassign(const QCursor cursor)Method QCursor &QCursor::operator=(const QCursor &cursor)
[const]voidassign(const QCursor other)Assign the contents of another object to self
[const]const QBitmap ptrbitmapMethod const QBitmap *QCursor::bitmap()
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QCursordupCreates a copy of self
[const]unsigned longhandleMethod Qt::HANDLE QCursor::handle()
[const]QPointhotSpotMethod QPoint QCursor::hotSpot()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[const]const QBitmap ptrmaskMethod const QBitmap *QCursor::mask()
[const]QPixmappixmapMethod QPixmap QCursor::pixmap()
voidsetShape(const Qt_CursorShape newShape)Method void QCursor::setShape(Qt::CursorShape newShape)
[const]Qt_CursorShapeshapeMethod Qt::CursorShape QCursor::shape()
voidshape=(const Qt_CursorShape newShape)Method void QCursor::setShape(Qt::CursorShape newShape)

Public static methods and constants

QPointposStatic method QPoint QCursor::pos()
voidpos=(const QPoint p)Static method void QCursor::setPos(const QPoint &p)
voidsetPos(int x,
int y)
Static method void QCursor::setPos(int x, int y)
voidsetPos(const QPoint p)Static method void QCursor::setPos(const QPoint &p)

Detailed description

QCursor assign(const QCursor cursor)

Description: Method QCursor &QCursor::operator=(const QCursor &cursor)

[const] void assign(const QCursor 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] const QBitmap ptr bitmap

Description: Method const QBitmap *QCursor::bitmap()

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

Description: Creates a copy of self

[const] unsigned long handle

Description: Method Qt::HANDLE QCursor::handle()

[const] QPoint hotSpot

Description: Method QPoint QCursor::hotSpot()

[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] const QBitmap ptr mask

Description: Method const QBitmap *QCursor::mask()

[static] new QCursor new

Description: Constructor QCursor::QCursor()

This method creates an object of class QCursor.

[static] new QCursor new(const Qt_CursorShape shape)

Description: Constructor QCursor::QCursor(Qt::CursorShape shape)

This method creates an object of class QCursor.

[static] new QCursor new(const QBitmap bitmap,const QBitmap mask,int hotX = -1,int hotY = -1)

Description: Constructor QCursor::QCursor(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY)

This method creates an object of class QCursor.

[static] new QCursor new(const QPixmap pixmap,int hotX = -1,int hotY = -1)

Description: Constructor QCursor::QCursor(const QPixmap &pixmap, int hotX, int hotY)

This method creates an object of class QCursor.

[static] new QCursor new(const QCursor cursor)

Description: Constructor QCursor::QCursor(const QCursor &cursor)

This method creates an object of class QCursor.

[const] QPixmap pixmap

Description: Method QPixmap QCursor::pixmap()

[static] QPoint pos

Description: Static method QPoint QCursor::pos()

This method is static and can be called without an instance.

[static] void pos=(const QPoint p)

Description: Static method void QCursor::setPos(const QPoint &p)

This method is static and can be called without an instance.

[static] void setPos(int x,int y)

Description: Static method void QCursor::setPos(int x, int y)

This method is static and can be called without an instance.

[static] void setPos(const QPoint p)

Description: Static method void QCursor::setPos(const QPoint &p)

This method is static and can be called without an instance.

void setShape(const Qt_CursorShape newShape)

Description: Method void QCursor::setShape(Qt::CursorShape newShape)

[const] Qt_CursorShape shape

Description: Method Qt::CursorShape QCursor::shape()

void shape=(const Qt_CursorShape newShape)

Description: Method void QCursor::setShape(Qt::CursorShape newShape)