2023-02-20 14:42:17 +08:00
|
|
|
// ----------------------------------------
|
2022-12-31 13:16:30 +08:00
|
|
|
//
|
|
|
|
// Copyright © yanghy. All Rights Reserved.
|
|
|
|
//
|
2023-02-20 14:42:17 +08:00
|
|
|
// # Licensed under Apache License Version 2.0, January 2004
|
2023-02-19 23:21:47 +08:00
|
|
|
//
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
2022-12-31 13:16:30 +08:00
|
|
|
//
|
2023-02-20 14:42:17 +08:00
|
|
|
// ----------------------------------------
|
2022-12-31 13:16:30 +08:00
|
|
|
|
2023-02-20 14:42:17 +08:00
|
|
|
// CefDisplay
|
2022-12-29 18:42:16 +08:00
|
|
|
package cef
|
|
|
|
|
|
|
|
import (
|
2023-02-13 21:25:35 +08:00
|
|
|
"github.com/energye/energy/common/imports"
|
2022-12-29 18:42:16 +08:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (m *ICefDisplay) ID() (result int64) {
|
2023-02-13 21:25:35 +08:00
|
|
|
imports.Proc(internale_CEFDisplay_ID).Call(uintptr(m.instance), uintptr(unsafe.Pointer(&result)))
|
2022-12-29 18:42:16 +08:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2023-03-01 13:38:43 +08:00
|
|
|
func (m *ICefDisplay) DeviceScaleFactor() float32 {
|
|
|
|
var result uintptr
|
2023-02-13 21:25:35 +08:00
|
|
|
imports.Proc(internale_CEFDisplay_DeviceScaleFactor).Call(uintptr(m.instance), uintptr(unsafe.Pointer(&result)))
|
2023-03-01 13:38:43 +08:00
|
|
|
return *(*float32)(unsafe.Pointer(result))
|
2022-12-29 18:42:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ICefDisplay) Rotation() int32 {
|
2023-02-13 21:25:35 +08:00
|
|
|
r1, _, _ := imports.Proc(internale_CEFDisplay_Rotation).Call(uintptr(m.instance))
|
2022-12-29 18:42:16 +08:00
|
|
|
return int32(r1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ICefDisplay) Bounds() (result TCefRect) {
|
2023-02-13 21:25:35 +08:00
|
|
|
imports.Proc(internale_CEFDisplay_Bounds).Call(uintptr(m.instance), uintptr(unsafe.Pointer(&result)))
|
2022-12-29 18:42:16 +08:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ICefDisplay) WorkArea() (result TCefRect) {
|
2023-02-13 21:25:35 +08:00
|
|
|
imports.Proc(internale_CEFDisplay_WorkArea).Call(uintptr(m.instance), uintptr(unsafe.Pointer(&result)))
|
2022-12-29 18:42:16 +08:00
|
|
|
return
|
|
|
|
}
|