mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix RHS page navigation. Add OnSuspend and OnResume to options example.
This commit is contained in:
parent
2661eca2cc
commit
01ea9496e7
2 changed files with 16 additions and 4 deletions
|
|
@ -64,6 +64,10 @@ func main() {
|
|||
},
|
||||
// User messages that can be customised
|
||||
Messages *windows.Messages
|
||||
// OnSuspend is called when Windows enters low power mode
|
||||
OnSuspend func()
|
||||
// OnResume is called when Windows resumes from low power mode
|
||||
OnResume func()
|
||||
},
|
||||
Mac: &mac.Options{
|
||||
TitleBar: &mac.TitleBar{
|
||||
|
|
@ -402,10 +406,10 @@ Requires Windows 11 build 22621 or later.
|
|||
|
||||
Sets the translucency type of the window. This is only applicable if [WindowIsTranslucent](#WindowIsTranslucent) is set to `true`.
|
||||
|
||||
Name: BackdropType
|
||||
Name: BackdropType<br/>
|
||||
Type `windows.BackdropType`
|
||||
|
||||
The Type can be one of the following:
|
||||
The value can be one of the following:
|
||||
|
||||
| Value | Description |
|
||||
|---------|-------------------------------------------------------------------------------------------|
|
||||
|
|
@ -544,14 +548,14 @@ Type: `uint16`
|
|||
|
||||
#### OnSuspend
|
||||
|
||||
If set, this function will be called when windows initiates a switch to low power mode (suspend/hibernate)
|
||||
If set, this function will be called when Windows initiates a switch to low power mode (suspend/hibernate)
|
||||
|
||||
Name: OnSuspend<br/>
|
||||
Type: `func()`
|
||||
|
||||
#### OnResume
|
||||
|
||||
If set, this function will be called when windows resumes from low power mode (suspend/hibernate)
|
||||
If set, this function will be called when Windows resumes from low power mode (suspend/hibernate)
|
||||
|
||||
Name: OnResume<br/>
|
||||
Type: `func()`
|
||||
|
|
|
|||
|
|
@ -218,4 +218,12 @@ cite {
|
|||
font-size: 12px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.docMainContainer_node_modules-\@docusaurus-theme-classic-lib-theme-DocPage-Layout-Main-styles-module .container .row .col {
|
||||
display: inline-flex;
|
||||
width: 50%;
|
||||
align-content: flex-end;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue