mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-08 02:50:00 +08:00
[linux/cgo] updates
This commit is contained in:
parent
718e89ad1e
commit
a485b188b3
@ -381,7 +381,7 @@ func newMinimizeMenuItem() *MenuItem {
|
||||
OnClick(func(ctx *Context) {
|
||||
currentWindow := globalApplication.CurrentWindow()
|
||||
if currentWindow != nil {
|
||||
currentWindow.Minimize()
|
||||
currentWindow.Minimise()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -304,6 +304,17 @@ func (w *linuxWebviewWindow) hide() {
|
||||
C.gtk_widget_hide((*C.GtkWidget)(w.window))
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) isNormal() bool {
|
||||
return !w.isMinimised() && !w.isMaximised() && !w.isFullscreen()
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) isVisible() bool {
|
||||
if C.gtk_widget_is_visible((*C.GtkWidget)(w.window)) == 1 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) setFullscreenButtonEnabled(enabled bool) {
|
||||
// C.setFullscreenButtonEnabled(w.nsWindow, C.bool(enabled))
|
||||
fmt.Println("setFullscreenButtonEnabled - not implemented")
|
||||
@ -714,7 +725,7 @@ func (w *linuxWebviewWindow) setTransparent() {
|
||||
}
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) setBackgroundColour(colour *RGBA) {
|
||||
func (w *linuxWebviewWindow) setBackgroundColour(colour RGBA) {
|
||||
if colour == nil {
|
||||
return
|
||||
}
|
||||
@ -755,3 +766,7 @@ func (w *linuxWebviewWindow) setHTML(html string) {
|
||||
uri,
|
||||
empty)
|
||||
}
|
||||
|
||||
func (w *linuxWebviewWindow) nativeWindowHandle() uintptr {
|
||||
return uintptr(w.window)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user