Files
archived-tauri-docs/docs/usage/patterns/multiwin.md
Laegel 441fc32f34 Feat/moving website content (#48)
* chore: moving files from 'website' folder

* chore(readme): Removed 'cd website' line

* chore: Moving netlify.toml

* chore(conflicts)
2020-05-25 23:43:14 +02:00

2.0 KiB

id, title, sidebar_label
id title sidebar_label
multiwin Multiwin Multiwin
Please note:
This pattern is not available for now.

import Rater from '@theme/Rater'

Ease of Use
Extensibility
Performance
Security
Multiwin
Pros:
  • Access to GL context
  • Separation of concerns
Cons:
  • Extremely complex

Description

The Multiwin recipe will allow you to have multiple windows, some of which may be GL based.

Diagram

import Mermaid, { colors } from '@theme/Mermaid'

<Mermaid chart={graph LR A==>H H==>F H==>G subgraph WEBVIEW F end subgraph GLUTIN G end subgraph RUST A end A[Binary] F[Window] G[GL Window] H{Bootstrap} style GLUTIN stroke:${colors.blue.dark},stroke-width:4px style RUST fill:${colors.orange.light},stroke:${colors.orange.dark},stroke-width:4px style WEBVIEW fill:${colors.blue.light},stroke:${colors.blue.dark},stroke-width:4px} />

Configuration

Here's what you need to add to your tauri.conf.json file:

"tauri": {
  "embeddedServer": {
    "active": false               // do not use a localhost server
  },
  "whitelist": {                  // all API endpoints are default false
    "event": true,                // Use the EVENT API for injections
  }
}