tauri/docs/usage/patterns/glui.md

92 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: GLUI
---
import Alert from '@theme/Alert'
import useBaseUrl from '@docusaurus/useBaseUrl'
<Alert type="warning" icon="info-alt" title="Please note">
This pattern is not available for now.
</Alert>
import Rater from '@theme/Rater'
<div className="row">
<div className="col col--4">
<table>
<tr>
<td>Ease of Use</td>
<td><Rater value="0"/></td>
</tr>
<tr>
<td>Extensibility</td>
<td><Rater value="0"/></td>
</tr>
<tr>
<td>Performance</td>
<td><Rater value="5"/></td>
</tr>
<tr>
<td>Security</td>
<td><Rater value="0"/></td>
</tr>
</table>
</div>
<div className="col col--4 pattern-logo">
<img src={useBaseUrl('img/patterns/GLUI.png')} alt="GLUI" />
</div>
<div className="col col--4">
Pros:
<ul>
<li>Framebuffer FTW</li>
<li>Window events rigged</li>
</ul>
Cons:
<ul>
<li>Broken on your machine</li>
</ul>
</div>
</div>
## Description
The GLUI is a research pattern that we will use internally to test approaches using a GLUTIN window. Were not sure yet if it will make the final cut as a bona fide alternative to WebView, although early tests with transparent and multiwindow are exciting.
## Diagram
import Mermaid, { colors } from '@theme/Mermaid'
<Mermaid chart={`graph TD
A==>H
H==>G
A-->D
D-->G
subgraph GLUTIN
G
end
subgraph RUST
A
end
A[Binary]
D(Framebuffer)
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`} />
## Configuration
Here's what you need to add to your tauri.conf.json file:
```json
"tauri": {
"allowlist": { // all API endpoints are default false
"all": false, // disable the api
},
"window": { // not yet normative
"glutin": true,
"webview": false
}
}
```