mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
548 lines
17 KiB
Go
548 lines
17 KiB
Go
package qt
|
|
|
|
/*
|
|
|
|
#include "gen_qpaintengine.h"
|
|
#include <stdlib.h>
|
|
|
|
*/
|
|
import "C"
|
|
|
|
import (
|
|
"runtime"
|
|
"unsafe"
|
|
)
|
|
|
|
type QTextItem__RenderFlag int
|
|
|
|
const (
|
|
QTextItem__RenderFlag__RightToLeft QTextItem__RenderFlag = 1
|
|
QTextItem__RenderFlag__Overline QTextItem__RenderFlag = 16
|
|
QTextItem__RenderFlag__Underline QTextItem__RenderFlag = 32
|
|
QTextItem__RenderFlag__StrikeOut QTextItem__RenderFlag = 64
|
|
QTextItem__RenderFlag__Dummy QTextItem__RenderFlag = 4294967295
|
|
)
|
|
|
|
type QPaintEngine__PaintEngineFeature int
|
|
|
|
const (
|
|
QPaintEngine__PaintEngineFeature__PrimitiveTransform QPaintEngine__PaintEngineFeature = 1
|
|
QPaintEngine__PaintEngineFeature__PatternTransform QPaintEngine__PaintEngineFeature = 2
|
|
QPaintEngine__PaintEngineFeature__PixmapTransform QPaintEngine__PaintEngineFeature = 4
|
|
QPaintEngine__PaintEngineFeature__PatternBrush QPaintEngine__PaintEngineFeature = 8
|
|
QPaintEngine__PaintEngineFeature__LinearGradientFill QPaintEngine__PaintEngineFeature = 16
|
|
QPaintEngine__PaintEngineFeature__RadialGradientFill QPaintEngine__PaintEngineFeature = 32
|
|
QPaintEngine__PaintEngineFeature__ConicalGradientFill QPaintEngine__PaintEngineFeature = 64
|
|
QPaintEngine__PaintEngineFeature__AlphaBlend QPaintEngine__PaintEngineFeature = 128
|
|
QPaintEngine__PaintEngineFeature__PorterDuff QPaintEngine__PaintEngineFeature = 256
|
|
QPaintEngine__PaintEngineFeature__PainterPaths QPaintEngine__PaintEngineFeature = 512
|
|
QPaintEngine__PaintEngineFeature__Antialiasing QPaintEngine__PaintEngineFeature = 1024
|
|
QPaintEngine__PaintEngineFeature__BrushStroke QPaintEngine__PaintEngineFeature = 2048
|
|
QPaintEngine__PaintEngineFeature__ConstantOpacity QPaintEngine__PaintEngineFeature = 4096
|
|
QPaintEngine__PaintEngineFeature__MaskedBrush QPaintEngine__PaintEngineFeature = 8192
|
|
QPaintEngine__PaintEngineFeature__PerspectiveTransform QPaintEngine__PaintEngineFeature = 16384
|
|
QPaintEngine__PaintEngineFeature__BlendModes QPaintEngine__PaintEngineFeature = 32768
|
|
QPaintEngine__PaintEngineFeature__ObjectBoundingModeGradients QPaintEngine__PaintEngineFeature = 65536
|
|
QPaintEngine__PaintEngineFeature__RasterOpModes QPaintEngine__PaintEngineFeature = 131072
|
|
QPaintEngine__PaintEngineFeature__PaintOutsidePaintEvent QPaintEngine__PaintEngineFeature = 536870912
|
|
QPaintEngine__PaintEngineFeature__AllFeatures QPaintEngine__PaintEngineFeature = 4294967295
|
|
)
|
|
|
|
type QPaintEngine__DirtyFlag int
|
|
|
|
const (
|
|
QPaintEngine__DirtyFlag__DirtyPen QPaintEngine__DirtyFlag = 1
|
|
QPaintEngine__DirtyFlag__DirtyBrush QPaintEngine__DirtyFlag = 2
|
|
QPaintEngine__DirtyFlag__DirtyBrushOrigin QPaintEngine__DirtyFlag = 4
|
|
QPaintEngine__DirtyFlag__DirtyFont QPaintEngine__DirtyFlag = 8
|
|
QPaintEngine__DirtyFlag__DirtyBackground QPaintEngine__DirtyFlag = 16
|
|
QPaintEngine__DirtyFlag__DirtyBackgroundMode QPaintEngine__DirtyFlag = 32
|
|
QPaintEngine__DirtyFlag__DirtyTransform QPaintEngine__DirtyFlag = 64
|
|
QPaintEngine__DirtyFlag__DirtyClipRegion QPaintEngine__DirtyFlag = 128
|
|
QPaintEngine__DirtyFlag__DirtyClipPath QPaintEngine__DirtyFlag = 256
|
|
QPaintEngine__DirtyFlag__DirtyHints QPaintEngine__DirtyFlag = 512
|
|
QPaintEngine__DirtyFlag__DirtyCompositionMode QPaintEngine__DirtyFlag = 1024
|
|
QPaintEngine__DirtyFlag__DirtyClipEnabled QPaintEngine__DirtyFlag = 2048
|
|
QPaintEngine__DirtyFlag__DirtyOpacity QPaintEngine__DirtyFlag = 4096
|
|
QPaintEngine__DirtyFlag__AllDirty QPaintEngine__DirtyFlag = 65535
|
|
)
|
|
|
|
type QPaintEngine__PolygonDrawMode int
|
|
|
|
const (
|
|
QPaintEngine__PolygonDrawMode__OddEvenMode QPaintEngine__PolygonDrawMode = 0
|
|
QPaintEngine__PolygonDrawMode__WindingMode QPaintEngine__PolygonDrawMode = 1
|
|
QPaintEngine__PolygonDrawMode__ConvexMode QPaintEngine__PolygonDrawMode = 2
|
|
QPaintEngine__PolygonDrawMode__PolylineMode QPaintEngine__PolygonDrawMode = 3
|
|
)
|
|
|
|
type QPaintEngine__Type int
|
|
|
|
const (
|
|
QPaintEngine__Type__X11 QPaintEngine__Type = 0
|
|
QPaintEngine__Type__Windows QPaintEngine__Type = 1
|
|
QPaintEngine__Type__QuickDraw QPaintEngine__Type = 2
|
|
QPaintEngine__Type__CoreGraphics QPaintEngine__Type = 3
|
|
QPaintEngine__Type__MacPrinter QPaintEngine__Type = 4
|
|
QPaintEngine__Type__QWindowSystem QPaintEngine__Type = 5
|
|
QPaintEngine__Type__PostScript QPaintEngine__Type = 6
|
|
QPaintEngine__Type__OpenGL QPaintEngine__Type = 7
|
|
QPaintEngine__Type__Picture QPaintEngine__Type = 8
|
|
QPaintEngine__Type__SVG QPaintEngine__Type = 9
|
|
QPaintEngine__Type__Raster QPaintEngine__Type = 10
|
|
QPaintEngine__Type__Direct3D QPaintEngine__Type = 11
|
|
QPaintEngine__Type__Pdf QPaintEngine__Type = 12
|
|
QPaintEngine__Type__OpenVG QPaintEngine__Type = 13
|
|
QPaintEngine__Type__OpenGL2 QPaintEngine__Type = 14
|
|
QPaintEngine__Type__PaintBuffer QPaintEngine__Type = 15
|
|
QPaintEngine__Type__Blitter QPaintEngine__Type = 16
|
|
QPaintEngine__Type__Direct2D QPaintEngine__Type = 17
|
|
QPaintEngine__Type__User QPaintEngine__Type = 50
|
|
QPaintEngine__Type__MaxUser QPaintEngine__Type = 100
|
|
)
|
|
|
|
type QTextItem struct {
|
|
h *C.QTextItem
|
|
}
|
|
|
|
func (this *QTextItem) cPointer() *C.QTextItem {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return this.h
|
|
}
|
|
|
|
func newQTextItem(h *C.QTextItem) *QTextItem {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
return &QTextItem{h: h}
|
|
}
|
|
|
|
func newQTextItem_U(h unsafe.Pointer) *QTextItem {
|
|
return newQTextItem((*C.QTextItem)(h))
|
|
}
|
|
|
|
func (this *QTextItem) Descent() float64 {
|
|
ret := C.QTextItem_Descent(this.h)
|
|
return (float64)(ret)
|
|
}
|
|
|
|
func (this *QTextItem) Ascent() float64 {
|
|
ret := C.QTextItem_Ascent(this.h)
|
|
return (float64)(ret)
|
|
}
|
|
|
|
func (this *QTextItem) Width() float64 {
|
|
ret := C.QTextItem_Width(this.h)
|
|
return (float64)(ret)
|
|
}
|
|
|
|
func (this *QTextItem) RenderFlags() int {
|
|
ret := C.QTextItem_RenderFlags(this.h)
|
|
return (int)(ret)
|
|
}
|
|
|
|
func (this *QTextItem) Text() string {
|
|
var _out *C.char = nil
|
|
var _out_Strlen C.int = 0
|
|
C.QTextItem_Text(this.h, &_out, &_out_Strlen)
|
|
ret := C.GoStringN(_out, _out_Strlen)
|
|
C.free(unsafe.Pointer(_out))
|
|
return ret
|
|
}
|
|
|
|
func (this *QTextItem) Font() *QFont {
|
|
ret := C.QTextItem_Font(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQFont(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QFont) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QTextItem) Delete() {
|
|
C.QTextItem_Delete(this.h)
|
|
}
|
|
|
|
type QPaintEngine struct {
|
|
h *C.QPaintEngine
|
|
}
|
|
|
|
func (this *QPaintEngine) cPointer() *C.QPaintEngine {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return this.h
|
|
}
|
|
|
|
func newQPaintEngine(h *C.QPaintEngine) *QPaintEngine {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
return &QPaintEngine{h: h}
|
|
}
|
|
|
|
func newQPaintEngine_U(h unsafe.Pointer) *QPaintEngine {
|
|
return newQPaintEngine((*C.QPaintEngine)(h))
|
|
}
|
|
|
|
func (this *QPaintEngine) IsActive() bool {
|
|
ret := C.QPaintEngine_IsActive(this.h)
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngine) SetActive(newState bool) {
|
|
C.QPaintEngine_SetActive(this.h, (C.bool)(newState))
|
|
}
|
|
|
|
func (this *QPaintEngine) Begin(pdev *QPaintDevice) bool {
|
|
ret := C.QPaintEngine_Begin(this.h, pdev.cPointer())
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngine) End() bool {
|
|
ret := C.QPaintEngine_End(this.h)
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngine) UpdateState(state *QPaintEngineState) {
|
|
C.QPaintEngine_UpdateState(this.h, state.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawRects(rects *QRect, rectCount int) {
|
|
C.QPaintEngine_DrawRects(this.h, rects.cPointer(), (C.int)(rectCount))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawRects2(rects *QRectF, rectCount int) {
|
|
C.QPaintEngine_DrawRects2(this.h, rects.cPointer(), (C.int)(rectCount))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawLines(lines *QLine, lineCount int) {
|
|
C.QPaintEngine_DrawLines(this.h, lines.cPointer(), (C.int)(lineCount))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawLines2(lines *QLineF, lineCount int) {
|
|
C.QPaintEngine_DrawLines2(this.h, lines.cPointer(), (C.int)(lineCount))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawEllipse(r *QRectF) {
|
|
C.QPaintEngine_DrawEllipse(this.h, r.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawEllipseWithQRect(r *QRect) {
|
|
C.QPaintEngine_DrawEllipseWithQRect(this.h, r.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawPath(path *QPainterPath) {
|
|
C.QPaintEngine_DrawPath(this.h, path.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawPoints(points *QPointF, pointCount int) {
|
|
C.QPaintEngine_DrawPoints(this.h, points.cPointer(), (C.int)(pointCount))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawPoints2(points *QPoint, pointCount int) {
|
|
C.QPaintEngine_DrawPoints2(this.h, points.cPointer(), (C.int)(pointCount))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawPolygon(points *QPointF, pointCount int, mode QPaintEngine__PolygonDrawMode) {
|
|
C.QPaintEngine_DrawPolygon(this.h, points.cPointer(), (C.int)(pointCount), (C.uintptr_t)(mode))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawPolygon2(points *QPoint, pointCount int, mode QPaintEngine__PolygonDrawMode) {
|
|
C.QPaintEngine_DrawPolygon2(this.h, points.cPointer(), (C.int)(pointCount), (C.uintptr_t)(mode))
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawPixmap(r *QRectF, pm *QPixmap, sr *QRectF) {
|
|
C.QPaintEngine_DrawPixmap(this.h, r.cPointer(), pm.cPointer(), sr.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawTextItem(p *QPointF, textItem *QTextItem) {
|
|
C.QPaintEngine_DrawTextItem(this.h, p.cPointer(), textItem.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawTiledPixmap(r *QRectF, pixmap *QPixmap, s *QPointF) {
|
|
C.QPaintEngine_DrawTiledPixmap(this.h, r.cPointer(), pixmap.cPointer(), s.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawImage(r *QRectF, pm *QImage, sr *QRectF) {
|
|
C.QPaintEngine_DrawImage(this.h, r.cPointer(), pm.cPointer(), sr.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) SetPaintDevice(device *QPaintDevice) {
|
|
C.QPaintEngine_SetPaintDevice(this.h, device.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) PaintDevice() *QPaintDevice {
|
|
ret := C.QPaintEngine_PaintDevice(this.h)
|
|
return newQPaintDevice_U(unsafe.Pointer(ret))
|
|
}
|
|
|
|
func (this *QPaintEngine) SetSystemClip(baseClip *QRegion) {
|
|
C.QPaintEngine_SetSystemClip(this.h, baseClip.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) SystemClip() *QRegion {
|
|
ret := C.QPaintEngine_SystemClip(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQRegion(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QRegion) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngine) SetSystemRect(rect *QRect) {
|
|
C.QPaintEngine_SetSystemRect(this.h, rect.cPointer())
|
|
}
|
|
|
|
func (this *QPaintEngine) SystemRect() *QRect {
|
|
ret := C.QPaintEngine_SystemRect(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQRect(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QRect) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngine) CoordinateOffset() *QPoint {
|
|
ret := C.QPaintEngine_CoordinateOffset(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQPoint(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPoint) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngine) Type() QPaintEngine__Type {
|
|
ret := C.QPaintEngine_Type(this.h)
|
|
return (QPaintEngine__Type)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngine) FixNegRect(x *int, y *int, w *int, h *int) {
|
|
C.QPaintEngine_FixNegRect(this.h, (*C.int)(unsafe.Pointer(x)), (*C.int)(unsafe.Pointer(y)), (*C.int)(unsafe.Pointer(w)), (*C.int)(unsafe.Pointer(h)))
|
|
}
|
|
|
|
func (this *QPaintEngine) TestDirty(df int) bool {
|
|
ret := C.QPaintEngine_TestDirty(this.h, (C.int)(df))
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngine) SetDirty(df int) {
|
|
C.QPaintEngine_SetDirty(this.h, (C.int)(df))
|
|
}
|
|
|
|
func (this *QPaintEngine) ClearDirty(df int) {
|
|
C.QPaintEngine_ClearDirty(this.h, (C.int)(df))
|
|
}
|
|
|
|
func (this *QPaintEngine) HasFeature(feature int) bool {
|
|
ret := C.QPaintEngine_HasFeature(this.h, (C.int)(feature))
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngine) Painter() *QPainter {
|
|
ret := C.QPaintEngine_Painter(this.h)
|
|
return newQPainter_U(unsafe.Pointer(ret))
|
|
}
|
|
|
|
func (this *QPaintEngine) SyncState() {
|
|
C.QPaintEngine_SyncState(this.h)
|
|
}
|
|
|
|
func (this *QPaintEngine) IsExtended() bool {
|
|
ret := C.QPaintEngine_IsExtended(this.h)
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngine) DrawImage4(r *QRectF, pm *QImage, sr *QRectF, flags int) {
|
|
C.QPaintEngine_DrawImage4(this.h, r.cPointer(), pm.cPointer(), sr.cPointer(), (C.int)(flags))
|
|
}
|
|
|
|
func (this *QPaintEngine) Delete() {
|
|
C.QPaintEngine_Delete(this.h)
|
|
}
|
|
|
|
type QPaintEngineState struct {
|
|
h *C.QPaintEngineState
|
|
}
|
|
|
|
func (this *QPaintEngineState) cPointer() *C.QPaintEngineState {
|
|
if this == nil {
|
|
return nil
|
|
}
|
|
return this.h
|
|
}
|
|
|
|
func newQPaintEngineState(h *C.QPaintEngineState) *QPaintEngineState {
|
|
if h == nil {
|
|
return nil
|
|
}
|
|
return &QPaintEngineState{h: h}
|
|
}
|
|
|
|
func newQPaintEngineState_U(h unsafe.Pointer) *QPaintEngineState {
|
|
return newQPaintEngineState((*C.QPaintEngineState)(h))
|
|
}
|
|
|
|
func (this *QPaintEngineState) State() int {
|
|
ret := C.QPaintEngineState_State(this.h)
|
|
return (int)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) Pen() *QPen {
|
|
ret := C.QPaintEngineState_Pen(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQPen(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPen) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) Brush() *QBrush {
|
|
ret := C.QPaintEngineState_Brush(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQBrush(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QBrush) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) BrushOrigin() *QPointF {
|
|
ret := C.QPaintEngineState_BrushOrigin(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQPointF(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPointF) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) BackgroundBrush() *QBrush {
|
|
ret := C.QPaintEngineState_BackgroundBrush(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQBrush(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QBrush) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) BackgroundMode() BGMode {
|
|
ret := C.QPaintEngineState_BackgroundMode(this.h)
|
|
return (BGMode)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) Font() *QFont {
|
|
ret := C.QPaintEngineState_Font(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQFont(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QFont) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) Matrix() *QMatrix {
|
|
ret := C.QPaintEngineState_Matrix(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQMatrix(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QMatrix) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) Transform() *QTransform {
|
|
ret := C.QPaintEngineState_Transform(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQTransform(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QTransform) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) ClipOperation() ClipOperation {
|
|
ret := C.QPaintEngineState_ClipOperation(this.h)
|
|
return (ClipOperation)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) ClipRegion() *QRegion {
|
|
ret := C.QPaintEngineState_ClipRegion(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQRegion(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QRegion) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) ClipPath() *QPainterPath {
|
|
ret := C.QPaintEngineState_ClipPath(this.h)
|
|
// Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
ret1 := newQPainterPath(ret)
|
|
runtime.SetFinalizer(ret1, func(ret2 *QPainterPath) {
|
|
ret2.Delete()
|
|
runtime.KeepAlive(ret2.h)
|
|
})
|
|
return ret1
|
|
}
|
|
|
|
func (this *QPaintEngineState) IsClipEnabled() bool {
|
|
ret := C.QPaintEngineState_IsClipEnabled(this.h)
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) RenderHints() int {
|
|
ret := C.QPaintEngineState_RenderHints(this.h)
|
|
return (int)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) CompositionMode() QPainter__CompositionMode {
|
|
ret := C.QPaintEngineState_CompositionMode(this.h)
|
|
return (QPainter__CompositionMode)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) Opacity() float64 {
|
|
ret := C.QPaintEngineState_Opacity(this.h)
|
|
return (float64)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) Painter() *QPainter {
|
|
ret := C.QPaintEngineState_Painter(this.h)
|
|
return newQPainter_U(unsafe.Pointer(ret))
|
|
}
|
|
|
|
func (this *QPaintEngineState) BrushNeedsResolving() bool {
|
|
ret := C.QPaintEngineState_BrushNeedsResolving(this.h)
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) PenNeedsResolving() bool {
|
|
ret := C.QPaintEngineState_PenNeedsResolving(this.h)
|
|
return (bool)(ret)
|
|
}
|
|
|
|
func (this *QPaintEngineState) Delete() {
|
|
C.QPaintEngineState_Delete(this.h)
|
|
}
|