KLayout 0.29.8 (2024-10-28 63dd591e5) [master]

API reference - Class QTabletEvent

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QTabletEvent

Class hierarchy: QTabletEvent » QInputEvent » QEvent

Sub-classes: PointerType, QFlags_PointerType, TabletDevice, QFlags_TabletDevice

Public methods

void_assign(const QTabletEvent other)Assigns another object to self
[const]QTabletEvent ptr_const_castReturns a non-const reference to self.
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]new QTabletEvent ptr_dupCreates a copy of self
[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.
[const]Qt_MouseButtonbuttonMethod Qt::MouseButton QTabletEvent::button()
[const]Qt_QFlags_MouseButtonbuttonsMethod QFlags<Qt::MouseButton> QTabletEvent::buttons()
[const]QTabletEvent_TabletDevicedeviceMethod QTabletEvent::TabletDevice QTabletEvent::device()
[const]QPointglobalPosMethod QPoint QTabletEvent::globalPos()
[const]QPointFglobalPosFMethod const QPointF &QTabletEvent::globalPosF()
[const]intglobalXMethod int QTabletEvent::globalX()
[const]intglobalYMethod int QTabletEvent::globalY()
[const]doublehiResGlobalXMethod double QTabletEvent::hiResGlobalX()
[const]doublehiResGlobalYMethod double QTabletEvent::hiResGlobalY()
[const]QTabletEvent_PointerTypepointerTypeMethod QTabletEvent::PointerType QTabletEvent::pointerType()
[const]QPointposMethod QPoint QTabletEvent::pos()
[const]QPointFposFMethod const QPointF &QTabletEvent::posF()
[const]doublepressureMethod double QTabletEvent::pressure()
[const]doublerotationMethod double QTabletEvent::rotation()
[const]doubletangentialPressureMethod double QTabletEvent::tangentialPressure()
[const]long longuniqueIdMethod qint64 QTabletEvent::uniqueId()
[const]intxMethod int QTabletEvent::x()
[const]intxTiltMethod int QTabletEvent::xTilt()
[const]intyMethod int QTabletEvent::y()
[const]intyTiltMethod int QTabletEvent::yTilt()
[const]intzMethod int QTabletEvent::z()

Public static methods and constants

[static,const]QTabletEvent_TabletDeviceAirbrushEnum constant QTabletEvent::Airbrush
[static,const]QTabletEvent_PointerTypeCursorEnum constant QTabletEvent::Cursor
[static,const]QTabletEvent_PointerTypeEraserEnum constant QTabletEvent::Eraser
[static,const]QTabletEvent_TabletDeviceFourDMouseEnum constant QTabletEvent::FourDMouse
[static,const]QTabletEvent_TabletDeviceNoDeviceEnum constant QTabletEvent::NoDevice
[static,const]QTabletEvent_PointerTypePenEnum constant QTabletEvent::Pen
[static,const]QTabletEvent_TabletDevicePuckEnum constant QTabletEvent::Puck
[static,const]QTabletEvent_TabletDeviceRotationStylusEnum constant QTabletEvent::RotationStylus
[static,const]QTabletEvent_TabletDeviceStylusEnum constant QTabletEvent::Stylus
[static,const]QTabletEvent_PointerTypeUnknownPointerEnum constant QTabletEvent::UnknownPointer
[static,const]QTabletEvent_TabletDeviceXFreeEraserEnum constant QTabletEvent::XFreeEraser

Detailed description

Airbrush

Signature: [static,const] QTabletEvent_TabletDevice Airbrush

Description: Enum constant QTabletEvent::Airbrush

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

Cursor

Signature: [static,const] QTabletEvent_PointerType Cursor

Description: Enum constant QTabletEvent::Cursor

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

Eraser

Signature: [static,const] QTabletEvent_PointerType Eraser

Description: Enum constant QTabletEvent::Eraser

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

FourDMouse

Signature: [static,const] QTabletEvent_TabletDevice FourDMouse

Description: Enum constant QTabletEvent::FourDMouse

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

NoDevice

Signature: [static,const] QTabletEvent_TabletDevice NoDevice

Description: Enum constant QTabletEvent::NoDevice

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

Pen

Signature: [static,const] QTabletEvent_PointerType Pen

Description: Enum constant QTabletEvent::Pen

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

Puck

Signature: [static,const] QTabletEvent_TabletDevice Puck

Description: Enum constant QTabletEvent::Puck

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

RotationStylus

Signature: [static,const] QTabletEvent_TabletDevice RotationStylus

Description: Enum constant QTabletEvent::RotationStylus

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

Stylus

Signature: [static,const] QTabletEvent_TabletDevice Stylus

Description: Enum constant QTabletEvent::Stylus

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

UnknownPointer

Signature: [static,const] QTabletEvent_PointerType UnknownPointer

Description: Enum constant QTabletEvent::UnknownPointer

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

XFreeEraser

Signature: [static,const] QTabletEvent_TabletDevice XFreeEraser

Description: Enum constant QTabletEvent::XFreeEraser

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

_assign

Signature: void _assign (const QTabletEvent other)

Description: Assigns another object to self

_const_cast

Signature: [const] QTabletEvent ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

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

_dup

Signature: [const] new QTabletEvent ptr _dup

Description: Creates a copy of self

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

button

Signature: [const] Qt_MouseButton button

Description: Method Qt::MouseButton QTabletEvent::button()

buttons

Signature: [const] Qt_QFlags_MouseButton buttons

Description: Method QFlags<Qt::MouseButton> QTabletEvent::buttons()

device

Signature: [const] QTabletEvent_TabletDevice device

Description: Method QTabletEvent::TabletDevice QTabletEvent::device()

globalPos

Signature: [const] QPoint globalPos

Description: Method QPoint QTabletEvent::globalPos()

globalPosF

Signature: [const] QPointF globalPosF

Description: Method const QPointF &QTabletEvent::globalPosF()

globalX

Signature: [const] int globalX

Description: Method int QTabletEvent::globalX()

globalY

Signature: [const] int globalY

Description: Method int QTabletEvent::globalY()

hiResGlobalX

Signature: [const] double hiResGlobalX

Description: Method double QTabletEvent::hiResGlobalX()

hiResGlobalY

Signature: [const] double hiResGlobalY

Description: Method double QTabletEvent::hiResGlobalY()

pointerType

Signature: [const] QTabletEvent_PointerType pointerType

Description: Method QTabletEvent::PointerType QTabletEvent::pointerType()

pos

Signature: [const] QPoint pos

Description: Method QPoint QTabletEvent::pos()

posF

Signature: [const] QPointF posF

Description: Method const QPointF &QTabletEvent::posF()

pressure

Signature: [const] double pressure

Description: Method double QTabletEvent::pressure()

rotation

Signature: [const] double rotation

Description: Method double QTabletEvent::rotation()

tangentialPressure

Signature: [const] double tangentialPressure

Description: Method double QTabletEvent::tangentialPressure()

uniqueId

Signature: [const] long long uniqueId

Description: Method qint64 QTabletEvent::uniqueId()

x

Signature: [const] int x

Description: Method int QTabletEvent::x()

xTilt

Signature: [const] int xTilt

Description: Method int QTabletEvent::xTilt()

y

Signature: [const] int y

Description: Method int QTabletEvent::y()

yTilt

Signature: [const] int yTilt

Description: Method int QTabletEvent::yTilt()

z

Signature: [const] int z

Description: Method int QTabletEvent::z()