Fix RHS page navigation. Add OnSuspend and OnResume to options example.

This commit is contained in:
Lea Anthony 2022-09-20 09:57:24 +10:00
commit 01ea9496e7
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405
2 changed files with 16 additions and 4 deletions

View file

@ -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()`

View file

@ -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;
}