Skip to content

fontlab_glyport.drawing.events

events

NSEvent for custom views and tools, built from Qt mouse events (R032).

locationInWindow() is the point in the receiving view's own Cocoa coordinates (y up unless the view is flipped), so the corpus idiom view.convertPoint_fromView_(event.locationInWindow(), None) yields view coordinates. Modifier flags use AppKit's bits; on macOS Qt reports Command as ControlModifier and Control as MetaModifier.

Classes

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
NSEventModifierFlagCommand attribute
NSEventModifierFlagControl attribute
NSEventModifierFlagOption attribute
NSEventModifierFlagShift attribute
current_event function ()
event_scope function (event)
modifier_flags function (qt, modifiers)