Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: MDIWindow

[13:7] extends: Region

Wraps FXGL's MDIWindow, a lightweight non-native child window intended to sit inside the main game scene. Provides title, resizable / movable behavior, and a content pane.

Methods

  • MDIWindow (string Title = "Untitled")

    Creates a new MDIWindow with the given title.

    • @p Title is the window title.
  • setTitle (string Title)

    Sets the window title.

    • @p Title is the new title.
    • @r this object
  • setPrefSize (double Width, double Height)

    Sets the window preferred size.

    • @p Width is the preferred width.
    • @p Height is the preferred height.
    • @r this object
  • getTitle ()

    Returns the current title.

    • @r A string.
  • getContentPane ()

    Returns the inner content Pane that holds the window content.

    • @r An AussomJavaObject around a JavaFX Pane.
  • setContentPane (object PaneObj)

    Replaces the inner content Pane with the supplied Pane. Required for any content to appear in the window beyond the title bar.

    • @p PaneObj is a fx.Pane wrapper.
    • @r this object
  • setManuallyResizable (bool Resizable)

    Sets whether the user can resize the window by dragging.

    • @p Resizable is a bool.
    • @r this object
  • isManuallyResizable ()

    Returns whether the user can resize the window.

    • @r A bool.
  • setMovable (bool Movable)

    Sets whether the user can drag the window around.

    • @p Movable is a bool.
    • @r this object
  • isMovable ()

    Returns whether the window can be moved.

    • @r A bool.
  • setMinimizable (bool Minimizable)

    Sets whether the minimize button is shown.

    • @p Minimizable is a bool.
    • @r this object
  • isMinimizable ()

    Returns whether the minimize button is shown.

    • @r A bool.
  • setCloseable (bool Closeable)

    Sets whether the close button is shown.

    • @p Closeable is a bool.
    • @r this object
  • isCloseable ()

    Returns whether the close button is shown.

    • @r A bool.