fontlab.flMouseEvent
flMouseEvent
Mouse-event data supplied by the editor, or returned by flWorkspace.convertMouseEvent(qevent, previous_global_point). The binding's public constructor accepts one existing flMouseEvent to copy; it does not expose a zero-argument constructor.
The underlying C++ event also has a pressure field, but pressure is not exposed by this binding. Coordinates are screen coordinates; map them through the relevant viewport before using canvas-to-glyph transforms. Events passed to callbacks are borrowed; do not retain native event or painter objects beyond the callback.
The simpler flEvent exposes only type and modifiers.
Constructors: flMouseEvent(flMouseEvent)
Native bases: object
Captured native MRO: flMouseEvent, object
Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.
Supplemental documentation:
A mouse event. The captured declaration exposes the attributes button, buttons, delta, firstPressed, global_, modifiers, movement, origin, prev and type. It is created as a copy flMouseEvent(flMouseEvent).
Source: FontLab Proteus API documentation
Source: generated/fontlab.py: flMouseEvent captured declaration
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, /, *args: Any, **kwargs: Any) -> None |
Initialize self. (shared captured text) |
button |
attribute | Any |
Button responsible for the event. |
buttons |
attribute | Any |
Currently pressed-button mask. |
delta |
attribute | Any |
Current global position minus prev. |
firstPressed |
attribute | Any |
Producer's initial-press marker. |
global_ |
attribute | Any |
|
modifiers |
attribute | Any |
Qt modifier-key mask. |
movement |
attribute | Any |
Movement value supplied by the event producer. |
origin |
attribute | Any |
Original global position supplied by the event producer. |
prev |
attribute | Any |
Previous global position supplied by the event producer. |
type |
attribute | Any |
Native event kind. |