Class KeyWindowBaseAbstract

Main class for defining a new Key Window. A Key Window is the main container to which content gets added to in the RSX editor. Each key window must have a very well defined semantic, for instance the Scene Key Window allows the user view and edit a scene.

Key Windows can be joined together into a single window with tabs and can also be undocked to have their own free window.

Hierarchy (view full)

Constructors

Accessors

  • get dpiScale(): number
  • Returns the DPI scale factor.

    Returns number

    The DPI scale is in relation to a 1x base resolution of 75 DPI.

  • get height(): number
  • Sets the height of the window in points.

    Returns number

  • set height(value): void
  • Parameters

    • value: number

    Returns void

  • get heightInPixels(): number
  • Sets the height of the window in pixels.

    Returns number

  • set heightInPixels(value): void
  • Parameters

    • value: number

    Returns void

  • get icon(): Image
  • Gets the icon for the window.

    Returns Image

  • set icon(value): void
  • Gets the icon for the window.

    Parameters

    Returns void

  • get isActive(): boolean
  • Determines if the key window's tab is visible.

    Returns boolean

  • set isActive(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isDestroyed(): boolean
  • Determines whether the window has been destroyed or not.

    Returns boolean

  • get isFocused(): boolean
  • Checks whether the window currently has keyboard focus.

    Returns boolean

  • set isFocused(value): void
  • Parameters

    • value: boolean

    Returns void

  • get keyWindow(): KeyWindowBase
  • Gets the key window which owns this window.

    Returns KeyWindowBase

  • get left(): number
  • Returns the X position of the window in screen coordinates in points.

    Returns number

  • get localShortcutContext(): ShortcutContext
  • Specifies the local shortcut context. This context will be automatically disabled whenever the user switches focus from the context.

    Returns ShortcutContext

  • get owningContainerWindow(): EditorWindow
  • Gets the window of the owning container. The owning container is window that serves as the host for one or multiple key windows.

    Returns EditorWindow

  • get position(): Immutable<Vector2>
  • Determines the position in which the key window is, in screen coordinates.

    Returns Immutable<Vector2>

  • get renderWindow(): RenderWindow
  • Gets the RenderWindow associated with this EditorWindow.

    Returns RenderWindow

  • get shortcutContext(): ShortcutContext
  • Specifies the global shortcut context. This context will be always enabled as long as the window is active.

    Returns ShortcutContext

  • get toolBar(): UIToolBar
  • Gets the primary tool bar element.

    Returns UIToolBar

  • get top(): number
  • Returns the X position of the window in screen coordinates in points.

    Returns number

  • get undoRedo(): UndoRedo
  • Get the local undo redo of the key window.

    Returns UndoRedo

  • get width(): number
  • Sets the width of the window in points.

    Returns number

  • set width(value): void
  • Parameters

    • value: number

    Returns void

  • get widthInPixels(): number
  • Sets the width of the window in pixels.

    Returns number

  • set widthInPixels(value): void
  • Parameters

    • value: number

    Returns void

  • get windowTitle(): I18N
  • Determines the human name to display on the window title or it's tab.

    Returns I18N

    A string that contains a human readable name for the key window.

  • set windowTitle(value): void
  • Parameters

    Returns void

Methods

  • Centers the window within it's parent window.

    Returns void

  • Clear the undo/redo history.

    Returns void

  • Virtual

    Closes the key window.

    Returns void

  • Virtual

    Creates the default layout for a key window.

    Returns void

  • Virtual

    A method called internally after the last action is redone.

    Returns void

  • Virtual

    A method called internally after the last action is undone.

    Returns void

  • Virtual

    Gets whether this KeyWindow should display the User List control on the main menu title bar.

    Returns boolean

  • Virtual

    Gets whether this KeyWindow should use the main toolbar style.

    Returns boolean

  • Locks the window to prevent it from closing.

    Returns void

  • Parameters

    • isActive: boolean

    Returns void

  • Returns boolean

  • Virtual

    Method to override to implement destruction of custom windows. Called by the engine before the window is destroyed.

    Returns void

  • Virtual

    Method to override to implement custom behavior of a window, called by the engine once per frame.

    Returns void

  • Virtual

    Method to override to implement custom behavior of a window, called by the engine once per frame, once all the windows had their onEditorUpdate() method called.

    Returns void

  • Virtual

    Method to override to implement initialization of custom windows. Called by the engine after window creation.

    Parameters

    • options: any

    Returns void

  • Virtual

    Triggered whenever the window gains or loses focus.

    Parameters

    • inFocus: boolean

      True if focus was gained, false otherwise.

    Returns void

  • Virtual

    Triggered whenever the window size changes.

    Parameters

    • width: number

      New width of the window in pixels.

    • height: number

      New height of the window in pixels.

    Returns void

  • Brings the key window to the top.

    Returns void

  • Executes the last command on the redo stack (last command we called undo on), re-applying its operation.

    Returns void

  • Resets the key window layout to the default.

    Returns void

  • Virtual

    Sets a predefined dockable editor window layout.

    Parameters

    Returns void

    This will override any existing windows on the current layout.

  • Defines the window maximum width and height in points.

    Parameters

    • maxWidth: number
    • maxHeight: number

    Returns void

  • Defines the window minimum width and height in points.

    Parameters

    • minWidth: number

      The minimum width of the window in points.

    • minHeight: number

      The minimum height of the window in points.

    Returns void

  • Moves the window on the desktop. Coordinates are in screen space using points.

    Parameters

    • x: number
    • y: number

    Returns void

  • Moves the window on the desktop. Coordinates are in screen space using pixels.

    Parameters

    • x: number
    • y: number

    Returns void

  • Resizes the window using a width and height in points.

    Parameters

    • width: number
    • height: number

    Returns void

  • Resizes the window using a width and height in pixels.

    Parameters

    • width: number
    • height: number

    Returns void

  • Executes the last command on the undo stack, undoing its operations.

    Returns void

  • Unlocks the window to allow to be closed by the user.

    Returns void

  • Virtual

    A method called internally before the last action is redone.

    Returns void

  • Virtual

    A method called internally before the last action is undone.

    Returns void

Events

onResize: Event<[], void>

Event triggered once the window is resized.

onMove: Event<[], void>

Event triggered once the window is moved.

onClose: Event<[], void>

Event triggered when the window is closed.

onFocusChangedInternal: Event<[boolean], void>