Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
energye
energy
提交
472331fa
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,发现更多精彩内容 >>
提交
472331fa
编写于
12月 12, 2022
作者:
yanghye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: window-component,test
上级
63afa7e3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
42 addition
and
37 deletion
+42
-37
cef/cef-types.go
cef/cef-types.go
+5
-0
cef/cef-window-component.go
cef/cef-window-component.go
+37
-37
未找到文件。
cef/cef-types.go
浏览文件 @
472331fa
...
...
@@ -153,6 +153,11 @@ type TCefPoint struct {
Y
int32
}
type
TCefDraggableRegion
struct
{
Bounds
TCefRect
Draggable
int32
}
type
ICefClient
struct
{
instance
unsafe
.
Pointer
}
...
...
cef/cef-window-component.go
浏览文件 @
472331fa
...
...
@@ -67,117 +67,117 @@ func (m *TCEFWindowComponent) AddOverlayView() {
}
func
(
m
*
TCEFWindowComponent
)
ShowMenu
(
menuModel
*
ICefMenuModel
,
point
TCefPoint
,
anchorPosition
consts
.
TCefMenuAnchorPosition
)
{
Proc
(
internale_CEFWindowComponent_ShowMenu
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_ShowMenu
)
.
Call
(
uintptr
(
m
.
instance
)
,
uintptr
(
menuModel
.
instance
),
uintptr
(
unsafe
.
Pointer
(
&
point
)),
uintptr
(
anchorPosition
)
)
}
func
(
m
*
TCEFWindowComponent
)
CancelMenu
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
CancelMenu
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetDraggableRegions
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
func
(
m
*
TCEFWindowComponent
)
SetDraggableRegions
(
regionsCount
int32
,
regions
[]
TCefDraggableRegion
)
{
Proc
(
internale_CEFWindowComponent_
SetDraggableRegions
)
.
Call
(
uintptr
(
m
.
instance
),
uintptr
(
regionsCount
),
uintptr
(
unsafe
.
Pointer
(
&
regions
[
0
])),
uintptr
(
int32
(
len
(
regions
))
))
}
func
(
m
*
TCEFWindowComponent
)
SendKeyPress
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
func
(
m
*
TCEFWindowComponent
)
SendKeyPress
(
keyCode
int32
,
eventFlags
uint32
)
{
Proc
(
internale_CEFWindowComponent_
SendKeyPress
)
.
Call
(
uintptr
(
m
.
instance
),
uintptr
(
keyCode
),
uintptr
(
eventFlags
))
}
func
(
m
*
TCEFWindowComponent
)
SendMouseMove
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
func
(
m
*
TCEFWindowComponent
)
SendMouseMove
(
screenX
,
screenY
int32
)
{
Proc
(
internale_CEFWindowComponent_
SendMouseMove
)
.
Call
(
uintptr
(
m
.
instance
),
uintptr
(
screenX
),
uintptr
(
screenY
))
}
func
(
m
*
TCEFWindowComponent
)
SendMouseEvents
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SendMouseEvents
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetAccelerator
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetAccelerator
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
RemoveAccelerator
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
RemoveAccelerator
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
RemoveAllAccelerators
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
RemoveAllAccelerators
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
Title
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
Title
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
WindowIcon
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
WindowIcon
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
WindowAppIcon
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
WindowAppIcon
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
Display
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
Display
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
ClientAreaBoundsInScreen
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
ClientAreaBoundsInScreen
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
WindowHandle
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
WindowHandle
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
IsClosed
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
IsClosed
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
IsActive
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
IsActive
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
IsAlwaysOnTop
()
{
Proc
(
internale_CEFWindowComponent_
BringTo
Top
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
IsAlwaysOn
Top
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
IsFullscreen
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
IsFullscreen
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
IsMaximized
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
IsMaximized
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
IsMinimized
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
IsMinimized
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnWindowCreated
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnWindowCreated
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnWindowDestroyed
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnWindowDestroyed
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnWindowActivationChanged
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnWindowActivationChanged
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnGetParentWindow
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnGetParentWindow
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnGetInitialBounds
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnGetInitialBounds
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnGetInitialShowState
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnGetInitialShowState
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnIsFrameless
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnIsFrameless
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnCanResize
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnCanResize
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnCanMaximize
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnCanMaximize
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnCanMinimize
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnCanMinimize
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnCanClose
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnCanClose
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnAccelerator
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnAccelerator
)
.
Call
(
uintptr
(
m
.
instance
))
}
func
(
m
*
TCEFWindowComponent
)
SetOnKeyEvent
()
{
Proc
(
internale_CEFWindowComponent_
BringToTop
)
.
Call
(
uintptr
(
m
.
instance
))
Proc
(
internale_CEFWindowComponent_
SetOnKeyEvent
)
.
Call
(
uintptr
(
m
.
instance
))
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录