mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 03:37:48 +08:00
U: Return value(float32) method
This commit is contained in:
parent
d068ef38ca
commit
561c42b123
@ -840,10 +840,9 @@ func (m *TCEFApplication) SetDevToolsProtocolLogFile(value string) {
|
|||||||
imports.Proc(def.CEFAppConfig_SetDevToolsProtocolLogFile).Call(api.PascalStr(value))
|
imports.Proc(def.CEFAppConfig_SetDevToolsProtocolLogFile).Call(api.PascalStr(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TCEFApplication) ForcedDeviceScaleFactor() float32 { //single
|
func (m *TCEFApplication) ForcedDeviceScaleFactor() (result float32) { //single
|
||||||
var result uintptr
|
|
||||||
imports.Proc(def.CEFAppConfig_ForcedDeviceScaleFactor).Call(uintptr(unsafe.Pointer(&result)))
|
imports.Proc(def.CEFAppConfig_ForcedDeviceScaleFactor).Call(uintptr(unsafe.Pointer(&result)))
|
||||||
return *(*float32)(unsafe.Pointer(result))
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TCEFApplication) SetForcedDeviceScaleFactor(value float32) { //single
|
func (m *TCEFApplication) SetForcedDeviceScaleFactor(value float32) { //single
|
||||||
@ -1111,10 +1110,9 @@ func (m *TCEFApplication) SetReRaiseExceptions(value bool) {
|
|||||||
imports.Proc(def.CEFAppConfig_SetReRaiseExceptions).Call(api.PascalBool(value))
|
imports.Proc(def.CEFAppConfig_SetReRaiseExceptions).Call(api.PascalBool(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TCEFApplication) DeviceScaleFactor() float32 {
|
func (m *TCEFApplication) DeviceScaleFactor() (result float32) {
|
||||||
var result uintptr
|
|
||||||
imports.Proc(def.CEFAppConfig_DeviceScaleFactor).Call(uintptr(unsafe.Pointer(&result)))
|
imports.Proc(def.CEFAppConfig_DeviceScaleFactor).Call(uintptr(unsafe.Pointer(&result)))
|
||||||
return *(*float32)(unsafe.Pointer(result))
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *TCEFApplication) LocalesRequired() string {
|
func (m *TCEFApplication) LocalesRequired() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user