mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 10:47:57 +08:00
d9f14c6a46
代码授权注释修改
34 lines
671 B
Go
34 lines
671 B
Go
//----------------------------------------
|
|
//
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
//
|
|
// Licensed under Apache License Version 2.0, January 2004
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
//----------------------------------------
|
|
|
|
// CEF Window Parent 父组件
|
|
package cef
|
|
|
|
import (
|
|
"github.com/energye/golcl/lcl"
|
|
"unsafe"
|
|
)
|
|
|
|
// WindowParent和WindowLinkedParent父结构体
|
|
type BaseWinControl struct {
|
|
lcl.IWinControl
|
|
instance unsafe.Pointer
|
|
}
|
|
|
|
// IsValid 是否有效
|
|
func (m *BaseWinControl) IsValid() bool {
|
|
return m.instance != nullptr
|
|
}
|
|
|
|
// Instance 当前实例
|
|
func (m *BaseWinControl) Instance() uintptr {
|
|
return uintptr(m.instance)
|
|
}
|