cutego/multimedia/qmediaservicecamerainfointerface.go

89 lines
2.7 KiB
Go
Raw Normal View History

2015-10-24 18:18:24 +03:00
package multimedia
//#include "multimedia.h"
2015-10-24 18:18:24 +03:00
import "C"
import (
"github.com/therecipe/qt"
2015-10-24 18:18:24 +03:00
"github.com/therecipe/qt/core"
"unsafe"
)
type QMediaServiceCameraInfoInterface struct {
ptr unsafe.Pointer
}
2015-11-09 20:23:42 +03:00
type QMediaServiceCameraInfoInterface_ITF interface {
QMediaServiceCameraInfoInterface_PTR() *QMediaServiceCameraInfoInterface
2015-10-24 18:18:24 +03:00
}
func (p *QMediaServiceCameraInfoInterface) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QMediaServiceCameraInfoInterface) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
2015-11-09 20:23:42 +03:00
func PointerFromQMediaServiceCameraInfoInterface(ptr QMediaServiceCameraInfoInterface_ITF) unsafe.Pointer {
2015-10-24 18:18:24 +03:00
if ptr != nil {
2015-11-09 20:23:42 +03:00
return ptr.QMediaServiceCameraInfoInterface_PTR().Pointer()
2015-10-24 18:18:24 +03:00
}
return nil
}
2015-11-09 20:23:42 +03:00
func NewQMediaServiceCameraInfoInterfaceFromPointer(ptr unsafe.Pointer) *QMediaServiceCameraInfoInterface {
2015-10-24 18:18:24 +03:00
var n = new(QMediaServiceCameraInfoInterface)
n.SetPointer(ptr)
for len(n.ObjectNameAbs()) < len("QMediaServiceCameraInfoInterface_") {
n.SetObjectNameAbs("QMediaServiceCameraInfoInterface_" + qt.Identifier())
}
2015-10-24 18:18:24 +03:00
return n
}
2015-11-09 20:23:42 +03:00
func (ptr *QMediaServiceCameraInfoInterface) QMediaServiceCameraInfoInterface_PTR() *QMediaServiceCameraInfoInterface {
2015-10-24 18:18:24 +03:00
return ptr
}
2015-11-09 20:23:42 +03:00
func (ptr *QMediaServiceCameraInfoInterface) CameraOrientation(device core.QByteArray_ITF) int {
defer qt.Recovering("QMediaServiceCameraInfoInterface::cameraOrientation")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return int(C.QMediaServiceCameraInfoInterface_CameraOrientation(ptr.Pointer(), core.PointerFromQByteArray(device)))
2015-10-24 18:18:24 +03:00
}
return 0
}
2015-11-09 20:23:42 +03:00
func (ptr *QMediaServiceCameraInfoInterface) CameraPosition(device core.QByteArray_ITF) QCamera__Position {
defer qt.Recovering("QMediaServiceCameraInfoInterface::cameraPosition")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QCamera__Position(C.QMediaServiceCameraInfoInterface_CameraPosition(ptr.Pointer(), core.PointerFromQByteArray(device)))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QMediaServiceCameraInfoInterface) DestroyQMediaServiceCameraInfoInterface() {
defer qt.Recovering("QMediaServiceCameraInfoInterface::~QMediaServiceCameraInfoInterface")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
C.QMediaServiceCameraInfoInterface_DestroyQMediaServiceCameraInfoInterface(ptr.Pointer())
2015-10-24 18:18:24 +03:00
}
}
func (ptr *QMediaServiceCameraInfoInterface) ObjectNameAbs() string {
defer qt.Recovering("QMediaServiceCameraInfoInterface::objectNameAbs")
if ptr.Pointer() != nil {
return C.GoString(C.QMediaServiceCameraInfoInterface_ObjectNameAbs(ptr.Pointer()))
}
return ""
}
func (ptr *QMediaServiceCameraInfoInterface) SetObjectNameAbs(name string) {
defer qt.Recovering("QMediaServiceCameraInfoInterface::setObjectNameAbs")
if ptr.Pointer() != nil {
C.QMediaServiceCameraInfoInterface_SetObjectNameAbs(ptr.Pointer(), C.CString(name))
}
}