Class: WindowRegistry
Makaio Framework / kernel / WindowRegistry
Class: WindowRegistry
Section titled “Class: WindowRegistry”Defined in: ../../../packages/kernel/src/window/window-registry.ts:107
Dynamic registry of window configurations populated from package manifests.
Replaces the static WindowType enum and WINDOW_TYPE_CONFIG table.
Packages register windows during boot via the ExtensionCoordinator.
Electron’s WindowManager queries this registry to create windows.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WindowRegistry():
WindowRegistry
Returns
Section titled “Returns”WindowRegistry
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get size():
number
Defined in: ../../../packages/kernel/src/window/window-registry.ts:197
Number of registered windows.
Returns
Section titled “Returns”number
The count of registered window entries.
Methods
Section titled “Methods”get(
qualifiedId):WindowRegistration|undefined
Defined in: ../../../packages/kernel/src/window/window-registry.ts:149
Look up a window registration by qualified ID.
Parameters
Section titled “Parameters”qualifiedId
Section titled “qualifiedId”string
The {packageName}:{windowId} identifier.
Returns
Section titled “Returns”WindowRegistration | undefined
The registration, or undefined if not found.
getByPackageWindow()
Section titled “getByPackageWindow()”getByPackageWindow(
packageName,windowId):WindowRegistration|undefined
Defined in: ../../../packages/kernel/src/window/window-registry.ts:162
Find a window registration by package name and window ID.
Useful for tray entries that reference opensWindow by window ID
within the same package.
Parameters
Section titled “Parameters”packageName
Section titled “packageName”string
Package name to search.
windowId
Section titled “windowId”string
Window ID within the package.
Returns
Section titled “Returns”WindowRegistration | undefined
The registration, or undefined if not found.
list()
Section titled “list()”list(): readonly
WindowRegistration[]
Defined in: ../../../packages/kernel/src/window/window-registry.ts:189
List all registered windows.
Returns
Section titled “Returns”readonly WindowRegistration[]
Array of all window registrations.
register()
Section titled “register()”register(
packageName,displayName,window):WindowRegistration
Defined in: ../../../packages/kernel/src/window/window-registry.ts:120
Register a window from a package manifest.
Style defaults are applied first; manifest-declared fields override them.
Parameters
Section titled “Parameters”packageName
Section titled “packageName”string
Owning package name.
displayName
Section titled “displayName”string
Package display name.
window
Section titled “window”WindowManifestInput
Window manifest from the package.
Returns
Section titled “Returns”The created WindowRegistration.
Throws
Section titled “Throws”If the qualified ID is already registered.
unregisterPackage()
Section titled “unregisterPackage()”unregisterPackage(
packageName):void
Defined in: ../../../packages/kernel/src/window/window-registry.ts:173
Remove all windows registered by a package.
Used during extension cleanup when a package fails, is disabled, or shuts down.
Parameters
Section titled “Parameters”packageName
Section titled “packageName”string
Package name whose windows to remove.
Returns
Section titled “Returns”void