mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 15:11:53 +08:00

* add support for minimum and maximum window sizes
* attempt to fix windows
* bug fixes
* support min/max window sizes on Linux and Windows
* fix min/max window sizes on Linux
* formatting and comments
* fixes Windows DPI issue, clamps width/height values to min/max
* App can't go into full screen when max size is set for Mac
* fixed Linux maximum width/height on window maximize
* Revert "fixed Linux maximum width/height on window maximize"
This reverts commit 3f7ba8b264
.
The fix glitches on PopOS
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
34 lines
676 B
Go
34 lines
676 B
Go
package interfaces
|
|
|
|
import (
|
|
"github.com/wailsapp/wails/lib/messages"
|
|
)
|
|
|
|
// Renderer is an interface describing a Wails target to render the app to
|
|
type Renderer interface {
|
|
Initialise(AppConfig, IPCManager, EventManager) error
|
|
Run() error
|
|
|
|
// Binding
|
|
NewBinding(bindingName string) error
|
|
|
|
// Events
|
|
NotifyEvent(eventData *messages.EventData) error
|
|
|
|
// Dialog Runtime
|
|
SelectFile(title string, filter string) string
|
|
SelectDirectory() string
|
|
SelectSaveFile(title string, filter string) string
|
|
|
|
// Window Runtime
|
|
SetColour(string) error
|
|
|
|
SetMinSize(width, height int)
|
|
SetMaxSize(width, height int)
|
|
|
|
Fullscreen()
|
|
UnFullscreen()
|
|
SetTitle(title string)
|
|
Close()
|
|
}
|