wails/docs/src/content/docs/development/changes_window.md
Stavros Kois b6c8d9a90a
[v3] Add starlight website (#3917)
* init docs

* add few categories

* add more

* update home

* add blog

* update favicon

* fix few links and

* untouch

* untouch more

* add some icons

* add icons

* move ggetting started at the top and collapse the rest

* actually collapse

* format

* remove includes

* more format

* remove includes

* move assets

* add i18n

* fix i18n

* formatting

* order

* Prevent sidebar from making the page shake during load

* Prevent sidebar from making the page shake during load

* organize docs

* fix link

* expand a bit

* add credits page

* update all contributors file

* remove underlines

* add alternative

* use html

* lets get the first success build

* add latest entry

* remove example file

* fix examples

* more fixes

* fix grammar

* grammar

* remove dupes

* fix link

* grammar

* typo

* typo

* typo

* Logo update. Minor changes.

* update changelog

* update changelog

* rabbit is right

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-12-08 12:09:13 +11:00

1.5 KiB

title sidebar
Changes (Window)
order
50

The Window API has largely remained the same, however the methods are now on an instance of a window rather than the runtime. Some notable differences are:

  • Windows now have a Name that identifies them. This is used to identify the window when emitting events.
  • Windows have even more methods that were previously unavailable, such as SetFrameless and ToggleDevTools.
  • Windows can now accept files via native drag and drop. See the Drag and Drop section for more details.

BackgroundColour

In v2, this was a pointer to an RGBA struct. In v3, this is an RGBA struct value.

WindowIsTranslucent

This flag has been removed. Now there is a BackgroundType flag that can be used to set the type of background the window should have. This flag can be set to any of the following values:

  • BackgroundTypeSolid - The window will have a solid background
  • BackgroundTypeTransparent - The window will have a transparent background
  • BackgroundTypeTranslucent - The window will have a translucent background

On Windows, if the BackgroundType is set to BackgroundTypeTranslucent, the type of translucency can be set using the BackdropType flag in the WindowsWindow options. This can be set to any of the following values:

  • Auto - The window will use an effect determined by the system
  • None - The window will have no background
  • Mica - The window will use the Mica effect
  • Acrylic - The window will use the acrylic effect
  • Tabbed - The window will use the tabbed effect