Window Options
constructor(id: String, title: String = "", icon: Painter? = null, resizable: Boolean = true, alwaysOnTop: Boolean = false, minimumSize: DpSize = DpSize(405.dp, 720.dp), maximumSize: DpSize = DpSize.Unspecified, size: DpSize = DpSize(800.dp, 720.dp), position: DpOffset = DpOffset.Zero, alignment: Alignment? = Alignment.Center, state: WindowState = WindowState.Floating, currentWindowId: String = Constants.DEFAULT_WINDOW)
Parameters
id
Window的id
title
window的标题
icon
Icon in the titlebar of the window (for platforms which support this). On macOs individual windows can't have a separate icon. To change the icon in the Dock, set it via iconFile in build.gradle (https://github.com/JetBrains/compose-jb/tree/master/tutorials/Native_distributions_and_local_execution#platform-specific-options)
resizable
用户是否可以改变窗体大小
always On Top
该窗体是否永远置于所有窗体上方
minimum Size
Window最小尺寸
maximum Size
window的最大尺寸
size
window初始尺寸
position
window位置
alignment
对齐方式,比如说window居中:Alignment.Center,请注意,在alignment 设置了值之后,position将失效