Class: PfdInsetRegistrar
A record of registered PFD insets.
Constructors
constructor
• new PfdInsetRegistrar(): PfdInsetRegistrar
Returns
Methods
getRegisteredInsetsArray
▸ getRegisteredInsetsArray(): Readonly
<PfdInsetDefinition
>[]
Gets an array of inset definitions registered with this registrar, in ascending order according to the values of
their order
properties.
Returns
Readonly
<PfdInsetDefinition
>[]
An array of inset definitions registered with this registrar, in ascending order according to the values
of their order
properties.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/GduDisplay/Gdu460/PfdInstruments/Inset/PfdInsetRegistrar.ts:51
isInsetRegistered
▸ isInsetRegistered(key
): boolean
Checks if an inset is registered with a given key.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key to check. |
Returns
boolean
Whether an inset is registered with the specified key.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/GduDisplay/Gdu460/PfdInstruments/Inset/PfdInsetRegistrar.ts:18
registerInset
▸ registerInset(insetDef
): void
Registers a PFD inset. Registering an inset with an existing key will replace the old inset registered under that key.
Parameters
Name | Type | Description |
---|---|---|
insetDef | Readonly <PfdInsetDefinition > | The definition of the inset to register. |
Returns
void
Throws
Error if the inset key specified by the provided definition is the empty string.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/GduDisplay/Gdu460/PfdInstruments/Inset/PfdInsetRegistrar.ts:28
unregisterInset
▸ unregisterInset(key
): boolean
Unregisters a PFD inset.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key of the inset to unregister. |
Returns
boolean
Whether the inset with the specified key was successfully unregistered.
Defined in
src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/GduDisplay/Gdu460/PfdInstruments/Inset/PfdInsetRegistrar.ts:41