fontlab_glyport.foundation · declarations 001
Back to fontlab_glyport.foundation
COLLECTIONS
module-attribute
COLLECTIONS
CONSTANTS
module-attribute
CONSTANTS
DEFERRED
module-attribute
DEFERRED
GEOMETRY
module-attribute
GEOMETRY
NSContainsRect
NSContainsRect(outer, inner) -> bool
Cocoa: a non-empty inner that does not extend beyond outer.
NSHeight
NSHeight(rect) -> float
NSInsetRect
NSInsetRect(rect, dx, dy)
NSMaxX
NSMaxX(rect) -> float
NSMaxY
NSMaxY(rect) -> float
NSMidX
NSMidX(rect) -> float
NSMidY
NSMidY(rect) -> float
NSMinX
NSMinX(rect) -> float
NSMinY
NSMinY(rect) -> float
NSOffsetRect
NSOffsetRect(rect, dx, dy)
NSPointInRect
NSPointInRect(point, rect) -> bool
Cocoa's half-open test, as NSMouseInRect(point, rect, flipped=YES):
the max edges are outside.
NSUnionRect
NSUnionRect(a, b)
The smallest rect containing both (an empty rect is ignored).
NSWidth
NSWidth(rect) -> float
STRUCT_NAMES
module-attribute
STRUCT_NAMES
class_from_string
class_from_string(classes: dict[str, type]) -> Callable[[str], type | None]
NSClassFromString: a class glyport provides, else None (as Cocoa
returns nil for a class that is not loaded).
deferred_class
deferred_class(module: str, name: str) -> type
A class a script imports at module level but glyport does not provide:
the import resolves, and the first member use raises
UnsupportedCapability naming module.name.member.
qt_names
qt_names(qt: Any, on_close: Callable[[Callable[[], object]], object]) -> dict
NSPasteboard (the application clipboard, plain text only) and
NSTimer (QTimer; every timer is stopped and disconnected on close).
user_defaults_class
user_defaults_class(store: MutableMapping[str, Any]) -> type
NSUserDefaults whose standard instance reads and writes store.