mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
app: [API] add Window.Perform, replacing Close, Raise, Centered
This new method performs user related actions on the Window, supporting custom window decorations. It supersedes the Close and Raise methods as well as the Centered window option. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
@@ -18,7 +18,16 @@ const (
|
||||
ActionUnmaximize
|
||||
// ActionFullscreen makes a window fullscreen.
|
||||
ActionFullscreen
|
||||
// ActionRaise requests that the platform bring this window to the top of all open windows.
|
||||
// Some platforms do not allow this except under certain circumstances, such as when
|
||||
// a window from the same application already has focus. If the platform does not
|
||||
// support it, this method will do nothing.
|
||||
ActionRaise
|
||||
// ActionCenter centers the window on the screen.
|
||||
// It is ignored in Fullscreen mode and on Wayland.
|
||||
ActionCenter
|
||||
// ActionClose closes a window.
|
||||
// Only applicable on macOS, Windows, X11 and Wayland.
|
||||
ActionClose
|
||||
// ActionMove moves a window directed by the user.
|
||||
ActionMove
|
||||
|
||||
Reference in New Issue
Block a user