energy/cef/cef-base-win-control.go
杨红岩 d9f14c6a46 修改注释文档
代码授权注释修改
2023-02-19 23:21:47 +08:00

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)
}