CenteredOn

class CenteredOn(val window: Window) : WindowPosition

The window is centered on window, whatever the relation between the two. A window that is not on screen yet centers the window on that window's screen instead of on its bounds.

The centering happens as the position is applied, on the bounds window holds at that moment, so the window stands where it was put once window moves on. Declaring it again re-centers the window, whether or not it is already shown.

Constructors

Link copied to clipboard
constructor(window: Window)

Properties

Link copied to clipboard

the window whose bounds this window is centered on

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String