Skip to content

fontlab_glyport.ui.cocoa_views

cocoa_views

Qt-backed AppKit views with PyObjC-shaped APIs (R030); controls live in cocoa_controls.

make_appkit_classes(qt, error_sink=...) returns env-bound classes: NSView, NSControl, NSTextField, NSSecureTextField, GSSteppingTextField, NSButton, NSSlider, NSPopUpButton, NSProgressIndicator, NSImageView, GSPaletteView, NSUserDefaultsController, NSImage (images), NSStackView (cocoa_containers), NSWindow and NSPanel (cocoa_window). Each view owns one Qt widget (view._qt). Frames use Cocoa's bottom-left origin and are converted against the superview height; autoresizingMask re-lays subviews out on resize (springs and struts, the change split evenly between flexible parts). Target/action calls the target's method for the selector with the control as sender (colon arity respected) through the dispatcher; programmatic value setters never send the action, as in AppKit.

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
NSFloatingWindowLevel attribute
NSHighlightModeMatrix attribute
NSImageAbove attribute
NSImageBelow attribute
NSImageInterpolationDefault attribute
NSImageInterpolationHigh attribute
NSImageInterpolationLow attribute
NSImageInterpolationMedium attribute
NSImageInterpolationNone attribute
NSImageLeading attribute
NSImageLeft attribute
NSImageOnly attribute
NSImageOverlaps attribute
NSImageRight attribute
NSImageScaleAxesIndependently attribute
NSImageScaleNone attribute
NSImageScaleProportionallyDown attribute
NSImageScaleProportionallyUpOrDown attribute
NSImageTrailing attribute
NSLineBreakByCharWrapping attribute
NSLineBreakByClipping attribute
NSLineBreakByTruncatingHead attribute
NSLineBreakByTruncatingMiddle attribute
NSLineBreakByTruncatingTail attribute
NSLineBreakByWordWrapping attribute
NSListModeMatrix attribute
NSMixedState attribute (shared captured text)
NSMomentaryLightButton attribute
NSMomentaryPushInButton attribute
NSNoImage attribute
NSNormalWindowLevel attribute
NSNotFound attribute
NSOffState attribute (shared captured text)
NSOnState attribute (shared captured text)
NSRadioButton attribute
NSRadioModeMatrix attribute
NSSegmentStyleAutomatic attribute
NSSegmentStyleCapsule attribute
NSSegmentStyleRoundRect attribute
NSSegmentStyleRounded attribute
NSSegmentStyleSeparated attribute
NSSegmentStyleSmallSquare attribute
NSSegmentStyleTexturedRounded attribute
NSSegmentStyleTexturedSquare attribute
NSSegmentSwitchTrackingMomentary attribute
NSSegmentSwitchTrackingSelectAny attribute
NSSegmentSwitchTrackingSelectOne attribute
NSSplitViewDividerStylePaneSplitter attribute
NSSplitViewDividerStyleThick attribute
NSSplitViewDividerStyleThin attribute
NSSwitchButton attribute
NSTrackModeMatrix attribute
NSUserInterfaceLayoutOrientationHorizontal attribute
NSUserInterfaceLayoutOrientationVertical attribute
NSViewHeightSizable attribute
NSViewMaxXMargin attribute
NSViewMaxYMargin attribute
NSViewMinXMargin attribute
NSViewMinYMargin attribute
NSViewWidthSizable attribute
NSWindowStyleMaskClosable attribute
NSWindowStyleMaskMiniaturizable attribute
NSWindowStyleMaskResizable attribute
NSWindowStyleMaskTitled attribute
NSWindowStyleMaskUtilityWindow attribute
SLIDER_STEPS attribute
make_appkit_classes function (qt: Any, *, error_sink: Callable[[Exception, object], object], wrap: Callable | None=None, defaults: Mutable… Return env-bound AppKit classes and helpers; <code>&#91;&quot;close&quot;&#93;</code> tears down.
release_tree function (root) -> None Disconnect, unbind and unregister <code>root</code> and every view it owns (without deleting widgets: their holder does that).