cutego/gui/qpixelformat.go

191 lines
5.2 KiB
Go
Raw Normal View History

2015-10-24 18:18:24 +03:00
package gui
//#include "gui.h"
2015-10-24 18:18:24 +03:00
import "C"
import (
"github.com/therecipe/qt"
2015-10-24 18:18:24 +03:00
"unsafe"
)
type QPixelFormat struct {
ptr unsafe.Pointer
}
2015-11-09 20:23:42 +03:00
type QPixelFormat_ITF interface {
QPixelFormat_PTR() *QPixelFormat
2015-10-24 18:18:24 +03:00
}
func (p *QPixelFormat) Pointer() unsafe.Pointer {
return p.ptr
}
func (p *QPixelFormat) SetPointer(ptr unsafe.Pointer) {
p.ptr = ptr
}
2015-11-09 20:23:42 +03:00
func PointerFromQPixelFormat(ptr QPixelFormat_ITF) unsafe.Pointer {
2015-10-24 18:18:24 +03:00
if ptr != nil {
2015-11-09 20:23:42 +03:00
return ptr.QPixelFormat_PTR().Pointer()
2015-10-24 18:18:24 +03:00
}
return nil
}
2015-11-09 20:23:42 +03:00
func NewQPixelFormatFromPointer(ptr unsafe.Pointer) *QPixelFormat {
2015-10-24 18:18:24 +03:00
var n = new(QPixelFormat)
n.SetPointer(ptr)
return n
}
2015-11-09 20:23:42 +03:00
func (ptr *QPixelFormat) QPixelFormat_PTR() *QPixelFormat {
2015-10-24 18:18:24 +03:00
return ptr
}
//QPixelFormat::AlphaPosition
2015-11-09 20:23:42 +03:00
type QPixelFormat__AlphaPosition int64
2015-10-24 18:18:24 +03:00
2015-11-09 20:23:42 +03:00
const (
2015-10-24 18:18:24 +03:00
QPixelFormat__AtBeginning = QPixelFormat__AlphaPosition(0)
QPixelFormat__AtEnd = QPixelFormat__AlphaPosition(1)
)
//QPixelFormat::AlphaPremultiplied
2015-11-09 20:23:42 +03:00
type QPixelFormat__AlphaPremultiplied int64
2015-10-24 18:18:24 +03:00
2015-11-09 20:23:42 +03:00
const (
2015-10-24 18:18:24 +03:00
QPixelFormat__NotPremultiplied = QPixelFormat__AlphaPremultiplied(0)
QPixelFormat__Premultiplied = QPixelFormat__AlphaPremultiplied(1)
)
//QPixelFormat::AlphaUsage
2015-11-09 20:23:42 +03:00
type QPixelFormat__AlphaUsage int64
2015-10-24 18:18:24 +03:00
2015-11-09 20:23:42 +03:00
const (
2015-10-24 18:18:24 +03:00
QPixelFormat__UsesAlpha = QPixelFormat__AlphaUsage(0)
QPixelFormat__IgnoresAlpha = QPixelFormat__AlphaUsage(1)
)
//QPixelFormat::ByteOrder
2015-11-09 20:23:42 +03:00
type QPixelFormat__ByteOrder int64
2015-10-24 18:18:24 +03:00
2015-11-09 20:23:42 +03:00
const (
2015-10-24 18:18:24 +03:00
QPixelFormat__LittleEndian = QPixelFormat__ByteOrder(0)
QPixelFormat__BigEndian = QPixelFormat__ByteOrder(1)
QPixelFormat__CurrentSystemEndian = QPixelFormat__ByteOrder(2)
)
//QPixelFormat::ColorModel
2015-11-09 20:23:42 +03:00
type QPixelFormat__ColorModel int64
2015-10-24 18:18:24 +03:00
2015-11-09 20:23:42 +03:00
const (
2015-10-24 18:18:24 +03:00
QPixelFormat__RGB = QPixelFormat__ColorModel(0)
QPixelFormat__BGR = QPixelFormat__ColorModel(1)
QPixelFormat__Indexed = QPixelFormat__ColorModel(2)
QPixelFormat__Grayscale = QPixelFormat__ColorModel(3)
QPixelFormat__CMYK = QPixelFormat__ColorModel(4)
QPixelFormat__HSL = QPixelFormat__ColorModel(5)
QPixelFormat__HSV = QPixelFormat__ColorModel(6)
QPixelFormat__YUV = QPixelFormat__ColorModel(7)
QPixelFormat__Alpha = QPixelFormat__ColorModel(8)
)
//QPixelFormat::TypeInterpretation
2015-11-09 20:23:42 +03:00
type QPixelFormat__TypeInterpretation int64
2015-10-24 18:18:24 +03:00
2015-11-09 20:23:42 +03:00
const (
2015-10-24 18:18:24 +03:00
QPixelFormat__UnsignedInteger = QPixelFormat__TypeInterpretation(0)
QPixelFormat__UnsignedShort = QPixelFormat__TypeInterpretation(1)
QPixelFormat__UnsignedByte = QPixelFormat__TypeInterpretation(2)
QPixelFormat__FloatingPoint = QPixelFormat__TypeInterpretation(3)
)
//QPixelFormat::YUVLayout
2015-11-09 20:23:42 +03:00
type QPixelFormat__YUVLayout int64
2015-10-24 18:18:24 +03:00
2015-11-09 20:23:42 +03:00
const (
2015-10-24 18:18:24 +03:00
QPixelFormat__YUV444 = QPixelFormat__YUVLayout(0)
QPixelFormat__YUV422 = QPixelFormat__YUVLayout(1)
QPixelFormat__YUV411 = QPixelFormat__YUVLayout(2)
QPixelFormat__YUV420P = QPixelFormat__YUVLayout(3)
QPixelFormat__YUV420SP = QPixelFormat__YUVLayout(4)
QPixelFormat__YV12 = QPixelFormat__YUVLayout(5)
QPixelFormat__UYVY = QPixelFormat__YUVLayout(6)
QPixelFormat__YUYV = QPixelFormat__YUVLayout(7)
QPixelFormat__NV12 = QPixelFormat__YUVLayout(8)
QPixelFormat__NV21 = QPixelFormat__YUVLayout(9)
QPixelFormat__IMC1 = QPixelFormat__YUVLayout(10)
QPixelFormat__IMC2 = QPixelFormat__YUVLayout(11)
QPixelFormat__IMC3 = QPixelFormat__YUVLayout(12)
QPixelFormat__IMC4 = QPixelFormat__YUVLayout(13)
QPixelFormat__Y8 = QPixelFormat__YUVLayout(14)
QPixelFormat__Y16 = QPixelFormat__YUVLayout(15)
)
func NewQPixelFormat() *QPixelFormat {
defer qt.Recovering("QPixelFormat::QPixelFormat")
2015-11-09 20:23:42 +03:00
return NewQPixelFormatFromPointer(C.QPixelFormat_NewQPixelFormat())
2015-10-24 18:18:24 +03:00
}
func (ptr *QPixelFormat) AlphaPosition() QPixelFormat__AlphaPosition {
defer qt.Recovering("QPixelFormat::alphaPosition")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QPixelFormat__AlphaPosition(C.QPixelFormat_AlphaPosition(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPixelFormat) AlphaUsage() QPixelFormat__AlphaUsage {
defer qt.Recovering("QPixelFormat::alphaUsage")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QPixelFormat__AlphaUsage(C.QPixelFormat_AlphaUsage(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPixelFormat) ByteOrder() QPixelFormat__ByteOrder {
defer qt.Recovering("QPixelFormat::byteOrder")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QPixelFormat__ByteOrder(C.QPixelFormat_ByteOrder(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPixelFormat) ColorModel() QPixelFormat__ColorModel {
defer qt.Recovering("QPixelFormat::colorModel")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QPixelFormat__ColorModel(C.QPixelFormat_ColorModel(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPixelFormat) Premultiplied() QPixelFormat__AlphaPremultiplied {
defer qt.Recovering("QPixelFormat::premultiplied")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QPixelFormat__AlphaPremultiplied(C.QPixelFormat_Premultiplied(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPixelFormat) TypeInterpretation() QPixelFormat__TypeInterpretation {
defer qt.Recovering("QPixelFormat::typeInterpretation")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QPixelFormat__TypeInterpretation(C.QPixelFormat_TypeInterpretation(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}
func (ptr *QPixelFormat) YuvLayout() QPixelFormat__YUVLayout {
defer qt.Recovering("QPixelFormat::yuvLayout")
2015-10-24 18:18:24 +03:00
if ptr.Pointer() != nil {
2015-11-09 20:23:42 +03:00
return QPixelFormat__YUVLayout(C.QPixelFormat_YuvLayout(ptr.Pointer()))
2015-10-24 18:18:24 +03:00
}
return 0
}