2023-01-07 16:59:27 +08:00
|
|
|
//----------------------------------------
|
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2023-02-19 23:21:47 +08:00
|
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
|
|
//
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
2023-01-07 16:59:27 +08:00
|
|
|
//
|
|
|
|
//----------------------------------------
|
|
|
|
|
|
|
|
//go:build !windows
|
|
|
|
|
2023-02-20 00:20:01 +08:00
|
|
|
// VF窗口组件定义和实现-非windows平台
|
2023-01-07 16:59:27 +08:00
|
|
|
package cef
|
|
|
|
|
2023-02-12 17:41:09 +08:00
|
|
|
import "github.com/energye/golcl/lcl"
|
|
|
|
|
2023-02-12 17:28:31 +08:00
|
|
|
// 显示标题栏
|
2023-01-07 21:29:08 +08:00
|
|
|
func (m *ViewsFrameworkBrowserWindow) ShowTitle() {
|
2023-02-12 17:28:31 +08:00
|
|
|
m.WindowProperty().EnableHideCaption = false
|
|
|
|
m.WindowComponent().SetOnIsFrameless(func(sender lcl.IObject, window *ICefWindow, aResult *bool) {
|
|
|
|
*aResult = false
|
|
|
|
})
|
2023-01-07 21:29:08 +08:00
|
|
|
}
|
|
|
|
|
2023-02-12 17:28:31 +08:00
|
|
|
// 隐藏标题栏
|
2023-01-07 16:59:27 +08:00
|
|
|
func (m *ViewsFrameworkBrowserWindow) HideTitle() {
|
2023-02-12 17:28:31 +08:00
|
|
|
m.WindowProperty().EnableHideCaption = true
|
|
|
|
m.WindowComponent().SetOnIsFrameless(func(sender lcl.IObject, window *ICefWindow, aResult *bool) {
|
|
|
|
*aResult = true
|
|
|
|
})
|
2023-01-07 16:59:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewsFrameworkBrowserWindow) SetDefaultInTaskBar() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewsFrameworkBrowserWindow) SetShowInTaskBar() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ViewsFrameworkBrowserWindow) SetNotInTaskBar() {
|
|
|
|
|
|
|
|
}
|