Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
energye
energy
提交
d2623649
energy
项目概览
energye
/
energy
通知
13
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
energy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d2623649
编写于
7月 02, 2023
作者:
yanghye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
A: ICefView Proc
上级
6352f851
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
584 addition
and
2 deletion
+584
-2
cef/internal/def/proc-def-index.go
cef/internal/def/proc-def-index.go
+51
-0
cef/internal/def/proc-def.go
cef/internal/def/proc-def.go
+51
-0
cef/types-view.go
cef/types-view.go
+439
-1
cef/types.go
cef/types.go
+43
-1
未找到文件。
cef/internal/def/proc-def-index.go
浏览文件 @
d2623649
...
...
@@ -2264,4 +2264,55 @@ const (
// CustomWidgetInterface for Linux
Interface_CustomWidgetSetInitialization
Interface_CustomWidgetSetFinalization
// ICefView
View_AsBrowserView
View_AsButton
View_AsPanel
View_AsScrollView
View_AsTextfield
View_GetTypeString
View_ToStringEx
View_IsValid
View_IsAttached
View_IsSame
View_GetDelegate
View_GetWindow
View_GetID
View_SetID
View_GetGroupID
View_SetGroupID
View_GetParentView
View_GetViewForID
View_SetBounds
View_GetBounds
View_GetBoundsInScreen
View_SetSize
View_GetSize
View_SetPosition
View_GetPosition
View_SetInsets
View_GetInsets
View_GetPreferredSize
View_SizeToPreferredSize
View_GetMinimumSize
View_GetMaximumSize
View_GetHeightForWidth
View_InvalidateLayout
View_SetVisible
View_IsVisible
View_IsDrawn
View_SetEnabled
View_IsEnabled
View_SetFocusable
View_IsFocusable
View_IsAccessibilityFocusable
View_RequestFocus
View_SetBackgroundColor
View_GetBackgroundColor
View_ConvertPointToScreen
View_ConvertPointFromScreen
View_ConvertPointToWindow
View_ConvertPointFromWindow
View_ConvertPointToView
View_ConvertPointFromView
)
//end
cef/internal/def/proc-def.go
浏览文件 @
d2623649
...
...
@@ -2264,6 +2264,57 @@ func init() {
// CustomWidgetInterface for Linux
dllimports
.
NewEnergyImport
(
"Interface_CustomWidgetSetInitialization"
,
0
),
dllimports
.
NewEnergyImport
(
"Interface_CustomWidgetSetFinalization"
,
0
),
// ICefView
dllimports
.
NewEnergyImport
(
"View_AsBrowserView"
,
0
),
dllimports
.
NewEnergyImport
(
"View_AsButton"
,
0
),
dllimports
.
NewEnergyImport
(
"View_AsPanel"
,
0
),
dllimports
.
NewEnergyImport
(
"View_AsScrollView"
,
0
),
dllimports
.
NewEnergyImport
(
"View_AsTextfield"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetTypeString"
,
0
),
dllimports
.
NewEnergyImport
(
"View_ToStringEx"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsValid"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsAttached"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsSame"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetDelegate"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetWindow"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetID"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetID"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetGroupID"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetGroupID"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetParentView"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetViewForID"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetBounds"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetBounds"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetBoundsInScreen"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetSize"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetSize"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetPosition"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetPosition"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetInsets"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetInsets"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetPreferredSize"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SizeToPreferredSize"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetMinimumSize"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetMaximumSize"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetHeightForWidth"
,
0
),
dllimports
.
NewEnergyImport
(
"View_InvalidateLayout"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetVisible"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsVisible"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsDrawn"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetEnabled"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsEnabled"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetFocusable"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsFocusable"
,
0
),
dllimports
.
NewEnergyImport
(
"View_IsAccessibilityFocusable"
,
0
),
dllimports
.
NewEnergyImport
(
"View_RequestFocus"
,
0
),
dllimports
.
NewEnergyImport
(
"View_SetBackgroundColor"
,
0
),
dllimports
.
NewEnergyImport
(
"View_GetBackgroundColor"
,
0
),
dllimports
.
NewEnergyImport
(
"View_ConvertPointToScreen"
,
0
),
dllimports
.
NewEnergyImport
(
"View_ConvertPointFromScreen"
,
0
),
dllimports
.
NewEnergyImport
(
"View_ConvertPointToWindow"
,
0
),
dllimports
.
NewEnergyImport
(
"View_ConvertPointFromWindow"
,
0
),
dllimports
.
NewEnergyImport
(
"View_ConvertPointToView"
,
0
),
dllimports
.
NewEnergyImport
(
"View_ConvertPointFromView"
,
0
),
}
//end
imports
.
SetEnergyImportDefs
(
energyImportDefs
)
}
cef/types-view.go
浏览文件 @
d2623649
...
...
@@ -4,12 +4,20 @@
//
// Licensed under Apache License Version 2.0, January 2004
//
// https
:
//www.apache.org/licenses/LICENSE-2.0
// https//www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
package
cef
import
(
"github.com/energye/energy/v2/cef/internal/def"
"github.com/energye/energy/v2/common/imports"
"github.com/energye/energy/v2/types"
"github.com/energye/golcl/lcl/api"
"unsafe"
)
// Instance 实例
func
(
m
*
ICefView
)
Instance
()
uintptr
{
if
m
==
nil
{
...
...
@@ -17,3 +25,433 @@ func (m *ICefView) Instance() uintptr {
}
return
uintptr
(
m
.
instance
)
}
func
(
m
*
ICefView
)
Free
()
{
if
m
.
instance
!=
nil
{
m
.
base
.
Free
(
m
.
Instance
())
m
.
instance
=
nil
}
}
func
(
m
*
ICefView
)
AsBrowserView
()
*
ICefBrowserView
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_AsBrowserView
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefBrowserView
{
&
ICefView
{
instance
:
getInstance
(
result
)}}
}
return
nil
}
func
(
m
*
ICefView
)
AsButton
()
*
ICefButton
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_AsButton
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefButton
{
&
ICefView
{
instance
:
getInstance
(
result
)}}
}
return
nil
}
func
(
m
*
ICefView
)
AsPanel
()
*
ICefPanel
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_AsPanel
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefPanel
{
&
ICefView
{
instance
:
getInstance
(
result
)}}
}
return
nil
}
func
(
m
*
ICefView
)
AsScrollView
()
*
ICefScrollView
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_AsScrollView
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefScrollView
{
&
ICefView
{
instance
:
getInstance
(
result
)}}
}
return
nil
}
func
(
m
*
ICefView
)
AsTextfield
()
*
ICefTextfield
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_AsTextfield
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefTextfield
{
&
ICefView
{
instance
:
getInstance
(
result
)}}
}
return
nil
}
func
(
m
*
ICefView
)
GetTypeString
()
string
{
if
!
m
.
IsValid
()
{
return
""
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_GetTypeString
)
.
Call
(
m
.
Instance
())
return
api
.
GoStr
(
r1
)
}
func
(
m
*
ICefView
)
ToStringEx
(
includeChildren
bool
)
string
{
if
!
m
.
IsValid
()
{
return
""
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_ToStringEx
)
.
Call
(
m
.
Instance
(),
api
.
PascalBool
(
includeChildren
))
return
api
.
GoStr
(
r1
)
}
func
(
m
*
ICefView
)
IsValid
()
bool
{
if
m
==
nil
||
m
.
instance
==
nil
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsValid
)
.
Call
(
m
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
IsAttached
()
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsAttached
)
.
Call
(
m
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
IsSame
(
that
*
ICefView
)
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsSame
)
.
Call
(
m
.
Instance
(),
that
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
GetDelegate
()
*
ICefViewDelegate
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_GetDelegate
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefViewDelegate
{
instance
:
getInstance
(
result
)}
}
return
nil
}
func
(
m
*
ICefView
)
GetWindow
()
*
ICefWindow
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_GetWindow
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefWindow
{
instance
:
getInstance
(
result
)}
}
return
nil
}
func
(
m
*
ICefView
)
GetID
()
int32
{
if
!
m
.
IsValid
()
{
return
0
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_GetID
)
.
Call
(
m
.
Instance
())
return
int32
(
r1
)
}
func
(
m
*
ICefView
)
SetID
(
id
int32
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetID
)
.
Call
(
m
.
Instance
(),
uintptr
(
id
))
}
func
(
m
*
ICefView
)
GetGroupID
()
int32
{
if
!
m
.
IsValid
()
{
return
0
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_GetGroupID
)
.
Call
(
m
.
Instance
())
return
int32
(
r1
)
}
func
(
m
*
ICefView
)
SetGroupID
(
groupId
int32
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetGroupID
)
.
Call
(
m
.
Instance
(),
uintptr
(
groupId
))
}
func
(
m
*
ICefView
)
GetParentView
()
*
ICefView
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_GetParentView
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefView
{
instance
:
getInstance
(
result
)}
}
return
nil
}
func
(
m
*
ICefView
)
GetViewForID
(
id
int32
)
*
ICefView
{
if
!
m
.
IsValid
()
{
return
nil
}
var
result
uintptr
imports
.
Proc
(
def
.
View_GetViewForID
)
.
Call
(
m
.
Instance
(),
uintptr
(
id
),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
if
result
!=
0
{
return
&
ICefView
{
instance
:
getInstance
(
result
)}
}
return
nil
}
func
(
m
*
ICefView
)
SetBounds
(
bounds
TCefRect
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetBounds
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
bounds
)))
}
func
(
m
*
ICefView
)
GetBounds
()
(
result
TCefRect
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetBounds
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
GetBoundsInScreen
()
(
result
TCefRect
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetBoundsInScreen
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
SetSize
(
size
TCefSize
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetSize
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
size
)))
}
func
(
m
*
ICefView
)
GetSize
()
(
result
TCefSize
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetSize
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
SetPosition
(
position
TCefPoint
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetPosition
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
position
)))
}
func
(
m
*
ICefView
)
GetPosition
()
(
result
TCefPoint
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetPosition
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
SetInsets
(
insets
TCefInsets
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetInsets
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
insets
)))
}
func
(
m
*
ICefView
)
GetInsets
()
(
result
TCefInsets
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetInsets
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
GetPreferredSize
()
(
result
TCefSize
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetPreferredSize
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
SizeToPreferredSize
()
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SizeToPreferredSize
)
.
Call
(
m
.
Instance
())
}
func
(
m
*
ICefView
)
GetMinimumSize
()
(
result
TCefSize
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetMinimumSize
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
GetMaximumSize
()
(
result
TCefSize
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_GetMaximumSize
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
result
)))
return
}
func
(
m
*
ICefView
)
GetHeightForWidth
(
width
int32
)
int32
{
if
!
m
.
IsValid
()
{
return
0
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_GetHeightForWidth
)
.
Call
(
m
.
Instance
(),
uintptr
(
width
))
return
int32
(
r1
)
}
func
(
m
*
ICefView
)
InvalidateLayout
()
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_InvalidateLayout
)
.
Call
(
m
.
Instance
())
}
func
(
m
*
ICefView
)
SetVisible
(
visible
bool
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetVisible
)
.
Call
(
m
.
Instance
(),
api
.
PascalBool
(
visible
))
}
func
(
m
*
ICefView
)
IsVisible
()
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsVisible
)
.
Call
(
m
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
IsDrawn
()
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsDrawn
)
.
Call
(
m
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
SetEnabled
(
enabled
bool
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetEnabled
)
.
Call
(
m
.
Instance
(),
api
.
PascalBool
(
enabled
))
}
func
(
m
*
ICefView
)
IsEnabled
()
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsEnabled
)
.
Call
(
m
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
SetFocusable
(
focusable
bool
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetFocusable
)
.
Call
(
m
.
Instance
(),
api
.
PascalBool
(
focusable
))
}
func
(
m
*
ICefView
)
IsFocusable
()
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsFocusable
)
.
Call
(
m
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
IsAccessibilityFocusable
()
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_IsAccessibilityFocusable
)
.
Call
(
m
.
Instance
())
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
RequestFocus
()
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_RequestFocus
)
.
Call
(
m
.
Instance
())
}
func
(
m
*
ICefView
)
SetBackgroundColor
(
color
types
.
TCefColor
)
{
if
!
m
.
IsValid
()
{
return
}
imports
.
Proc
(
def
.
View_SetBackgroundColor
)
.
Call
(
m
.
Instance
(),
uintptr
(
color
))
}
func
(
m
*
ICefView
)
GetBackgroundColor
()
types
.
TCefColor
{
if
!
m
.
IsValid
()
{
return
0
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_GetBackgroundColor
)
.
Call
(
m
.
Instance
())
return
types
.
TCefColor
(
r1
)
}
func
(
m
*
ICefView
)
ConvertPointToScreen
(
point
TCefPoint
)
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_ConvertPointToScreen
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
point
)))
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
ConvertPointFromScreen
(
point
TCefPoint
)
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_ConvertPointFromScreen
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
point
)))
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
ConvertPointToWindow
(
point
TCefPoint
)
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_ConvertPointToWindow
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
point
)))
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
ConvertPointFromWindow
(
point
TCefPoint
)
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_ConvertPointFromWindow
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
point
)))
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
ConvertPointToView
(
view
ICefView
,
point
TCefPoint
)
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_ConvertPointToView
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
view
)),
uintptr
(
unsafe
.
Pointer
(
&
point
)))
return
api
.
GoBool
(
r1
)
}
func
(
m
*
ICefView
)
ConvertPointFromView
(
view
ICefView
,
point
TCefPoint
)
bool
{
if
!
m
.
IsValid
()
{
return
false
}
r1
,
_
,
_
:=
imports
.
Proc
(
def
.
View_ConvertPointFromView
)
.
Call
(
m
.
Instance
(),
uintptr
(
unsafe
.
Pointer
(
&
view
)),
uintptr
(
unsafe
.
Pointer
(
&
point
)))
return
api
.
GoBool
(
r1
)
}
cef/types.go
浏览文件 @
d2623649
...
...
@@ -475,12 +475,46 @@ type TCefPostDataElementArray struct {
}
// ICefBrowserView
// /include/capi/views/cef_browser_view_capi.h (cef_browser_view_t)
type
ICefBrowserView
struct
{
instance
unsafe
.
Pointer
*
ICefView
}
// ICefButton
// /include/capi/views/cef_button_capi.h (cef_button_t)
type
ICefButton
struct
{
*
ICefView
}
// ICefPanel
// /include/capi/views/cef_panel_capi.h (cef_panel_t)
type
ICefPanel
struct
{
*
ICefView
}
// ICefScrollView
// /include/capi/views/cef_scroll_view_capi.h (cef_scroll_view_t)
type
ICefScrollView
struct
{
*
ICefView
}
// ICefTextfield
// /include/capi/views/cef_textfield_capi.h (cef_textfield_t)
type
ICefTextfield
struct
{
*
ICefView
}
// ICefView
// /include/capi/views/cef_view_capi.h (cef_view_t)
type
ICefView
struct
{
base
TCefBaseRefCounted
instance
unsafe
.
Pointer
}
// ICefViewDelegate
// /include/capi/views/cef_view_delegate_capi.h (cef_view_delegate_t)
type
ICefViewDelegate
struct
{
base
TCefBaseRefCounted
instance
unsafe
.
Pointer
}
...
...
@@ -978,6 +1012,14 @@ type TCefRange struct {
To
int32
}
// /include/internal/cef_types_geometry.h (cef_insets_t)
type
TCefInsets
struct
{
Top
int32
Left
int32
Bottom
int32
Right
int32
}
// TCefAudioParameters
// /include/internal/cef_types.h (cef_audio_parameters_t)
type
TCefAudioParameters
struct
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录