miqt/qt/multimedia/gen_qcameraexposure.go

478 lines
16 KiB
Go
Raw Normal View History

2024-11-04 23:15:32 +13:00
package multimedia
/*
#include "gen_qcameraexposure.h"
#include <stdlib.h>
*/
import "C"
import (
"github.com/mappu/miqt/qt"
"runtime/cgo"
"unsafe"
)
type QCameraExposure__FlashMode int
const (
QCameraExposure__FlashAuto QCameraExposure__FlashMode = 1
QCameraExposure__FlashOff QCameraExposure__FlashMode = 2
QCameraExposure__FlashOn QCameraExposure__FlashMode = 4
QCameraExposure__FlashRedEyeReduction QCameraExposure__FlashMode = 8
QCameraExposure__FlashFill QCameraExposure__FlashMode = 16
QCameraExposure__FlashTorch QCameraExposure__FlashMode = 32
QCameraExposure__FlashVideoLight QCameraExposure__FlashMode = 64
QCameraExposure__FlashSlowSyncFrontCurtain QCameraExposure__FlashMode = 128
QCameraExposure__FlashSlowSyncRearCurtain QCameraExposure__FlashMode = 256
QCameraExposure__FlashManual QCameraExposure__FlashMode = 512
)
type QCameraExposure__ExposureMode int
const (
QCameraExposure__ExposureAuto QCameraExposure__ExposureMode = 0
QCameraExposure__ExposureManual QCameraExposure__ExposureMode = 1
QCameraExposure__ExposurePortrait QCameraExposure__ExposureMode = 2
QCameraExposure__ExposureNight QCameraExposure__ExposureMode = 3
QCameraExposure__ExposureBacklight QCameraExposure__ExposureMode = 4
QCameraExposure__ExposureSpotlight QCameraExposure__ExposureMode = 5
QCameraExposure__ExposureSports QCameraExposure__ExposureMode = 6
QCameraExposure__ExposureSnow QCameraExposure__ExposureMode = 7
QCameraExposure__ExposureBeach QCameraExposure__ExposureMode = 8
QCameraExposure__ExposureLargeAperture QCameraExposure__ExposureMode = 9
QCameraExposure__ExposureSmallAperture QCameraExposure__ExposureMode = 10
QCameraExposure__ExposureAction QCameraExposure__ExposureMode = 11
QCameraExposure__ExposureLandscape QCameraExposure__ExposureMode = 12
QCameraExposure__ExposureNightPortrait QCameraExposure__ExposureMode = 13
QCameraExposure__ExposureTheatre QCameraExposure__ExposureMode = 14
QCameraExposure__ExposureSunset QCameraExposure__ExposureMode = 15
QCameraExposure__ExposureSteadyPhoto QCameraExposure__ExposureMode = 16
QCameraExposure__ExposureFireworks QCameraExposure__ExposureMode = 17
QCameraExposure__ExposureParty QCameraExposure__ExposureMode = 18
QCameraExposure__ExposureCandlelight QCameraExposure__ExposureMode = 19
QCameraExposure__ExposureBarcode QCameraExposure__ExposureMode = 20
QCameraExposure__ExposureModeVendor QCameraExposure__ExposureMode = 1000
)
type QCameraExposure__MeteringMode int
const (
QCameraExposure__MeteringMatrix QCameraExposure__MeteringMode = 1
QCameraExposure__MeteringAverage QCameraExposure__MeteringMode = 2
QCameraExposure__MeteringSpot QCameraExposure__MeteringMode = 3
)
type QCameraExposure struct {
h *C.QCameraExposure
2024-11-04 23:15:32 +13:00
*qt.QObject
}
func (this *QCameraExposure) cPointer() *C.QCameraExposure {
if this == nil {
return nil
}
return this.h
}
func (this *QCameraExposure) UnsafePointer() unsafe.Pointer {
if this == nil {
return nil
}
return unsafe.Pointer(this.h)
}
2024-11-19 19:29:06 +13:00
// newQCameraExposure constructs the type using only CGO pointers.
2024-12-07 17:15:57 +13:00
func newQCameraExposure(h *C.QCameraExposure) *QCameraExposure {
2024-11-04 23:15:32 +13:00
if h == nil {
return nil
}
2024-12-07 17:15:57 +13:00
var outptr_QObject *C.QObject = nil
C.QCameraExposure_virtbase(h, &outptr_QObject)
2024-11-19 19:29:06 +13:00
return &QCameraExposure{h: h,
2024-12-07 17:15:57 +13:00
QObject: qt.UnsafeNewQObject(unsafe.Pointer(outptr_QObject))}
2024-11-04 23:15:32 +13:00
}
2024-11-19 19:29:06 +13:00
// UnsafeNewQCameraExposure constructs the type using only unsafe pointers.
2024-12-07 17:15:57 +13:00
func UnsafeNewQCameraExposure(h unsafe.Pointer) *QCameraExposure {
return newQCameraExposure((*C.QCameraExposure)(h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) MetaObject() *qt.QMetaObject {
2025-02-01 13:45:16 +13:00
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QCameraExposure_metaObject(this.h)))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) Metacast(param1 string) unsafe.Pointer {
param1_Cstring := C.CString(param1)
defer C.free(unsafe.Pointer(param1_Cstring))
2025-02-01 13:45:16 +13:00
return (unsafe.Pointer)(C.QCameraExposure_metacast(this.h, param1_Cstring))
2024-11-04 23:15:32 +13:00
}
func QCameraExposure_Tr(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QCameraExposure_tr(s_Cstring)
2024-11-04 23:15:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QCameraExposure_TrUtf8(s string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QCameraExposure_trUtf8(s_Cstring)
2024-11-04 23:15:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QCameraExposure) IsAvailable() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QCameraExposure_isAvailable(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) FlashMode() QCameraExposure__FlashMode {
2025-02-01 13:45:16 +13:00
return (QCameraExposure__FlashMode)(C.QCameraExposure_flashMode(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) IsFlashModeSupported(mode QCameraExposure__FlashMode) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QCameraExposure_isFlashModeSupported(this.h, (C.int)(mode)))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) IsFlashReady() bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QCameraExposure_isFlashReady(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) ExposureMode() QCameraExposure__ExposureMode {
2025-02-01 13:45:16 +13:00
return (QCameraExposure__ExposureMode)(C.QCameraExposure_exposureMode(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) IsExposureModeSupported(mode QCameraExposure__ExposureMode) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QCameraExposure_isExposureModeSupported(this.h, (C.int)(mode)))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) ExposureCompensation() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QCameraExposure_exposureCompensation(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) MeteringMode() QCameraExposure__MeteringMode {
2025-02-01 13:45:16 +13:00
return (QCameraExposure__MeteringMode)(C.QCameraExposure_meteringMode(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) IsMeteringModeSupported(mode QCameraExposure__MeteringMode) bool {
2025-02-01 13:45:16 +13:00
return (bool)(C.QCameraExposure_isMeteringModeSupported(this.h, (C.int)(mode)))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SpotMeteringPoint() *qt.QPointF {
2025-02-01 13:45:16 +13:00
_goptr := qt.UnsafeNewQPointF(unsafe.Pointer(C.QCameraExposure_spotMeteringPoint(this.h)))
2024-11-04 23:15:32 +13:00
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
return _goptr
}
func (this *QCameraExposure) SetSpotMeteringPoint(point *qt.QPointF) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setSpotMeteringPoint(this.h, (*C.QPointF)(point.UnsafePointer()))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) IsoSensitivity() int {
2025-02-01 13:45:16 +13:00
return (int)(C.QCameraExposure_isoSensitivity(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) Aperture() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QCameraExposure_aperture(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) ShutterSpeed() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QCameraExposure_shutterSpeed(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) RequestedIsoSensitivity() int {
2025-02-01 13:45:16 +13:00
return (int)(C.QCameraExposure_requestedIsoSensitivity(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) RequestedAperture() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QCameraExposure_requestedAperture(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) RequestedShutterSpeed() float64 {
2025-02-01 13:45:16 +13:00
return (float64)(C.QCameraExposure_requestedShutterSpeed(this.h))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SupportedIsoSensitivities() []int {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QCameraExposure_supportedIsoSensitivities(this.h)
2024-11-04 23:15:32 +13:00
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
return _ret
}
func (this *QCameraExposure) SupportedApertures() []float64 {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QCameraExposure_supportedApertures(this.h)
2024-11-04 23:15:32 +13:00
_ret := make([]float64, int(_ma.len))
_outCast := (*[0xffff]C.double)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (float64)(_outCast[i])
}
return _ret
}
func (this *QCameraExposure) SupportedShutterSpeeds() []float64 {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QCameraExposure_supportedShutterSpeeds(this.h)
2024-11-04 23:15:32 +13:00
_ret := make([]float64, int(_ma.len))
_outCast := (*[0xffff]C.double)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (float64)(_outCast[i])
}
return _ret
}
func (this *QCameraExposure) SetFlashMode(mode QCameraExposure__FlashMode) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setFlashMode(this.h, (C.int)(mode))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetExposureMode(mode QCameraExposure__ExposureMode) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setExposureMode(this.h, (C.int)(mode))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetMeteringMode(mode QCameraExposure__MeteringMode) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setMeteringMode(this.h, (C.int)(mode))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetExposureCompensation(ev float64) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setExposureCompensation(this.h, (C.double)(ev))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetManualIsoSensitivity(iso int) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setManualIsoSensitivity(this.h, (C.int)(iso))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetAutoIsoSensitivity() {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setAutoIsoSensitivity(this.h)
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetManualAperture(aperture float64) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setManualAperture(this.h, (C.double)(aperture))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetAutoAperture() {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setAutoAperture(this.h)
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetManualShutterSpeed(seconds float64) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setManualShutterSpeed(this.h, (C.double)(seconds))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) SetAutoShutterSpeed() {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_setAutoShutterSpeed(this.h)
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) FlashReady(param1 bool) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_flashReady(this.h, (C.bool)(param1))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) OnFlashReady(slot func(param1 bool)) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_connect_flashReady(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QCameraExposure_flashReady
func miqt_exec_callback_QCameraExposure_flashReady(cb C.intptr_t, param1 C.bool) {
2024-11-04 23:15:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 bool))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (bool)(param1)
gofunc(slotval1)
}
func (this *QCameraExposure) ApertureChanged(param1 float64) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_apertureChanged(this.h, (C.double)(param1))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) OnApertureChanged(slot func(param1 float64)) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_connect_apertureChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QCameraExposure_apertureChanged
func miqt_exec_callback_QCameraExposure_apertureChanged(cb C.intptr_t, param1 C.double) {
2024-11-04 23:15:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 float64))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (float64)(param1)
gofunc(slotval1)
}
func (this *QCameraExposure) ApertureRangeChanged() {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_apertureRangeChanged(this.h)
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) OnApertureRangeChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_connect_apertureRangeChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QCameraExposure_apertureRangeChanged
func miqt_exec_callback_QCameraExposure_apertureRangeChanged(cb C.intptr_t) {
2024-11-04 23:15:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
func (this *QCameraExposure) ShutterSpeedChanged(speed float64) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_shutterSpeedChanged(this.h, (C.double)(speed))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) OnShutterSpeedChanged(slot func(speed float64)) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_connect_shutterSpeedChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QCameraExposure_shutterSpeedChanged
func miqt_exec_callback_QCameraExposure_shutterSpeedChanged(cb C.intptr_t, speed C.double) {
2024-11-04 23:15:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(speed float64))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (float64)(speed)
gofunc(slotval1)
}
func (this *QCameraExposure) ShutterSpeedRangeChanged() {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_shutterSpeedRangeChanged(this.h)
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) OnShutterSpeedRangeChanged(slot func()) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_connect_shutterSpeedRangeChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QCameraExposure_shutterSpeedRangeChanged
func miqt_exec_callback_QCameraExposure_shutterSpeedRangeChanged(cb C.intptr_t) {
2024-11-04 23:15:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func())
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
gofunc()
}
func (this *QCameraExposure) IsoSensitivityChanged(param1 int) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_isoSensitivityChanged(this.h, (C.int)(param1))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) OnIsoSensitivityChanged(slot func(param1 int)) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_connect_isoSensitivityChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QCameraExposure_isoSensitivityChanged
func miqt_exec_callback_QCameraExposure_isoSensitivityChanged(cb C.intptr_t, param1 C.int) {
2024-11-04 23:15:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 int))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (int)(param1)
gofunc(slotval1)
}
func (this *QCameraExposure) ExposureCompensationChanged(param1 float64) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_exposureCompensationChanged(this.h, (C.double)(param1))
2024-11-04 23:15:32 +13:00
}
func (this *QCameraExposure) OnExposureCompensationChanged(slot func(param1 float64)) {
2025-02-01 13:45:16 +13:00
C.QCameraExposure_connect_exposureCompensationChanged(this.h, C.intptr_t(cgo.NewHandle(slot)))
2024-11-04 23:15:32 +13:00
}
2025-02-01 13:45:16 +13:00
//export miqt_exec_callback_QCameraExposure_exposureCompensationChanged
func miqt_exec_callback_QCameraExposure_exposureCompensationChanged(cb C.intptr_t, param1 C.double) {
2024-11-04 23:15:32 +13:00
gofunc, ok := cgo.Handle(cb).Value().(func(param1 float64))
if !ok {
panic("miqt: callback of non-callback type (heap corruption?)")
}
// Convert all CABI parameters to Go parameters
slotval1 := (float64)(param1)
gofunc(slotval1)
}
func QCameraExposure_Tr2(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QCameraExposure_tr2(s_Cstring, c_Cstring)
2024-11-04 23:15:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QCameraExposure_Tr3(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QCameraExposure_tr3(s_Cstring, c_Cstring, (C.int)(n))
2024-11-04 23:15:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QCameraExposure_TrUtf82(s string, c string) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QCameraExposure_trUtf82(s_Cstring, c_Cstring)
2024-11-04 23:15:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func QCameraExposure_TrUtf83(s string, c string, n int) string {
s_Cstring := C.CString(s)
defer C.free(unsafe.Pointer(s_Cstring))
c_Cstring := C.CString(c)
defer C.free(unsafe.Pointer(c_Cstring))
2025-02-01 13:45:16 +13:00
var _ms C.struct_miqt_string = C.QCameraExposure_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
2024-11-04 23:15:32 +13:00
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
C.free(unsafe.Pointer(_ms.data))
return _ret
}
func (this *QCameraExposure) SupportedIsoSensitivities1(continuous *bool) []int {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QCameraExposure_supportedIsoSensitivities1(this.h, (*C.bool)(unsafe.Pointer(continuous)))
2024-11-04 23:15:32 +13:00
_ret := make([]int, int(_ma.len))
_outCast := (*[0xffff]C.int)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (int)(_outCast[i])
}
return _ret
}
func (this *QCameraExposure) SupportedApertures1(continuous *bool) []float64 {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QCameraExposure_supportedApertures1(this.h, (*C.bool)(unsafe.Pointer(continuous)))
2024-11-04 23:15:32 +13:00
_ret := make([]float64, int(_ma.len))
_outCast := (*[0xffff]C.double)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (float64)(_outCast[i])
}
return _ret
}
func (this *QCameraExposure) SupportedShutterSpeeds1(continuous *bool) []float64 {
2025-02-01 13:45:16 +13:00
var _ma C.struct_miqt_array = C.QCameraExposure_supportedShutterSpeeds1(this.h, (*C.bool)(unsafe.Pointer(continuous)))
2024-11-04 23:15:32 +13:00
_ret := make([]float64, int(_ma.len))
_outCast := (*[0xffff]C.double)(unsafe.Pointer(_ma.data)) // hey ya
for i := 0; i < int(_ma.len); i++ {
_ret[i] = (float64)(_outCast[i])
}
return _ret
}