Documentation ¶
Index ¶
- func DeleteQQuickAsyncImageProvider(this *QQuickAsyncImageProvider)
- func DeleteQQuickFramebufferObject(this *QQuickFramebufferObject)
- func DeleteQQuickImageProvider(this *QQuickImageProvider)
- func DeleteQQuickImageResponse(this *QQuickImageResponse)
- func DeleteQQuickItem(this *QQuickItem)
- func DeleteQQuickItemGrabResult(this *QQuickItemGrabResult)
- func DeleteQQuickPaintedItem(this *QQuickPaintedItem)
- func DeleteQQuickRenderControl(this *QQuickRenderControl)
- func DeleteQQuickTextDocument(this *QQuickTextDocument)
- func DeleteQQuickTextureFactory(this *QQuickTextureFactory)
- func DeleteQQuickTransform(this *QQuickTransform)
- func DeleteQQuickView(this *QQuickView)
- func DeleteQQuickWindow(this *QQuickWindow)
- func DeleteQSGAbstractRenderer(this *QSGAbstractRenderer)
- func DeleteQSGBasicGeometryNode(this *QSGBasicGeometryNode)
- func DeleteQSGClipNode(this *QSGClipNode)
- func DeleteQSGDynamicTexture(this *QSGDynamicTexture)
- func DeleteQSGEngine(this *QSGEngine)
- func DeleteQSGFlatColorMaterial(this *QSGFlatColorMaterial)
- func DeleteQSGGeometry(this *QSGGeometry)
- func DeleteQSGGeometryNode(this *QSGGeometryNode)
- func DeleteQSGImageNode(this *QSGImageNode)
- func DeleteQSGMaterial(this *QSGMaterial)
- func DeleteQSGMaterialShader(this *QSGMaterialShader)
- func DeleteQSGMaterialType(this *QSGMaterialType)
- func DeleteQSGNinePatchNode(this *QSGNinePatchNode)
- func DeleteQSGNode(this *QSGNode)
- func DeleteQSGNodeVisitor(this *QSGNodeVisitor)
- func DeleteQSGOpacityNode(this *QSGOpacityNode)
- func DeleteQSGOpaqueTextureMaterial(this *QSGOpaqueTextureMaterial)
- func DeleteQSGRectangleNode(this *QSGRectangleNode)
- func DeleteQSGRenderNode(this *QSGRenderNode)
- func DeleteQSGRendererInterface(this *QSGRendererInterface)
- func DeleteQSGRootNode(this *QSGRootNode)
- func DeleteQSGSimpleRectNode(this *QSGSimpleRectNode)
- func DeleteQSGSimpleTextureNode(this *QSGSimpleTextureNode)
- func DeleteQSGTexture(this *QSGTexture)
- func DeleteQSGTextureMaterial(this *QSGTextureMaterial)
- func DeleteQSGTextureProvider(this *QSGTextureProvider)
- func DeleteQSGTransformNode(this *QSGTransformNode)
- func DeleteQSGVertexColorMaterial(this *QSGVertexColorMaterial)
- func KeepMe()
- func QQuickRenderControl_RenderWindowFor(win QQuickWindow_ITF, offset qtcore.QPoint_ITF) *qtgui.QWindow
- func QQuickWindow_HasDefaultAlphaBuffer() bool
- func QQuickWindow_SceneGraphBackend() string
- func QQuickWindow_SetDefaultAlphaBuffer(useAlpha bool)
- func QQuickWindow_SetSceneGraphBackend(api int)
- func QQuickWindow_SetSceneGraphBackend_1(backend string)
- func QQuickWindow_SetTextRenderType(renderType int)
- func QQuickWindow_TextRenderType() int
- func QSGGeometry_DefaultAttributes_ColoredPoint2D() unsafe.Pointer
- func QSGGeometry_DefaultAttributes_Point2D() unsafe.Pointer
- func QSGGeometry_DefaultAttributes_TexturedPoint2D() unsafe.Pointer
- func QSGGeometry_UpdateColoredRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
- func QSGGeometry_UpdateRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
- func QSGGeometry_UpdateTexturedRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF, sourceRect qtcore.QRectF_ITF)
- func QSGImageNode_RebuildGeometry(g QSGGeometry_ITF, texture QSGTexture_ITF, rect qtcore.QRectF_ITF, ...)
- func QSGNinePatchNode_RebuildGeometry(texture QSGTexture_ITF, geometry QSGGeometry_ITF, padding qtgui.QVector4D_ITF, ...)
- func Qsgnode_set_description(node QSGNode_ITF, description string)
- type QQuickAsyncImageProvider
- func (this *QQuickAsyncImageProvider) GetCthis() unsafe.Pointer
- func (*QQuickAsyncImageProvider) NewFromPointer(cthis unsafe.Pointer) *QQuickAsyncImageProvider
- func (ptr *QQuickAsyncImageProvider) QQuickAsyncImageProvider_PTR() *QQuickAsyncImageProvider
- func (this *QQuickAsyncImageProvider) RequestImageResponse(id string, requestedSize qtcore.QSize_ITF) *QQuickImageResponse
- func (this *QQuickAsyncImageProvider) SetCthis(cthis unsafe.Pointer)
- type QQuickAsyncImageProvider_ITF
- type QQuickFramebufferObject
- func (this *QQuickFramebufferObject) CreateRenderer() unsafe.Pointer
- func (this *QQuickFramebufferObject) GeometryChanged(newGeometry qtcore.QRectF_ITF, oldGeometry qtcore.QRectF_ITF)
- func (this *QQuickFramebufferObject) GetCthis() unsafe.Pointer
- func (this *QQuickFramebufferObject) InheritGeometryChanged(f func(newGeometry *qtcore.QRectF, oldGeometry *qtcore.QRectF))
- func (this *QQuickFramebufferObject) IsTextureProvider() bool
- func (this *QQuickFramebufferObject) MetaObject() *qtcore.QMetaObject
- func (this *QQuickFramebufferObject) MirrorVertically() bool
- func (this *QQuickFramebufferObject) MirrorVerticallyChanged(arg0 bool)
- func (*QQuickFramebufferObject) NewFromPointer(cthis unsafe.Pointer) *QQuickFramebufferObject
- func (ptr *QQuickFramebufferObject) QQuickFramebufferObject_PTR() *QQuickFramebufferObject
- func (this *QQuickFramebufferObject) ReleaseResources()
- func (this *QQuickFramebufferObject) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickFramebufferObject) SetMirrorVertically(enable bool)
- func (this *QQuickFramebufferObject) SetTextureFollowsItemSize(follows bool)
- func (this *QQuickFramebufferObject) TextureFollowsItemSize() bool
- func (this *QQuickFramebufferObject) TextureFollowsItemSizeChanged(arg0 bool)
- func (this *QQuickFramebufferObject) TextureProvider() *QSGTextureProvider
- type QQuickFramebufferObject_ITF
- type QQuickImageProvider
- func (this *QQuickImageProvider) Flags() int
- func (this *QQuickImageProvider) GetCthis() unsafe.Pointer
- func (this *QQuickImageProvider) ImageType() int
- func (*QQuickImageProvider) NewFromPointer(cthis unsafe.Pointer) *QQuickImageProvider
- func (ptr *QQuickImageProvider) QQuickImageProvider_PTR() *QQuickImageProvider
- func (this *QQuickImageProvider) RequestImage(id string, size qtcore.QSize_ITF, requestedSize qtcore.QSize_ITF) *qtgui.QImage
- func (this *QQuickImageProvider) RequestPixmap(id string, size qtcore.QSize_ITF, requestedSize qtcore.QSize_ITF) *qtgui.QPixmap
- func (this *QQuickImageProvider) RequestTexture(id string, size qtcore.QSize_ITF, requestedSize qtcore.QSize_ITF) *QQuickTextureFactory
- func (this *QQuickImageProvider) SetCthis(cthis unsafe.Pointer)
- type QQuickImageProvider_ITF
- type QQuickImageResponse
- func (this *QQuickImageResponse) Cancel()
- func (this *QQuickImageResponse) ErrorString() string
- func (this *QQuickImageResponse) Finished()
- func (this *QQuickImageResponse) GetCthis() unsafe.Pointer
- func (this *QQuickImageResponse) MetaObject() *qtcore.QMetaObject
- func (*QQuickImageResponse) NewFromPointer(cthis unsafe.Pointer) *QQuickImageResponse
- func (ptr *QQuickImageResponse) QQuickImageResponse_PTR() *QQuickImageResponse
- func (this *QQuickImageResponse) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickImageResponse) TextureFactory() *QQuickTextureFactory
- type QQuickImageResponse_ITF
- type QQuickItem
- func (this *QQuickItem) AcceptHoverEvents() bool
- func (this *QQuickItem) AcceptTouchEvents() bool
- func (this *QQuickItem) AcceptedMouseButtons() int
- func (this *QQuickItem) ActiveFocusChanged(arg0 bool)
- func (this *QQuickItem) ActiveFocusOnTab() bool
- func (this *QQuickItem) ActiveFocusOnTabChanged(arg0 bool)
- func (this *QQuickItem) Antialiasing() bool
- func (this *QQuickItem) AntialiasingChanged(arg0 bool)
- func (this *QQuickItem) BaselineOffset() float64
- func (this *QQuickItem) BaselineOffsetChanged(arg0 float64)
- func (this *QQuickItem) BoundingRect() *qtcore.QRectF
- func (this *QQuickItem) ChildAt(x float64, y float64) *QQuickItem
- func (this *QQuickItem) ChildMouseEventFilter(arg0 QQuickItem_ITF, arg1 qtcore.QEvent_ITF) bool
- func (this *QQuickItem) ChildrenChanged()
- func (this *QQuickItem) ChildrenRect() *qtcore.QRectF
- func (this *QQuickItem) ChildrenRectChanged(arg0 qtcore.QRectF_ITF)
- func (this *QQuickItem) ClassBegin()
- func (this *QQuickItem) Clip() bool
- func (this *QQuickItem) ClipChanged(arg0 bool)
- func (this *QQuickItem) ClipRect() *qtcore.QRectF
- func (this *QQuickItem) ComponentComplete()
- func (this *QQuickItem) Contains(point qtcore.QPointF_ITF) bool
- func (this *QQuickItem) Cursor() *qtgui.QCursor
- func (this *QQuickItem) DragEnterEvent(arg0 qtgui.QDragEnterEvent_ITF)
- func (this *QQuickItem) DragLeaveEvent(arg0 qtgui.QDragLeaveEvent_ITF)
- func (this *QQuickItem) DragMoveEvent(arg0 qtgui.QDragMoveEvent_ITF)
- func (this *QQuickItem) DropEvent(arg0 qtgui.QDropEvent_ITF)
- func (this *QQuickItem) EnabledChanged()
- func (this *QQuickItem) Event(arg0 qtcore.QEvent_ITF) bool
- func (this *QQuickItem) FiltersChildMouseEvents() bool
- func (this *QQuickItem) Flags() int
- func (this *QQuickItem) FocusChanged(arg0 bool)
- func (this *QQuickItem) FocusInEvent(arg0 qtgui.QFocusEvent_ITF)
- func (this *QQuickItem) FocusOutEvent(arg0 qtgui.QFocusEvent_ITF)
- func (this *QQuickItem) ForceActiveFocus()
- func (this *QQuickItem) ForceActiveFocus_1(reason int)
- func (this *QQuickItem) GeometryChanged(newGeometry qtcore.QRectF_ITF, oldGeometry qtcore.QRectF_ITF)
- func (this *QQuickItem) GetCthis() unsafe.Pointer
- func (this *QQuickItem) GrabMouse()
- func (this *QQuickItem) GrabToImage(callback qtqml.QJSValue_ITF, targetSize qtcore.QSize_ITF) bool
- func (this *QQuickItem) GrabToImage__(callback qtqml.QJSValue_ITF) bool
- func (this *QQuickItem) HasActiveFocus() bool
- func (this *QQuickItem) HasFocus() bool
- func (this *QQuickItem) Height() float64
- func (this *QQuickItem) HeightChanged()
- func (this *QQuickItem) HeightValid() bool
- func (this *QQuickItem) HoverEnterEvent(event qtgui.QHoverEvent_ITF)
- func (this *QQuickItem) HoverLeaveEvent(event qtgui.QHoverEvent_ITF)
- func (this *QQuickItem) HoverMoveEvent(event qtgui.QHoverEvent_ITF)
- func (this *QQuickItem) ImplicitHeight() float64
- func (this *QQuickItem) ImplicitHeightChanged()
- func (this *QQuickItem) ImplicitWidth() float64
- func (this *QQuickItem) ImplicitWidthChanged()
- func (this *QQuickItem) InheritChildMouseEventFilter(f func(arg0 *QQuickItem, arg1 *qtcore.QEvent) bool)
- func (this *QQuickItem) InheritClassBegin(f func())
- func (this *QQuickItem) InheritComponentComplete(f func())
- func (this *QQuickItem) InheritDragEnterEvent(f func(arg0 *qtgui.QDragEnterEvent))
- func (this *QQuickItem) InheritDragLeaveEvent(f func(arg0 *qtgui.QDragLeaveEvent))
- func (this *QQuickItem) InheritDragMoveEvent(f func(arg0 *qtgui.QDragMoveEvent))
- func (this *QQuickItem) InheritDropEvent(f func(arg0 *qtgui.QDropEvent))
- func (this *QQuickItem) InheritEvent(f func(arg0 *qtcore.QEvent) bool)
- func (this *QQuickItem) InheritFocusInEvent(f func(arg0 *qtgui.QFocusEvent))
- func (this *QQuickItem) InheritFocusOutEvent(f func(arg0 *qtgui.QFocusEvent))
- func (this *QQuickItem) InheritGeometryChanged(f func(newGeometry *qtcore.QRectF, oldGeometry *qtcore.QRectF))
- func (this *QQuickItem) InheritHeightValid(f func() bool)
- func (this *QQuickItem) InheritHoverEnterEvent(f func(event *qtgui.QHoverEvent))
- func (this *QQuickItem) InheritHoverLeaveEvent(f func(event *qtgui.QHoverEvent))
- func (this *QQuickItem) InheritHoverMoveEvent(f func(event *qtgui.QHoverEvent))
- func (this *QQuickItem) InheritInputMethodEvent(f func(arg0 *qtgui.QInputMethodEvent))
- func (this *QQuickItem) InheritIsComponentComplete(f func() bool)
- func (this *QQuickItem) InheritKeyPressEvent(f func(event *qtgui.QKeyEvent))
- func (this *QQuickItem) InheritKeyReleaseEvent(f func(event *qtgui.QKeyEvent))
- func (this *QQuickItem) InheritMouseDoubleClickEvent(f func(event *qtgui.QMouseEvent))
- func (this *QQuickItem) InheritMouseMoveEvent(f func(event *qtgui.QMouseEvent))
- func (this *QQuickItem) InheritMousePressEvent(f func(event *qtgui.QMouseEvent))
- func (this *QQuickItem) InheritMouseReleaseEvent(f func(event *qtgui.QMouseEvent))
- func (this *QQuickItem) InheritMouseUngrabEvent(f func())
- func (this *QQuickItem) InheritReleaseResources(f func())
- func (this *QQuickItem) InheritSetImplicitSize(f func(arg0 float64, arg1 float64))
- func (this *QQuickItem) InheritTouchEvent(f func(event *qtgui.QTouchEvent))
- func (this *QQuickItem) InheritTouchUngrabEvent(f func())
- func (this *QQuickItem) InheritUpdateInputMethod(f func(queries int))
- func (this *QQuickItem) InheritUpdatePolish(f func())
- func (this *QQuickItem) InheritWheelEvent(f func(event *qtgui.QWheelEvent))
- func (this *QQuickItem) InheritWidthValid(f func() bool)
- func (this *QQuickItem) InheritWindowDeactivateEvent(f func())
- func (this *QQuickItem) InputMethodEvent(arg0 qtgui.QInputMethodEvent_ITF)
- func (this *QQuickItem) InputMethodQuery(query int) *qtcore.QVariant
- func (this *QQuickItem) IsAncestorOf(child QQuickItem_ITF) bool
- func (this *QQuickItem) IsComponentComplete() bool
- func (this *QQuickItem) IsEnabled() bool
- func (this *QQuickItem) IsFocusScope() bool
- func (this *QQuickItem) IsTextureProvider() bool
- func (this *QQuickItem) IsUnderMouse() bool
- func (this *QQuickItem) IsVisible() bool
- func (this *QQuickItem) ItemTransform(arg0 QQuickItem_ITF, arg1 *bool) *qtgui.QTransform
- func (this *QQuickItem) KeepMouseGrab() bool
- func (this *QQuickItem) KeepTouchGrab() bool
- func (this *QQuickItem) KeyPressEvent(event qtgui.QKeyEvent_ITF)
- func (this *QQuickItem) KeyReleaseEvent(event qtgui.QKeyEvent_ITF)
- func (this *QQuickItem) MapFromGlobal(point qtcore.QPointF_ITF) *qtcore.QPointF
- func (this *QQuickItem) MapFromItem(item QQuickItem_ITF, point qtcore.QPointF_ITF) *qtcore.QPointF
- func (this *QQuickItem) MapFromScene(point qtcore.QPointF_ITF) *qtcore.QPointF
- func (this *QQuickItem) MapRectFromItem(item QQuickItem_ITF, rect qtcore.QRectF_ITF) *qtcore.QRectF
- func (this *QQuickItem) MapRectFromScene(rect qtcore.QRectF_ITF) *qtcore.QRectF
- func (this *QQuickItem) MapRectToItem(item QQuickItem_ITF, rect qtcore.QRectF_ITF) *qtcore.QRectF
- func (this *QQuickItem) MapRectToScene(rect qtcore.QRectF_ITF) *qtcore.QRectF
- func (this *QQuickItem) MapToGlobal(point qtcore.QPointF_ITF) *qtcore.QPointF
- func (this *QQuickItem) MapToItem(item QQuickItem_ITF, point qtcore.QPointF_ITF) *qtcore.QPointF
- func (this *QQuickItem) MapToScene(point qtcore.QPointF_ITF) *qtcore.QPointF
- func (this *QQuickItem) MetaObject() *qtcore.QMetaObject
- func (this *QQuickItem) MouseDoubleClickEvent(event qtgui.QMouseEvent_ITF)
- func (this *QQuickItem) MouseMoveEvent(event qtgui.QMouseEvent_ITF)
- func (this *QQuickItem) MousePressEvent(event qtgui.QMouseEvent_ITF)
- func (this *QQuickItem) MouseReleaseEvent(event qtgui.QMouseEvent_ITF)
- func (this *QQuickItem) MouseUngrabEvent()
- func (*QQuickItem) NewFromPointer(cthis unsafe.Pointer) *QQuickItem
- func (this *QQuickItem) NextItemInFocusChain(forward bool) *QQuickItem
- func (this *QQuickItem) NextItemInFocusChain__() *QQuickItem
- func (this *QQuickItem) Opacity() float64
- func (this *QQuickItem) OpacityChanged()
- func (this *QQuickItem) ParentChanged(arg0 QQuickItem_ITF)
- func (this *QQuickItem) ParentItem() *QQuickItem
- func (this *QQuickItem) Polish()
- func (this *QQuickItem) Position() *qtcore.QPointF
- func (ptr *QQuickItem) QQuickItem_PTR() *QQuickItem
- func (this *QQuickItem) ReleaseResources()
- func (this *QQuickItem) ResetAntialiasing()
- func (this *QQuickItem) ResetHeight()
- func (this *QQuickItem) ResetWidth()
- func (this *QQuickItem) Rotation() float64
- func (this *QQuickItem) RotationChanged()
- func (this *QQuickItem) Scale() float64
- func (this *QQuickItem) ScaleChanged()
- func (this *QQuickItem) ScopedFocusItem() *QQuickItem
- func (this *QQuickItem) SetAcceptHoverEvents(enabled bool)
- func (this *QQuickItem) SetAcceptTouchEvents(accept bool)
- func (this *QQuickItem) SetAcceptedMouseButtons(buttons int)
- func (this *QQuickItem) SetActiveFocusOnTab(arg0 bool)
- func (this *QQuickItem) SetAntialiasing(arg0 bool)
- func (this *QQuickItem) SetBaselineOffset(arg0 float64)
- func (this *QQuickItem) SetClip(arg0 bool)
- func (this *QQuickItem) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickItem) SetCursor(cursor qtgui.QCursor_ITF)
- func (this *QQuickItem) SetEnabled(arg0 bool)
- func (this *QQuickItem) SetFiltersChildMouseEvents(filter bool)
- func (this *QQuickItem) SetFlag(flag int, enabled bool)
- func (this *QQuickItem) SetFlag__(flag int)
- func (this *QQuickItem) SetFlags(flags int)
- func (this *QQuickItem) SetFocus(arg0 bool)
- func (this *QQuickItem) SetFocus_1(focus bool, reason int)
- func (this *QQuickItem) SetHeight(arg0 float64)
- func (this *QQuickItem) SetImplicitHeight(arg0 float64)
- func (this *QQuickItem) SetImplicitSize(arg0 float64, arg1 float64)
- func (this *QQuickItem) SetImplicitWidth(arg0 float64)
- func (this *QQuickItem) SetKeepMouseGrab(arg0 bool)
- func (this *QQuickItem) SetKeepTouchGrab(arg0 bool)
- func (this *QQuickItem) SetOpacity(arg0 float64)
- func (this *QQuickItem) SetParentItem(parent QQuickItem_ITF)
- func (this *QQuickItem) SetPosition(arg0 qtcore.QPointF_ITF)
- func (this *QQuickItem) SetRotation(arg0 float64)
- func (this *QQuickItem) SetScale(arg0 float64)
- func (this *QQuickItem) SetSize(size qtcore.QSizeF_ITF)
- func (this *QQuickItem) SetSmooth(arg0 bool)
- func (this *QQuickItem) SetState(arg0 string)
- func (this *QQuickItem) SetTransformOrigin(arg0 int)
- func (this *QQuickItem) SetTransformOriginPoint(arg0 qtcore.QPointF_ITF)
- func (this *QQuickItem) SetVisible(arg0 bool)
- func (this *QQuickItem) SetWidth(arg0 float64)
- func (this *QQuickItem) SetX(arg0 float64)
- func (this *QQuickItem) SetY(arg0 float64)
- func (this *QQuickItem) SetZ(arg0 float64)
- func (this *QQuickItem) Size() *qtcore.QSizeF
- func (this *QQuickItem) Smooth() bool
- func (this *QQuickItem) SmoothChanged(arg0 bool)
- func (this *QQuickItem) StackAfter(arg0 QQuickItem_ITF)
- func (this *QQuickItem) StackBefore(arg0 QQuickItem_ITF)
- func (this *QQuickItem) State() string
- func (this *QQuickItem) StateChanged(arg0 string)
- func (this *QQuickItem) TextureProvider() *QSGTextureProvider
- func (this *QQuickItem) TouchEvent(event qtgui.QTouchEvent_ITF)
- func (this *QQuickItem) TouchUngrabEvent()
- func (this *QQuickItem) TransformOrigin() int
- func (this *QQuickItem) TransformOriginChanged(arg0 int)
- func (this *QQuickItem) TransformOriginPoint() *qtcore.QPointF
- func (this *QQuickItem) UngrabMouse()
- func (this *QQuickItem) UngrabTouchPoints()
- func (this *QQuickItem) UnsetCursor()
- func (this *QQuickItem) Update()
- func (this *QQuickItem) UpdateInputMethod(queries int)
- func (this *QQuickItem) UpdateInputMethod__()
- func (this *QQuickItem) UpdatePolish()
- func (this *QQuickItem) VisibleChanged()
- func (this *QQuickItem) VisibleChildrenChanged()
- func (this *QQuickItem) WheelEvent(event qtgui.QWheelEvent_ITF)
- func (this *QQuickItem) Width() float64
- func (this *QQuickItem) WidthChanged()
- func (this *QQuickItem) WidthValid() bool
- func (this *QQuickItem) Window() *QQuickWindow
- func (this *QQuickItem) WindowChanged(window QQuickWindow_ITF)
- func (this *QQuickItem) WindowDeactivateEvent()
- func (this *QQuickItem) X() float64
- func (this *QQuickItem) XChanged()
- func (this *QQuickItem) Y() float64
- func (this *QQuickItem) YChanged()
- func (this *QQuickItem) Z() float64
- func (this *QQuickItem) ZChanged()
- type QQuickItemGrabResult
- func (this *QQuickItemGrabResult) Event(arg0 qtcore.QEvent_ITF) bool
- func (this *QQuickItemGrabResult) GetCthis() unsafe.Pointer
- func (this *QQuickItemGrabResult) Image() *qtgui.QImage
- func (this *QQuickItemGrabResult) InheritEvent(f func(arg0 *qtcore.QEvent) bool)
- func (this *QQuickItemGrabResult) MetaObject() *qtcore.QMetaObject
- func (*QQuickItemGrabResult) NewFromPointer(cthis unsafe.Pointer) *QQuickItemGrabResult
- func (ptr *QQuickItemGrabResult) QQuickItemGrabResult_PTR() *QQuickItemGrabResult
- func (this *QQuickItemGrabResult) Ready()
- func (this *QQuickItemGrabResult) SaveToFile(fileName string) bool
- func (this *QQuickItemGrabResult) SaveToFile_1(fileName string) bool
- func (this *QQuickItemGrabResult) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickItemGrabResult) Url() *qtcore.QUrl
- type QQuickItemGrabResult_ITF
- type QQuickItem_ITF
- type QQuickItem__Flag
- type QQuickItem__ItemChange
- type QQuickItem__TransformOrigin
- type QQuickPaintedItem
- func (this *QQuickPaintedItem) Antialiasing() bool
- func (this *QQuickPaintedItem) ContentsBoundingRect() *qtcore.QRectF
- func (this *QQuickPaintedItem) ContentsScale() float64
- func (this *QQuickPaintedItem) ContentsScaleChanged()
- func (this *QQuickPaintedItem) ContentsSize() *qtcore.QSize
- func (this *QQuickPaintedItem) ContentsSizeChanged()
- func (this *QQuickPaintedItem) FillColor() *qtgui.QColor
- func (this *QQuickPaintedItem) FillColorChanged()
- func (this *QQuickPaintedItem) GetCthis() unsafe.Pointer
- func (this *QQuickPaintedItem) InheritReleaseResources(f func())
- func (this *QQuickPaintedItem) IsTextureProvider() bool
- func (this *QQuickPaintedItem) MetaObject() *qtcore.QMetaObject
- func (this *QQuickPaintedItem) Mipmap() bool
- func (*QQuickPaintedItem) NewFromPointer(cthis unsafe.Pointer) *QQuickPaintedItem
- func (this *QQuickPaintedItem) OpaquePainting() bool
- func (this *QQuickPaintedItem) Paint(painter qtgui.QPainter_ITF)
- func (this *QQuickPaintedItem) PerformanceHints() int
- func (ptr *QQuickPaintedItem) QQuickPaintedItem_PTR() *QQuickPaintedItem
- func (this *QQuickPaintedItem) ReleaseResources()
- func (this *QQuickPaintedItem) RenderTarget() int
- func (this *QQuickPaintedItem) RenderTargetChanged()
- func (this *QQuickPaintedItem) ResetContentsSize()
- func (this *QQuickPaintedItem) SetAntialiasing(enable bool)
- func (this *QQuickPaintedItem) SetContentsScale(arg0 float64)
- func (this *QQuickPaintedItem) SetContentsSize(arg0 qtcore.QSize_ITF)
- func (this *QQuickPaintedItem) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickPaintedItem) SetFillColor(arg0 qtgui.QColor_ITF)
- func (this *QQuickPaintedItem) SetMipmap(enable bool)
- func (this *QQuickPaintedItem) SetOpaquePainting(opaque bool)
- func (this *QQuickPaintedItem) SetPerformanceHint(hint int, enabled bool)
- func (this *QQuickPaintedItem) SetPerformanceHint__(hint int)
- func (this *QQuickPaintedItem) SetPerformanceHints(hints int)
- func (this *QQuickPaintedItem) SetRenderTarget(target int)
- func (this *QQuickPaintedItem) SetTextureSize(size qtcore.QSize_ITF)
- func (this *QQuickPaintedItem) TextureProvider() *QSGTextureProvider
- func (this *QQuickPaintedItem) TextureSize() *qtcore.QSize
- func (this *QQuickPaintedItem) TextureSizeChanged()
- func (this *QQuickPaintedItem) Update(rect qtcore.QRect_ITF)
- func (this *QQuickPaintedItem) Update__()
- type QQuickPaintedItem_ITF
- type QQuickPaintedItem__PerformanceHint
- type QQuickPaintedItem__RenderTarget
- type QQuickRenderControl
- func (this *QQuickRenderControl) GetCthis() unsafe.Pointer
- func (this *QQuickRenderControl) Grab() *qtgui.QImage
- func (this *QQuickRenderControl) Invalidate()
- func (this *QQuickRenderControl) MetaObject() *qtcore.QMetaObject
- func (*QQuickRenderControl) NewFromPointer(cthis unsafe.Pointer) *QQuickRenderControl
- func (this *QQuickRenderControl) PolishItems()
- func (this *QQuickRenderControl) PrepareThread(targetThread qtcore.QThread_ITF)
- func (ptr *QQuickRenderControl) QQuickRenderControl_PTR() *QQuickRenderControl
- func (this *QQuickRenderControl) Render()
- func (this *QQuickRenderControl) RenderRequested()
- func (this *QQuickRenderControl) RenderWindow(offset qtcore.QPoint_ITF) *qtgui.QWindow
- func (this *QQuickRenderControl) RenderWindowFor(win QQuickWindow_ITF, offset qtcore.QPoint_ITF) *qtgui.QWindow
- func (this *QQuickRenderControl) RenderWindowFor__(win QQuickWindow_ITF) *qtgui.QWindow
- func (this *QQuickRenderControl) SceneChanged()
- func (this *QQuickRenderControl) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickRenderControl) Sync() bool
- type QQuickRenderControl_ITF
- type QQuickTextDocument
- func (this *QQuickTextDocument) GetCthis() unsafe.Pointer
- func (this *QQuickTextDocument) MetaObject() *qtcore.QMetaObject
- func (*QQuickTextDocument) NewFromPointer(cthis unsafe.Pointer) *QQuickTextDocument
- func (ptr *QQuickTextDocument) QQuickTextDocument_PTR() *QQuickTextDocument
- func (this *QQuickTextDocument) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickTextDocument) TextDocument() *qtgui.QTextDocument
- type QQuickTextDocument_ITF
- type QQuickTextureFactory
- func (this *QQuickTextureFactory) CreateTexture(window QQuickWindow_ITF) *QSGTexture
- func (this *QQuickTextureFactory) GetCthis() unsafe.Pointer
- func (this *QQuickTextureFactory) Image() *qtgui.QImage
- func (*QQuickTextureFactory) NewFromPointer(cthis unsafe.Pointer) *QQuickTextureFactory
- func (ptr *QQuickTextureFactory) QQuickTextureFactory_PTR() *QQuickTextureFactory
- func (this *QQuickTextureFactory) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickTextureFactory) TextureByteCount() int
- func (this *QQuickTextureFactory) TextureFactoryForImage(image qtgui.QImage_ITF) *QQuickTextureFactory
- func (this *QQuickTextureFactory) TextureSize() *qtcore.QSize
- type QQuickTextureFactory_ITF
- type QQuickTransform
- func (this *QQuickTransform) AppendToItem(arg0 QQuickItem_ITF)
- func (this *QQuickTransform) ApplyTo(matrix qtgui.QMatrix4x4_ITF)
- func (this *QQuickTransform) GetCthis() unsafe.Pointer
- func (this *QQuickTransform) InheritUpdate(f func())
- func (this *QQuickTransform) MetaObject() *qtcore.QMetaObject
- func (*QQuickTransform) NewFromPointer(cthis unsafe.Pointer) *QQuickTransform
- func (this *QQuickTransform) PrependToItem(arg0 QQuickItem_ITF)
- func (ptr *QQuickTransform) QQuickTransform_PTR() *QQuickTransform
- func (this *QQuickTransform) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickTransform) Update()
- type QQuickTransform_ITF
- type QQuickView
- func NewQQuickView(parent qtgui.QWindow_ITF) *QQuickView
- func NewQQuickViewFromPointer(cthis unsafe.Pointer) *QQuickView
- func NewQQuickView_1(engine qtqml.QQmlEngine_ITF, parent qtgui.QWindow_ITF) *QQuickView
- func NewQQuickView_2(source qtcore.QUrl_ITF, parent qtgui.QWindow_ITF) *QQuickView
- func NewQQuickView_2_(source qtcore.QUrl_ITF) *QQuickView
- func NewQQuickView__() *QQuickView
- func (this *QQuickView) Engine() *qtqml.QQmlEngine
- func (this *QQuickView) GetCthis() unsafe.Pointer
- func (this *QQuickView) InheritKeyPressEvent(f func(arg0 *qtgui.QKeyEvent))
- func (this *QQuickView) InheritKeyReleaseEvent(f func(arg0 *qtgui.QKeyEvent))
- func (this *QQuickView) InheritMouseMoveEvent(f func(arg0 *qtgui.QMouseEvent))
- func (this *QQuickView) InheritMousePressEvent(f func(arg0 *qtgui.QMouseEvent))
- func (this *QQuickView) InheritMouseReleaseEvent(f func(arg0 *qtgui.QMouseEvent))
- func (this *QQuickView) InheritResizeEvent(f func(arg0 *qtgui.QResizeEvent))
- func (this *QQuickView) InheritTimerEvent(f func(arg0 *qtcore.QTimerEvent))
- func (this *QQuickView) InitialSize() *qtcore.QSize
- func (this *QQuickView) KeyPressEvent(arg0 qtgui.QKeyEvent_ITF)
- func (this *QQuickView) KeyReleaseEvent(arg0 qtgui.QKeyEvent_ITF)
- func (this *QQuickView) MetaObject() *qtcore.QMetaObject
- func (this *QQuickView) MouseMoveEvent(arg0 qtgui.QMouseEvent_ITF)
- func (this *QQuickView) MousePressEvent(arg0 qtgui.QMouseEvent_ITF)
- func (this *QQuickView) MouseReleaseEvent(arg0 qtgui.QMouseEvent_ITF)
- func (*QQuickView) NewFromPointer(cthis unsafe.Pointer) *QQuickView
- func (ptr *QQuickView) QQuickView_PTR() *QQuickView
- func (this *QQuickView) ResizeEvent(arg0 qtgui.QResizeEvent_ITF)
- func (this *QQuickView) ResizeMode() int
- func (this *QQuickView) RootContext() *qtqml.QQmlContext
- func (this *QQuickView) RootObject() *QQuickItem
- func (this *QQuickView) SetContent(url qtcore.QUrl_ITF, component qtqml.QQmlComponent_ITF, ...)
- func (this *QQuickView) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickView) SetResizeMode(arg0 int)
- func (this *QQuickView) SetSource(arg0 qtcore.QUrl_ITF)
- func (this *QQuickView) SizeHint() *qtcore.QSize
- func (this *QQuickView) Source() *qtcore.QUrl
- func (this *QQuickView) Status() int
- func (this *QQuickView) StatusChanged(arg0 int)
- func (this *QQuickView) TimerEvent(arg0 qtcore.QTimerEvent_ITF)
- type QQuickView_ITF
- type QQuickView__ResizeMode
- type QQuickView__Status
- type QQuickWindow
- func (this *QQuickWindow) AccessibleRoot() *qtgui.QAccessibleInterface
- func (this *QQuickWindow) ActiveFocusItem() *QQuickItem
- func (this *QQuickWindow) ActiveFocusItemChanged()
- func (this *QQuickWindow) AfterAnimating()
- func (this *QQuickWindow) AfterRendering()
- func (this *QQuickWindow) AfterSynchronizing()
- func (this *QQuickWindow) BeforeRendering()
- func (this *QQuickWindow) BeforeSynchronizing()
- func (this *QQuickWindow) ClearBeforeRendering() bool
- func (this *QQuickWindow) Color() *qtgui.QColor
- func (this *QQuickWindow) ColorChanged(arg0 qtgui.QColor_ITF)
- func (this *QQuickWindow) ContentItem() *QQuickItem
- func (this *QQuickWindow) CreateImageNode() *QSGImageNode
- func (this *QQuickWindow) CreateNinePatchNode() *QSGNinePatchNode
- func (this *QQuickWindow) CreateRectangleNode() *QSGRectangleNode
- func (this *QQuickWindow) CreateTextureFromId(id uint, size qtcore.QSize_ITF, options int) *QSGTexture
- func (this *QQuickWindow) CreateTextureFromId__(id uint, size qtcore.QSize_ITF) *QSGTexture
- func (this *QQuickWindow) CreateTextureFromImage(image qtgui.QImage_ITF) *QSGTexture
- func (this *QQuickWindow) CreateTextureFromImage_1(image qtgui.QImage_ITF, options int) *QSGTexture
- func (this *QQuickWindow) EffectiveDevicePixelRatio() float64
- func (this *QQuickWindow) Event(arg0 qtcore.QEvent_ITF) bool
- func (this *QQuickWindow) ExposeEvent(arg0 qtgui.QExposeEvent_ITF)
- func (this *QQuickWindow) FocusInEvent(arg0 qtgui.QFocusEvent_ITF)
- func (this *QQuickWindow) FocusObject() *qtcore.QObject
- func (this *QQuickWindow) FocusOutEvent(arg0 qtgui.QFocusEvent_ITF)
- func (this *QQuickWindow) FrameSwapped()
- func (this *QQuickWindow) GetCthis() unsafe.Pointer
- func (this *QQuickWindow) GrabWindow() *qtgui.QImage
- func (this *QQuickWindow) HasDefaultAlphaBuffer() bool
- func (this *QQuickWindow) HideEvent(arg0 qtgui.QHideEvent_ITF)
- func (this *QQuickWindow) IncubationController() *qtqml.QQmlIncubationController
- func (this *QQuickWindow) InheritEvent(f func(arg0 *qtcore.QEvent) bool)
- func (this *QQuickWindow) InheritExposeEvent(f func(arg0 *qtgui.QExposeEvent))
- func (this *QQuickWindow) InheritFocusInEvent(f func(arg0 *qtgui.QFocusEvent))
- func (this *QQuickWindow) InheritFocusOutEvent(f func(arg0 *qtgui.QFocusEvent))
- func (this *QQuickWindow) InheritHideEvent(f func(arg0 *qtgui.QHideEvent))
- func (this *QQuickWindow) InheritKeyPressEvent(f func(arg0 *qtgui.QKeyEvent))
- func (this *QQuickWindow) InheritKeyReleaseEvent(f func(arg0 *qtgui.QKeyEvent))
- func (this *QQuickWindow) InheritMouseDoubleClickEvent(f func(arg0 *qtgui.QMouseEvent))
- func (this *QQuickWindow) InheritMouseMoveEvent(f func(arg0 *qtgui.QMouseEvent))
- func (this *QQuickWindow) InheritMousePressEvent(f func(arg0 *qtgui.QMouseEvent))
- func (this *QQuickWindow) InheritMouseReleaseEvent(f func(arg0 *qtgui.QMouseEvent))
- func (this *QQuickWindow) InheritResizeEvent(f func(arg0 *qtgui.QResizeEvent))
- func (this *QQuickWindow) InheritShowEvent(f func(arg0 *qtgui.QShowEvent))
- func (this *QQuickWindow) InheritWheelEvent(f func(arg0 *qtgui.QWheelEvent))
- func (this *QQuickWindow) IsPersistentOpenGLContext() bool
- func (this *QQuickWindow) IsPersistentSceneGraph() bool
- func (this *QQuickWindow) IsSceneGraphInitialized() bool
- func (this *QQuickWindow) KeyPressEvent(arg0 qtgui.QKeyEvent_ITF)
- func (this *QQuickWindow) KeyReleaseEvent(arg0 qtgui.QKeyEvent_ITF)
- func (this *QQuickWindow) MetaObject() *qtcore.QMetaObject
- func (this *QQuickWindow) MouseDoubleClickEvent(arg0 qtgui.QMouseEvent_ITF)
- func (this *QQuickWindow) MouseGrabberItem() *QQuickItem
- func (this *QQuickWindow) MouseMoveEvent(arg0 qtgui.QMouseEvent_ITF)
- func (this *QQuickWindow) MousePressEvent(arg0 qtgui.QMouseEvent_ITF)
- func (this *QQuickWindow) MouseReleaseEvent(arg0 qtgui.QMouseEvent_ITF)
- func (*QQuickWindow) NewFromPointer(cthis unsafe.Pointer) *QQuickWindow
- func (ptr *QQuickWindow) QQuickWindow_PTR() *QQuickWindow
- func (this *QQuickWindow) ReleaseResources()
- func (this *QQuickWindow) RenderTargetId() uint
- func (this *QQuickWindow) RenderTargetSize() *qtcore.QSize
- func (this *QQuickWindow) RendererInterface() *QSGRendererInterface
- func (this *QQuickWindow) ResetOpenGLState()
- func (this *QQuickWindow) ResizeEvent(arg0 qtgui.QResizeEvent_ITF)
- func (this *QQuickWindow) SceneGraphAboutToStop()
- func (this *QQuickWindow) SceneGraphBackend() string
- func (this *QQuickWindow) SceneGraphError(error int, message string)
- func (this *QQuickWindow) SceneGraphInitialized()
- func (this *QQuickWindow) SceneGraphInvalidated()
- func (this *QQuickWindow) ScheduleRenderJob(job qtcore.QRunnable_ITF, schedule int)
- func (this *QQuickWindow) SendEvent(arg0 QQuickItem_ITF, arg1 qtcore.QEvent_ITF) bool
- func (this *QQuickWindow) SetClearBeforeRendering(enabled bool)
- func (this *QQuickWindow) SetColor(color qtgui.QColor_ITF)
- func (this *QQuickWindow) SetCthis(cthis unsafe.Pointer)
- func (this *QQuickWindow) SetDefaultAlphaBuffer(useAlpha bool)
- func (this *QQuickWindow) SetPersistentOpenGLContext(persistent bool)
- func (this *QQuickWindow) SetPersistentSceneGraph(persistent bool)
- func (this *QQuickWindow) SetRenderTarget(fboId uint, size qtcore.QSize_ITF)
- func (this *QQuickWindow) SetSceneGraphBackend(api int)
- func (this *QQuickWindow) SetSceneGraphBackend_1(backend string)
- func (this *QQuickWindow) SetTextRenderType(renderType int)
- func (this *QQuickWindow) ShowEvent(arg0 qtgui.QShowEvent_ITF)
- func (this *QQuickWindow) TextRenderType() int
- func (this *QQuickWindow) Update()
- func (this *QQuickWindow) WheelEvent(arg0 qtgui.QWheelEvent_ITF)
- type QQuickWindow_ITF
- type QQuickWindow__CreateTextureOption
- type QQuickWindow__RenderStage
- type QQuickWindow__SceneGraphError
- type QQuickWindow__TextRenderType
- type QSGAbstractRenderer
- func (this *QSGAbstractRenderer) ClearColor() *qtgui.QColor
- func (this *QSGAbstractRenderer) ClearMode() int
- func (this *QSGAbstractRenderer) DeviceRect() *qtcore.QRect
- func (this *QSGAbstractRenderer) GetCthis() unsafe.Pointer
- func (this *QSGAbstractRenderer) InheritNodeChanged(f func(node *QSGNode, state int))
- func (this *QSGAbstractRenderer) MetaObject() *qtcore.QMetaObject
- func (*QSGAbstractRenderer) NewFromPointer(cthis unsafe.Pointer) *QSGAbstractRenderer
- func (this *QSGAbstractRenderer) NodeChanged(node QSGNode_ITF, state int)
- func (this *QSGAbstractRenderer) ProjectionMatrix() *qtgui.QMatrix4x4
- func (ptr *QSGAbstractRenderer) QSGAbstractRenderer_PTR() *QSGAbstractRenderer
- func (this *QSGAbstractRenderer) RenderScene(fboId uint)
- func (this *QSGAbstractRenderer) RenderScene__()
- func (this *QSGAbstractRenderer) RootNode() *QSGRootNode
- func (this *QSGAbstractRenderer) SceneGraphChanged()
- func (this *QSGAbstractRenderer) SetClearColor(color qtgui.QColor_ITF)
- func (this *QSGAbstractRenderer) SetClearMode(mode int)
- func (this *QSGAbstractRenderer) SetCthis(cthis unsafe.Pointer)
- func (this *QSGAbstractRenderer) SetDeviceRect(rect qtcore.QRect_ITF)
- func (this *QSGAbstractRenderer) SetDeviceRect_1(size qtcore.QSize_ITF)
- func (this *QSGAbstractRenderer) SetProjectionMatrix(matrix qtgui.QMatrix4x4_ITF)
- func (this *QSGAbstractRenderer) SetProjectionMatrixToRect(rect qtcore.QRectF_ITF)
- func (this *QSGAbstractRenderer) SetRootNode(node QSGRootNode_ITF)
- func (this *QSGAbstractRenderer) SetViewportRect(rect qtcore.QRect_ITF)
- func (this *QSGAbstractRenderer) SetViewportRect_1(size qtcore.QSize_ITF)
- func (this *QSGAbstractRenderer) ViewportRect() *qtcore.QRect
- type QSGAbstractRenderer_ITF
- type QSGAbstractRenderer__ClearModeBit
- type QSGBasicGeometryNode
- func (this *QSGBasicGeometryNode) ClipList() *QSGClipNode
- func (this *QSGBasicGeometryNode) Geometry() *QSGGeometry
- func (this *QSGBasicGeometryNode) Geometry_1() *QSGGeometry
- func (this *QSGBasicGeometryNode) GetCthis() unsafe.Pointer
- func (this *QSGBasicGeometryNode) Matrix() *qtgui.QMatrix4x4
- func (*QSGBasicGeometryNode) NewFromPointer(cthis unsafe.Pointer) *QSGBasicGeometryNode
- func (ptr *QSGBasicGeometryNode) QSGBasicGeometryNode_PTR() *QSGBasicGeometryNode
- func (this *QSGBasicGeometryNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGBasicGeometryNode) SetGeometry(geometry QSGGeometry_ITF)
- func (this *QSGBasicGeometryNode) SetRendererClipList(c QSGClipNode_ITF)
- func (this *QSGBasicGeometryNode) SetRendererMatrix(m qtgui.QMatrix4x4_ITF)
- type QSGBasicGeometryNode_ITF
- type QSGClipNode
- func (this *QSGClipNode) ClipRect() *qtcore.QRectF
- func (this *QSGClipNode) GetCthis() unsafe.Pointer
- func (this *QSGClipNode) IsRectangular() bool
- func (*QSGClipNode) NewFromPointer(cthis unsafe.Pointer) *QSGClipNode
- func (ptr *QSGClipNode) QSGClipNode_PTR() *QSGClipNode
- func (this *QSGClipNode) SetClipRect(arg0 qtcore.QRectF_ITF)
- func (this *QSGClipNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGClipNode) SetIsRectangular(rectHint bool)
- type QSGClipNode_ITF
- type QSGDynamicTexture
- func (this *QSGDynamicTexture) GetCthis() unsafe.Pointer
- func (this *QSGDynamicTexture) MetaObject() *qtcore.QMetaObject
- func (*QSGDynamicTexture) NewFromPointer(cthis unsafe.Pointer) *QSGDynamicTexture
- func (ptr *QSGDynamicTexture) QSGDynamicTexture_PTR() *QSGDynamicTexture
- func (this *QSGDynamicTexture) SetCthis(cthis unsafe.Pointer)
- func (this *QSGDynamicTexture) UpdateTexture() bool
- type QSGDynamicTexture_ITF
- type QSGEngine
- func (this *QSGEngine) CreateImageNode() *QSGImageNode
- func (this *QSGEngine) CreateNinePatchNode() *QSGNinePatchNode
- func (this *QSGEngine) CreateRectangleNode() *QSGRectangleNode
- func (this *QSGEngine) CreateRenderer() *QSGAbstractRenderer
- func (this *QSGEngine) CreateTextureFromId(id uint, size qtcore.QSize_ITF, options int) *QSGTexture
- func (this *QSGEngine) CreateTextureFromId__(id uint, size qtcore.QSize_ITF) *QSGTexture
- func (this *QSGEngine) CreateTextureFromImage(image qtgui.QImage_ITF, options int) *QSGTexture
- func (this *QSGEngine) CreateTextureFromImage__(image qtgui.QImage_ITF) *QSGTexture
- func (this *QSGEngine) GetCthis() unsafe.Pointer
- func (this *QSGEngine) Invalidate()
- func (this *QSGEngine) MetaObject() *qtcore.QMetaObject
- func (*QSGEngine) NewFromPointer(cthis unsafe.Pointer) *QSGEngine
- func (ptr *QSGEngine) QSGEngine_PTR() *QSGEngine
- func (this *QSGEngine) RendererInterface() *QSGRendererInterface
- func (this *QSGEngine) SetCthis(cthis unsafe.Pointer)
- type QSGEngine_ITF
- type QSGEngine__CreateTextureOption
- type QSGFlatColorMaterial
- func (this *QSGFlatColorMaterial) Color() *qtgui.QColor
- func (this *QSGFlatColorMaterial) Compare(other QSGMaterial_ITF) int
- func (this *QSGFlatColorMaterial) CreateShader() *QSGMaterialShader
- func (this *QSGFlatColorMaterial) GetCthis() unsafe.Pointer
- func (*QSGFlatColorMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGFlatColorMaterial
- func (ptr *QSGFlatColorMaterial) QSGFlatColorMaterial_PTR() *QSGFlatColorMaterial
- func (this *QSGFlatColorMaterial) SetColor(color qtgui.QColor_ITF)
- func (this *QSGFlatColorMaterial) SetCthis(cthis unsafe.Pointer)
- func (this *QSGFlatColorMaterial) Type() *QSGMaterialType
- type QSGFlatColorMaterial_ITF
- type QSGGeometry
- func (this *QSGGeometry) Allocate(vertexCount int, indexCount int)
- func (this *QSGGeometry) Allocate__(vertexCount int)
- func (this *QSGGeometry) AttributeCount() int
- func (this *QSGGeometry) Attributes() unsafe.Pointer
- func (this *QSGGeometry) DefaultAttributes_ColoredPoint2D() unsafe.Pointer
- func (this *QSGGeometry) DefaultAttributes_Point2D() unsafe.Pointer
- func (this *QSGGeometry) DefaultAttributes_TexturedPoint2D() unsafe.Pointer
- func (this *QSGGeometry) DrawingMode() uint
- func (this *QSGGeometry) GetCthis() unsafe.Pointer
- func (this *QSGGeometry) IndexCount() int
- func (this *QSGGeometry) IndexData() unsafe.Pointer
- func (this *QSGGeometry) IndexDataAsUInt() unsafe.Pointer
- func (this *QSGGeometry) IndexDataAsUInt_1() unsafe.Pointer
- func (this *QSGGeometry) IndexDataAsUShort() unsafe.Pointer
- func (this *QSGGeometry) IndexDataAsUShort_1() unsafe.Pointer
- func (this *QSGGeometry) IndexDataPattern() int
- func (this *QSGGeometry) IndexData_1() unsafe.Pointer
- func (this *QSGGeometry) IndexType() int
- func (this *QSGGeometry) LineWidth() float32
- func (this *QSGGeometry) MarkIndexDataDirty()
- func (this *QSGGeometry) MarkVertexDataDirty()
- func (*QSGGeometry) NewFromPointer(cthis unsafe.Pointer) *QSGGeometry
- func (ptr *QSGGeometry) QSGGeometry_PTR() *QSGGeometry
- func (this *QSGGeometry) SetCthis(cthis unsafe.Pointer)
- func (this *QSGGeometry) SetDrawingMode(mode uint)
- func (this *QSGGeometry) SetIndexDataPattern(p int)
- func (this *QSGGeometry) SetLineWidth(w float32)
- func (this *QSGGeometry) SetVertexDataPattern(p int)
- func (this *QSGGeometry) SizeOfIndex() int
- func (this *QSGGeometry) SizeOfVertex() int
- func (this *QSGGeometry) UpdateColoredRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
- func (this *QSGGeometry) UpdateRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
- func (this *QSGGeometry) UpdateTexturedRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF, sourceRect qtcore.QRectF_ITF)
- func (this *QSGGeometry) VertexCount() int
- func (this *QSGGeometry) VertexData() unsafe.Pointer
- func (this *QSGGeometry) VertexDataAsColoredPoint2D() unsafe.Pointer
- func (this *QSGGeometry) VertexDataAsColoredPoint2D_1() unsafe.Pointer
- func (this *QSGGeometry) VertexDataAsPoint2D() unsafe.Pointer
- func (this *QSGGeometry) VertexDataAsPoint2D_1() unsafe.Pointer
- func (this *QSGGeometry) VertexDataAsTexturedPoint2D() unsafe.Pointer
- func (this *QSGGeometry) VertexDataAsTexturedPoint2D_1() unsafe.Pointer
- func (this *QSGGeometry) VertexDataPattern() int
- func (this *QSGGeometry) VertexData_1() unsafe.Pointer
- type QSGGeometryNode
- func (this *QSGGeometryNode) ActiveMaterial() *QSGMaterial
- func (this *QSGGeometryNode) GetCthis() unsafe.Pointer
- func (this *QSGGeometryNode) InheritedOpacity() float64
- func (this *QSGGeometryNode) Material() *QSGMaterial
- func (*QSGGeometryNode) NewFromPointer(cthis unsafe.Pointer) *QSGGeometryNode
- func (this *QSGGeometryNode) OpaqueMaterial() *QSGMaterial
- func (ptr *QSGGeometryNode) QSGGeometryNode_PTR() *QSGGeometryNode
- func (this *QSGGeometryNode) RenderOrder() int
- func (this *QSGGeometryNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGGeometryNode) SetInheritedOpacity(opacity float64)
- func (this *QSGGeometryNode) SetMaterial(material QSGMaterial_ITF)
- func (this *QSGGeometryNode) SetOpaqueMaterial(material QSGMaterial_ITF)
- func (this *QSGGeometryNode) SetRenderOrder(order int)
- type QSGGeometryNode_ITF
- type QSGGeometry_ITF
- type QSGGeometry__AttributeType
- type QSGGeometry__DataPattern
- type QSGGeometry__DrawingMode
- type QSGGeometry__Type
- type QSGImageNode
- func (this *QSGImageNode) Filtering() int
- func (this *QSGImageNode) GetCthis() unsafe.Pointer
- func (this *QSGImageNode) MipmapFiltering() int
- func (*QSGImageNode) NewFromPointer(cthis unsafe.Pointer) *QSGImageNode
- func (this *QSGImageNode) OwnsTexture() bool
- func (ptr *QSGImageNode) QSGImageNode_PTR() *QSGImageNode
- func (this *QSGImageNode) RebuildGeometry(g QSGGeometry_ITF, texture QSGTexture_ITF, rect qtcore.QRectF_ITF, ...)
- func (this *QSGImageNode) Rect() *qtcore.QRectF
- func (this *QSGImageNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGImageNode) SetFiltering(filtering int)
- func (this *QSGImageNode) SetMipmapFiltering(filtering int)
- func (this *QSGImageNode) SetOwnsTexture(owns bool)
- func (this *QSGImageNode) SetRect(rect qtcore.QRectF_ITF)
- func (this *QSGImageNode) SetRect_1(x float64, y float64, w float64, h float64)
- func (this *QSGImageNode) SetSourceRect(r qtcore.QRectF_ITF)
- func (this *QSGImageNode) SetSourceRect_1(x float64, y float64, w float64, h float64)
- func (this *QSGImageNode) SetTexture(texture QSGTexture_ITF)
- func (this *QSGImageNode) SetTextureCoordinatesTransform(mode int)
- func (this *QSGImageNode) SourceRect() *qtcore.QRectF
- func (this *QSGImageNode) Texture() *QSGTexture
- func (this *QSGImageNode) TextureCoordinatesTransform() int
- type QSGImageNode_ITF
- type QSGImageNode__TextureCoordinatesTransformFlag
- type QSGMaterial
- func (this *QSGMaterial) Compare(other QSGMaterial_ITF) int
- func (this *QSGMaterial) CreateShader() *QSGMaterialShader
- func (this *QSGMaterial) Flags() int
- func (this *QSGMaterial) GetCthis() unsafe.Pointer
- func (*QSGMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGMaterial
- func (ptr *QSGMaterial) QSGMaterial_PTR() *QSGMaterial
- func (this *QSGMaterial) SetCthis(cthis unsafe.Pointer)
- func (this *QSGMaterial) SetFlag(flags int, on bool)
- func (this *QSGMaterial) SetFlag__(flags int)
- func (this *QSGMaterial) Type() *QSGMaterialType
- type QSGMaterialShader
- func (this *QSGMaterialShader) Activate()
- func (this *QSGMaterialShader) AttributeNames() []string
- func (this *QSGMaterialShader) Compile()
- func (this *QSGMaterialShader) Deactivate()
- func (this *QSGMaterialShader) FragmentShader() string
- func (this *QSGMaterialShader) GetCthis() unsafe.Pointer
- func (this *QSGMaterialShader) InheritCompile(f func())
- func (this *QSGMaterialShader) InheritFragmentShader(f func() unsafe.Pointer)
- func (this *QSGMaterialShader) InheritInitialize(f func())
- func (this *QSGMaterialShader) InheritSetShaderSourceFile(f func(type_ int, sourceFile string))
- func (this *QSGMaterialShader) InheritSetShaderSourceFiles(f func(type_ int, sourceFiles *qtcore.QStringList))
- func (this *QSGMaterialShader) InheritVertexShader(f func() unsafe.Pointer)
- func (this *QSGMaterialShader) Initialize()
- func (*QSGMaterialShader) NewFromPointer(cthis unsafe.Pointer) *QSGMaterialShader
- func (ptr *QSGMaterialShader) QSGMaterialShader_PTR() *QSGMaterialShader
- func (this *QSGMaterialShader) SetCthis(cthis unsafe.Pointer)
- func (this *QSGMaterialShader) SetShaderSourceFile(type_ int, sourceFile string)
- func (this *QSGMaterialShader) SetShaderSourceFiles(type_ int, sourceFiles qtcore.QStringList_ITF)
- func (this *QSGMaterialShader) VertexShader() string
- type QSGMaterialShader_ITF
- type QSGMaterialType
- type QSGMaterialType_ITF
- type QSGMaterial_ITF
- type QSGMaterial__Flag
- type QSGNinePatchNode
- func (this *QSGNinePatchNode) GetCthis() unsafe.Pointer
- func (*QSGNinePatchNode) NewFromPointer(cthis unsafe.Pointer) *QSGNinePatchNode
- func (ptr *QSGNinePatchNode) QSGNinePatchNode_PTR() *QSGNinePatchNode
- func (this *QSGNinePatchNode) RebuildGeometry(texture QSGTexture_ITF, geometry QSGGeometry_ITF, padding qtgui.QVector4D_ITF, ...)
- func (this *QSGNinePatchNode) SetBounds(bounds qtcore.QRectF_ITF)
- func (this *QSGNinePatchNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGNinePatchNode) SetDevicePixelRatio(ratio float64)
- func (this *QSGNinePatchNode) SetPadding(left float64, top float64, right float64, bottom float64)
- func (this *QSGNinePatchNode) SetTexture(texture QSGTexture_ITF)
- func (this *QSGNinePatchNode) Update()
- type QSGNinePatchNode_ITF
- type QSGNode
- func (this *QSGNode) AppendChildNode(node QSGNode_ITF)
- func (this *QSGNode) ChildAtIndex(i int) *QSGNode
- func (this *QSGNode) ChildCount() int
- func (this *QSGNode) ClearDirty()
- func (this *QSGNode) DirtyState() int
- func (this *QSGNode) FirstChild() *QSGNode
- func (this *QSGNode) Flags() int
- func (this *QSGNode) GetCthis() unsafe.Pointer
- func (this *QSGNode) InsertChildNodeAfter(node QSGNode_ITF, after QSGNode_ITF)
- func (this *QSGNode) InsertChildNodeBefore(node QSGNode_ITF, before QSGNode_ITF)
- func (this *QSGNode) IsSubtreeBlocked() bool
- func (this *QSGNode) LastChild() *QSGNode
- func (this *QSGNode) MarkDirty(bits int)
- func (*QSGNode) NewFromPointer(cthis unsafe.Pointer) *QSGNode
- func (this *QSGNode) NextSibling() *QSGNode
- func (this *QSGNode) Parent() *QSGNode
- func (this *QSGNode) PrependChildNode(node QSGNode_ITF)
- func (this *QSGNode) Preprocess()
- func (this *QSGNode) PreviousSibling() *QSGNode
- func (ptr *QSGNode) QSGNode_PTR() *QSGNode
- func (this *QSGNode) RemoveAllChildNodes()
- func (this *QSGNode) RemoveChildNode(node QSGNode_ITF)
- func (this *QSGNode) ReparentChildNodesTo(newParent QSGNode_ITF)
- func (this *QSGNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGNode) SetFlag(arg0 int, arg1 bool)
- func (this *QSGNode) SetFlag__(arg0 int)
- func (this *QSGNode) SetFlags(arg0 int, arg1 bool)
- func (this *QSGNode) SetFlags__(arg0 int)
- func (this *QSGNode) Type() int
- type QSGNodeVisitor
- func (this *QSGNodeVisitor) EnterClipNode(arg0 QSGClipNode_ITF)
- func (this *QSGNodeVisitor) EnterGeometryNode(arg0 QSGGeometryNode_ITF)
- func (this *QSGNodeVisitor) EnterOpacityNode(arg0 QSGOpacityNode_ITF)
- func (this *QSGNodeVisitor) EnterTransformNode(arg0 QSGTransformNode_ITF)
- func (this *QSGNodeVisitor) GetCthis() unsafe.Pointer
- func (this *QSGNodeVisitor) InheritEnterClipNode(f func(arg0 *QSGClipNode))
- func (this *QSGNodeVisitor) InheritEnterGeometryNode(f func(arg0 *QSGGeometryNode))
- func (this *QSGNodeVisitor) InheritEnterOpacityNode(f func(arg0 *QSGOpacityNode))
- func (this *QSGNodeVisitor) InheritEnterTransformNode(f func(arg0 *QSGTransformNode))
- func (this *QSGNodeVisitor) InheritLeaveClipNode(f func(arg0 *QSGClipNode))
- func (this *QSGNodeVisitor) InheritLeaveGeometryNode(f func(arg0 *QSGGeometryNode))
- func (this *QSGNodeVisitor) InheritLeaveOpacityNode(f func(arg0 *QSGOpacityNode))
- func (this *QSGNodeVisitor) InheritLeaveTransformNode(f func(arg0 *QSGTransformNode))
- func (this *QSGNodeVisitor) InheritVisitChildren(f func(n *QSGNode))
- func (this *QSGNodeVisitor) InheritVisitNode(f func(n *QSGNode))
- func (this *QSGNodeVisitor) LeaveClipNode(arg0 QSGClipNode_ITF)
- func (this *QSGNodeVisitor) LeaveGeometryNode(arg0 QSGGeometryNode_ITF)
- func (this *QSGNodeVisitor) LeaveOpacityNode(arg0 QSGOpacityNode_ITF)
- func (this *QSGNodeVisitor) LeaveTransformNode(arg0 QSGTransformNode_ITF)
- func (*QSGNodeVisitor) NewFromPointer(cthis unsafe.Pointer) *QSGNodeVisitor
- func (ptr *QSGNodeVisitor) QSGNodeVisitor_PTR() *QSGNodeVisitor
- func (this *QSGNodeVisitor) SetCthis(cthis unsafe.Pointer)
- func (this *QSGNodeVisitor) VisitChildren(n QSGNode_ITF)
- func (this *QSGNodeVisitor) VisitNode(n QSGNode_ITF)
- type QSGNodeVisitor_ITF
- type QSGNode_ITF
- type QSGNode__DirtyStateBit
- type QSGNode__Flag
- type QSGNode__NodeType
- type QSGOpacityNode
- func (this *QSGOpacityNode) CombinedOpacity() float64
- func (this *QSGOpacityNode) GetCthis() unsafe.Pointer
- func (this *QSGOpacityNode) IsSubtreeBlocked() bool
- func (*QSGOpacityNode) NewFromPointer(cthis unsafe.Pointer) *QSGOpacityNode
- func (this *QSGOpacityNode) Opacity() float64
- func (ptr *QSGOpacityNode) QSGOpacityNode_PTR() *QSGOpacityNode
- func (this *QSGOpacityNode) SetCombinedOpacity(opacity float64)
- func (this *QSGOpacityNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGOpacityNode) SetOpacity(opacity float64)
- type QSGOpacityNode_ITF
- type QSGOpaqueTextureMaterial
- func (this *QSGOpaqueTextureMaterial) AnisotropyLevel() int
- func (this *QSGOpaqueTextureMaterial) Compare(other QSGMaterial_ITF) int
- func (this *QSGOpaqueTextureMaterial) CreateShader() *QSGMaterialShader
- func (this *QSGOpaqueTextureMaterial) Filtering() int
- func (this *QSGOpaqueTextureMaterial) GetCthis() unsafe.Pointer
- func (this *QSGOpaqueTextureMaterial) HorizontalWrapMode() int
- func (this *QSGOpaqueTextureMaterial) MipmapFiltering() int
- func (*QSGOpaqueTextureMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGOpaqueTextureMaterial
- func (ptr *QSGOpaqueTextureMaterial) QSGOpaqueTextureMaterial_PTR() *QSGOpaqueTextureMaterial
- func (this *QSGOpaqueTextureMaterial) SetAnisotropyLevel(level int)
- func (this *QSGOpaqueTextureMaterial) SetCthis(cthis unsafe.Pointer)
- func (this *QSGOpaqueTextureMaterial) SetFiltering(filteringType int)
- func (this *QSGOpaqueTextureMaterial) SetHorizontalWrapMode(mode int)
- func (this *QSGOpaqueTextureMaterial) SetMipmapFiltering(filteringType int)
- func (this *QSGOpaqueTextureMaterial) SetTexture(texture QSGTexture_ITF)
- func (this *QSGOpaqueTextureMaterial) SetVerticalWrapMode(mode int)
- func (this *QSGOpaqueTextureMaterial) Texture() *QSGTexture
- func (this *QSGOpaqueTextureMaterial) Type() *QSGMaterialType
- func (this *QSGOpaqueTextureMaterial) VerticalWrapMode() int
- type QSGOpaqueTextureMaterial_ITF
- type QSGRectangleNode
- func (this *QSGRectangleNode) Color() *qtgui.QColor
- func (this *QSGRectangleNode) GetCthis() unsafe.Pointer
- func (*QSGRectangleNode) NewFromPointer(cthis unsafe.Pointer) *QSGRectangleNode
- func (ptr *QSGRectangleNode) QSGRectangleNode_PTR() *QSGRectangleNode
- func (this *QSGRectangleNode) Rect() *qtcore.QRectF
- func (this *QSGRectangleNode) SetColor(color qtgui.QColor_ITF)
- func (this *QSGRectangleNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGRectangleNode) SetRect(rect qtcore.QRectF_ITF)
- func (this *QSGRectangleNode) SetRect_1(x float64, y float64, w float64, h float64)
- type QSGRectangleNode_ITF
- type QSGRenderNode
- func (this *QSGRenderNode) ChangedStates() int
- func (this *QSGRenderNode) ClipList() *QSGClipNode
- func (this *QSGRenderNode) Flags() int
- func (this *QSGRenderNode) GetCthis() unsafe.Pointer
- func (this *QSGRenderNode) InheritedOpacity() float64
- func (this *QSGRenderNode) Matrix() *qtgui.QMatrix4x4
- func (*QSGRenderNode) NewFromPointer(cthis unsafe.Pointer) *QSGRenderNode
- func (ptr *QSGRenderNode) QSGRenderNode_PTR() *QSGRenderNode
- func (this *QSGRenderNode) Rect() *qtcore.QRectF
- func (this *QSGRenderNode) ReleaseResources()
- func (this *QSGRenderNode) SetCthis(cthis unsafe.Pointer)
- type QSGRenderNode_ITF
- type QSGRenderNode__RenderingFlag
- type QSGRenderNode__StateFlag
- type QSGRendererInterface
- func (this *QSGRendererInterface) GetCthis() unsafe.Pointer
- func (this *QSGRendererInterface) GetResource(window QQuickWindow_ITF, resource int) unsafe.Pointer
- func (this *QSGRendererInterface) GetResource_1(window QQuickWindow_ITF, resource string) unsafe.Pointer
- func (this *QSGRendererInterface) GraphicsApi() int
- func (*QSGRendererInterface) NewFromPointer(cthis unsafe.Pointer) *QSGRendererInterface
- func (ptr *QSGRendererInterface) QSGRendererInterface_PTR() *QSGRendererInterface
- func (this *QSGRendererInterface) SetCthis(cthis unsafe.Pointer)
- func (this *QSGRendererInterface) ShaderCompilationType() int
- func (this *QSGRendererInterface) ShaderSourceType() int
- func (this *QSGRendererInterface) ShaderType() int
- type QSGRendererInterface_ITF
- type QSGRendererInterface__GraphicsApi
- type QSGRendererInterface__Resource
- type QSGRendererInterface__ShaderCompilationType
- type QSGRendererInterface__ShaderSourceType
- type QSGRendererInterface__ShaderType
- type QSGRootNode
- type QSGRootNode_ITF
- type QSGSimpleRectNode
- func (this *QSGSimpleRectNode) Color() *qtgui.QColor
- func (this *QSGSimpleRectNode) GetCthis() unsafe.Pointer
- func (*QSGSimpleRectNode) NewFromPointer(cthis unsafe.Pointer) *QSGSimpleRectNode
- func (ptr *QSGSimpleRectNode) QSGSimpleRectNode_PTR() *QSGSimpleRectNode
- func (this *QSGSimpleRectNode) Rect() *qtcore.QRectF
- func (this *QSGSimpleRectNode) SetColor(color qtgui.QColor_ITF)
- func (this *QSGSimpleRectNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGSimpleRectNode) SetRect(rect qtcore.QRectF_ITF)
- func (this *QSGSimpleRectNode) SetRect_1(x float64, y float64, w float64, h float64)
- type QSGSimpleRectNode_ITF
- type QSGSimpleTextureNode
- func (this *QSGSimpleTextureNode) Filtering() int
- func (this *QSGSimpleTextureNode) GetCthis() unsafe.Pointer
- func (*QSGSimpleTextureNode) NewFromPointer(cthis unsafe.Pointer) *QSGSimpleTextureNode
- func (this *QSGSimpleTextureNode) OwnsTexture() bool
- func (ptr *QSGSimpleTextureNode) QSGSimpleTextureNode_PTR() *QSGSimpleTextureNode
- func (this *QSGSimpleTextureNode) Rect() *qtcore.QRectF
- func (this *QSGSimpleTextureNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGSimpleTextureNode) SetFiltering(filtering int)
- func (this *QSGSimpleTextureNode) SetOwnsTexture(owns bool)
- func (this *QSGSimpleTextureNode) SetRect(rect qtcore.QRectF_ITF)
- func (this *QSGSimpleTextureNode) SetRect_1(x float64, y float64, w float64, h float64)
- func (this *QSGSimpleTextureNode) SetSourceRect(r qtcore.QRectF_ITF)
- func (this *QSGSimpleTextureNode) SetSourceRect_1(x float64, y float64, w float64, h float64)
- func (this *QSGSimpleTextureNode) SetTexture(texture QSGTexture_ITF)
- func (this *QSGSimpleTextureNode) SetTextureCoordinatesTransform(mode int)
- func (this *QSGSimpleTextureNode) SourceRect() *qtcore.QRectF
- func (this *QSGSimpleTextureNode) Texture() *QSGTexture
- func (this *QSGSimpleTextureNode) TextureCoordinatesTransform() int
- type QSGSimpleTextureNode_ITF
- type QSGSimpleTextureNode__TextureCoordinatesTransformFlag
- type QSGTexture
- func (this *QSGTexture) AnisotropyLevel() int
- func (this *QSGTexture) Bind()
- func (this *QSGTexture) ConvertToNormalizedSourceRect(rect qtcore.QRectF_ITF) *qtcore.QRectF
- func (this *QSGTexture) Filtering() int
- func (this *QSGTexture) GetCthis() unsafe.Pointer
- func (this *QSGTexture) HasAlphaChannel() bool
- func (this *QSGTexture) HasMipmaps() bool
- func (this *QSGTexture) HorizontalWrapMode() int
- func (this *QSGTexture) IsAtlasTexture() bool
- func (this *QSGTexture) MetaObject() *qtcore.QMetaObject
- func (this *QSGTexture) MipmapFiltering() int
- func (*QSGTexture) NewFromPointer(cthis unsafe.Pointer) *QSGTexture
- func (this *QSGTexture) NormalizedTextureSubRect() *qtcore.QRectF
- func (ptr *QSGTexture) QSGTexture_PTR() *QSGTexture
- func (this *QSGTexture) RemovedFromAtlas() *QSGTexture
- func (this *QSGTexture) SetAnisotropyLevel(level int)
- func (this *QSGTexture) SetCthis(cthis unsafe.Pointer)
- func (this *QSGTexture) SetFiltering(filter int)
- func (this *QSGTexture) SetHorizontalWrapMode(hwrap int)
- func (this *QSGTexture) SetMipmapFiltering(filter int)
- func (this *QSGTexture) SetVerticalWrapMode(vwrap int)
- func (this *QSGTexture) TextureId() int
- func (this *QSGTexture) TextureSize() *qtcore.QSize
- func (this *QSGTexture) UpdateBindOptions(force bool)
- func (this *QSGTexture) UpdateBindOptions__()
- func (this *QSGTexture) VerticalWrapMode() int
- type QSGTextureMaterial
- func (this *QSGTextureMaterial) CreateShader() *QSGMaterialShader
- func (this *QSGTextureMaterial) GetCthis() unsafe.Pointer
- func (*QSGTextureMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGTextureMaterial
- func (ptr *QSGTextureMaterial) QSGTextureMaterial_PTR() *QSGTextureMaterial
- func (this *QSGTextureMaterial) SetCthis(cthis unsafe.Pointer)
- func (this *QSGTextureMaterial) Type() *QSGMaterialType
- type QSGTextureMaterial_ITF
- type QSGTextureProvider
- func (this *QSGTextureProvider) GetCthis() unsafe.Pointer
- func (this *QSGTextureProvider) MetaObject() *qtcore.QMetaObject
- func (*QSGTextureProvider) NewFromPointer(cthis unsafe.Pointer) *QSGTextureProvider
- func (ptr *QSGTextureProvider) QSGTextureProvider_PTR() *QSGTextureProvider
- func (this *QSGTextureProvider) SetCthis(cthis unsafe.Pointer)
- func (this *QSGTextureProvider) Texture() *QSGTexture
- func (this *QSGTextureProvider) TextureChanged()
- type QSGTextureProvider_ITF
- type QSGTexture_ITF
- type QSGTexture__AnisotropyLevel
- type QSGTexture__Filtering
- type QSGTexture__WrapMode
- type QSGTransformNode
- func (this *QSGTransformNode) CombinedMatrix() *qtgui.QMatrix4x4
- func (this *QSGTransformNode) GetCthis() unsafe.Pointer
- func (this *QSGTransformNode) Matrix() *qtgui.QMatrix4x4
- func (*QSGTransformNode) NewFromPointer(cthis unsafe.Pointer) *QSGTransformNode
- func (ptr *QSGTransformNode) QSGTransformNode_PTR() *QSGTransformNode
- func (this *QSGTransformNode) SetCombinedMatrix(matrix qtgui.QMatrix4x4_ITF)
- func (this *QSGTransformNode) SetCthis(cthis unsafe.Pointer)
- func (this *QSGTransformNode) SetMatrix(matrix qtgui.QMatrix4x4_ITF)
- type QSGTransformNode_ITF
- type QSGVertexColorMaterial
- func (this *QSGVertexColorMaterial) Compare(other QSGMaterial_ITF) int
- func (this *QSGVertexColorMaterial) CreateShader() *QSGMaterialShader
- func (this *QSGVertexColorMaterial) GetCthis() unsafe.Pointer
- func (this *QSGVertexColorMaterial) InheritCreateShader(f func() unsafe.Pointer)
- func (this *QSGVertexColorMaterial) InheritType(f func() unsafe.Pointer)
- func (*QSGVertexColorMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGVertexColorMaterial
- func (ptr *QSGVertexColorMaterial) QSGVertexColorMaterial_PTR() *QSGVertexColorMaterial
- func (this *QSGVertexColorMaterial) SetCthis(cthis unsafe.Pointer)
- func (this *QSGVertexColorMaterial) Type() *QSGMaterialType
- type QSGVertexColorMaterial_ITF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteQQuickAsyncImageProvider ¶
func DeleteQQuickAsyncImageProvider(this *QQuickAsyncImageProvider)
func DeleteQQuickFramebufferObject ¶
func DeleteQQuickFramebufferObject(this *QQuickFramebufferObject)
func DeleteQQuickImageProvider ¶
func DeleteQQuickImageProvider(this *QQuickImageProvider)
func DeleteQQuickImageResponse ¶
func DeleteQQuickImageResponse(this *QQuickImageResponse)
func DeleteQQuickItem ¶
func DeleteQQuickItem(this *QQuickItem)
func DeleteQQuickItemGrabResult ¶
func DeleteQQuickItemGrabResult(this *QQuickItemGrabResult)
func DeleteQQuickPaintedItem ¶
func DeleteQQuickPaintedItem(this *QQuickPaintedItem)
func DeleteQQuickRenderControl ¶
func DeleteQQuickRenderControl(this *QQuickRenderControl)
func DeleteQQuickTextDocument ¶
func DeleteQQuickTextDocument(this *QQuickTextDocument)
func DeleteQQuickTextureFactory ¶
func DeleteQQuickTextureFactory(this *QQuickTextureFactory)
func DeleteQQuickTransform ¶
func DeleteQQuickTransform(this *QQuickTransform)
func DeleteQQuickView ¶
func DeleteQQuickView(this *QQuickView)
func DeleteQQuickWindow ¶
func DeleteQQuickWindow(this *QQuickWindow)
func DeleteQSGAbstractRenderer ¶
func DeleteQSGAbstractRenderer(this *QSGAbstractRenderer)
func DeleteQSGBasicGeometryNode ¶
func DeleteQSGBasicGeometryNode(this *QSGBasicGeometryNode)
func DeleteQSGClipNode ¶
func DeleteQSGClipNode(this *QSGClipNode)
func DeleteQSGDynamicTexture ¶
func DeleteQSGDynamicTexture(this *QSGDynamicTexture)
func DeleteQSGEngine ¶
func DeleteQSGEngine(this *QSGEngine)
func DeleteQSGFlatColorMaterial ¶
func DeleteQSGFlatColorMaterial(this *QSGFlatColorMaterial)
func DeleteQSGGeometry ¶
func DeleteQSGGeometry(this *QSGGeometry)
func DeleteQSGGeometryNode ¶
func DeleteQSGGeometryNode(this *QSGGeometryNode)
func DeleteQSGImageNode ¶
func DeleteQSGImageNode(this *QSGImageNode)
func DeleteQSGMaterial ¶
func DeleteQSGMaterial(this *QSGMaterial)
func DeleteQSGMaterialShader ¶
func DeleteQSGMaterialShader(this *QSGMaterialShader)
func DeleteQSGMaterialType ¶
func DeleteQSGMaterialType(this *QSGMaterialType)
func DeleteQSGNinePatchNode ¶
func DeleteQSGNinePatchNode(this *QSGNinePatchNode)
func DeleteQSGNode ¶
func DeleteQSGNode(this *QSGNode)
func DeleteQSGNodeVisitor ¶
func DeleteQSGNodeVisitor(this *QSGNodeVisitor)
func DeleteQSGOpacityNode ¶
func DeleteQSGOpacityNode(this *QSGOpacityNode)
func DeleteQSGOpaqueTextureMaterial ¶
func DeleteQSGOpaqueTextureMaterial(this *QSGOpaqueTextureMaterial)
func DeleteQSGRectangleNode ¶
func DeleteQSGRectangleNode(this *QSGRectangleNode)
func DeleteQSGRenderNode ¶
func DeleteQSGRenderNode(this *QSGRenderNode)
func DeleteQSGRendererInterface ¶
func DeleteQSGRendererInterface(this *QSGRendererInterface)
func DeleteQSGRootNode ¶
func DeleteQSGRootNode(this *QSGRootNode)
func DeleteQSGSimpleRectNode ¶
func DeleteQSGSimpleRectNode(this *QSGSimpleRectNode)
func DeleteQSGSimpleTextureNode ¶
func DeleteQSGSimpleTextureNode(this *QSGSimpleTextureNode)
func DeleteQSGTexture ¶
func DeleteQSGTexture(this *QSGTexture)
func DeleteQSGTextureMaterial ¶
func DeleteQSGTextureMaterial(this *QSGTextureMaterial)
func DeleteQSGTextureProvider ¶
func DeleteQSGTextureProvider(this *QSGTextureProvider)
func DeleteQSGTransformNode ¶
func DeleteQSGTransformNode(this *QSGTransformNode)
func DeleteQSGVertexColorMaterial ¶
func DeleteQSGVertexColorMaterial(this *QSGVertexColorMaterial)
func QQuickRenderControl_RenderWindowFor ¶
func QQuickRenderControl_RenderWindowFor(win QQuickWindow_ITF, offset qtcore.QPoint_ITF) *qtgui.QWindow
func QQuickWindow_HasDefaultAlphaBuffer ¶
func QQuickWindow_HasDefaultAlphaBuffer() bool
func QQuickWindow_SceneGraphBackend ¶
func QQuickWindow_SceneGraphBackend() string
func QQuickWindow_SetDefaultAlphaBuffer ¶
func QQuickWindow_SetDefaultAlphaBuffer(useAlpha bool)
func QQuickWindow_SetSceneGraphBackend ¶
func QQuickWindow_SetSceneGraphBackend(api int)
func QQuickWindow_SetSceneGraphBackend_1 ¶
func QQuickWindow_SetSceneGraphBackend_1(backend string)
func QQuickWindow_SetTextRenderType ¶
func QQuickWindow_SetTextRenderType(renderType int)
func QQuickWindow_TextRenderType ¶
func QQuickWindow_TextRenderType() int
func QSGGeometry_UpdateColoredRectGeometry ¶
func QSGGeometry_UpdateColoredRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
func QSGGeometry_UpdateRectGeometry ¶
func QSGGeometry_UpdateRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
func QSGGeometry_UpdateTexturedRectGeometry ¶
func QSGGeometry_UpdateTexturedRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF, sourceRect qtcore.QRectF_ITF)
func QSGImageNode_RebuildGeometry ¶
func QSGImageNode_RebuildGeometry(g QSGGeometry_ITF, texture QSGTexture_ITF, rect qtcore.QRectF_ITF, sourceRect qtcore.QRectF_ITF, texCoordMode int)
func QSGNinePatchNode_RebuildGeometry ¶
func QSGNinePatchNode_RebuildGeometry(texture QSGTexture_ITF, geometry QSGGeometry_ITF, padding qtgui.QVector4D_ITF, bounds qtcore.QRectF_ITF, dpr float64)
func Qsgnode_set_description ¶
func Qsgnode_set_description(node QSGNode_ITF, description string)
Types ¶
type QQuickAsyncImageProvider ¶
type QQuickAsyncImageProvider struct {
*QQuickImageProvider
}
func NewQQuickAsyncImageProvider ¶
func NewQQuickAsyncImageProvider() *QQuickAsyncImageProvider
func NewQQuickAsyncImageProviderFromPointer ¶
func NewQQuickAsyncImageProviderFromPointer(cthis unsafe.Pointer) *QQuickAsyncImageProvider
func (*QQuickAsyncImageProvider) GetCthis ¶
func (this *QQuickAsyncImageProvider) GetCthis() unsafe.Pointer
func (*QQuickAsyncImageProvider) NewFromPointer ¶
func (*QQuickAsyncImageProvider) NewFromPointer(cthis unsafe.Pointer) *QQuickAsyncImageProvider
func (*QQuickAsyncImageProvider) QQuickAsyncImageProvider_PTR ¶
func (ptr *QQuickAsyncImageProvider) QQuickAsyncImageProvider_PTR() *QQuickAsyncImageProvider
func (*QQuickAsyncImageProvider) RequestImageResponse ¶
func (this *QQuickAsyncImageProvider) RequestImageResponse(id string, requestedSize qtcore.QSize_ITF) *QQuickImageResponse
func (*QQuickAsyncImageProvider) SetCthis ¶
func (this *QQuickAsyncImageProvider) SetCthis(cthis unsafe.Pointer)
type QQuickAsyncImageProvider_ITF ¶
type QQuickAsyncImageProvider_ITF interface { QQuickImageProvider_ITF QQuickAsyncImageProvider_PTR() *QQuickAsyncImageProvider }
type QQuickFramebufferObject ¶
type QQuickFramebufferObject struct {
*QQuickItem
}
func NewQQuickFramebufferObject ¶
func NewQQuickFramebufferObject(parent QQuickItem_ITF) *QQuickFramebufferObject
Constructs a new QQuickFramebufferObject with parent parent.
func NewQQuickFramebufferObjectFromPointer ¶
func NewQQuickFramebufferObjectFromPointer(cthis unsafe.Pointer) *QQuickFramebufferObject
func NewQQuickFramebufferObject__ ¶
func NewQQuickFramebufferObject__() *QQuickFramebufferObject
Constructs a new QQuickFramebufferObject with parent parent.
func (*QQuickFramebufferObject) CreateRenderer ¶
func (this *QQuickFramebufferObject) CreateRenderer() unsafe.Pointer
Reimplement this function to create a renderer used to render into the FBO.
This function will be called on the rendering thread while the GUI thread is blocked.
func (*QQuickFramebufferObject) GeometryChanged ¶
func (this *QQuickFramebufferObject) GeometryChanged(newGeometry qtcore.QRectF_ITF, oldGeometry qtcore.QRectF_ITF)
func (*QQuickFramebufferObject) GetCthis ¶
func (this *QQuickFramebufferObject) GetCthis() unsafe.Pointer
func (*QQuickFramebufferObject) InheritGeometryChanged ¶
func (this *QQuickFramebufferObject) InheritGeometryChanged(f func(newGeometry *qtcore.QRectF, oldGeometry *qtcore.QRectF))
void geometryChanged(const class QRectF &, const class QRectF &)
func (*QQuickFramebufferObject) IsTextureProvider ¶
func (this *QQuickFramebufferObject) IsTextureProvider() bool
Reimplemented from QQuickItem::isTextureProvider().
func (*QQuickFramebufferObject) MetaObject ¶
func (this *QQuickFramebufferObject) MetaObject() *qtcore.QMetaObject
func (*QQuickFramebufferObject) MirrorVertically ¶
func (this *QQuickFramebufferObject) MirrorVertically() bool
func (*QQuickFramebufferObject) MirrorVerticallyChanged ¶
func (this *QQuickFramebufferObject) MirrorVerticallyChanged(arg0 bool)
func (*QQuickFramebufferObject) NewFromPointer ¶
func (*QQuickFramebufferObject) NewFromPointer(cthis unsafe.Pointer) *QQuickFramebufferObject
func (*QQuickFramebufferObject) QQuickFramebufferObject_PTR ¶
func (ptr *QQuickFramebufferObject) QQuickFramebufferObject_PTR() *QQuickFramebufferObject
func (*QQuickFramebufferObject) ReleaseResources ¶
func (this *QQuickFramebufferObject) ReleaseResources()
Reimplemented from QQuickItem::releaseResources().
func (*QQuickFramebufferObject) SetCthis ¶
func (this *QQuickFramebufferObject) SetCthis(cthis unsafe.Pointer)
func (*QQuickFramebufferObject) SetMirrorVertically ¶
func (this *QQuickFramebufferObject) SetMirrorVertically(enable bool)
func (*QQuickFramebufferObject) SetTextureFollowsItemSize ¶
func (this *QQuickFramebufferObject) SetTextureFollowsItemSize(follows bool)
func (*QQuickFramebufferObject) TextureFollowsItemSize ¶
func (this *QQuickFramebufferObject) TextureFollowsItemSize() bool
func (*QQuickFramebufferObject) TextureFollowsItemSizeChanged ¶
func (this *QQuickFramebufferObject) TextureFollowsItemSizeChanged(arg0 bool)
func (*QQuickFramebufferObject) TextureProvider ¶
func (this *QQuickFramebufferObject) TextureProvider() *QSGTextureProvider
Reimplemented from QQuickItem::textureProvider().
type QQuickFramebufferObject_ITF ¶
type QQuickFramebufferObject_ITF interface { QQuickItem_ITF QQuickFramebufferObject_PTR() *QQuickFramebufferObject }
type QQuickImageProvider ¶
func NewQQuickImageProvider ¶
func NewQQuickImageProvider(type_ int, flags int) *QQuickImageProvider
Creates an image provider that will provide images of the given type and behave according to the given flags.
func NewQQuickImageProviderFromPointer ¶
func NewQQuickImageProviderFromPointer(cthis unsafe.Pointer) *QQuickImageProvider
func NewQQuickImageProvider__ ¶
func NewQQuickImageProvider__(type_ int) *QQuickImageProvider
Creates an image provider that will provide images of the given type and behave according to the given flags.
func (*QQuickImageProvider) Flags ¶
func (this *QQuickImageProvider) Flags() int
Reimplemented from QQmlImageProviderBase::flags().
Returns the flags set for this provider.
func (*QQuickImageProvider) GetCthis ¶
func (this *QQuickImageProvider) GetCthis() unsafe.Pointer
func (*QQuickImageProvider) ImageType ¶
func (this *QQuickImageProvider) ImageType() int
Reimplemented from QQmlImageProviderBase::imageType().
Returns the image type supported by this provider.
func (*QQuickImageProvider) NewFromPointer ¶
func (*QQuickImageProvider) NewFromPointer(cthis unsafe.Pointer) *QQuickImageProvider
func (*QQuickImageProvider) QQuickImageProvider_PTR ¶
func (ptr *QQuickImageProvider) QQuickImageProvider_PTR() *QQuickImageProvider
func (*QQuickImageProvider) RequestImage ¶
func (this *QQuickImageProvider) RequestImage(id string, size qtcore.QSize_ITF, requestedSize qtcore.QSize_ITF) *qtgui.QImage
Implement this method to return the image with id. The default implementation returns an empty image.
The id is the requested image source, with the "image:" scheme and provider identifier removed. For example, if the image source was "image://myprovider/icons/home", the given id would be "icons/home".
The requestedSize corresponds to the Image::sourceSize requested by an Image item. If requestedSize is a valid size, the image returned should be of that size.
In all cases, size must be set to the original size of the image. This is used to set the width and height of the relevant Image if these values have not been set explicitly.
Note: this method may be called by multiple threads, so ensure the implementation of this method is reentrant.
func (*QQuickImageProvider) RequestPixmap ¶
func (this *QQuickImageProvider) RequestPixmap(id string, size qtcore.QSize_ITF, requestedSize qtcore.QSize_ITF) *qtgui.QPixmap
Implement this method to return the pixmap with id. The default implementation returns an empty pixmap.
The id is the requested image source, with the "image:" scheme and provider identifier removed. For example, if the image source was "image://myprovider/icons/home", the given id would be "icons/home".
The requestedSize corresponds to the Image::sourceSize requested by an Image item. If requestedSize is a valid size, the image returned should be of that size.
In all cases, size must be set to the original size of the image. This is used to set the width and height of the relevant Image if these values have not been set explicitly.
Note: this method may be called by multiple threads, so ensure the implementation of this method is reentrant.
func (*QQuickImageProvider) RequestTexture ¶
func (this *QQuickImageProvider) RequestTexture(id string, size qtcore.QSize_ITF, requestedSize qtcore.QSize_ITF) *QQuickTextureFactory
Implement this method to return the texture with id. The default implementation returns 0.
The id is the requested image source, with the "image:" scheme and provider identifier removed. For example, if the image source was "image://myprovider/icons/home", the given id would be "icons/home".
The requestedSize corresponds to the Image::sourceSize requested by an Image item. If requestedSize is a valid size, the image returned should be of that size.
In all cases, size must be set to the original size of the image. This is used to set the width and height of the relevant Image if these values have not been set explicitly.
Note: this method may be called by multiple threads, so ensure the implementation of this method is reentrant.
func (*QQuickImageProvider) SetCthis ¶
func (this *QQuickImageProvider) SetCthis(cthis unsafe.Pointer)
type QQuickImageProvider_ITF ¶
type QQuickImageProvider_ITF interface {
QQuickImageProvider_PTR() *QQuickImageProvider
}
type QQuickImageResponse ¶
func NewQQuickImageResponse ¶
func NewQQuickImageResponse() *QQuickImageResponse
func NewQQuickImageResponseFromPointer ¶
func NewQQuickImageResponseFromPointer(cthis unsafe.Pointer) *QQuickImageResponse
func (*QQuickImageResponse) Cancel ¶
func (this *QQuickImageResponse) Cancel()
func (*QQuickImageResponse) ErrorString ¶
func (this *QQuickImageResponse) ErrorString() string
func (*QQuickImageResponse) Finished ¶
func (this *QQuickImageResponse) Finished()
func (*QQuickImageResponse) GetCthis ¶
func (this *QQuickImageResponse) GetCthis() unsafe.Pointer
func (*QQuickImageResponse) MetaObject ¶
func (this *QQuickImageResponse) MetaObject() *qtcore.QMetaObject
func (*QQuickImageResponse) NewFromPointer ¶
func (*QQuickImageResponse) NewFromPointer(cthis unsafe.Pointer) *QQuickImageResponse
func (*QQuickImageResponse) QQuickImageResponse_PTR ¶
func (ptr *QQuickImageResponse) QQuickImageResponse_PTR() *QQuickImageResponse
func (*QQuickImageResponse) SetCthis ¶
func (this *QQuickImageResponse) SetCthis(cthis unsafe.Pointer)
func (*QQuickImageResponse) TextureFactory ¶
func (this *QQuickImageResponse) TextureFactory() *QQuickTextureFactory
type QQuickImageResponse_ITF ¶
type QQuickImageResponse_ITF interface { qtcore.QObject_ITF QQuickImageResponse_PTR() *QQuickImageResponse }
type QQuickItem ¶
type QQuickItem struct { *qtcore.QObject *qtqml.QQmlParserStatus }
func NewQQuickItem ¶
func NewQQuickItem(parent QQuickItem_ITF) *QQuickItem
Constructs a QQuickItem with the given parent.
func NewQQuickItemFromPointer ¶
func NewQQuickItemFromPointer(cthis unsafe.Pointer) *QQuickItem
func NewQQuickItem__ ¶
func NewQQuickItem__() *QQuickItem
Constructs a QQuickItem with the given parent.
func (*QQuickItem) AcceptHoverEvents ¶
func (this *QQuickItem) AcceptHoverEvents() bool
Returns whether hover events are accepted by this item.
The default value is false.
If this is false, then the item will not receive any hover events through the hoverEnterEvent(), hoverMoveEvent() and hoverLeaveEvent() functions.
See also setAcceptHoverEvents().
func (*QQuickItem) AcceptTouchEvents ¶
func (this *QQuickItem) AcceptTouchEvents() bool
Returns whether touch events are accepted by this item.
The default value is false.
If this is false, then the item will not receive any touch events through the touchEvent() function.
This function was introduced in Qt 5.10.
See also setAcceptTouchEvents().
func (*QQuickItem) AcceptedMouseButtons ¶
func (this *QQuickItem) AcceptedMouseButtons() int
Returns the mouse buttons accepted by this item.
The default value is Qt::NoButton; that is, no mouse buttons are accepted.
If an item does not accept the mouse button for a particular mouse event, the mouse event will not be delivered to the item and will be delivered to the next item in the item hierarchy instead.
See also setAcceptedMouseButtons().
func (*QQuickItem) ActiveFocusChanged ¶
func (this *QQuickItem) ActiveFocusChanged(arg0 bool)
func (*QQuickItem) ActiveFocusOnTab ¶
func (this *QQuickItem) ActiveFocusOnTab() bool
func (*QQuickItem) ActiveFocusOnTabChanged ¶
func (this *QQuickItem) ActiveFocusOnTabChanged(arg0 bool)
func (*QQuickItem) Antialiasing ¶
func (this *QQuickItem) Antialiasing() bool
func (*QQuickItem) AntialiasingChanged ¶
func (this *QQuickItem) AntialiasingChanged(arg0 bool)
func (*QQuickItem) BaselineOffset ¶
func (this *QQuickItem) BaselineOffset() float64
func (*QQuickItem) BaselineOffsetChanged ¶
func (this *QQuickItem) BaselineOffsetChanged(arg0 float64)
func (*QQuickItem) BoundingRect ¶
func (this *QQuickItem) BoundingRect() *qtcore.QRectF
func (*QQuickItem) ChildAt ¶
func (this *QQuickItem) ChildAt(x float64, y float64) *QQuickItem
Returns the first visible child item found at point (x, y) within the coordinate system of this item.
Returns 0 if there is no such item.
func (*QQuickItem) ChildMouseEventFilter ¶
func (this *QQuickItem) ChildMouseEventFilter(arg0 QQuickItem_ITF, arg1 qtcore.QEvent_ITF) bool
Reimplement this method to filter the mouse events that are received by this item's children.
This method will only be called if filtersChildMouseEvents() is true.
Return true if the specified event should not be passed onto the specified child item, and false otherwise.
See also setFiltersChildMouseEvents().
func (*QQuickItem) ChildrenChanged ¶
func (this *QQuickItem) ChildrenChanged()
func (*QQuickItem) ChildrenRect ¶
func (this *QQuickItem) ChildrenRect() *qtcore.QRectF
func (*QQuickItem) ChildrenRectChanged ¶
func (this *QQuickItem) ChildrenRectChanged(arg0 qtcore.QRectF_ITF)
func (*QQuickItem) ClassBegin ¶
func (this *QQuickItem) ClassBegin()
Reimplemented from QQmlParserStatus::classBegin().
Derived classes should call the base class method before adding their own action to perform at classBegin.
func (*QQuickItem) Clip ¶
func (this *QQuickItem) Clip() bool
func (*QQuickItem) ClipChanged ¶
func (this *QQuickItem) ClipChanged(arg0 bool)
func (*QQuickItem) ClipRect ¶
func (this *QQuickItem) ClipRect() *qtcore.QRectF
func (*QQuickItem) ComponentComplete ¶
func (this *QQuickItem) ComponentComplete()
Reimplemented from QQmlParserStatus::componentComplete().
Derived classes should call the base class method before adding their own actions to perform at componentComplete.
func (*QQuickItem) Contains ¶
func (this *QQuickItem) Contains(point qtcore.QPointF_ITF) bool
Returns true if this item contains point, which is in local coordinates; returns false otherwise.
This function can be overwritten in order to handle point collisions in items with custom shapes. The default implementation checks if the point is inside the item's bounding rect.
Note that this method is generally used to check whether the item is under the mouse cursor, and for that reason, the implementation of this function should be as light-weight as possible.
func (*QQuickItem) Cursor ¶
func (this *QQuickItem) Cursor() *qtgui.QCursor
Returns the cursor shape for this item.
The mouse cursor will assume this shape when it is over this item, unless an override cursor is set. See the list of predefined cursor objects for a range of useful shapes.
If no cursor shape has been set this returns a cursor with the Qt::ArrowCursor shape, however another cursor shape may be displayed if an overlapping item has a valid cursor.
See also setCursor() and unsetCursor().
func (*QQuickItem) DragEnterEvent ¶
func (this *QQuickItem) DragEnterEvent(arg0 qtgui.QDragEnterEvent_ITF)
This event handler can be reimplemented in a subclass to receive drag-enter events for an item. The event information is provided by the event parameter.
Drag and drop events are only provided if the ItemAcceptsDrops flag has been set for this item.
See also Drag and Drag and Drop.
func (*QQuickItem) DragLeaveEvent ¶
func (this *QQuickItem) DragLeaveEvent(arg0 qtgui.QDragLeaveEvent_ITF)
This event handler can be reimplemented in a subclass to receive drag-leave events for an item. The event information is provided by the event parameter.
Drag and drop events are only provided if the ItemAcceptsDrops flag has been set for this item.
See also Drag and Drag and Drop.
func (*QQuickItem) DragMoveEvent ¶
func (this *QQuickItem) DragMoveEvent(arg0 qtgui.QDragMoveEvent_ITF)
This event handler can be reimplemented in a subclass to receive drag-move events for an item. The event information is provided by the event parameter.
Drag and drop events are only provided if the ItemAcceptsDrops flag has been set for this item.
See also Drag and Drag and Drop.
func (*QQuickItem) DropEvent ¶
func (this *QQuickItem) DropEvent(arg0 qtgui.QDropEvent_ITF)
This event handler can be reimplemented in a subclass to receive drop events for an item. The event information is provided by the event parameter.
Drag and drop events are only provided if the ItemAcceptsDrops flag has been set for this item.
See also Drag and Drag and Drop.
func (*QQuickItem) EnabledChanged ¶
func (this *QQuickItem) EnabledChanged()
func (*QQuickItem) Event ¶
func (this *QQuickItem) Event(arg0 qtcore.QEvent_ITF) bool
Reimplemented from QObject::event().
func (*QQuickItem) FiltersChildMouseEvents ¶
func (this *QQuickItem) FiltersChildMouseEvents() bool
Returns whether mouse and touch events of this item's children should be filtered through this item.
See also setFiltersChildMouseEvents() and childMouseEventFilter().
func (*QQuickItem) Flags ¶
func (this *QQuickItem) Flags() int
Returns the item flags for this item.
See also setFlags() and setFlag().
func (*QQuickItem) FocusChanged ¶
func (this *QQuickItem) FocusChanged(arg0 bool)
func (*QQuickItem) FocusInEvent ¶
func (this *QQuickItem) FocusInEvent(arg0 qtgui.QFocusEvent_ITF)
This event handler can be reimplemented in a subclass to receive focus-in events for an item. The event information is provided by the event parameter.
func (*QQuickItem) FocusOutEvent ¶
func (this *QQuickItem) FocusOutEvent(arg0 qtgui.QFocusEvent_ITF)
This event handler can be reimplemented in a subclass to receive focus-out events for an item. The event information is provided by the event parameter.
func (*QQuickItem) ForceActiveFocus ¶
func (this *QQuickItem) ForceActiveFocus()
Forces active focus on the item.
This method sets focus on the item and ensures that all ancestor FocusScope objects in the object hierarchy are also given focus.
The reason for the focus change will be Qt::OtherFocusReason. Use the overloaded method to specify the focus reason to enable better handling of the focus change.
See also activeFocus.
func (*QQuickItem) ForceActiveFocus_1 ¶
func (this *QQuickItem) ForceActiveFocus_1(reason int)
Forces active focus on the item.
This method sets focus on the item and ensures that all ancestor FocusScope objects in the object hierarchy are also given focus.
The reason for the focus change will be Qt::OtherFocusReason. Use the overloaded method to specify the focus reason to enable better handling of the focus change.
See also activeFocus.
func (*QQuickItem) GeometryChanged ¶
func (this *QQuickItem) GeometryChanged(newGeometry qtcore.QRectF_ITF, oldGeometry qtcore.QRectF_ITF)
This function is called to handle this item's changes in geometry from oldGeometry to newGeometry. If the two geometries are the same, it doesn't do anything.
Derived classes must call the base class method within their implementation.
func (*QQuickItem) GetCthis ¶
func (this *QQuickItem) GetCthis() unsafe.Pointer
func (*QQuickItem) GrabMouse ¶
func (this *QQuickItem) GrabMouse()
Grabs the mouse input.
This item will receive all mouse events until ungrabMouse() is called. Usually this function should not be called, since accepting for example a mouse press event makes sure that the following events are delivered to the item. If an item wants to take over mouse events from the current receiver, it needs to call this function.
Warning: This function should be used with caution.
func (*QQuickItem) GrabToImage ¶
func (this *QQuickItem) GrabToImage(callback qtqml.QJSValue_ITF, targetSize qtcore.QSize_ITF) bool
Grabs the item into an in-memory image.
The grab happens asynchronously and the signal QQuickItemGrabResult::ready() is emitted when the grab has been completed.
Use targetSize to specify the size of the target image. By default, the result will have the same size as item.
If the grab could not be initiated, the function returns null.
Note: This function will render the item to an offscreen surface and copy that surface from the GPU's memory into the CPU's memory, which can be quite costly. For "live" preview, use layers or ShaderEffectSource.
See also QQuickWindow::grabWindow().
func (*QQuickItem) GrabToImage__ ¶
func (this *QQuickItem) GrabToImage__(callback qtqml.QJSValue_ITF) bool
Grabs the item into an in-memory image.
The grab happens asynchronously and the signal QQuickItemGrabResult::ready() is emitted when the grab has been completed.
Use targetSize to specify the size of the target image. By default, the result will have the same size as item.
If the grab could not be initiated, the function returns null.
Note: This function will render the item to an offscreen surface and copy that surface from the GPU's memory into the CPU's memory, which can be quite costly. For "live" preview, use layers or ShaderEffectSource.
See also QQuickWindow::grabWindow().
func (*QQuickItem) HasActiveFocus ¶
func (this *QQuickItem) HasActiveFocus() bool
func (*QQuickItem) HasFocus ¶
func (this *QQuickItem) HasFocus() bool
func (*QQuickItem) Height ¶
func (this *QQuickItem) Height() float64
func (*QQuickItem) HeightChanged ¶
func (this *QQuickItem) HeightChanged()
func (*QQuickItem) HeightValid ¶
func (this *QQuickItem) HeightValid() bool
Returns whether the height property has been set explicitly.
func (*QQuickItem) HoverEnterEvent ¶
func (this *QQuickItem) HoverEnterEvent(event qtgui.QHoverEvent_ITF)
This event handler can be reimplemented in a subclass to receive hover-enter events for an item. The event information is provided by the event parameter.
Hover events are only provided if acceptHoverEvents() is true.
func (*QQuickItem) HoverLeaveEvent ¶
func (this *QQuickItem) HoverLeaveEvent(event qtgui.QHoverEvent_ITF)
This event handler can be reimplemented in a subclass to receive hover-leave events for an item. The event information is provided by the event parameter.
Hover events are only provided if acceptHoverEvents() is true.
func (*QQuickItem) HoverMoveEvent ¶
func (this *QQuickItem) HoverMoveEvent(event qtgui.QHoverEvent_ITF)
This event handler can be reimplemented in a subclass to receive hover-move events for an item. The event information is provided by the event parameter.
Hover events are only provided if acceptHoverEvents() is true.
func (*QQuickItem) ImplicitHeight ¶
func (this *QQuickItem) ImplicitHeight() float64
func (*QQuickItem) ImplicitHeightChanged ¶
func (this *QQuickItem) ImplicitHeightChanged()
func (*QQuickItem) ImplicitWidth ¶
func (this *QQuickItem) ImplicitWidth() float64
Returns the width of the item that is implied by other properties that determine the content.
Note: Getter function for property implicitWidth.
See also setImplicitWidth().
func (*QQuickItem) ImplicitWidthChanged ¶
func (this *QQuickItem) ImplicitWidthChanged()
func (*QQuickItem) InheritChildMouseEventFilter ¶
func (this *QQuickItem) InheritChildMouseEventFilter(f func(arg0 *QQuickItem, arg1 *qtcore.QEvent) bool)
bool childMouseEventFilter(class QQuickItem *, class QEvent *)
func (*QQuickItem) InheritClassBegin ¶
func (this *QQuickItem) InheritClassBegin(f func())
void classBegin()
func (*QQuickItem) InheritComponentComplete ¶
func (this *QQuickItem) InheritComponentComplete(f func())
void componentComplete()
func (*QQuickItem) InheritDragEnterEvent ¶
func (this *QQuickItem) InheritDragEnterEvent(f func(arg0 *qtgui.QDragEnterEvent))
void dragEnterEvent(class QDragEnterEvent *)
func (*QQuickItem) InheritDragLeaveEvent ¶
func (this *QQuickItem) InheritDragLeaveEvent(f func(arg0 *qtgui.QDragLeaveEvent))
void dragLeaveEvent(class QDragLeaveEvent *)
func (*QQuickItem) InheritDragMoveEvent ¶
func (this *QQuickItem) InheritDragMoveEvent(f func(arg0 *qtgui.QDragMoveEvent))
void dragMoveEvent(class QDragMoveEvent *)
func (*QQuickItem) InheritDropEvent ¶
func (this *QQuickItem) InheritDropEvent(f func(arg0 *qtgui.QDropEvent))
void dropEvent(class QDropEvent *)
func (*QQuickItem) InheritEvent ¶
func (this *QQuickItem) InheritEvent(f func(arg0 *qtcore.QEvent) bool)
bool event(class QEvent *)
func (*QQuickItem) InheritFocusInEvent ¶
func (this *QQuickItem) InheritFocusInEvent(f func(arg0 *qtgui.QFocusEvent))
void focusInEvent(class QFocusEvent *)
func (*QQuickItem) InheritFocusOutEvent ¶
func (this *QQuickItem) InheritFocusOutEvent(f func(arg0 *qtgui.QFocusEvent))
void focusOutEvent(class QFocusEvent *)
func (*QQuickItem) InheritGeometryChanged ¶
func (this *QQuickItem) InheritGeometryChanged(f func(newGeometry *qtcore.QRectF, oldGeometry *qtcore.QRectF))
void geometryChanged(const class QRectF &, const class QRectF &)
func (*QQuickItem) InheritHeightValid ¶
func (this *QQuickItem) InheritHeightValid(f func() bool)
bool heightValid()
func (*QQuickItem) InheritHoverEnterEvent ¶
func (this *QQuickItem) InheritHoverEnterEvent(f func(event *qtgui.QHoverEvent))
void hoverEnterEvent(class QHoverEvent *)
func (*QQuickItem) InheritHoverLeaveEvent ¶
func (this *QQuickItem) InheritHoverLeaveEvent(f func(event *qtgui.QHoverEvent))
void hoverLeaveEvent(class QHoverEvent *)
func (*QQuickItem) InheritHoverMoveEvent ¶
func (this *QQuickItem) InheritHoverMoveEvent(f func(event *qtgui.QHoverEvent))
void hoverMoveEvent(class QHoverEvent *)
func (*QQuickItem) InheritInputMethodEvent ¶
func (this *QQuickItem) InheritInputMethodEvent(f func(arg0 *qtgui.QInputMethodEvent))
void inputMethodEvent(class QInputMethodEvent *)
func (*QQuickItem) InheritIsComponentComplete ¶
func (this *QQuickItem) InheritIsComponentComplete(f func() bool)
bool isComponentComplete()
func (*QQuickItem) InheritKeyPressEvent ¶
func (this *QQuickItem) InheritKeyPressEvent(f func(event *qtgui.QKeyEvent))
void keyPressEvent(class QKeyEvent *)
func (*QQuickItem) InheritKeyReleaseEvent ¶
func (this *QQuickItem) InheritKeyReleaseEvent(f func(event *qtgui.QKeyEvent))
void keyReleaseEvent(class QKeyEvent *)
func (*QQuickItem) InheritMouseDoubleClickEvent ¶
func (this *QQuickItem) InheritMouseDoubleClickEvent(f func(event *qtgui.QMouseEvent))
void mouseDoubleClickEvent(class QMouseEvent *)
func (*QQuickItem) InheritMouseMoveEvent ¶
func (this *QQuickItem) InheritMouseMoveEvent(f func(event *qtgui.QMouseEvent))
void mouseMoveEvent(class QMouseEvent *)
func (*QQuickItem) InheritMousePressEvent ¶
func (this *QQuickItem) InheritMousePressEvent(f func(event *qtgui.QMouseEvent))
void mousePressEvent(class QMouseEvent *)
func (*QQuickItem) InheritMouseReleaseEvent ¶
func (this *QQuickItem) InheritMouseReleaseEvent(f func(event *qtgui.QMouseEvent))
void mouseReleaseEvent(class QMouseEvent *)
func (*QQuickItem) InheritMouseUngrabEvent ¶
func (this *QQuickItem) InheritMouseUngrabEvent(f func())
void mouseUngrabEvent()
func (*QQuickItem) InheritReleaseResources ¶
func (this *QQuickItem) InheritReleaseResources(f func())
void releaseResources()
func (*QQuickItem) InheritSetImplicitSize ¶
func (this *QQuickItem) InheritSetImplicitSize(f func(arg0 float64, arg1 float64))
void setImplicitSize(qreal, qreal)
func (*QQuickItem) InheritTouchEvent ¶
func (this *QQuickItem) InheritTouchEvent(f func(event *qtgui.QTouchEvent))
void touchEvent(class QTouchEvent *)
func (*QQuickItem) InheritTouchUngrabEvent ¶
func (this *QQuickItem) InheritTouchUngrabEvent(f func())
void touchUngrabEvent()
func (*QQuickItem) InheritUpdateInputMethod ¶
func (this *QQuickItem) InheritUpdateInputMethod(f func(queries int))
void updateInputMethod(Qt::InputMethodQueries)
func (*QQuickItem) InheritUpdatePolish ¶
func (this *QQuickItem) InheritUpdatePolish(f func())
void updatePolish()
func (*QQuickItem) InheritWheelEvent ¶
func (this *QQuickItem) InheritWheelEvent(f func(event *qtgui.QWheelEvent))
void wheelEvent(class QWheelEvent *)
func (*QQuickItem) InheritWidthValid ¶
func (this *QQuickItem) InheritWidthValid(f func() bool)
bool widthValid()
func (*QQuickItem) InheritWindowDeactivateEvent ¶
func (this *QQuickItem) InheritWindowDeactivateEvent(f func())
void windowDeactivateEvent()
func (*QQuickItem) InputMethodEvent ¶
func (this *QQuickItem) InputMethodEvent(arg0 qtgui.QInputMethodEvent_ITF)
This event handler can be reimplemented in a subclass to receive input method events for an item. The event information is provided by the event parameter.
func (*QQuickItem) InputMethodQuery ¶
func (this *QQuickItem) InputMethodQuery(query int) *qtcore.QVariant
This method is only relevant for input items.
If this item is an input item, this method should be reimplemented to return the relevant input method flags for the given query.
See also QWidget::inputMethodQuery().
func (*QQuickItem) IsAncestorOf ¶
func (this *QQuickItem) IsAncestorOf(child QQuickItem_ITF) bool
Returns true if this item is an ancestor of child (i.e., if this item is child's parent, or one of child's parent's ancestors).
This function was introduced in Qt 5.7.
See also parentItem().
func (*QQuickItem) IsComponentComplete ¶
func (this *QQuickItem) IsComponentComplete() bool
Returns true if construction of the QML component is complete; otherwise returns false.
It is often desirable to delay some processing until the component is completed.
See also componentComplete().
func (*QQuickItem) IsEnabled ¶
func (this *QQuickItem) IsEnabled() bool
func (*QQuickItem) IsFocusScope ¶
func (this *QQuickItem) IsFocusScope() bool
Returns true if this item is a focus scope, and false otherwise.
func (*QQuickItem) IsTextureProvider ¶
func (this *QQuickItem) IsTextureProvider() bool
Returns true if this item is a texture provider. The default implementation returns false.
This function can be called from any thread.
func (*QQuickItem) IsUnderMouse ¶
func (this *QQuickItem) IsUnderMouse() bool
func (*QQuickItem) IsVisible ¶
func (this *QQuickItem) IsVisible() bool
func (*QQuickItem) ItemTransform ¶
func (this *QQuickItem) ItemTransform(arg0 QQuickItem_ITF, arg1 *bool) *qtgui.QTransform
func (*QQuickItem) KeepMouseGrab ¶
func (this *QQuickItem) KeepMouseGrab() bool
Returns whether mouse input should exclusively remain with this item.
See also setKeepMouseGrab().
func (*QQuickItem) KeepTouchGrab ¶
func (this *QQuickItem) KeepTouchGrab() bool
Returns whether the touch points grabbed by this item should exclusively remain with this item.
See also setKeepTouchGrab() and keepMouseGrab().
func (*QQuickItem) KeyPressEvent ¶
func (this *QQuickItem) KeyPressEvent(event qtgui.QKeyEvent_ITF)
This event handler can be reimplemented in a subclass to receive key press events for an item. The event information is provided by the event parameter.
func (*QQuickItem) KeyReleaseEvent ¶
func (this *QQuickItem) KeyReleaseEvent(event qtgui.QKeyEvent_ITF)
This event handler can be reimplemented in a subclass to receive key release events for an item. The event information is provided by the event parameter.
func (*QQuickItem) MapFromGlobal ¶
func (this *QQuickItem) MapFromGlobal(point qtcore.QPointF_ITF) *qtcore.QPointF
Maps the given point in the global screen coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate.
For example, this may be helpful to add a popup to a Qt Quick component.
Note: Window positioning is done by the window manager and this value is treated only as a hint. So, the resulting window position may differ from what is expected.
This function was introduced in Qt 5.7.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapFromItem ¶
func (this *QQuickItem) MapFromItem(item QQuickItem_ITF, point qtcore.QPointF_ITF) *qtcore.QPointF
Maps the given point in item's coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate.
If item is 0, this maps point from the coordinate system of the scene.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapFromScene ¶
func (this *QQuickItem) MapFromScene(point qtcore.QPointF_ITF) *qtcore.QPointF
Maps the given point in the scene's coordinate system to the equivalent point within this item's coordinate system, and returns the mapped coordinate.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapRectFromItem ¶
func (this *QQuickItem) MapRectFromItem(item QQuickItem_ITF, rect qtcore.QRectF_ITF) *qtcore.QRectF
Maps the given rect in item's coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value.
If item is 0, this maps rect from the coordinate system of the scene.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapRectFromScene ¶
func (this *QQuickItem) MapRectFromScene(rect qtcore.QRectF_ITF) *qtcore.QRectF
Maps the given rect in the scene's coordinate system to the equivalent rectangular area within this item's coordinate system, and returns the mapped rectangle value.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapRectToItem ¶
func (this *QQuickItem) MapRectToItem(item QQuickItem_ITF, rect qtcore.QRectF_ITF) *qtcore.QRectF
Maps the given rect in this item's coordinate system to the equivalent rectangular area within item's coordinate system, and returns the mapped rectangle value.
If item is 0, this maps rect to the coordinate system of the scene.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapRectToScene ¶
func (this *QQuickItem) MapRectToScene(rect qtcore.QRectF_ITF) *qtcore.QRectF
Maps the given rect in this item's coordinate system to the equivalent rectangular area within the scene's coordinate system, and returns the mapped rectangle value.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapToGlobal ¶
func (this *QQuickItem) MapToGlobal(point qtcore.QPointF_ITF) *qtcore.QPointF
Maps the given point in this item's coordinate system to the equivalent point within global screen coordinate system, and returns the mapped coordinate.
For example, this may be helpful to add a popup to a Qt Quick component.
Note: Window positioning is done by the window manager and this value is treated only as a hint. So, the resulting window position may differ from what is expected.
This function was introduced in Qt 5.7.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapToItem ¶
func (this *QQuickItem) MapToItem(item QQuickItem_ITF, point qtcore.QPointF_ITF) *qtcore.QPointF
Maps the given point in this item's coordinate system to the equivalent point within item's coordinate system, and returns the mapped coordinate.
If item is 0, this maps point to the coordinate system of the scene.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MapToScene ¶
func (this *QQuickItem) MapToScene(point qtcore.QPointF_ITF) *qtcore.QPointF
Maps the given point in this item's coordinate system to the equivalent point within the scene's coordinate system, and returns the mapped coordinate.
See also Concepts - Visual Coordinates in Qt Quick.
func (*QQuickItem) MetaObject ¶
func (this *QQuickItem) MetaObject() *qtcore.QMetaObject
func (*QQuickItem) MouseDoubleClickEvent ¶
func (this *QQuickItem) MouseDoubleClickEvent(event qtgui.QMouseEvent_ITF)
This event handler can be reimplemented in a subclass to receive mouse double-click events for an item. The event information is provided by the event parameter.
func (*QQuickItem) MouseMoveEvent ¶
func (this *QQuickItem) MouseMoveEvent(event qtgui.QMouseEvent_ITF)
This event handler can be reimplemented in a subclass to receive mouse move events for an item. The event information is provided by the event parameter.
func (*QQuickItem) MousePressEvent ¶
func (this *QQuickItem) MousePressEvent(event qtgui.QMouseEvent_ITF)
This event handler can be reimplemented in a subclass to receive mouse press events for an item. The event information is provided by the event parameter.
func (*QQuickItem) MouseReleaseEvent ¶
func (this *QQuickItem) MouseReleaseEvent(event qtgui.QMouseEvent_ITF)
This event handler can be reimplemented in a subclass to receive mouse release events for an item. The event information is provided by the event parameter.
func (*QQuickItem) MouseUngrabEvent ¶
func (this *QQuickItem) MouseUngrabEvent()
This event handler can be reimplemented in a subclass to be notified when a mouse ungrab event has occurred on this item.
See also ungrabMouse().
func (*QQuickItem) NewFromPointer ¶
func (*QQuickItem) NewFromPointer(cthis unsafe.Pointer) *QQuickItem
func (*QQuickItem) NextItemInFocusChain ¶
func (this *QQuickItem) NextItemInFocusChain(forward bool) *QQuickItem
Returns the item in the focus chain which is next to this item. If forward is true, or not supplied, it is the next item in the forwards direction. If forward is false, it is the next item in the backwards direction.
func (*QQuickItem) NextItemInFocusChain__ ¶
func (this *QQuickItem) NextItemInFocusChain__() *QQuickItem
Returns the item in the focus chain which is next to this item. If forward is true, or not supplied, it is the next item in the forwards direction. If forward is false, it is the next item in the backwards direction.
func (*QQuickItem) Opacity ¶
func (this *QQuickItem) Opacity() float64
func (*QQuickItem) OpacityChanged ¶
func (this *QQuickItem) OpacityChanged()
func (*QQuickItem) ParentChanged ¶
func (this *QQuickItem) ParentChanged(arg0 QQuickItem_ITF)
func (*QQuickItem) ParentItem ¶
func (this *QQuickItem) ParentItem() *QQuickItem
func (*QQuickItem) Polish ¶
func (this *QQuickItem) Polish()
Schedules a polish event for this item.
When the scene graph processes the request, it will call updatePolish() on this item.
func (*QQuickItem) Position ¶
func (this *QQuickItem) Position() *qtcore.QPointF
func (*QQuickItem) QQuickItem_PTR ¶
func (ptr *QQuickItem) QQuickItem_PTR() *QQuickItem
func (*QQuickItem) ReleaseResources ¶
func (this *QQuickItem) ReleaseResources()
This function is called when an item should release graphics resources which are not already managed by the nodes returned from QQuickItem::updatePaintNode().
This happens when the item is about to be removed from the window it was previously rendering to. The item is guaranteed to have a window when the function is called.
The function is called on the GUI thread and the state of the rendering thread, when it is used, is unknown. Objects should not be deleted directly, but instead scheduled for cleanup using QQuickWindow::scheduleRenderJob().
See also Graphics Resource Handling.
func (*QQuickItem) ResetAntialiasing ¶
func (this *QQuickItem) ResetAntialiasing()
func (*QQuickItem) ResetHeight ¶
func (this *QQuickItem) ResetHeight()
func (*QQuickItem) ResetWidth ¶
func (this *QQuickItem) ResetWidth()
func (*QQuickItem) Rotation ¶
func (this *QQuickItem) Rotation() float64
func (*QQuickItem) RotationChanged ¶
func (this *QQuickItem) RotationChanged()
func (*QQuickItem) Scale ¶
func (this *QQuickItem) Scale() float64
func (*QQuickItem) ScaleChanged ¶
func (this *QQuickItem) ScaleChanged()
func (*QQuickItem) ScopedFocusItem ¶
func (this *QQuickItem) ScopedFocusItem() *QQuickItem
If this item is a focus scope, this returns the item in its focus chain that currently has focus.
Returns 0 if this item is not a focus scope.
func (*QQuickItem) SetAcceptHoverEvents ¶
func (this *QQuickItem) SetAcceptHoverEvents(enabled bool)
If enabled is true, this sets the item to accept hover events; otherwise, hover events are not accepted by this item.
See also acceptHoverEvents().
func (*QQuickItem) SetAcceptTouchEvents ¶
func (this *QQuickItem) SetAcceptTouchEvents(accept bool)
If enabled is true, this sets the item to accept touch events; otherwise, touch events are not accepted by this item.
This function was introduced in Qt 5.10.
See also acceptTouchEvents().
func (*QQuickItem) SetAcceptedMouseButtons ¶
func (this *QQuickItem) SetAcceptedMouseButtons(buttons int)
Sets the mouse buttons accepted by this item to buttons.
See also acceptedMouseButtons().
func (*QQuickItem) SetActiveFocusOnTab ¶
func (this *QQuickItem) SetActiveFocusOnTab(arg0 bool)
func (*QQuickItem) SetAntialiasing ¶
func (this *QQuickItem) SetAntialiasing(arg0 bool)
func (*QQuickItem) SetBaselineOffset ¶
func (this *QQuickItem) SetBaselineOffset(arg0 float64)
func (*QQuickItem) SetClip ¶
func (this *QQuickItem) SetClip(arg0 bool)
func (*QQuickItem) SetCthis ¶
func (this *QQuickItem) SetCthis(cthis unsafe.Pointer)
func (*QQuickItem) SetCursor ¶
func (this *QQuickItem) SetCursor(cursor qtgui.QCursor_ITF)
Sets the cursor shape for this item.
See also cursor() and unsetCursor().
func (*QQuickItem) SetEnabled ¶
func (this *QQuickItem) SetEnabled(arg0 bool)
func (*QQuickItem) SetFiltersChildMouseEvents ¶
func (this *QQuickItem) SetFiltersChildMouseEvents(filter bool)
Sets whether mouse and touch events of this item's children should be filtered through this item.
If filter is true, childMouseEventFilter() will be called when a mouse event is triggered for a child item.
See also filtersChildMouseEvents().
func (*QQuickItem) SetFlag ¶
func (this *QQuickItem) SetFlag(flag int, enabled bool)
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disabled.
These provide various hints for the item; for example, the ItemClipsChildrenToShape flag indicates that all children of this item should be clipped to fit within the item area.
func (*QQuickItem) SetFlag__ ¶
func (this *QQuickItem) SetFlag__(flag int)
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disabled.
These provide various hints for the item; for example, the ItemClipsChildrenToShape flag indicates that all children of this item should be clipped to fit within the item area.
func (*QQuickItem) SetFlags ¶
func (this *QQuickItem) SetFlags(flags int)
Enables the specified flags for this item.
See also flags() and setFlag().
func (*QQuickItem) SetFocus ¶
func (this *QQuickItem) SetFocus(arg0 bool)
func (*QQuickItem) SetFocus_1 ¶
func (this *QQuickItem) SetFocus_1(focus bool, reason int)
func (*QQuickItem) SetHeight ¶
func (this *QQuickItem) SetHeight(arg0 float64)
func (*QQuickItem) SetImplicitHeight ¶
func (this *QQuickItem) SetImplicitHeight(arg0 float64)
func (*QQuickItem) SetImplicitSize ¶
func (this *QQuickItem) SetImplicitSize(arg0 float64, arg1 float64)
func (*QQuickItem) SetImplicitWidth ¶
func (this *QQuickItem) SetImplicitWidth(arg0 float64)
func (*QQuickItem) SetKeepMouseGrab ¶
func (this *QQuickItem) SetKeepMouseGrab(arg0 bool)
Sets whether the mouse input should remain exclusively with this item.
This is useful for items that wish to grab and keep mouse interaction following a predefined gesture. For example, an item that is interested in horizontal mouse movement may set keepMouseGrab to true once a threshold has been exceeded. Once keepMouseGrab has been set to true, filtering items will not react to mouse events.
If keep is false, a filtering item may steal the grab. For example, Flickable may attempt to steal a mouse grab if it detects that the user has begun to move the viewport.
See also keepMouseGrab().
func (*QQuickItem) SetKeepTouchGrab ¶
func (this *QQuickItem) SetKeepTouchGrab(arg0 bool)
Sets whether the touch points grabbed by this item should remain exclusively with this item.
This is useful for items that wish to grab and keep specific touch points following a predefined gesture. For example, an item that is interested in horizontal touch point movement may set setKeepTouchGrab to true once a threshold has been exceeded. Once setKeepTouchGrab has been set to true, filtering items will not react to the relevant touch points.
If keep is false, a filtering item may steal the grab. For example, Flickable may attempt to steal a touch point grab if it detects that the user has begun to move the viewport.
See also keepTouchGrab() and setKeepMouseGrab().
func (*QQuickItem) SetOpacity ¶
func (this *QQuickItem) SetOpacity(arg0 float64)
func (*QQuickItem) SetParentItem ¶
func (this *QQuickItem) SetParentItem(parent QQuickItem_ITF)
func (*QQuickItem) SetPosition ¶
func (this *QQuickItem) SetPosition(arg0 qtcore.QPointF_ITF)
func (*QQuickItem) SetRotation ¶
func (this *QQuickItem) SetRotation(arg0 float64)
func (*QQuickItem) SetScale ¶
func (this *QQuickItem) SetScale(arg0 float64)
func (*QQuickItem) SetSize ¶
func (this *QQuickItem) SetSize(size qtcore.QSizeF_ITF)
Sets the size of the item to size.
This function was introduced in Qt 5.10.
See also size, setWidth, and setHeight.
func (*QQuickItem) SetSmooth ¶
func (this *QQuickItem) SetSmooth(arg0 bool)
func (*QQuickItem) SetState ¶
func (this *QQuickItem) SetState(arg0 string)
func (*QQuickItem) SetTransformOrigin ¶
func (this *QQuickItem) SetTransformOrigin(arg0 int)
func (*QQuickItem) SetTransformOriginPoint ¶
func (this *QQuickItem) SetTransformOriginPoint(arg0 qtcore.QPointF_ITF)
func (*QQuickItem) SetVisible ¶
func (this *QQuickItem) SetVisible(arg0 bool)
func (*QQuickItem) SetWidth ¶
func (this *QQuickItem) SetWidth(arg0 float64)
func (*QQuickItem) SetX ¶
func (this *QQuickItem) SetX(arg0 float64)
func (*QQuickItem) SetY ¶
func (this *QQuickItem) SetY(arg0 float64)
func (*QQuickItem) SetZ ¶
func (this *QQuickItem) SetZ(arg0 float64)
func (*QQuickItem) Size ¶
func (this *QQuickItem) Size() *qtcore.QSizeF
Returns the size of the item.
This function was introduced in Qt 5.10.
See also setSize, width, and height.
func (*QQuickItem) Smooth ¶
func (this *QQuickItem) Smooth() bool
func (*QQuickItem) SmoothChanged ¶
func (this *QQuickItem) SmoothChanged(arg0 bool)
func (*QQuickItem) StackAfter ¶
func (this *QQuickItem) StackAfter(arg0 QQuickItem_ITF)
Moves the specified sibling item to the index after this item within the list of children. The order of children affects both the visual stacking order and tab focus navigation order.
Assuming the z values of both items are the same, this will cause sibling to be rendered below this item.
If both items have activeFocusOnTab set to true, this will also cause the tab focus order to change, with sibling receiving focus before this item.
The given sibling must be a sibling of this item; that is, they must have the same immediate parent.
See also Concepts - Visual Parent in Qt Quick.
func (*QQuickItem) StackBefore ¶
func (this *QQuickItem) StackBefore(arg0 QQuickItem_ITF)
Moves the specified sibling item to the index before this item within the list of children. The order of children affects both the visual stacking order and tab focus navigation order.
Assuming the z values of both items are the same, this will cause sibling to be rendered above this item.
If both items have activeFocusOnTab set to true, this will also cause the tab focus order to change, with sibling receiving focus after this item.
The given sibling must be a sibling of this item; that is, they must have the same immediate parent.
See also Concepts - Visual Parent in Qt Quick.
func (*QQuickItem) State ¶
func (this *QQuickItem) State() string
func (*QQuickItem) StateChanged ¶
func (this *QQuickItem) StateChanged(arg0 string)
func (*QQuickItem) TextureProvider ¶
func (this *QQuickItem) TextureProvider() *QSGTextureProvider
Returns the texture provider for an item. The default implementation returns 0.
This function may only be called on the rendering thread.
func (*QQuickItem) TouchEvent ¶
func (this *QQuickItem) TouchEvent(event qtgui.QTouchEvent_ITF)
This event handler can be reimplemented in a subclass to receive touch events for an item. The event information is provided by the event parameter.
func (*QQuickItem) TouchUngrabEvent ¶
func (this *QQuickItem) TouchUngrabEvent()
This event handler can be reimplemented in a subclass to be notified when a touch ungrab event has occurred on this item.
func (*QQuickItem) TransformOrigin ¶
func (this *QQuickItem) TransformOrigin() int
func (*QQuickItem) TransformOriginChanged ¶
func (this *QQuickItem) TransformOriginChanged(arg0 int)
func (*QQuickItem) TransformOriginPoint ¶
func (this *QQuickItem) TransformOriginPoint() *qtcore.QPointF
func (*QQuickItem) UngrabMouse ¶
func (this *QQuickItem) UngrabMouse()
Releases the mouse grab following a call to grabMouse().
Note that this function should only be called when the item wants to stop handling further events. There is no need to call this function after a release or cancel event since no future events will be received in any case. No move or release events will be delivered after this function was called.
func (*QQuickItem) UngrabTouchPoints ¶
func (this *QQuickItem) UngrabTouchPoints()
Ungrabs the touch points owned by this item.
Note: there is hardly any reason to call this function. It should only be called when an item does not want to receive any further events, so no move or release events will be delivered after calling this function.
See also grabTouchPoints().
func (*QQuickItem) UnsetCursor ¶
func (this *QQuickItem) UnsetCursor()
Clears the cursor shape for this item.
See also cursor() and setCursor().
func (*QQuickItem) Update ¶
func (this *QQuickItem) Update()
Schedules a call to updatePaintNode() for this item.
The call to QQuickItem::updatePaintNode() will always happen if the item is showing in a QQuickWindow.
Only items which specify QQuickItem::ItemHasContents are allowed to call QQuickItem::update().
func (*QQuickItem) UpdateInputMethod ¶
func (this *QQuickItem) UpdateInputMethod(queries int)
Notify input method on updated query values if needed. queries indicates the changed attributes.
func (*QQuickItem) UpdateInputMethod__ ¶
func (this *QQuickItem) UpdateInputMethod__()
Notify input method on updated query values if needed. queries indicates the changed attributes.
func (*QQuickItem) UpdatePolish ¶
func (this *QQuickItem) UpdatePolish()
This function should perform any layout as required for this item.
When polish() is called, the scene graph schedules a polish event for this item. When the scene graph is ready to render this item, it calls updatePolish() to do any item layout as required before it renders the next frame.
func (*QQuickItem) VisibleChanged ¶
func (this *QQuickItem) VisibleChanged()
func (*QQuickItem) VisibleChildrenChanged ¶
func (this *QQuickItem) VisibleChildrenChanged()
func (*QQuickItem) WheelEvent ¶
func (this *QQuickItem) WheelEvent(event qtgui.QWheelEvent_ITF)
This event handler can be reimplemented in a subclass to receive wheel events for an item. The event information is provided by the event parameter.
func (*QQuickItem) Width ¶
func (this *QQuickItem) Width() float64
func (*QQuickItem) WidthChanged ¶
func (this *QQuickItem) WidthChanged()
func (*QQuickItem) WidthValid ¶
func (this *QQuickItem) WidthValid() bool
Returns whether the width property has been set explicitly.
func (*QQuickItem) Window ¶
func (this *QQuickItem) Window() *QQuickWindow
Returns the window in which this item is rendered.
The item does not have a window until it has been assigned into a scene. The windowChanged() signal provides a notification both when the item is entered into a scene and when it is removed from a scene.
func (*QQuickItem) WindowChanged ¶
func (this *QQuickItem) WindowChanged(window QQuickWindow_ITF)
This signal is emitted when the item's window changes.
func (*QQuickItem) WindowDeactivateEvent ¶
func (this *QQuickItem) WindowDeactivateEvent()
func (*QQuickItem) X ¶
func (this *QQuickItem) X() float64
func (*QQuickItem) XChanged ¶
func (this *QQuickItem) XChanged()
func (*QQuickItem) Y ¶
func (this *QQuickItem) Y() float64
func (*QQuickItem) YChanged ¶
func (this *QQuickItem) YChanged()
func (*QQuickItem) Z ¶
func (this *QQuickItem) Z() float64
func (*QQuickItem) ZChanged ¶
func (this *QQuickItem) ZChanged()
type QQuickItemGrabResult ¶
func NewQQuickItemGrabResultFromPointer ¶
func NewQQuickItemGrabResultFromPointer(cthis unsafe.Pointer) *QQuickItemGrabResult
func (*QQuickItemGrabResult) Event ¶
func (this *QQuickItemGrabResult) Event(arg0 qtcore.QEvent_ITF) bool
func (*QQuickItemGrabResult) GetCthis ¶
func (this *QQuickItemGrabResult) GetCthis() unsafe.Pointer
func (*QQuickItemGrabResult) Image ¶
func (this *QQuickItemGrabResult) Image() *qtgui.QImage
func (*QQuickItemGrabResult) InheritEvent ¶
func (this *QQuickItemGrabResult) InheritEvent(f func(arg0 *qtcore.QEvent) bool)
bool event(class QEvent *)
func (*QQuickItemGrabResult) MetaObject ¶
func (this *QQuickItemGrabResult) MetaObject() *qtcore.QMetaObject
func (*QQuickItemGrabResult) NewFromPointer ¶
func (*QQuickItemGrabResult) NewFromPointer(cthis unsafe.Pointer) *QQuickItemGrabResult
func (*QQuickItemGrabResult) QQuickItemGrabResult_PTR ¶
func (ptr *QQuickItemGrabResult) QQuickItemGrabResult_PTR() *QQuickItemGrabResult
func (*QQuickItemGrabResult) Ready ¶
func (this *QQuickItemGrabResult) Ready()
This signal is emitted when the grab has completed.
func (*QQuickItemGrabResult) SaveToFile ¶
func (this *QQuickItemGrabResult) SaveToFile(fileName string) bool
Saves the grab result as an image to fileName. Returns true if successful; otherwise returns false.
Note: In Qt versions prior to 5.9, this function is marked as non-const.
func (*QQuickItemGrabResult) SaveToFile_1 ¶
func (this *QQuickItemGrabResult) SaveToFile_1(fileName string) bool
Saves the grab result as an image to fileName. Returns true if successful; otherwise returns false.
Note: In Qt versions prior to 5.9, this function is marked as non-const.
func (*QQuickItemGrabResult) SetCthis ¶
func (this *QQuickItemGrabResult) SetCthis(cthis unsafe.Pointer)
func (*QQuickItemGrabResult) Url ¶
func (this *QQuickItemGrabResult) Url() *qtcore.QUrl
type QQuickItemGrabResult_ITF ¶
type QQuickItemGrabResult_ITF interface { qtcore.QObject_ITF QQuickItemGrabResult_PTR() *QQuickItemGrabResult }
type QQuickItem_ITF ¶
type QQuickItem_ITF interface { qtcore.QObject_ITF qtqml.QQmlParserStatus_ITF QQuickItem_PTR() *QQuickItem }
type QQuickItem__Flag ¶
type QQuickItem__Flag = int
const QQuickItem__ItemAcceptsDrops QQuickItem__Flag = 16
const QQuickItem__ItemAcceptsInputMethod QQuickItem__Flag = 2
const QQuickItem__ItemClipsChildrenToShape QQuickItem__Flag = 1
const QQuickItem__ItemHasContents QQuickItem__Flag = 8
const QQuickItem__ItemIsFocusScope QQuickItem__Flag = 4
type QQuickItem__ItemChange ¶
type QQuickItem__ItemChange = int
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
const QQuickItem__ItemActiveFocusHasChanged QQuickItem__ItemChange = 6
The item's focus has changed. ItemChangeData::boolValue contains whether the item has focus or not.
const QQuickItem__ItemAntialiasingHasChanged QQuickItem__ItemChange = 8
The antialiasing has changed. The current (boolean) value can be found in QQuickItem::antialiasing.
const QQuickItem__ItemChildAddedChange QQuickItem__ItemChange = 0
A child was added. ItemChangeData::item contains the added child.
const QQuickItem__ItemChildRemovedChange QQuickItem__ItemChange = 1
A child was removed. ItemChangeData::item contains the removed child.
const QQuickItem__ItemDevicePixelRatioHasChanged QQuickItem__ItemChange = 9
The device pixel ratio of the screen the item is on has changed. ItemChangedData::realValue contains the new device pixel ratio.
const QQuickItem__ItemEnabledHasChanged QQuickItem__ItemChange = 10
const QQuickItem__ItemOpacityHasChanged QQuickItem__ItemChange = 5
The item's opacity has changed. ItemChangeData::realValue contains the new opacity.
const QQuickItem__ItemParentHasChanged QQuickItem__ItemChange = 4
The item's parent has changed. ItemChangeData::item contains the new parent.
const QQuickItem__ItemRotationHasChanged QQuickItem__ItemChange = 7
The item's rotation has changed. ItemChangeData::realValue contains the new rotation.
const QQuickItem__ItemSceneChange QQuickItem__ItemChange = 2
The item was added to or removed from a scene. The QQuickWindow rendering the scene is specified in using ItemChangeData::window. The window parameter is null when the item is removed from a scene.
const QQuickItem__ItemVisibleHasChanged QQuickItem__ItemChange = 3
The item's visibility has changed. ItemChangeData::boolValue contains the new visibility.
type QQuickItem__TransformOrigin ¶
type QQuickItem__TransformOrigin = int
Controls the point about which simple transforms like scale apply.
See also transformOrigin() and setTransformOrigin().
const QQuickItem__Bottom QQuickItem__TransformOrigin = 7
The center point of the bottom of the item.
const QQuickItem__BottomLeft QQuickItem__TransformOrigin = 6
The bottom-left corner of the item.
const QQuickItem__BottomRight QQuickItem__TransformOrigin = 8
The bottom-right corner of the item.
const QQuickItem__Center QQuickItem__TransformOrigin = 4
The center of the item.
const QQuickItem__Left QQuickItem__TransformOrigin = 3
The left most point of the vertical middle.
const QQuickItem__Right QQuickItem__TransformOrigin = 5
The right most point of the vertical middle.
const QQuickItem__Top QQuickItem__TransformOrigin = 1
The center point of the top of the item.
const QQuickItem__TopLeft QQuickItem__TransformOrigin = 0
The top-left corner of the item.
const QQuickItem__TopRight QQuickItem__TransformOrigin = 2
The top-right corner of the item.
type QQuickPaintedItem ¶
type QQuickPaintedItem struct {
*QQuickItem
}
func NewQQuickPaintedItem ¶
func NewQQuickPaintedItem(parent QQuickItem_ITF) *QQuickPaintedItem
Constructs a QQuickPaintedItem with the given parent item.
func NewQQuickPaintedItemFromPointer ¶
func NewQQuickPaintedItemFromPointer(cthis unsafe.Pointer) *QQuickPaintedItem
func NewQQuickPaintedItem__ ¶
func NewQQuickPaintedItem__() *QQuickPaintedItem
Constructs a QQuickPaintedItem with the given parent item.
func (*QQuickPaintedItem) Antialiasing ¶
func (this *QQuickPaintedItem) Antialiasing() bool
Returns true if antialiased painting is enabled; otherwise, false is returned.
By default, antialiasing is not enabled.
See also setAntialiasing().
func (*QQuickPaintedItem) ContentsBoundingRect ¶
func (this *QQuickPaintedItem) ContentsBoundingRect() *qtcore.QRectF
func (*QQuickPaintedItem) ContentsScale ¶
func (this *QQuickPaintedItem) ContentsScale() float64
func (*QQuickPaintedItem) ContentsScaleChanged ¶
func (this *QQuickPaintedItem) ContentsScaleChanged()
func (*QQuickPaintedItem) ContentsSize ¶
func (this *QQuickPaintedItem) ContentsSize() *qtcore.QSize
func (*QQuickPaintedItem) ContentsSizeChanged ¶
func (this *QQuickPaintedItem) ContentsSizeChanged()
func (*QQuickPaintedItem) FillColor ¶
func (this *QQuickPaintedItem) FillColor() *qtgui.QColor
func (*QQuickPaintedItem) FillColorChanged ¶
func (this *QQuickPaintedItem) FillColorChanged()
func (*QQuickPaintedItem) GetCthis ¶
func (this *QQuickPaintedItem) GetCthis() unsafe.Pointer
func (*QQuickPaintedItem) InheritReleaseResources ¶
func (this *QQuickPaintedItem) InheritReleaseResources(f func())
void releaseResources()
func (*QQuickPaintedItem) IsTextureProvider ¶
func (this *QQuickPaintedItem) IsTextureProvider() bool
Reimplemented from QQuickItem::isTextureProvider().
func (*QQuickPaintedItem) MetaObject ¶
func (this *QQuickPaintedItem) MetaObject() *qtcore.QMetaObject
func (*QQuickPaintedItem) Mipmap ¶
func (this *QQuickPaintedItem) Mipmap() bool
Returns true if mipmaps are enabled; otherwise, false is returned.
By default, mipmapping is not enabled.
See also setMipmap().
func (*QQuickPaintedItem) NewFromPointer ¶
func (*QQuickPaintedItem) NewFromPointer(cthis unsafe.Pointer) *QQuickPaintedItem
func (*QQuickPaintedItem) OpaquePainting ¶
func (this *QQuickPaintedItem) OpaquePainting() bool
Returns true if this item is opaque; otherwise, false is returned.
By default, painted items are not opaque.
See also setOpaquePainting().
func (*QQuickPaintedItem) Paint ¶
func (this *QQuickPaintedItem) Paint(painter qtgui.QPainter_ITF)
This function, which is usually called by the QML Scene Graph, paints the contents of an item in local coordinates.
The underlying texture will have a size defined by textureSize when set, or the item's size, multiplied by the window's device pixel ratio.
The function is called after the item has been filled with the fillColor.
Reimplement this function in a QQuickPaintedItem subclass to provide the item's painting implementation, using painter.
Note: The QML Scene Graph uses two separate threads, the main thread does things such as processing events or updating animations while a second thread does the actual OpenGL rendering. As a consequence, paint() is not called from the main GUI thread but from the GL enabled renderer thread. At the moment paint() is called, the GUI thread is blocked and this is therefore thread-safe.
Warning: Extreme caution must be used when creating QObjects, emitting signals, starting timers and similar inside this function as these will have affinity to the rendering thread.
See also width(), height(), and textureSize.
func (*QQuickPaintedItem) PerformanceHints ¶
func (this *QQuickPaintedItem) PerformanceHints() int
Returns the performance hints.
By default, no performance hint is enabled.
See also setPerformanceHint() and setPerformanceHints().
func (*QQuickPaintedItem) QQuickPaintedItem_PTR ¶
func (ptr *QQuickPaintedItem) QQuickPaintedItem_PTR() *QQuickPaintedItem
func (*QQuickPaintedItem) ReleaseResources ¶
func (this *QQuickPaintedItem) ReleaseResources()
Reimplemented from QQuickItem::releaseResources().
func (*QQuickPaintedItem) RenderTarget ¶
func (this *QQuickPaintedItem) RenderTarget() int
func (*QQuickPaintedItem) RenderTargetChanged ¶
func (this *QQuickPaintedItem) RenderTargetChanged()
func (*QQuickPaintedItem) ResetContentsSize ¶
func (this *QQuickPaintedItem) ResetContentsSize()
func (*QQuickPaintedItem) SetAntialiasing ¶
func (this *QQuickPaintedItem) SetAntialiasing(enable bool)
If enable is true, antialiased painting is enabled.
By default, antialiasing is not enabled.
See also antialiasing().
func (*QQuickPaintedItem) SetContentsScale ¶
func (this *QQuickPaintedItem) SetContentsScale(arg0 float64)
func (*QQuickPaintedItem) SetContentsSize ¶
func (this *QQuickPaintedItem) SetContentsSize(arg0 qtcore.QSize_ITF)
func (*QQuickPaintedItem) SetCthis ¶
func (this *QQuickPaintedItem) SetCthis(cthis unsafe.Pointer)
func (*QQuickPaintedItem) SetFillColor ¶
func (this *QQuickPaintedItem) SetFillColor(arg0 qtgui.QColor_ITF)
func (*QQuickPaintedItem) SetMipmap ¶
func (this *QQuickPaintedItem) SetMipmap(enable bool)
If enable is true, mipmapping is enabled on the associated texture.
Mipmapping increases rendering speed and reduces aliasing artifacts when the item is scaled down.
By default, mipmapping is not enabled.
See also mipmap().
func (*QQuickPaintedItem) SetOpaquePainting ¶
func (this *QQuickPaintedItem) SetOpaquePainting(opaque bool)
If opaque is true, the item is opaque; otherwise, it is considered as translucent.
Opaque items are not blended with the rest of the scene, you should set this to true if the content of the item is opaque to speed up rendering.
By default, painted items are not opaque.
See also opaquePainting().
func (*QQuickPaintedItem) SetPerformanceHint ¶
func (this *QQuickPaintedItem) SetPerformanceHint(hint int, enabled bool)
Sets the given performance hint on the item if enabled is true; otherwise clears the performance hint.
By default, no performance hint is enabled/
See also setPerformanceHints() and performanceHints().
func (*QQuickPaintedItem) SetPerformanceHint__ ¶
func (this *QQuickPaintedItem) SetPerformanceHint__(hint int)
Sets the given performance hint on the item if enabled is true; otherwise clears the performance hint.
By default, no performance hint is enabled/
See also setPerformanceHints() and performanceHints().
func (*QQuickPaintedItem) SetPerformanceHints ¶
func (this *QQuickPaintedItem) SetPerformanceHints(hints int)
Sets the performance hints to hints
By default, no performance hint is enabled/
See also setPerformanceHint() and performanceHints().
func (*QQuickPaintedItem) SetRenderTarget ¶
func (this *QQuickPaintedItem) SetRenderTarget(target int)
func (*QQuickPaintedItem) SetTextureSize ¶
func (this *QQuickPaintedItem) SetTextureSize(size qtcore.QSize_ITF)
func (*QQuickPaintedItem) TextureProvider ¶
func (this *QQuickPaintedItem) TextureProvider() *QSGTextureProvider
Reimplemented from QQuickItem::textureProvider().
func (*QQuickPaintedItem) TextureSize ¶
func (this *QQuickPaintedItem) TextureSize() *qtcore.QSize
func (*QQuickPaintedItem) TextureSizeChanged ¶
func (this *QQuickPaintedItem) TextureSizeChanged()
func (*QQuickPaintedItem) Update ¶
func (this *QQuickPaintedItem) Update(rect qtcore.QRect_ITF)
Schedules a redraw of the area covered by rect in this item. You can call this function whenever your item needs to be redrawn, such as if it changes appearance or size.
This function does not cause an immediate paint; instead it schedules a paint request that is processed by the QML Scene Graph when the next frame is rendered. The item will only be redrawn if it is visible.
See also paint().
func (*QQuickPaintedItem) Update__ ¶
func (this *QQuickPaintedItem) Update__()
Schedules a redraw of the area covered by rect in this item. You can call this function whenever your item needs to be redrawn, such as if it changes appearance or size.
This function does not cause an immediate paint; instead it schedules a paint request that is processed by the QML Scene Graph when the next frame is rendered. The item will only be redrawn if it is visible.
See also paint().
type QQuickPaintedItem_ITF ¶
type QQuickPaintedItem_ITF interface { QQuickItem_ITF QQuickPaintedItem_PTR() *QQuickPaintedItem }
type QQuickPaintedItem__PerformanceHint ¶
type QQuickPaintedItem__PerformanceHint = int
const QQuickPaintedItem__FastFBOResizing QQuickPaintedItem__PerformanceHint = 1
type QQuickPaintedItem__RenderTarget ¶
type QQuickPaintedItem__RenderTarget = int
This enum describes QQuickPaintedItem's render targets. The render target is the surface QPainter paints onto before the item is rendered on screen.
See also setRenderTarget().
const QQuickPaintedItem__FramebufferObject QQuickPaintedItem__RenderTarget = 1
QPainter paints into a QOpenGLFramebufferObject using the GL paint engine. Painting can be faster as no texture upload is required, but anti-aliasing quality is not as good as if using an image. This render target allows faster rendering in some cases, but you should avoid using it if the item is resized often.
const QQuickPaintedItem__Image QQuickPaintedItem__RenderTarget = 0
The default; QPainter paints into a QImage using the raster paint engine. The image's content needs to be uploaded to graphics memory afterward, this operation can potentially be slow if the item is large. This render target allows high quality anti-aliasing and fast item resizing.
const QQuickPaintedItem__InvertedYFramebufferObject QQuickPaintedItem__RenderTarget = 2
Exactly as for FramebufferObject above, except once the painting is done, prior to rendering the painted image is flipped about the x-axis so that the top-most pixels are now at the bottom. Since this is done with the OpenGL texture coordinates it is a much faster way to achieve this effect than using a painter transform.
type QQuickRenderControl ¶
func NewQQuickRenderControl ¶
func NewQQuickRenderControl(parent qtcore.QObject_ITF) *QQuickRenderControl
Constructs a QQuickRenderControl object, with parent object parent.
func NewQQuickRenderControlFromPointer ¶
func NewQQuickRenderControlFromPointer(cthis unsafe.Pointer) *QQuickRenderControl
func NewQQuickRenderControl__ ¶
func NewQQuickRenderControl__() *QQuickRenderControl
Constructs a QQuickRenderControl object, with parent object parent.
func (*QQuickRenderControl) GetCthis ¶
func (this *QQuickRenderControl) GetCthis() unsafe.Pointer
func (*QQuickRenderControl) Grab ¶
func (this *QQuickRenderControl) Grab() *qtgui.QImage
Grabs the contents of the scene and returns it as an image.
Note: Requires the context to be current.
func (*QQuickRenderControl) Invalidate ¶
func (this *QQuickRenderControl) Invalidate()
Stop rendering and release resources. Requires a current context.
This is the equivalent of the cleanup operations that happen with a real QQuickWindow when the window becomes hidden.
This function is called from the destructor. Therefore there will typically be no need to call it directly. Pay attention however to the fact that this requires the context, that was passed to initialize(), to be the current one at the time of destroying the QQuickRenderControl instance.
Once invalidate() has been called, it is possible to reuse the QQuickRenderControl instance by calling initialize() again.
Note: This function does not take QQuickWindow::persistentSceneGraph() or QQuickWindow::persistentOpenGLContext() into account. This means that context-specific resources are always released.
func (*QQuickRenderControl) MetaObject ¶
func (this *QQuickRenderControl) MetaObject() *qtcore.QMetaObject
func (*QQuickRenderControl) NewFromPointer ¶
func (*QQuickRenderControl) NewFromPointer(cthis unsafe.Pointer) *QQuickRenderControl
func (*QQuickRenderControl) PolishItems ¶
func (this *QQuickRenderControl) PolishItems()
This function should be called as late as possible before sync(). In a threaded scenario, rendering can happen in parallel with this function.
func (*QQuickRenderControl) PrepareThread ¶
func (this *QQuickRenderControl) PrepareThread(targetThread qtcore.QThread_ITF)
Prepares rendering the Qt Quick scene outside the gui thread.
targetThread specifies the thread on which synchronization and rendering will happen. There is no need to call this function in a single threaded scenario.
func (*QQuickRenderControl) QQuickRenderControl_PTR ¶
func (ptr *QQuickRenderControl) QQuickRenderControl_PTR() *QQuickRenderControl
func (*QQuickRenderControl) Render ¶
func (this *QQuickRenderControl) Render()
Renders the scenegraph using the current context.
func (*QQuickRenderControl) RenderRequested ¶
func (this *QQuickRenderControl) RenderRequested()
This signal is emitted when the scene graph needs to be rendered. It is not necessary to call sync().
Note: Avoid triggering rendering directly when this signal is emitted. Instead, prefer deferring it by using a timer for example. This will lead to better performance.
func (*QQuickRenderControl) RenderWindow ¶
func (this *QQuickRenderControl) RenderWindow(offset qtcore.QPoint_ITF) *qtgui.QWindow
Reimplemented in subclasses to return the real window this render control is rendering into.
If offset in non-null, it is set to the offset of the control inside the window.
Note: While not mandatory, reimplementing this function becomes essential for supporting multiple screens with different device pixel ratios and properly positioning popup windows opened from QML. Therefore providing it in subclasses is highly recommended.
func (*QQuickRenderControl) RenderWindowFor ¶
func (this *QQuickRenderControl) RenderWindowFor(win QQuickWindow_ITF, offset qtcore.QPoint_ITF) *qtgui.QWindow
Returns the real window that win is being rendered to, if any.
If offset in non-null, it is set to the offset of the rendering inside its window.
func (*QQuickRenderControl) RenderWindowFor__ ¶
func (this *QQuickRenderControl) RenderWindowFor__(win QQuickWindow_ITF) *qtgui.QWindow
Returns the real window that win is being rendered to, if any.
If offset in non-null, it is set to the offset of the rendering inside its window.
func (*QQuickRenderControl) SceneChanged ¶
func (this *QQuickRenderControl) SceneChanged()
This signal is emitted when the scene graph is updated, meaning that polishItems() and sync() needs to be called. If sync() returns true, then render() needs to be called.
Note: Avoid triggering polishing, synchronization and rendering directly when this signal is emitted. Instead, prefer deferring it by using a timer for example. This will lead to better performance.
func (*QQuickRenderControl) SetCthis ¶
func (this *QQuickRenderControl) SetCthis(cthis unsafe.Pointer)
func (*QQuickRenderControl) Sync ¶
func (this *QQuickRenderControl) Sync() bool
This function is used to synchronize the QML scene with the rendering scene graph.
If a dedicated render thread is used, the GUI thread should be blocked for the duration of this call.
Returns true if the synchronization changed the scene graph.
type QQuickRenderControl_ITF ¶
type QQuickRenderControl_ITF interface { qtcore.QObject_ITF QQuickRenderControl_PTR() *QQuickRenderControl }
type QQuickTextDocument ¶
func NewQQuickTextDocument ¶
func NewQQuickTextDocument(parent QQuickItem_ITF) *QQuickTextDocument
Constructs a QQuickTextDocument object with parent as the parent object.
func NewQQuickTextDocumentFromPointer ¶
func NewQQuickTextDocumentFromPointer(cthis unsafe.Pointer) *QQuickTextDocument
func (*QQuickTextDocument) GetCthis ¶
func (this *QQuickTextDocument) GetCthis() unsafe.Pointer
func (*QQuickTextDocument) MetaObject ¶
func (this *QQuickTextDocument) MetaObject() *qtcore.QMetaObject
func (*QQuickTextDocument) NewFromPointer ¶
func (*QQuickTextDocument) NewFromPointer(cthis unsafe.Pointer) *QQuickTextDocument
func (*QQuickTextDocument) QQuickTextDocument_PTR ¶
func (ptr *QQuickTextDocument) QQuickTextDocument_PTR() *QQuickTextDocument
func (*QQuickTextDocument) SetCthis ¶
func (this *QQuickTextDocument) SetCthis(cthis unsafe.Pointer)
func (*QQuickTextDocument) TextDocument ¶
func (this *QQuickTextDocument) TextDocument() *qtgui.QTextDocument
Returns a pointer to the QTextDocument object.
type QQuickTextDocument_ITF ¶
type QQuickTextDocument_ITF interface { qtcore.QObject_ITF QQuickTextDocument_PTR() *QQuickTextDocument }
type QQuickTextureFactory ¶
func NewQQuickTextureFactory ¶
func NewQQuickTextureFactory() *QQuickTextureFactory
func NewQQuickTextureFactoryFromPointer ¶
func NewQQuickTextureFactoryFromPointer(cthis unsafe.Pointer) *QQuickTextureFactory
func QQuickTextureFactory_TextureFactoryForImage ¶
func QQuickTextureFactory_TextureFactoryForImage(image qtgui.QImage_ITF) *QQuickTextureFactory
func (*QQuickTextureFactory) CreateTexture ¶
func (this *QQuickTextureFactory) CreateTexture(window QQuickWindow_ITF) *QSGTexture
func (*QQuickTextureFactory) GetCthis ¶
func (this *QQuickTextureFactory) GetCthis() unsafe.Pointer
func (*QQuickTextureFactory) Image ¶
func (this *QQuickTextureFactory) Image() *qtgui.QImage
func (*QQuickTextureFactory) NewFromPointer ¶
func (*QQuickTextureFactory) NewFromPointer(cthis unsafe.Pointer) *QQuickTextureFactory
func (*QQuickTextureFactory) QQuickTextureFactory_PTR ¶
func (ptr *QQuickTextureFactory) QQuickTextureFactory_PTR() *QQuickTextureFactory
func (*QQuickTextureFactory) SetCthis ¶
func (this *QQuickTextureFactory) SetCthis(cthis unsafe.Pointer)
func (*QQuickTextureFactory) TextureByteCount ¶
func (this *QQuickTextureFactory) TextureByteCount() int
func (*QQuickTextureFactory) TextureFactoryForImage ¶
func (this *QQuickTextureFactory) TextureFactoryForImage(image qtgui.QImage_ITF) *QQuickTextureFactory
func (*QQuickTextureFactory) TextureSize ¶
func (this *QQuickTextureFactory) TextureSize() *qtcore.QSize
type QQuickTextureFactory_ITF ¶
type QQuickTextureFactory_ITF interface { qtcore.QObject_ITF QQuickTextureFactory_PTR() *QQuickTextureFactory }
type QQuickTransform ¶
func NewQQuickTransform ¶
func NewQQuickTransform(parent qtcore.QObject_ITF) *QQuickTransform
func NewQQuickTransformFromPointer ¶
func NewQQuickTransformFromPointer(cthis unsafe.Pointer) *QQuickTransform
func NewQQuickTransform__ ¶
func NewQQuickTransform__() *QQuickTransform
func (*QQuickTransform) AppendToItem ¶
func (this *QQuickTransform) AppendToItem(arg0 QQuickItem_ITF)
func (*QQuickTransform) ApplyTo ¶
func (this *QQuickTransform) ApplyTo(matrix qtgui.QMatrix4x4_ITF)
func (*QQuickTransform) GetCthis ¶
func (this *QQuickTransform) GetCthis() unsafe.Pointer
func (*QQuickTransform) InheritUpdate ¶
func (this *QQuickTransform) InheritUpdate(f func())
void update()
func (*QQuickTransform) MetaObject ¶
func (this *QQuickTransform) MetaObject() *qtcore.QMetaObject
func (*QQuickTransform) NewFromPointer ¶
func (*QQuickTransform) NewFromPointer(cthis unsafe.Pointer) *QQuickTransform
func (*QQuickTransform) PrependToItem ¶
func (this *QQuickTransform) PrependToItem(arg0 QQuickItem_ITF)
func (*QQuickTransform) QQuickTransform_PTR ¶
func (ptr *QQuickTransform) QQuickTransform_PTR() *QQuickTransform
func (*QQuickTransform) SetCthis ¶
func (this *QQuickTransform) SetCthis(cthis unsafe.Pointer)
func (*QQuickTransform) Update ¶
func (this *QQuickTransform) Update()
Schedules a call to updatePaintNode() for this item.
The call to QQuickItem::updatePaintNode() will always happen if the item is showing in a QQuickWindow.
Only items which specify QQuickItem::ItemHasContents are allowed to call QQuickItem::update().
type QQuickTransform_ITF ¶
type QQuickTransform_ITF interface { qtcore.QObject_ITF QQuickTransform_PTR() *QQuickTransform }
type QQuickView ¶
type QQuickView struct {
*QQuickWindow
}
func NewQQuickView ¶
func NewQQuickView(parent qtgui.QWindow_ITF) *QQuickView
Constructs a QQuickView with the given parent. The default value of parent is 0.
func NewQQuickViewFromPointer ¶
func NewQQuickViewFromPointer(cthis unsafe.Pointer) *QQuickView
func NewQQuickView_1 ¶
func NewQQuickView_1(engine qtqml.QQmlEngine_ITF, parent qtgui.QWindow_ITF) *QQuickView
Constructs a QQuickView with the given parent. The default value of parent is 0.
func NewQQuickView_2 ¶
func NewQQuickView_2(source qtcore.QUrl_ITF, parent qtgui.QWindow_ITF) *QQuickView
Constructs a QQuickView with the given parent. The default value of parent is 0.
func NewQQuickView_2_ ¶
func NewQQuickView_2_(source qtcore.QUrl_ITF) *QQuickView
Constructs a QQuickView with the given parent. The default value of parent is 0.
func NewQQuickView__ ¶
func NewQQuickView__() *QQuickView
Constructs a QQuickView with the given parent. The default value of parent is 0.
func (*QQuickView) Engine ¶
func (this *QQuickView) Engine() *qtqml.QQmlEngine
Returns a pointer to the QQmlEngine used for instantiating QML Components.
func (*QQuickView) GetCthis ¶
func (this *QQuickView) GetCthis() unsafe.Pointer
func (*QQuickView) InheritKeyPressEvent ¶
func (this *QQuickView) InheritKeyPressEvent(f func(arg0 *qtgui.QKeyEvent))
void keyPressEvent(class QKeyEvent *)
func (*QQuickView) InheritKeyReleaseEvent ¶
func (this *QQuickView) InheritKeyReleaseEvent(f func(arg0 *qtgui.QKeyEvent))
void keyReleaseEvent(class QKeyEvent *)
func (*QQuickView) InheritMouseMoveEvent ¶
func (this *QQuickView) InheritMouseMoveEvent(f func(arg0 *qtgui.QMouseEvent))
void mouseMoveEvent(class QMouseEvent *)
func (*QQuickView) InheritMousePressEvent ¶
func (this *QQuickView) InheritMousePressEvent(f func(arg0 *qtgui.QMouseEvent))
void mousePressEvent(class QMouseEvent *)
func (*QQuickView) InheritMouseReleaseEvent ¶
func (this *QQuickView) InheritMouseReleaseEvent(f func(arg0 *qtgui.QMouseEvent))
void mouseReleaseEvent(class QMouseEvent *)
func (*QQuickView) InheritResizeEvent ¶
func (this *QQuickView) InheritResizeEvent(f func(arg0 *qtgui.QResizeEvent))
void resizeEvent(class QResizeEvent *)
func (*QQuickView) InheritTimerEvent ¶
func (this *QQuickView) InheritTimerEvent(f func(arg0 *qtcore.QTimerEvent))
void timerEvent(class QTimerEvent *)
func (*QQuickView) InitialSize ¶
func (this *QQuickView) InitialSize() *qtcore.QSize
Returns the initial size of the root object.
If resizeMode is QQuickItem::SizeRootObjectToView the root object will be resized to the size of the view. initialSize contains the size of the root object before it was resized.
func (*QQuickView) KeyPressEvent ¶
func (this *QQuickView) KeyPressEvent(arg0 qtgui.QKeyEvent_ITF)
Reimplemented from QWindow::keyPressEvent().
func (*QQuickView) KeyReleaseEvent ¶
func (this *QQuickView) KeyReleaseEvent(arg0 qtgui.QKeyEvent_ITF)
Reimplemented from QWindow::keyReleaseEvent().
func (*QQuickView) MetaObject ¶
func (this *QQuickView) MetaObject() *qtcore.QMetaObject
func (*QQuickView) MouseMoveEvent ¶
func (this *QQuickView) MouseMoveEvent(arg0 qtgui.QMouseEvent_ITF)
Reimplemented from QWindow::mouseMoveEvent().
func (*QQuickView) MousePressEvent ¶
func (this *QQuickView) MousePressEvent(arg0 qtgui.QMouseEvent_ITF)
Reimplemented from QWindow::mousePressEvent().
func (*QQuickView) MouseReleaseEvent ¶
func (this *QQuickView) MouseReleaseEvent(arg0 qtgui.QMouseEvent_ITF)
Reimplemented from QWindow::mouseReleaseEvent().
func (*QQuickView) NewFromPointer ¶
func (*QQuickView) NewFromPointer(cthis unsafe.Pointer) *QQuickView
func (*QQuickView) QQuickView_PTR ¶
func (ptr *QQuickView) QQuickView_PTR() *QQuickView
func (*QQuickView) ResizeEvent ¶
func (this *QQuickView) ResizeEvent(arg0 qtgui.QResizeEvent_ITF)
func (*QQuickView) ResizeMode ¶
func (this *QQuickView) ResizeMode() int
func (*QQuickView) RootContext ¶
func (this *QQuickView) RootContext() *qtqml.QQmlContext
This function returns the root of the context hierarchy. Each QML component is instantiated in a QQmlContext. QQmlContext's are essential for passing data to QML components. In QML, contexts are arranged hierarchically and this hierarchy is managed by the QQmlEngine.
func (*QQuickView) RootObject ¶
func (this *QQuickView) RootObject() *QQuickItem
Returns the view's root item.
func (*QQuickView) SetContent ¶
func (this *QQuickView) SetContent(url qtcore.QUrl_ITF, component qtqml.QQmlComponent_ITF, item qtcore.QObject_ITF)
func (*QQuickView) SetCthis ¶
func (this *QQuickView) SetCthis(cthis unsafe.Pointer)
func (*QQuickView) SetResizeMode ¶
func (this *QQuickView) SetResizeMode(arg0 int)
func (*QQuickView) SetSource ¶
func (this *QQuickView) SetSource(arg0 qtcore.QUrl_ITF)
Sets the source to the url, loads the QML component and instantiates it.
Ensure that the URL provided is full and correct, in particular, use QUrl::fromLocalFile() when loading a file from the local filesystem.
Calling this method multiple times with the same url will result in the QML component being reinstantiated.
Note: Setter function for property source.
See also source().
func (*QQuickView) SizeHint ¶
func (this *QQuickView) SizeHint() *qtcore.QSize
func (*QQuickView) Source ¶
func (this *QQuickView) Source() *qtcore.QUrl
Returns the source URL, if set.
Note: Getter function for property source.
See also setSource().
func (*QQuickView) Status ¶
func (this *QQuickView) Status() int
func (*QQuickView) StatusChanged ¶
func (this *QQuickView) StatusChanged(arg0 int)
This signal is emitted when the component's current status changes.
Note: Notifier signal for property status.
func (*QQuickView) TimerEvent ¶
func (this *QQuickView) TimerEvent(arg0 qtcore.QTimerEvent_ITF)
type QQuickView_ITF ¶
type QQuickView_ITF interface { QQuickWindow_ITF QQuickView_PTR() *QQuickView }
type QQuickView__ResizeMode ¶
type QQuickView__ResizeMode = int
This enum specifies how to resize the view.
const QQuickView__SizeRootObjectToView QQuickView__ResizeMode = 1
The view will automatically resize the root item to the size of the view.
const QQuickView__SizeViewToRootObject QQuickView__ResizeMode = 0
The view resizes with the root item in the QML.
type QQuickView__Status ¶
type QQuickView__Status = int
Specifies the loading status of the QQuickView.
const QQuickView__Error QQuickView__Status = 3
One or more errors has occurred. Call errors() to retrieve a list of errors.
const QQuickView__Loading QQuickView__Status = 2
This QQuickView is loading network data.
const QQuickView__Null QQuickView__Status = 0
This QQuickView has no source set.
const QQuickView__Ready QQuickView__Status = 1
This QQuickView has loaded and created the QML component.
type QQuickWindow ¶
func NewQQuickWindow ¶
func NewQQuickWindow(parent qtgui.QWindow_ITF) *QQuickWindow
Constructs a window for displaying a QML scene with parent window parent.
func NewQQuickWindowFromPointer ¶
func NewQQuickWindowFromPointer(cthis unsafe.Pointer) *QQuickWindow
func NewQQuickWindow_1 ¶
func NewQQuickWindow_1(renderControl QQuickRenderControl_ITF) *QQuickWindow
Constructs a window for displaying a QML scene with parent window parent.
func NewQQuickWindow__ ¶
func NewQQuickWindow__() *QQuickWindow
Constructs a window for displaying a QML scene with parent window parent.
func (*QQuickWindow) AccessibleRoot ¶
func (this *QQuickWindow) AccessibleRoot() *qtgui.QAccessibleInterface
Returns an accessibility interface for this window, or 0 if such an interface cannot be created.
func (*QQuickWindow) ActiveFocusItem ¶
func (this *QQuickWindow) ActiveFocusItem() *QQuickItem
func (*QQuickWindow) ActiveFocusItemChanged ¶
func (this *QQuickWindow) ActiveFocusItemChanged()
func (*QQuickWindow) AfterAnimating ¶
func (this *QQuickWindow) AfterAnimating()
This signal is emitted on the gui thread before requesting the render thread to perform the synchronization of the scene graph.
Unlike the other similar signals, this one is emitted on the gui thread instead of the render thread. It can be used to synchronize external animation systems with the QML content.
This function was introduced in Qt 5.3.
func (*QQuickWindow) AfterRendering ¶
func (this *QQuickWindow) AfterRendering()
This signal is emitted after the scene has completed rendering, before swapbuffers is called.
This signal can be used to paint using raw OpenGL on top of QML content, or to do screen scraping of the current frame buffer.
The OpenGL context used for rendering the scene graph will be bound at this point.
Warning: This signal is emitted from the scene graph rendering thread. If your slot function needs to finish before execution continues, you must make sure that the connection is direct (see Qt::ConnectionType).
Warning: Make very sure that a signal handler for afterRendering() leaves the OpenGL context in the same state as it was when the signal handler was entered. Failing to do so can result in the scene not rendering properly.
See also resetOpenGLState().
func (*QQuickWindow) AfterSynchronizing ¶
func (this *QQuickWindow) AfterSynchronizing()
This signal is emitted after the scene graph is synchronized with the QML state.
This signal can be used to do preparation required after calls to QQuickItem::updatePaintNode(), while the GUI thread is still locked.
The graphics context used for rendering the scene graph will be bound at this point.
Warning: This signal is emitted from the scene graph rendering thread. If your slot function needs to finish before execution continues, you must make sure that the connection is direct (see Qt::ConnectionType).
Warning: When using the OpenGL adaptation, make sure that a signal handler for afterSynchronizing leaves the OpenGL context in the same state as it was when the signal handler was entered. Failing to do so can result in the scene not rendering properly.
This function was introduced in Qt 5.3.
See also resetOpenGLState().
func (*QQuickWindow) BeforeRendering ¶
func (this *QQuickWindow) BeforeRendering()
This signal is emitted before the scene starts rendering.
Combined with the modes for clearing the background, this option can be used to paint using raw OpenGL under QML content.
The OpenGL context used for rendering the scene graph will be bound at this point.
Warning: This signal is emitted from the scene graph rendering thread. If your slot function needs to finish before execution continues, you must make sure that the connection is direct (see Qt::ConnectionType).
Warning: Make very sure that a signal handler for beforeRendering leaves the OpenGL context in the same state as it was when the signal handler was entered. Failing to do so can result in the scene not rendering properly.
See also resetOpenGLState().
func (*QQuickWindow) BeforeSynchronizing ¶
func (this *QQuickWindow) BeforeSynchronizing()
This signal is emitted before the scene graph is synchronized with the QML state.
This signal can be used to do any preparation required before calls to QQuickItem::updatePaintNode().
The OpenGL context used for rendering the scene graph will be bound at this point.
Warning: This signal is emitted from the scene graph rendering thread. If your slot function needs to finish before execution continues, you must make sure that the connection is direct (see Qt::ConnectionType).
Warning: Make very sure that a signal handler for beforeSynchronizing leaves the GL context in the same state as it was when the signal handler was entered. Failing to do so can result in the scene not rendering properly.
See also resetOpenGLState().
func (*QQuickWindow) ClearBeforeRendering ¶
func (this *QQuickWindow) ClearBeforeRendering() bool
Returns whether clearing of the color buffer is done before rendering or not.
See also setClearBeforeRendering().
func (*QQuickWindow) Color ¶
func (this *QQuickWindow) Color() *qtgui.QColor
func (*QQuickWindow) ColorChanged ¶
func (this *QQuickWindow) ColorChanged(arg0 qtgui.QColor_ITF)
func (*QQuickWindow) ContentItem ¶
func (this *QQuickWindow) ContentItem() *QQuickItem
func (*QQuickWindow) CreateImageNode ¶
func (this *QQuickWindow) CreateImageNode() *QSGImageNode
Creates a simple image node. When the scenegraph is not initialized, the return value is null.
This is cross-backend alternative to constructing a QSGSimpleTextureNode directly.
This function was introduced in Qt 5.8.
See also QSGImageNode.
func (*QQuickWindow) CreateNinePatchNode ¶
func (this *QQuickWindow) CreateNinePatchNode() *QSGNinePatchNode
Creates a nine patch node. When the scenegraph is not initialized, the return value is null.
This function was introduced in Qt 5.8.
func (*QQuickWindow) CreateRectangleNode ¶
func (this *QQuickWindow) CreateRectangleNode() *QSGRectangleNode
Creates a simple rectangle node. When the scenegraph is not initialized, the return value is null.
This is cross-backend alternative to constructing a QSGSimpleRectNode directly.
This function was introduced in Qt 5.8.
See also QSGRectangleNode.
func (*QQuickWindow) CreateTextureFromId ¶
func (this *QQuickWindow) CreateTextureFromId(id uint, size qtcore.QSize_ITF, options int) *QSGTexture
Creates a new QSGTexture object from an existing OpenGL texture id and size.
The caller of the function is responsible for deleting the returned texture.
The returned texture will be using GL_TEXTURE_2D as texture target and assumes that internal format is GL_RGBA. Reimplement QSGTexture to create textures with different parameters.
Use options to customize the texture attributes. The TextureUsesAtlas option is ignored.
Warning: This function will return null if the scenegraph has not yet been initialized or OpenGL is not in use.
Note: This function only has an effect when using the default OpenGL scene graph adaptation.
See also sceneGraphInitialized() and QSGTexture.
func (*QQuickWindow) CreateTextureFromId__ ¶
func (this *QQuickWindow) CreateTextureFromId__(id uint, size qtcore.QSize_ITF) *QSGTexture
Creates a new QSGTexture object from an existing OpenGL texture id and size.
The caller of the function is responsible for deleting the returned texture.
The returned texture will be using GL_TEXTURE_2D as texture target and assumes that internal format is GL_RGBA. Reimplement QSGTexture to create textures with different parameters.
Use options to customize the texture attributes. The TextureUsesAtlas option is ignored.
Warning: This function will return null if the scenegraph has not yet been initialized or OpenGL is not in use.
Note: This function only has an effect when using the default OpenGL scene graph adaptation.
See also sceneGraphInitialized() and QSGTexture.
func (*QQuickWindow) CreateTextureFromImage ¶
func (this *QQuickWindow) CreateTextureFromImage(image qtgui.QImage_ITF) *QSGTexture
Creates a new QSGTexture from the supplied image. If the image has an alpha channel, the corresponding texture will have an alpha channel.
The caller of the function is responsible for deleting the returned texture. For example whe using the OpenGL adaptation the actual OpenGL texture will be deleted when the texture object is deleted.
When options contains TextureCanUseAtlas, the engine may put the image into a texture atlas. Textures in an atlas need to rely on QSGTexture::normalizedTextureSubRect() for their geometry and will not support QSGTexture::Repeat. Other values from CreateTextureOption are ignored.
When options contains TextureIsOpaque, the engine will create an RGB texture which returns false for QSGTexture::hasAlphaChannel(). Opaque textures will in most cases be faster to render. When this flag is not set, the texture will have an alpha channel based on the image's format.
When options contains TextureHasMipmaps, the engine will create a texture which can use mipmap filtering. Mipmapped textures can not be in an atlas.
When using the OpenGL adaptation, the returned texture will be using GL_TEXTURE_2D as texture target and GL_RGBA as internal format. Reimplement QSGTexture to create textures with different parameters.
Warning: This function will return 0 if the scene graph has not yet been initialized.
Warning: The returned texture is not memory managed by the scene graph and must be explicitly deleted by the caller on the rendering thread. This is achieved by deleting the texture from a QSGNode destructor or by using deleteLater() in the case where the texture already has affinity to the rendering thread.
This function can be called from any thread.
See also sceneGraphInitialized() and QSGTexture.
func (*QQuickWindow) CreateTextureFromImage_1 ¶
func (this *QQuickWindow) CreateTextureFromImage_1(image qtgui.QImage_ITF, options int) *QSGTexture
Creates a new QSGTexture from the supplied image. If the image has an alpha channel, the corresponding texture will have an alpha channel.
The caller of the function is responsible for deleting the returned texture. For example whe using the OpenGL adaptation the actual OpenGL texture will be deleted when the texture object is deleted.
When options contains TextureCanUseAtlas, the engine may put the image into a texture atlas. Textures in an atlas need to rely on QSGTexture::normalizedTextureSubRect() for their geometry and will not support QSGTexture::Repeat. Other values from CreateTextureOption are ignored.
When options contains TextureIsOpaque, the engine will create an RGB texture which returns false for QSGTexture::hasAlphaChannel(). Opaque textures will in most cases be faster to render. When this flag is not set, the texture will have an alpha channel based on the image's format.
When options contains TextureHasMipmaps, the engine will create a texture which can use mipmap filtering. Mipmapped textures can not be in an atlas.
When using the OpenGL adaptation, the returned texture will be using GL_TEXTURE_2D as texture target and GL_RGBA as internal format. Reimplement QSGTexture to create textures with different parameters.
Warning: This function will return 0 if the scene graph has not yet been initialized.
Warning: The returned texture is not memory managed by the scene graph and must be explicitly deleted by the caller on the rendering thread. This is achieved by deleting the texture from a QSGNode destructor or by using deleteLater() in the case where the texture already has affinity to the rendering thread.
This function can be called from any thread.
See also sceneGraphInitialized() and QSGTexture.
func (*QQuickWindow) EffectiveDevicePixelRatio ¶
func (this *QQuickWindow) EffectiveDevicePixelRatio() float64
Returns the device pixel ratio for this window.
This is different from QWindow::devicePixelRatio() in that it supports redirected rendering via QQuickRenderControl. When using a QQuickRenderControl, the QQuickWindow is often not created, meaning it is never shown and there is no underlying native window created in the windowing system. As a result, querying properties like the device pixel ratio cannot give correct results. Use this function instead.
See also QWindow::devicePixelRatio().
func (*QQuickWindow) Event ¶
func (this *QQuickWindow) Event(arg0 qtcore.QEvent_ITF) bool
Reimplemented from QWindow::event().
func (*QQuickWindow) ExposeEvent ¶
func (this *QQuickWindow) ExposeEvent(arg0 qtgui.QExposeEvent_ITF)
Reimplemented from QWindow::exposeEvent().
func (*QQuickWindow) FocusInEvent ¶
func (this *QQuickWindow) FocusInEvent(arg0 qtgui.QFocusEvent_ITF)
Reimplemented from QWindow::focusInEvent().
func (*QQuickWindow) FocusObject ¶
func (this *QQuickWindow) FocusObject() *qtcore.QObject
func (*QQuickWindow) FocusOutEvent ¶
func (this *QQuickWindow) FocusOutEvent(arg0 qtgui.QFocusEvent_ITF)
Reimplemented from QWindow::focusOutEvent().
func (*QQuickWindow) FrameSwapped ¶
func (this *QQuickWindow) FrameSwapped()
This signal is emitted when a frame has been queued for presenting. With vertical synchronization enabled the signal is emitted at most once per vsync interval in a continuously animating scene.
This signal will be emitted from the scene graph rendering thread.
func (*QQuickWindow) GetCthis ¶
func (this *QQuickWindow) GetCthis() unsafe.Pointer
func (*QQuickWindow) GrabWindow ¶
func (this *QQuickWindow) GrabWindow() *qtgui.QImage
Grabs the contents of the window and returns it as an image.
It is possible to call the grabWindow() function when the window is not visible. This requires that the window is created and has a valid size and that no other QQuickWindow instances are rendering in the same process.
Warning: Calling this function will cause performance problems.
Warning: This function can only be called from the GUI thread.
func (*QQuickWindow) HasDefaultAlphaBuffer ¶
func (this *QQuickWindow) HasDefaultAlphaBuffer() bool
Returns whether to use alpha transparency on newly created windows.
This function was introduced in Qt 5.1.
See also setDefaultAlphaBuffer().
func (*QQuickWindow) HideEvent ¶
func (this *QQuickWindow) HideEvent(arg0 qtgui.QHideEvent_ITF)
Reimplemented from QWindow::hideEvent().
func (*QQuickWindow) IncubationController ¶
func (this *QQuickWindow) IncubationController() *qtqml.QQmlIncubationController
Returns an incubation controller that splices incubation between frames for this window. QQuickView automatically installs this controller for you, otherwise you will need to install it yourself using QQmlEngine::setIncubationController().
The controller is owned by the window and will be destroyed when the window is deleted.
func (*QQuickWindow) InheritEvent ¶
func (this *QQuickWindow) InheritEvent(f func(arg0 *qtcore.QEvent) bool)
bool event(class QEvent *)
func (*QQuickWindow) InheritExposeEvent ¶
func (this *QQuickWindow) InheritExposeEvent(f func(arg0 *qtgui.QExposeEvent))
void exposeEvent(class QExposeEvent *)
func (*QQuickWindow) InheritFocusInEvent ¶
func (this *QQuickWindow) InheritFocusInEvent(f func(arg0 *qtgui.QFocusEvent))
void focusInEvent(class QFocusEvent *)
func (*QQuickWindow) InheritFocusOutEvent ¶
func (this *QQuickWindow) InheritFocusOutEvent(f func(arg0 *qtgui.QFocusEvent))
void focusOutEvent(class QFocusEvent *)
func (*QQuickWindow) InheritHideEvent ¶
func (this *QQuickWindow) InheritHideEvent(f func(arg0 *qtgui.QHideEvent))
void hideEvent(class QHideEvent *)
func (*QQuickWindow) InheritKeyPressEvent ¶
func (this *QQuickWindow) InheritKeyPressEvent(f func(arg0 *qtgui.QKeyEvent))
void keyPressEvent(class QKeyEvent *)
func (*QQuickWindow) InheritKeyReleaseEvent ¶
func (this *QQuickWindow) InheritKeyReleaseEvent(f func(arg0 *qtgui.QKeyEvent))
void keyReleaseEvent(class QKeyEvent *)
func (*QQuickWindow) InheritMouseDoubleClickEvent ¶
func (this *QQuickWindow) InheritMouseDoubleClickEvent(f func(arg0 *qtgui.QMouseEvent))
void mouseDoubleClickEvent(class QMouseEvent *)
func (*QQuickWindow) InheritMouseMoveEvent ¶
func (this *QQuickWindow) InheritMouseMoveEvent(f func(arg0 *qtgui.QMouseEvent))
void mouseMoveEvent(class QMouseEvent *)
func (*QQuickWindow) InheritMousePressEvent ¶
func (this *QQuickWindow) InheritMousePressEvent(f func(arg0 *qtgui.QMouseEvent))
void mousePressEvent(class QMouseEvent *)
func (*QQuickWindow) InheritMouseReleaseEvent ¶
func (this *QQuickWindow) InheritMouseReleaseEvent(f func(arg0 *qtgui.QMouseEvent))
void mouseReleaseEvent(class QMouseEvent *)
func (*QQuickWindow) InheritResizeEvent ¶
func (this *QQuickWindow) InheritResizeEvent(f func(arg0 *qtgui.QResizeEvent))
void resizeEvent(class QResizeEvent *)
func (*QQuickWindow) InheritShowEvent ¶
func (this *QQuickWindow) InheritShowEvent(f func(arg0 *qtgui.QShowEvent))
void showEvent(class QShowEvent *)
func (*QQuickWindow) InheritWheelEvent ¶
func (this *QQuickWindow) InheritWheelEvent(f func(arg0 *qtgui.QWheelEvent))
void wheelEvent(class QWheelEvent *)
func (*QQuickWindow) IsPersistentOpenGLContext ¶
func (this *QQuickWindow) IsPersistentOpenGLContext() bool
Returns whether the OpenGL context can be released during the lifetime of the QQuickWindow.
Note: This is a hint. When and how this happens is implementation specific. It also only has an effect when using the default OpenGL scene graph adaptation
func (*QQuickWindow) IsPersistentSceneGraph ¶
func (this *QQuickWindow) IsPersistentSceneGraph() bool
Returns whether the scene graph nodes and resources can be released during the lifetime of this QQuickWindow.
Note: This is a hint. When and how this happens is implementation specific.
func (*QQuickWindow) IsSceneGraphInitialized ¶
func (this *QQuickWindow) IsSceneGraphInitialized() bool
Returns true if the scene graph has been initialized; otherwise returns false.
func (*QQuickWindow) KeyPressEvent ¶
func (this *QQuickWindow) KeyPressEvent(arg0 qtgui.QKeyEvent_ITF)
Reimplemented from QWindow::keyPressEvent().
func (*QQuickWindow) KeyReleaseEvent ¶
func (this *QQuickWindow) KeyReleaseEvent(arg0 qtgui.QKeyEvent_ITF)
Reimplemented from QWindow::keyReleaseEvent().
func (*QQuickWindow) MetaObject ¶
func (this *QQuickWindow) MetaObject() *qtcore.QMetaObject
func (*QQuickWindow) MouseDoubleClickEvent ¶
func (this *QQuickWindow) MouseDoubleClickEvent(arg0 qtgui.QMouseEvent_ITF)
Reimplemented from QWindow::mouseDoubleClickEvent().
func (*QQuickWindow) MouseGrabberItem ¶
func (this *QQuickWindow) MouseGrabberItem() *QQuickItem
Returns the item which currently has the mouse grab.
func (*QQuickWindow) MouseMoveEvent ¶
func (this *QQuickWindow) MouseMoveEvent(arg0 qtgui.QMouseEvent_ITF)
Reimplemented from QWindow::mouseMoveEvent().
func (*QQuickWindow) MousePressEvent ¶
func (this *QQuickWindow) MousePressEvent(arg0 qtgui.QMouseEvent_ITF)
Reimplemented from QWindow::mousePressEvent().
func (*QQuickWindow) MouseReleaseEvent ¶
func (this *QQuickWindow) MouseReleaseEvent(arg0 qtgui.QMouseEvent_ITF)
Reimplemented from QWindow::mouseReleaseEvent().
func (*QQuickWindow) NewFromPointer ¶
func (*QQuickWindow) NewFromPointer(cthis unsafe.Pointer) *QQuickWindow
func (*QQuickWindow) QQuickWindow_PTR ¶
func (ptr *QQuickWindow) QQuickWindow_PTR() *QQuickWindow
func (*QQuickWindow) ReleaseResources ¶
func (this *QQuickWindow) ReleaseResources()
This function tries to release redundant resources currently held by the QML scene.
Calling this function might result in the scene graph and the OpenGL context used for rendering being released to release graphics memory. If this happens, the sceneGraphInvalidated() signal will be called, allowing users to clean up their own graphics resources. The setPersistentOpenGLContext() and setPersistentSceneGraph() functions can be used to prevent this from happening, if handling the cleanup is not feasible in the application, at the cost of higher memory usage.
See also sceneGraphInvalidated(), setPersistentOpenGLContext(), and setPersistentSceneGraph().
func (*QQuickWindow) RenderTargetId ¶
func (this *QQuickWindow) RenderTargetId() uint
Returns the FBO id of the render target when set; otherwise returns 0.
func (*QQuickWindow) RenderTargetSize ¶
func (this *QQuickWindow) RenderTargetSize() *qtcore.QSize
Returns the size of the currently set render target; otherwise returns an empty size.
func (*QQuickWindow) RendererInterface ¶
func (this *QQuickWindow) RendererInterface() *QSGRendererInterface
Returns the current renderer interface. The value is always valid and is never null.
Note: This function can be called at any time after constructing the QQuickWindow, even while isSceneGraphInitialized() is still false. However, some renderer interface functions, in particular QSGRendererInterface::getResource() will not be functional until the scenegraph is up and running. Backend queries, like QSGRendererInterface::graphicsApi() or QSGRendererInterface::shaderType(), will always be functional on the other hand.
Note: The ownership of the returned pointer stays with Qt. The returned instance may or may not be shared between different QQuickWindow instances, depending on the scenegraph backend in use. Therefore applications are expected to query the interface object for each QQuickWindow instead of reusing the already queried pointer.
This function was introduced in Qt 5.8.
See also QSGRenderNode and QSGRendererInterface.
func (*QQuickWindow) ResetOpenGLState ¶
func (this *QQuickWindow) ResetOpenGLState()
Call this function to reset the OpenGL context its default state.
The scene graph uses the OpenGL context and will both rely on and clobber its state. When mixing raw OpenGL commands with scene graph rendering, this function provides a convenient way of resetting the OpenGL context state back to its default values.
This function does not touch state in the fixed-function pipeline.
This function does not clear the color, depth and stencil buffers. Use QQuickWindow::setClearBeforeRendering to control clearing of the color buffer. The depth and stencil buffer might be clobbered by the scene graph renderer. Clear these manually on demand.
Note: This function only has an effect when using the default OpenGL scene graph adaptation.
This function was introduced in Qt 5.2.
See also QQuickWindow::beforeRendering().
func (*QQuickWindow) ResizeEvent ¶
func (this *QQuickWindow) ResizeEvent(arg0 qtgui.QResizeEvent_ITF)
Reimplemented from QWindow::resizeEvent().
func (*QQuickWindow) SceneGraphAboutToStop ¶
func (this *QQuickWindow) SceneGraphAboutToStop()
This signal is emitted on the render thread when the scene graph is about to stop rendering. This happens usually because the window has been hidden.
Applications may use this signal to release resources, but should be prepared to reinstantiated them again fast. The scene graph and the graphics context are not released at this time.
Warning: This signal is emitted from the scene graph rendering thread. If your slot function needs to finish before execution continues, you must make sure that the connection is direct (see Qt::ConnectionType).
Warning: Make very sure that a signal handler for sceneGraphAboutToStop() leaves the graphics context in the same state as it was when the signal handler was entered. Failing to do so can result in the scene not rendering properly.
This function was introduced in Qt 5.3.
See also sceneGraphInvalidated() and resetOpenGLState().
func (*QQuickWindow) SceneGraphBackend ¶
func (this *QQuickWindow) SceneGraphBackend() string
Returns the requested Qt Quick scenegraph backend.
Note: The return value of this function may still be outdated by subsequent calls to setSceneGraphBackend() until the first QQuickWindow in the application has been constructed.
This function was introduced in Qt 5.9.
See also setSceneGraphBackend().
func (*QQuickWindow) SceneGraphError ¶
func (this *QQuickWindow) SceneGraphError(error int, message string)
This signal is emitted when an error occurred during scene graph initialization.
Applications should connect to this signal if they wish to handle errors, like graphics context creation failures, in a custom way. When no slot is connected to the signal, the behavior will be different: Quick will print the message, or show a message box, and terminate the application.
This signal will be emitted from the gui thread.
This function was introduced in Qt 5.3.
func (*QQuickWindow) SceneGraphInitialized ¶
func (this *QQuickWindow) SceneGraphInitialized()
This signal is emitted when the scene graph has been initialized.
This signal will be emitted from the scene graph rendering thread.
func (*QQuickWindow) SceneGraphInvalidated ¶
func (this *QQuickWindow) SceneGraphInvalidated()
This signal is emitted when the scene graph has been invalidated.
This signal implies that the graphics rendering context used has been invalidated and all user resources tied to that context should be released.
In the case of the default OpenGL adaptation the context of this window will be bound when this function is called. The only exception is if the native OpenGL has been destroyed outside Qt's control, for instance through EGL_CONTEXT_LOST.
This signal will be emitted from the scene graph rendering thread.
func (*QQuickWindow) ScheduleRenderJob ¶
func (this *QQuickWindow) ScheduleRenderJob(job qtcore.QRunnable_ITF, schedule int)
Schedules job to run when the rendering of this window reaches the given stage.
This is a convenience to the equivalent signals in QQuickWindow for "one shot" tasks.
The window takes ownership over job and will delete it when the job is completed.
If rendering is shut down before job has a chance to run, the job will be run and then deleted as part of the scene graph cleanup. If the window is never shown and no rendering happens before the QQuickWindow is destroyed, all pending jobs will be destroyed without their run() method being called.
If the rendering is happening on a different thread, then the job will happen on the rendering thread.
If stage is NoStage, job will be run at the earliest opportunity whenever the render thread is not busy rendering a frame. If there is no OpenGL context available or the window is not exposed at the time the job is either posted or handled, it is deleted without executing the run() method. If a non-threaded renderer is in use, the run() method of the job is executed synchronously. The OpenGL context is changed to the renderer context before executing a NoStage job.
Note: This function does not trigger rendering; the jobs targeting any other stage than NoStage will be stored run until rendering is triggered elsewhere. To force the job to run earlier, call QQuickWindow::update();
This function was introduced in Qt 5.4.
See also beforeRendering(), afterRendering(), beforeSynchronizing(), afterSynchronizing(), frameSwapped(), and sceneGraphInvalidated().
func (*QQuickWindow) SendEvent ¶
func (this *QQuickWindow) SendEvent(arg0 QQuickItem_ITF, arg1 qtcore.QEvent_ITF) bool
func (*QQuickWindow) SetClearBeforeRendering ¶
func (this *QQuickWindow) SetClearBeforeRendering(enabled bool)
Sets whether the scene graph rendering of QML should clear the color buffer before it starts rendering to enabled.
By disabling clearing of the color buffer, it is possible to render OpengGL content under the scene graph.
The color buffer is cleared by default.
See also clearBeforeRendering() and beforeRendering().
func (*QQuickWindow) SetColor ¶
func (this *QQuickWindow) SetColor(color qtgui.QColor_ITF)
func (*QQuickWindow) SetCthis ¶
func (this *QQuickWindow) SetCthis(cthis unsafe.Pointer)
func (*QQuickWindow) SetDefaultAlphaBuffer ¶
func (this *QQuickWindow) SetDefaultAlphaBuffer(useAlpha bool)
useAlpha specifies whether to use alpha transparency on newly created windows.
In any application which expects to create translucent windows, it's necessary to set this to true before creating the first QQuickWindow. The default value is false.
This function was introduced in Qt 5.1.
See also hasDefaultAlphaBuffer().
func (*QQuickWindow) SetPersistentOpenGLContext ¶
func (this *QQuickWindow) SetPersistentOpenGLContext(persistent bool)
Sets whether the OpenGL context should be preserved, and cannot be released until the last window is deleted, to persistent. The default value is true.
The OpenGL context can be released to free up graphics resources when the window is obscured, hidden or not rendering. When this happens is implementation specific.
The QOpenGLContext::aboutToBeDestroyed() signal is emitted from the QQuickWindow::openglContext() when the OpenGL context is about to be released. The QQuickWindow::sceneGraphInitialized() signal is emitted when a new OpenGL context is created for this window. Make a Qt::DirectConnection to these signals to be notified.
The OpenGL context is still released when the last QQuickWindow is deleted.
Note: This only has an effect when using the default OpenGL scene graph adaptation.
See also isPersistentOpenGLContext(), setPersistentSceneGraph(), QOpenGLContext::aboutToBeDestroyed(), and sceneGraphInitialized().
func (*QQuickWindow) SetPersistentSceneGraph ¶
func (this *QQuickWindow) SetPersistentSceneGraph(persistent bool)
Sets whether the scene graph nodes and resources can be released to persistent. The default value is true.
The scene graph nodes and resources can be released to free up graphics resources when the window is obscured, hidden or not rendering. When this happens is implementation specific.
The QQuickWindow::sceneGraphInvalidated() signal is emitted when cleanup occurs. The QQuickWindow::sceneGraphInitialized() signal is emitted when a new scene graph is recreated for this window. Make a Qt::DirectConnection to these signals to be notified.
The scene graph nodes and resources are still released when the last QQuickWindow is deleted.
See also isPersistentSceneGraph(), setPersistentOpenGLContext(), sceneGraphInvalidated(), and sceneGraphInitialized().
func (*QQuickWindow) SetRenderTarget ¶
func (this *QQuickWindow) SetRenderTarget(fboId uint, size qtcore.QSize_ITF)
Sets the render target for this window to be fbo.
The specified fbo must be created in the context of the window or one that shares with it.
Note: This function only has an effect when using the default OpenGL scene graph adaptation.
Warning: This function can only be called from the thread doing the rendering.
See also renderTarget().
func (*QQuickWindow) SetSceneGraphBackend ¶
func (this *QQuickWindow) SetSceneGraphBackend(api int)
Requests a Qt Quick scenegraph backend for the specified graphics api. Backends can either be built-in or be installed in form of dynamically loaded plugins.
Note: The call to the function must happen before constructing the first QQuickWindow in the application. It cannot be changed afterwards.
If the selected backend is invalid or an error occurs, the default backend (OpenGL or software, depending on the Qt configuration) is used.
This function was introduced in Qt 5.8.
See also sceneGraphBackend().
func (*QQuickWindow) SetSceneGraphBackend_1 ¶
func (this *QQuickWindow) SetSceneGraphBackend_1(backend string)
Requests a Qt Quick scenegraph backend for the specified graphics api. Backends can either be built-in or be installed in form of dynamically loaded plugins.
Note: The call to the function must happen before constructing the first QQuickWindow in the application. It cannot be changed afterwards.
If the selected backend is invalid or an error occurs, the default backend (OpenGL or software, depending on the Qt configuration) is used.
This function was introduced in Qt 5.8.
See also sceneGraphBackend().
func (*QQuickWindow) SetTextRenderType ¶
func (this *QQuickWindow) SetTextRenderType(renderType int)
Sets the default render type of text-like elements in Qt Quick to renderType.
Note: setting the render type will only affect elements created afterwards; the render type of existing elements will not be modified.
This function was introduced in Qt 5.10.
See also textRenderType().
func (*QQuickWindow) ShowEvent ¶
func (this *QQuickWindow) ShowEvent(arg0 qtgui.QShowEvent_ITF)
Reimplemented from QWindow::showEvent().
func (*QQuickWindow) TextRenderType ¶
func (this *QQuickWindow) TextRenderType() int
Returns the render type of text-like elements in Qt Quick. The default is QQuickWindow::QtTextRendering.
This function was introduced in Qt 5.10.
See also setTextRenderType().
func (*QQuickWindow) Update ¶
func (this *QQuickWindow) Update()
Schedules the window to render another frame.
Calling QQuickWindow::update() differs from QQuickItem::update() in that it always triggers a repaint, regardless of changes in the underlying scene graph or not.
func (*QQuickWindow) WheelEvent ¶
func (this *QQuickWindow) WheelEvent(arg0 qtgui.QWheelEvent_ITF)
Reimplemented from QWindow::wheelEvent().
type QQuickWindow_ITF ¶
type QQuickWindow_ITF interface { qtgui.QWindow_ITF QQuickWindow_PTR() *QQuickWindow }
type QQuickWindow__CreateTextureOption ¶
type QQuickWindow__CreateTextureOption = int
const QQuickWindow__TextureCanUseAtlas QQuickWindow__CreateTextureOption = 8
const QQuickWindow__TextureHasAlphaChannel QQuickWindow__CreateTextureOption = 1
const QQuickWindow__TextureHasMipmaps QQuickWindow__CreateTextureOption = 2
const QQuickWindow__TextureIsOpaque QQuickWindow__CreateTextureOption = 16
const QQuickWindow__TextureOwnsGLTexture QQuickWindow__CreateTextureOption = 4
type QQuickWindow__RenderStage ¶
type QQuickWindow__RenderStage = int
This enum was introduced or modified in Qt 5.4.
See also Scene Graph and Rendering.
const QQuickWindow__AfterRenderingStage QQuickWindow__RenderStage = 3
After rendering.
const QQuickWindow__AfterSwapStage QQuickWindow__RenderStage = 4
After the frame is swapped.
const QQuickWindow__AfterSynchronizingStage QQuickWindow__RenderStage = 1
After synchronization.
const QQuickWindow__BeforeRenderingStage QQuickWindow__RenderStage = 2
Before rendering.
const QQuickWindow__BeforeSynchronizingStage QQuickWindow__RenderStage = 0
Before synchronization.
const QQuickWindow__NoStage QQuickWindow__RenderStage = 5
type QQuickWindow__SceneGraphError ¶
type QQuickWindow__SceneGraphError = int
This enum describes the error in a sceneGraphError() signal.
This enum was introduced or modified in Qt 5.3.
const QQuickWindow__ContextNotAvailable QQuickWindow__SceneGraphError = 1
type QQuickWindow__TextRenderType ¶
type QQuickWindow__TextRenderType = int
This enum describes the default render type of text-like elements in Qt Quick (Text, TextInput, etc.).
Select NativeTextRendering if you prefer text to look native on the target platform and do not require advanced features such as transformation of the text. Using such features in combination with the NativeTextRendering render type will lend poor and sometimes pixelated results.
This enum was introduced or modified in Qt 5.10.
const QQuickWindow__NativeTextRendering QQuickWindow__TextRenderType = 1
Use the operating system's native rasterizer for text.
const QQuickWindow__QtTextRendering QQuickWindow__TextRenderType = 0
Use Qt's own rasterization algorithm.
type QSGAbstractRenderer ¶
func NewQSGAbstractRenderer ¶
func NewQSGAbstractRenderer(parent qtcore.QObject_ITF) *QSGAbstractRenderer
func NewQSGAbstractRendererFromPointer ¶
func NewQSGAbstractRendererFromPointer(cthis unsafe.Pointer) *QSGAbstractRenderer
func NewQSGAbstractRenderer__ ¶
func NewQSGAbstractRenderer__() *QSGAbstractRenderer
func (*QSGAbstractRenderer) ClearColor ¶
func (this *QSGAbstractRenderer) ClearColor() *qtgui.QColor
Returns the color that clears the framebuffer at the beginning of the rendering.
See also setClearColor() and clearMode().
func (*QSGAbstractRenderer) ClearMode ¶
func (this *QSGAbstractRenderer) ClearMode() int
Flags defining which attachment of the framebuffer will be cleared before each scene render.
See also setClearMode() and clearColor().
func (*QSGAbstractRenderer) DeviceRect ¶
func (this *QSGAbstractRenderer) DeviceRect() *qtcore.QRect
Returns the device rect of the surface being rendered to.
See also setDeviceRect().
func (*QSGAbstractRenderer) GetCthis ¶
func (this *QSGAbstractRenderer) GetCthis() unsafe.Pointer
func (*QSGAbstractRenderer) InheritNodeChanged ¶
func (this *QSGAbstractRenderer) InheritNodeChanged(f func(node *QSGNode, state int))
void nodeChanged(class QSGNode *, class QSGNode::DirtyState)
func (*QSGAbstractRenderer) MetaObject ¶
func (this *QSGAbstractRenderer) MetaObject() *qtcore.QMetaObject
func (*QSGAbstractRenderer) NewFromPointer ¶
func (*QSGAbstractRenderer) NewFromPointer(cthis unsafe.Pointer) *QSGAbstractRenderer
func (*QSGAbstractRenderer) NodeChanged ¶
func (this *QSGAbstractRenderer) NodeChanged(node QSGNode_ITF, state int)
func (*QSGAbstractRenderer) ProjectionMatrix ¶
func (this *QSGAbstractRenderer) ProjectionMatrix() *qtgui.QMatrix4x4
Returns the projection matrix
See also setProjectionMatrix() and setProjectionMatrixToRect().
func (*QSGAbstractRenderer) QSGAbstractRenderer_PTR ¶
func (ptr *QSGAbstractRenderer) QSGAbstractRenderer_PTR() *QSGAbstractRenderer
func (*QSGAbstractRenderer) RenderScene ¶
func (this *QSGAbstractRenderer) RenderScene(fboId uint)
Render the scene to the specified fboId
If fboId isn't specified, the scene graph will be rendered to the default framebuffer. You will have to call QOpenGLContext::swapBuffers() yourself afterward.
The framebuffer specified by fboId will be bound automatically.
See also QOpenGLContext::swapBuffers() and QOpenGLFramebufferObject::handle().
func (*QSGAbstractRenderer) RenderScene__ ¶
func (this *QSGAbstractRenderer) RenderScene__()
Render the scene to the specified fboId
If fboId isn't specified, the scene graph will be rendered to the default framebuffer. You will have to call QOpenGLContext::swapBuffers() yourself afterward.
The framebuffer specified by fboId will be bound automatically.
See also QOpenGLContext::swapBuffers() and QOpenGLFramebufferObject::handle().
func (*QSGAbstractRenderer) RootNode ¶
func (this *QSGAbstractRenderer) RootNode() *QSGRootNode
Returns the root of the QSGNode scene.
See also setRootNode().
func (*QSGAbstractRenderer) SceneGraphChanged ¶
func (this *QSGAbstractRenderer) SceneGraphChanged()
This signal is emitted on the first modification of a node in the tree after the last scene render.
func (*QSGAbstractRenderer) SetClearColor ¶
func (this *QSGAbstractRenderer) SetClearColor(color qtgui.QColor_ITF)
Use color to clear the framebuffer when clearMode() is set to QSGAbstractRenderer::ClearColorBuffer.
See also clearColor() and setClearMode().
func (*QSGAbstractRenderer) SetClearMode ¶
func (this *QSGAbstractRenderer) SetClearMode(mode int)
Defines which attachment of the framebuffer should be cleared before each scene render with the mode flag.
See also clearMode() and setClearColor().
func (*QSGAbstractRenderer) SetCthis ¶
func (this *QSGAbstractRenderer) SetCthis(cthis unsafe.Pointer)
func (*QSGAbstractRenderer) SetDeviceRect ¶
func (this *QSGAbstractRenderer) SetDeviceRect(rect qtcore.QRect_ITF)
Sets rect as the geometry of the surface being rendered to.
See also deviceRect().
func (*QSGAbstractRenderer) SetDeviceRect_1 ¶
func (this *QSGAbstractRenderer) SetDeviceRect_1(size qtcore.QSize_ITF)
Sets rect as the geometry of the surface being rendered to.
See also deviceRect().
func (*QSGAbstractRenderer) SetProjectionMatrix ¶
func (this *QSGAbstractRenderer) SetProjectionMatrix(matrix qtgui.QMatrix4x4_ITF)
Use matrix to project the QSGNode coordinates onto surface pixels.
See also projectionMatrix() and setProjectionMatrixToRect().
func (*QSGAbstractRenderer) SetProjectionMatrixToRect ¶
func (this *QSGAbstractRenderer) SetProjectionMatrixToRect(rect qtcore.QRectF_ITF)
Convenience method that calls setProjectionMatrix() with an orthographic matrix generated from rect.
See also setProjectionMatrix() and projectionMatrix().
func (*QSGAbstractRenderer) SetRootNode ¶
func (this *QSGAbstractRenderer) SetRootNode(node QSGRootNode_ITF)
Sets the node as the root of the QSGNode scene that you want to render. You need to provide a node before trying to render the scene.
Note: This doesn't take ownership of node.
See also rootNode().
func (*QSGAbstractRenderer) SetViewportRect ¶
func (this *QSGAbstractRenderer) SetViewportRect(rect qtcore.QRect_ITF)
Sets rect as the geometry of the viewport to render on the surface.
See also viewportRect().
func (*QSGAbstractRenderer) SetViewportRect_1 ¶
func (this *QSGAbstractRenderer) SetViewportRect_1(size qtcore.QSize_ITF)
Sets rect as the geometry of the viewport to render on the surface.
See also viewportRect().
func (*QSGAbstractRenderer) ViewportRect ¶
func (this *QSGAbstractRenderer) ViewportRect() *qtcore.QRect
Returns the rect of the viewport to render.
See also setViewportRect().
type QSGAbstractRenderer_ITF ¶
type QSGAbstractRenderer_ITF interface { qtcore.QObject_ITF QSGAbstractRenderer_PTR() *QSGAbstractRenderer }
type QSGAbstractRenderer__ClearModeBit ¶
type QSGAbstractRenderer__ClearModeBit = int
const QSGAbstractRenderer__ClearColorBuffer QSGAbstractRenderer__ClearModeBit = 1
const QSGAbstractRenderer__ClearDepthBuffer QSGAbstractRenderer__ClearModeBit = 2
const QSGAbstractRenderer__ClearStencilBuffer QSGAbstractRenderer__ClearModeBit = 4
type QSGBasicGeometryNode ¶
type QSGBasicGeometryNode struct {
*QSGNode
}
func NewQSGBasicGeometryNode ¶
func NewQSGBasicGeometryNode(type_ int) *QSGBasicGeometryNode
func NewQSGBasicGeometryNodeFromPointer ¶
func NewQSGBasicGeometryNodeFromPointer(cthis unsafe.Pointer) *QSGBasicGeometryNode
func (*QSGBasicGeometryNode) ClipList ¶
func (this *QSGBasicGeometryNode) ClipList() *QSGClipNode
func (*QSGBasicGeometryNode) Geometry ¶
func (this *QSGBasicGeometryNode) Geometry() *QSGGeometry
func (*QSGBasicGeometryNode) Geometry_1 ¶
func (this *QSGBasicGeometryNode) Geometry_1() *QSGGeometry
func (*QSGBasicGeometryNode) GetCthis ¶
func (this *QSGBasicGeometryNode) GetCthis() unsafe.Pointer
func (*QSGBasicGeometryNode) Matrix ¶
func (this *QSGBasicGeometryNode) Matrix() *qtgui.QMatrix4x4
func (*QSGBasicGeometryNode) NewFromPointer ¶
func (*QSGBasicGeometryNode) NewFromPointer(cthis unsafe.Pointer) *QSGBasicGeometryNode
func (*QSGBasicGeometryNode) QSGBasicGeometryNode_PTR ¶
func (ptr *QSGBasicGeometryNode) QSGBasicGeometryNode_PTR() *QSGBasicGeometryNode
func (*QSGBasicGeometryNode) SetCthis ¶
func (this *QSGBasicGeometryNode) SetCthis(cthis unsafe.Pointer)
func (*QSGBasicGeometryNode) SetGeometry ¶
func (this *QSGBasicGeometryNode) SetGeometry(geometry QSGGeometry_ITF)
func (*QSGBasicGeometryNode) SetRendererClipList ¶
func (this *QSGBasicGeometryNode) SetRendererClipList(c QSGClipNode_ITF)
func (*QSGBasicGeometryNode) SetRendererMatrix ¶
func (this *QSGBasicGeometryNode) SetRendererMatrix(m qtgui.QMatrix4x4_ITF)
type QSGBasicGeometryNode_ITF ¶
type QSGBasicGeometryNode_ITF interface { QSGNode_ITF QSGBasicGeometryNode_PTR() *QSGBasicGeometryNode }
type QSGClipNode ¶
type QSGClipNode struct {
*QSGBasicGeometryNode
}
func NewQSGClipNode ¶
func NewQSGClipNode() *QSGClipNode
func NewQSGClipNodeFromPointer ¶
func NewQSGClipNodeFromPointer(cthis unsafe.Pointer) *QSGClipNode
func (*QSGClipNode) ClipRect ¶
func (this *QSGClipNode) ClipRect() *qtcore.QRectF
func (*QSGClipNode) GetCthis ¶
func (this *QSGClipNode) GetCthis() unsafe.Pointer
func (*QSGClipNode) IsRectangular ¶
func (this *QSGClipNode) IsRectangular() bool
func (*QSGClipNode) NewFromPointer ¶
func (*QSGClipNode) NewFromPointer(cthis unsafe.Pointer) *QSGClipNode
func (*QSGClipNode) QSGClipNode_PTR ¶
func (ptr *QSGClipNode) QSGClipNode_PTR() *QSGClipNode
func (*QSGClipNode) SetClipRect ¶
func (this *QSGClipNode) SetClipRect(arg0 qtcore.QRectF_ITF)
func (*QSGClipNode) SetCthis ¶
func (this *QSGClipNode) SetCthis(cthis unsafe.Pointer)
func (*QSGClipNode) SetIsRectangular ¶
func (this *QSGClipNode) SetIsRectangular(rectHint bool)
type QSGClipNode_ITF ¶
type QSGClipNode_ITF interface { QSGBasicGeometryNode_ITF QSGClipNode_PTR() *QSGClipNode }
type QSGDynamicTexture ¶
type QSGDynamicTexture struct {
*QSGTexture
}
func NewQSGDynamicTextureFromPointer ¶
func NewQSGDynamicTextureFromPointer(cthis unsafe.Pointer) *QSGDynamicTexture
func (*QSGDynamicTexture) GetCthis ¶
func (this *QSGDynamicTexture) GetCthis() unsafe.Pointer
func (*QSGDynamicTexture) MetaObject ¶
func (this *QSGDynamicTexture) MetaObject() *qtcore.QMetaObject
func (*QSGDynamicTexture) NewFromPointer ¶
func (*QSGDynamicTexture) NewFromPointer(cthis unsafe.Pointer) *QSGDynamicTexture
func (*QSGDynamicTexture) QSGDynamicTexture_PTR ¶
func (ptr *QSGDynamicTexture) QSGDynamicTexture_PTR() *QSGDynamicTexture
func (*QSGDynamicTexture) SetCthis ¶
func (this *QSGDynamicTexture) SetCthis(cthis unsafe.Pointer)
func (*QSGDynamicTexture) UpdateTexture ¶
func (this *QSGDynamicTexture) UpdateTexture() bool
type QSGDynamicTexture_ITF ¶
type QSGDynamicTexture_ITF interface { QSGTexture_ITF QSGDynamicTexture_PTR() *QSGDynamicTexture }
type QSGEngine ¶
func NewQSGEngine ¶
func NewQSGEngine(parent qtcore.QObject_ITF) *QSGEngine
Constructs a new QSGEngine with its parent
func NewQSGEngineFromPointer ¶
func (*QSGEngine) CreateImageNode ¶
func (this *QSGEngine) CreateImageNode() *QSGImageNode
Creates a simple image node. When the scenegraph is not initialized, the return value is null.
This is cross-backend alternative to constructing a QSGSimpleTextureNode directly.
This function was introduced in Qt 5.8.
See also QSGImageNode.
func (*QSGEngine) CreateNinePatchNode ¶
func (this *QSGEngine) CreateNinePatchNode() *QSGNinePatchNode
Creates a nine patch node. When the scenegraph is not initialized, the return value is null.
This function was introduced in Qt 5.8.
func (*QSGEngine) CreateRectangleNode ¶
func (this *QSGEngine) CreateRectangleNode() *QSGRectangleNode
Creates a simple rectangle node. When the scenegraph is not initialized, the return value is null.
This is cross-backend alternative to constructing a QSGSimpleRectNode directly.
This function was introduced in Qt 5.8.
See also QSGRectangleNode.
func (*QSGEngine) CreateRenderer ¶
func (this *QSGEngine) CreateRenderer() *QSGAbstractRenderer
Returns a renderer that can be used to render a QSGNode tree
You call initialize() first with the QOpenGLContext that you want to use with this renderer. This will return a null renderer otherwise.
func (*QSGEngine) CreateTextureFromId ¶
Creates a texture object that wraps the GL texture id uploaded with size
Valid options are TextureHasAlphaChannel and TextureOwnsGLTexture ¶
The caller takes ownership of the texture object and the texture should only be used with this engine.
See also createTextureFromImage(), QSGSimpleTextureNode::setOwnsTexture(), and QQuickWindow::createTextureFromId().
func (*QSGEngine) CreateTextureFromId__ ¶
func (this *QSGEngine) CreateTextureFromId__(id uint, size qtcore.QSize_ITF) *QSGTexture
Creates a texture object that wraps the GL texture id uploaded with size
Valid options are TextureHasAlphaChannel and TextureOwnsGLTexture ¶
The caller takes ownership of the texture object and the texture should only be used with this engine.
See also createTextureFromImage(), QSGSimpleTextureNode::setOwnsTexture(), and QQuickWindow::createTextureFromId().
func (*QSGEngine) CreateTextureFromImage ¶
func (this *QSGEngine) CreateTextureFromImage(image qtgui.QImage_ITF, options int) *QSGTexture
Creates a texture using the data of image
Valid options are TextureCanUseAtlas and TextureIsOpaque.
The caller takes ownership of the texture and the texture should only be used with this engine.
See also createTextureFromId(), QSGSimpleTextureNode::setOwnsTexture(), and QQuickWindow::createTextureFromImage().
func (*QSGEngine) CreateTextureFromImage__ ¶
func (this *QSGEngine) CreateTextureFromImage__(image qtgui.QImage_ITF) *QSGTexture
Creates a texture using the data of image
Valid options are TextureCanUseAtlas and TextureIsOpaque.
The caller takes ownership of the texture and the texture should only be used with this engine.
See also createTextureFromId(), QSGSimpleTextureNode::setOwnsTexture(), and QQuickWindow::createTextureFromImage().
func (*QSGEngine) Invalidate ¶
func (this *QSGEngine) Invalidate()
Invalidate the engine releasing its resources
You will have to call initialize() and createRenderer() if you want to use it again.
func (*QSGEngine) MetaObject ¶
func (this *QSGEngine) MetaObject() *qtcore.QMetaObject
func (*QSGEngine) NewFromPointer ¶
func (*QSGEngine) QSGEngine_PTR ¶
func (*QSGEngine) RendererInterface ¶
func (this *QSGEngine) RendererInterface() *QSGRendererInterface
Returns the current renderer interface if there is one. Otherwise null is returned.
This function was introduced in Qt 5.8.
See also QSGRenderNode and QSGRendererInterface.
type QSGEngine_ITF ¶
type QSGEngine_ITF interface { qtcore.QObject_ITF QSGEngine_PTR() *QSGEngine }
type QSGEngine__CreateTextureOption ¶
type QSGEngine__CreateTextureOption = int
const QSGEngine__TextureCanUseAtlas QSGEngine__CreateTextureOption = 8
const QSGEngine__TextureHasAlphaChannel QSGEngine__CreateTextureOption = 1
const QSGEngine__TextureIsOpaque QSGEngine__CreateTextureOption = 16
const QSGEngine__TextureOwnsGLTexture QSGEngine__CreateTextureOption = 4
type QSGFlatColorMaterial ¶
type QSGFlatColorMaterial struct {
*QSGMaterial
}
func NewQSGFlatColorMaterial ¶
func NewQSGFlatColorMaterial() *QSGFlatColorMaterial
Constructs a new flat color material.
The default color is white.
func NewQSGFlatColorMaterialFromPointer ¶
func NewQSGFlatColorMaterialFromPointer(cthis unsafe.Pointer) *QSGFlatColorMaterial
func (*QSGFlatColorMaterial) Color ¶
func (this *QSGFlatColorMaterial) Color() *qtgui.QColor
Returns this flat color material's color.
The default color is white.
See also setColor().
func (*QSGFlatColorMaterial) Compare ¶
func (this *QSGFlatColorMaterial) Compare(other QSGMaterial_ITF) int
func (*QSGFlatColorMaterial) CreateShader ¶
func (this *QSGFlatColorMaterial) CreateShader() *QSGMaterialShader
func (*QSGFlatColorMaterial) GetCthis ¶
func (this *QSGFlatColorMaterial) GetCthis() unsafe.Pointer
func (*QSGFlatColorMaterial) NewFromPointer ¶
func (*QSGFlatColorMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGFlatColorMaterial
func (*QSGFlatColorMaterial) QSGFlatColorMaterial_PTR ¶
func (ptr *QSGFlatColorMaterial) QSGFlatColorMaterial_PTR() *QSGFlatColorMaterial
func (*QSGFlatColorMaterial) SetColor ¶
func (this *QSGFlatColorMaterial) SetColor(color qtgui.QColor_ITF)
Sets this flat color material's color to color.
See also color().
func (*QSGFlatColorMaterial) SetCthis ¶
func (this *QSGFlatColorMaterial) SetCthis(cthis unsafe.Pointer)
func (*QSGFlatColorMaterial) Type ¶
func (this *QSGFlatColorMaterial) Type() *QSGMaterialType
type QSGFlatColorMaterial_ITF ¶
type QSGFlatColorMaterial_ITF interface { QSGMaterial_ITF QSGFlatColorMaterial_PTR() *QSGFlatColorMaterial }
type QSGGeometry ¶
func NewQSGGeometryFromPointer ¶
func NewQSGGeometryFromPointer(cthis unsafe.Pointer) *QSGGeometry
func (*QSGGeometry) Allocate ¶
func (this *QSGGeometry) Allocate(vertexCount int, indexCount int)
Resizes the vertex and index data of this geometry object to fit vertexCount vertices and indexCount indices.
Vertex and index data will be invalidated after this call and the caller must mark the associated geometry node as dirty, by calling node->markDirty(QSGNode::DirtyGeometry) to ensure that the renderer has a chance to update internal buffers.
func (*QSGGeometry) Allocate__ ¶
func (this *QSGGeometry) Allocate__(vertexCount int)
Resizes the vertex and index data of this geometry object to fit vertexCount vertices and indexCount indices.
Vertex and index data will be invalidated after this call and the caller must mark the associated geometry node as dirty, by calling node->markDirty(QSGNode::DirtyGeometry) to ensure that the renderer has a chance to update internal buffers.
func (*QSGGeometry) AttributeCount ¶
func (this *QSGGeometry) AttributeCount() int
Returns the number of attributes in the attrbute set used by this geometry.
func (*QSGGeometry) Attributes ¶
func (this *QSGGeometry) Attributes() unsafe.Pointer
Returns an array with the attributes of this geometry. The size of the array is given with attributeCount().
func (*QSGGeometry) DefaultAttributes_ColoredPoint2D ¶
func (this *QSGGeometry) DefaultAttributes_ColoredPoint2D() unsafe.Pointer
Convenience function which returns attributes to be used for per vertex colored 2D drawing.
func (*QSGGeometry) DefaultAttributes_Point2D ¶
func (this *QSGGeometry) DefaultAttributes_Point2D() unsafe.Pointer
Convenience function which returns attributes to be used for 2D solid color drawing.
func (*QSGGeometry) DefaultAttributes_TexturedPoint2D ¶
func (this *QSGGeometry) DefaultAttributes_TexturedPoint2D() unsafe.Pointer
Convenience function which returns attributes to be used for textured 2D drawing.
func (*QSGGeometry) DrawingMode ¶
func (this *QSGGeometry) DrawingMode() uint
Returns the drawing mode of this geometry.
The default value is GL_TRIANGLE_STRIP.
See also setDrawingMode().
func (*QSGGeometry) GetCthis ¶
func (this *QSGGeometry) GetCthis() unsafe.Pointer
func (*QSGGeometry) IndexCount ¶
func (this *QSGGeometry) IndexCount() int
Returns the number of indices in this geometry object.
func (*QSGGeometry) IndexData ¶
func (this *QSGGeometry) IndexData() unsafe.Pointer
Returns a pointer to the raw index data of this geometry object.
See also indexDataAsUShort() and indexDataAsUInt().
func (*QSGGeometry) IndexDataAsUInt ¶
func (this *QSGGeometry) IndexDataAsUInt() unsafe.Pointer
Convenience function to access the index data as a mutable array of 32-bit unsigned integers.
func (*QSGGeometry) IndexDataAsUInt_1 ¶
func (this *QSGGeometry) IndexDataAsUInt_1() unsafe.Pointer
Convenience function to access the index data as a mutable array of 32-bit unsigned integers.
func (*QSGGeometry) IndexDataAsUShort ¶
func (this *QSGGeometry) IndexDataAsUShort() unsafe.Pointer
Convenience function to access the index data as a mutable array of 16-bit unsigned integers.
func (*QSGGeometry) IndexDataAsUShort_1 ¶
func (this *QSGGeometry) IndexDataAsUShort_1() unsafe.Pointer
Convenience function to access the index data as a mutable array of 16-bit unsigned integers.
func (*QSGGeometry) IndexDataPattern ¶
func (this *QSGGeometry) IndexDataPattern() int
Returns the usage pattern for indices in this geometry. The default pattern is AlwaysUploadPattern.
See also setIndexDataPattern().
func (*QSGGeometry) IndexData_1 ¶
func (this *QSGGeometry) IndexData_1() unsafe.Pointer
Returns a pointer to the raw index data of this geometry object.
See also indexDataAsUShort() and indexDataAsUInt().
func (*QSGGeometry) IndexType ¶
func (this *QSGGeometry) IndexType() int
Returns the primitive type used for indices in this geometry object.
func (*QSGGeometry) LineWidth ¶
func (this *QSGGeometry) LineWidth() float32
Gets the current line or point width or to be used for this geometry. This property only applies to line width when the drawingMode is DrawLines, DarwLineStrip, or DrawLineLoop. For desktop OpenGL, it also applies to point size when the drawingMode is DrawPoints.
The default value is 1.0 ¶
Note: When not using OpenGL, support for point and line drawing may be limited. For example, some APIs do not support point sprites and so setting a size other than 1 is not possible. Some backends may be able implement support via geometry shaders, but this is not guaranteed to be always available.
See also setLineWidth() and drawingMode().
func (*QSGGeometry) MarkIndexDataDirty ¶
func (this *QSGGeometry) MarkIndexDataDirty()
Mark that the vertices in this geometry has changed and must be uploaded again.
This function only has an effect when the usage pattern for vertices is StaticData and the renderer that renders this geometry uploads the geometry into Vertex Buffer Objects (VBOs).
func (*QSGGeometry) MarkVertexDataDirty ¶
func (this *QSGGeometry) MarkVertexDataDirty()
Mark that the vertices in this geometry has changed and must be uploaded again.
This function only has an effect when the usage pattern for vertices is StaticData and the renderer that renders this geometry uploads the geometry into Vertex Buffer Objects (VBOs).
func (*QSGGeometry) NewFromPointer ¶
func (*QSGGeometry) NewFromPointer(cthis unsafe.Pointer) *QSGGeometry
func (*QSGGeometry) QSGGeometry_PTR ¶
func (ptr *QSGGeometry) QSGGeometry_PTR() *QSGGeometry
func (*QSGGeometry) SetCthis ¶
func (this *QSGGeometry) SetCthis(cthis unsafe.Pointer)
func (*QSGGeometry) SetDrawingMode ¶
func (this *QSGGeometry) SetDrawingMode(mode uint)
Sets the mode to be used for drawing this geometry.
The default value is QSGGeometry::DrawTriangleStrip.
See also drawingMode() and DrawingMode.
func (*QSGGeometry) SetIndexDataPattern ¶
func (this *QSGGeometry) SetIndexDataPattern(p int)
Sets the usage pattern for indices to p.
The default is AlwaysUploadPattern. When set to anything other than the default, the user must call markIndexDataDirty() after changing the index data, in addition to calling QSGNode::markDirty() with QSGNode::DirtyGeometry.
See also indexDataPattern().
func (*QSGGeometry) SetLineWidth ¶
func (this *QSGGeometry) SetLineWidth(w float32)
Sets the line or point width to be used for this geometry to width. This property only applies to line width when the drawingMode is DrawLines, DrawLineStrip, or DrawLineLoop. For Desktop OpenGL, it also applies to point size when the drawingMode is DrawPoints.
Note: How line width and point size are treated is implementation dependent: The application should not rely on these, but rather create triangles or similar to draw areas. On OpenGL ES, line width support is limited and point size is unsupported.
See also lineWidth() and drawingMode().
func (*QSGGeometry) SetVertexDataPattern ¶
func (this *QSGGeometry) SetVertexDataPattern(p int)
Sets the usage pattern for vertices to p.
The default is AlwaysUploadPattern. When set to anything other than the default, the user must call markVertexDataDirty() after changing the vertex data, in addition to calling QSGNode::markDirty() with QSGNode::DirtyGeometry.
See also vertexDataPattern().
func (*QSGGeometry) SizeOfIndex ¶
func (this *QSGGeometry) SizeOfIndex() int
Returns the byte size of the index type.
This value is either 1 when index type is GL_UNSIGNED_BYTE or 2 when index type is GL_UNSIGNED_SHORT. For Desktop OpenGL, GL_UNSIGNED_INT with the value 4 is also supported.
func (*QSGGeometry) SizeOfVertex ¶
func (this *QSGGeometry) SizeOfVertex() int
Returns the size in bytes of one vertex.
This value comes from the attributes.
func (*QSGGeometry) UpdateColoredRectGeometry ¶
func (this *QSGGeometry) UpdateColoredRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
Updates the geometry g with the coordinates in rect.
The function assumes the geometry object contains a single triangle strip of QSGGeometry::ColoredPoint2D vertices
func (*QSGGeometry) UpdateRectGeometry ¶
func (this *QSGGeometry) UpdateRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF)
Updates the geometry g with the coordinates in rect.
The function assumes the geometry object contains a single triangle strip of QSGGeometry::Point2D vertices
func (*QSGGeometry) UpdateTexturedRectGeometry ¶
func (this *QSGGeometry) UpdateTexturedRectGeometry(g QSGGeometry_ITF, rect qtcore.QRectF_ITF, sourceRect qtcore.QRectF_ITF)
Updates the geometry g with the coordinates in rect and texture coordinates from textureRect.
textureRect should be in normalized coordinates.
g is assumed to be a triangle strip of four vertices of type QSGGeometry::TexturedPoint2D.
func (*QSGGeometry) VertexCount ¶
func (this *QSGGeometry) VertexCount() int
Returns the number of vertices in this geometry object.
func (*QSGGeometry) VertexData ¶
func (this *QSGGeometry) VertexData() unsafe.Pointer
Returns a pointer to the raw vertex data of this geometry object.
See also vertexDataAsPoint2D() and vertexDataAsTexturedPoint2D().
func (*QSGGeometry) VertexDataAsColoredPoint2D ¶
func (this *QSGGeometry) VertexDataAsColoredPoint2D() unsafe.Pointer
Convenience function to access the vertex data as a mutable array of QSGGeometry::ColoredPoint2D.
func (*QSGGeometry) VertexDataAsColoredPoint2D_1 ¶
func (this *QSGGeometry) VertexDataAsColoredPoint2D_1() unsafe.Pointer
Convenience function to access the vertex data as a mutable array of QSGGeometry::ColoredPoint2D.
func (*QSGGeometry) VertexDataAsPoint2D ¶
func (this *QSGGeometry) VertexDataAsPoint2D() unsafe.Pointer
Convenience function to access the vertex data as a mutable array of QSGGeometry::Point2D.
func (*QSGGeometry) VertexDataAsPoint2D_1 ¶
func (this *QSGGeometry) VertexDataAsPoint2D_1() unsafe.Pointer
Convenience function to access the vertex data as a mutable array of QSGGeometry::Point2D.
func (*QSGGeometry) VertexDataAsTexturedPoint2D ¶
func (this *QSGGeometry) VertexDataAsTexturedPoint2D() unsafe.Pointer
Convenience function to access the vertex data as a mutable array of QSGGeometry::TexturedPoint2D.
func (*QSGGeometry) VertexDataAsTexturedPoint2D_1 ¶
func (this *QSGGeometry) VertexDataAsTexturedPoint2D_1() unsafe.Pointer
Convenience function to access the vertex data as a mutable array of QSGGeometry::TexturedPoint2D.
func (*QSGGeometry) VertexDataPattern ¶
func (this *QSGGeometry) VertexDataPattern() int
Returns the usage pattern for vertices in this geometry. The default pattern is AlwaysUploadPattern.
See also setVertexDataPattern().
func (*QSGGeometry) VertexData_1 ¶
func (this *QSGGeometry) VertexData_1() unsafe.Pointer
Returns a pointer to the raw vertex data of this geometry object.
See also vertexDataAsPoint2D() and vertexDataAsTexturedPoint2D().
type QSGGeometryNode ¶
type QSGGeometryNode struct {
*QSGBasicGeometryNode
}
func NewQSGGeometryNode ¶
func NewQSGGeometryNode() *QSGGeometryNode
func NewQSGGeometryNodeFromPointer ¶
func NewQSGGeometryNodeFromPointer(cthis unsafe.Pointer) *QSGGeometryNode
func (*QSGGeometryNode) ActiveMaterial ¶
func (this *QSGGeometryNode) ActiveMaterial() *QSGMaterial
func (*QSGGeometryNode) GetCthis ¶
func (this *QSGGeometryNode) GetCthis() unsafe.Pointer
func (*QSGGeometryNode) InheritedOpacity ¶
func (this *QSGGeometryNode) InheritedOpacity() float64
func (*QSGGeometryNode) Material ¶
func (this *QSGGeometryNode) Material() *QSGMaterial
func (*QSGGeometryNode) NewFromPointer ¶
func (*QSGGeometryNode) NewFromPointer(cthis unsafe.Pointer) *QSGGeometryNode
func (*QSGGeometryNode) OpaqueMaterial ¶
func (this *QSGGeometryNode) OpaqueMaterial() *QSGMaterial
func (*QSGGeometryNode) QSGGeometryNode_PTR ¶
func (ptr *QSGGeometryNode) QSGGeometryNode_PTR() *QSGGeometryNode
func (*QSGGeometryNode) RenderOrder ¶
func (this *QSGGeometryNode) RenderOrder() int
func (*QSGGeometryNode) SetCthis ¶
func (this *QSGGeometryNode) SetCthis(cthis unsafe.Pointer)
func (*QSGGeometryNode) SetInheritedOpacity ¶
func (this *QSGGeometryNode) SetInheritedOpacity(opacity float64)
func (*QSGGeometryNode) SetMaterial ¶
func (this *QSGGeometryNode) SetMaterial(material QSGMaterial_ITF)
func (*QSGGeometryNode) SetOpaqueMaterial ¶
func (this *QSGGeometryNode) SetOpaqueMaterial(material QSGMaterial_ITF)
func (*QSGGeometryNode) SetRenderOrder ¶
func (this *QSGGeometryNode) SetRenderOrder(order int)
type QSGGeometryNode_ITF ¶
type QSGGeometryNode_ITF interface { QSGBasicGeometryNode_ITF QSGGeometryNode_PTR() *QSGGeometryNode }
type QSGGeometry_ITF ¶
type QSGGeometry_ITF interface {
QSGGeometry_PTR() *QSGGeometry
}
type QSGGeometry__AttributeType ¶
type QSGGeometry__AttributeType = int
const QSGGeometry__ColorAttribute QSGGeometry__AttributeType = 2
const QSGGeometry__PositionAttribute QSGGeometry__AttributeType = 1
const QSGGeometry__TexCoord1Attribute QSGGeometry__AttributeType = 4
const QSGGeometry__TexCoord2Attribute QSGGeometry__AttributeType = 5
const QSGGeometry__TexCoordAttribute QSGGeometry__AttributeType = 3
const QSGGeometry__UnknownAttribute QSGGeometry__AttributeType = 0
type QSGGeometry__DataPattern ¶
type QSGGeometry__DataPattern = int
The DataPattern enum is used to specify the use pattern for the vertex and index data in a geometry object.
const QSGGeometry__AlwaysUploadPattern QSGGeometry__DataPattern = 0
The data is always uploaded. This means that the user does not need to explicitly mark index and vertex data as dirty after changing it. This is the default.
const QSGGeometry__DynamicPattern QSGGeometry__DataPattern = 2
The data is modified repeatedly and drawn many times. This is a hint that may provide better performance. When set the user must make sure to mark the data as dirty after changing it.
const QSGGeometry__StaticPattern QSGGeometry__DataPattern = 3
The data is modified once and drawn many times. This is a hint that may provide better performance. When set the user must make sure to mark the data as dirty after changing it.
const QSGGeometry__StreamPattern QSGGeometry__DataPattern = 1
The data is modified for almost every time it is drawn. This is a hint that may provide better performance. When set, the user must make sure to mark the data as dirty after changing it.
type QSGGeometry__DrawingMode ¶
type QSGGeometry__DrawingMode = int
The values correspond to OpenGL enum values like GL_POINTS, GL_LINES, etc. QSGGeometry provies its own type in order to be able to provide the same API with non-OpenGL backends as well.
ConstantValue
const QSGGeometry__DrawLineLoop QSGGeometry__DrawingMode = 2
const QSGGeometry__DrawLineStrip QSGGeometry__DrawingMode = 3
const QSGGeometry__DrawLines QSGGeometry__DrawingMode = 1
const QSGGeometry__DrawPoints QSGGeometry__DrawingMode = 0
const QSGGeometry__DrawTriangleFan QSGGeometry__DrawingMode = 6
const QSGGeometry__DrawTriangleStrip QSGGeometry__DrawingMode = 5
const QSGGeometry__DrawTriangles QSGGeometry__DrawingMode = 4
type QSGGeometry__Type ¶
type QSGGeometry__Type = int
The values correspond to OpenGL type constants like GL_BYTE, GL_UNSIGNED_BYTE, etc. QSGGeometry provies its own type in order to be able to provide the same API with non-OpenGL backends as well.
ConstantValue
const QSGGeometry__ByteType QSGGeometry__Type = 5120
const QSGGeometry__FloatType QSGGeometry__Type = 5126
const QSGGeometry__IntType QSGGeometry__Type = 5124
const QSGGeometry__ShortType QSGGeometry__Type = 5122
const QSGGeometry__UnsignedByteType QSGGeometry__Type = 5121
const QSGGeometry__UnsignedIntType QSGGeometry__Type = 5125
const QSGGeometry__UnsignedShortType QSGGeometry__Type = 5123
type QSGImageNode ¶
type QSGImageNode struct {
*QSGGeometryNode
}
func NewQSGImageNodeFromPointer ¶
func NewQSGImageNodeFromPointer(cthis unsafe.Pointer) *QSGImageNode
func (*QSGImageNode) Filtering ¶
func (this *QSGImageNode) Filtering() int
Returns the filtering for this image node.
See also setFiltering().
func (*QSGImageNode) GetCthis ¶
func (this *QSGImageNode) GetCthis() unsafe.Pointer
func (*QSGImageNode) MipmapFiltering ¶
func (this *QSGImageNode) MipmapFiltering() int
Returns the mipmap filtering for this image node.
See also setMipmapFiltering().
func (*QSGImageNode) NewFromPointer ¶
func (*QSGImageNode) NewFromPointer(cthis unsafe.Pointer) *QSGImageNode
func (*QSGImageNode) OwnsTexture ¶
func (this *QSGImageNode) OwnsTexture() bool
Returns true if the node takes ownership of the texture; otherwise false.
See also setOwnsTexture().
func (*QSGImageNode) QSGImageNode_PTR ¶
func (ptr *QSGImageNode) QSGImageNode_PTR() *QSGImageNode
func (*QSGImageNode) RebuildGeometry ¶
func (this *QSGImageNode) RebuildGeometry(g QSGGeometry_ITF, texture QSGTexture_ITF, rect qtcore.QRectF_ITF, sourceRect qtcore.QRectF_ITF, texCoordMode int)
func (*QSGImageNode) Rect ¶
func (this *QSGImageNode) Rect() *qtcore.QRectF
Returns the target rect of this image node.
See also setRect().
func (*QSGImageNode) SetCthis ¶
func (this *QSGImageNode) SetCthis(cthis unsafe.Pointer)
func (*QSGImageNode) SetFiltering ¶
func (this *QSGImageNode) SetFiltering(filtering int)
Sets the filtering to be used for this image node to filtering.
For smooth scaling, use QSGTexture::Linear. For normal scaling, use QSGTexture::Nearest.
See also filtering().
func (*QSGImageNode) SetMipmapFiltering ¶
func (this *QSGImageNode) SetMipmapFiltering(filtering int)
Sets the mipmap filtering to be used for this image node to filtering.
For smooth scaling between mip maps, use QSGTexture::Linear. For normal scaling, use QSGTexture::Nearest.
See also mipmapFiltering().
func (*QSGImageNode) SetOwnsTexture ¶
func (this *QSGImageNode) SetOwnsTexture(owns bool)
Sets whether the node takes ownership of the texture to owns.
By default, the node does not take ownership of the texture.
See also ownsTexture().
func (*QSGImageNode) SetRect ¶
func (this *QSGImageNode) SetRect(rect qtcore.QRectF_ITF)
Sets the target rect of this image node to rect.
See also rect().
func (*QSGImageNode) SetRect_1 ¶
func (this *QSGImageNode) SetRect_1(x float64, y float64, w float64, h float64)
Sets the target rect of this image node to rect.
See also rect().
func (*QSGImageNode) SetSourceRect ¶
func (this *QSGImageNode) SetSourceRect(r qtcore.QRectF_ITF)
Sets the source rect of this image node to rect.
See also sourceRect().
func (*QSGImageNode) SetSourceRect_1 ¶
func (this *QSGImageNode) SetSourceRect_1(x float64, y float64, w float64, h float64)
Sets the source rect of this image node to rect.
See also sourceRect().
func (*QSGImageNode) SetTexture ¶
func (this *QSGImageNode) SetTexture(texture QSGTexture_ITF)
Sets the texture of this image node to texture.
Use setOwnsTexture() to set whether the node should take ownership of the texture. By default, the node does not take ownership.
Warning: An image node must have a texture before being added to the scenegraph to be rendered.
See also texture().
func (*QSGImageNode) SetTextureCoordinatesTransform ¶
func (this *QSGImageNode) SetTextureCoordinatesTransform(mode int)
Sets the method used to generate texture coordinates to mode. This can be used to obtain correct orientation of the texture. This is commonly needed when using a third-party OpenGL library to render to texture as OpenGL has an inverted y-axis relative to Qt Quick.
See also textureCoordinatesTransform().
func (*QSGImageNode) SourceRect ¶
func (this *QSGImageNode) SourceRect() *qtcore.QRectF
Returns the source rect of this image node.
See also setSourceRect().
func (*QSGImageNode) Texture ¶
func (this *QSGImageNode) Texture() *QSGTexture
Returns the texture for this image node.
See also setTexture().
func (*QSGImageNode) TextureCoordinatesTransform ¶
func (this *QSGImageNode) TextureCoordinatesTransform() int
Returns the mode used to generate texture coordinates for this node.
See also setTextureCoordinatesTransform().
type QSGImageNode_ITF ¶
type QSGImageNode_ITF interface { QSGGeometryNode_ITF QSGImageNode_PTR() *QSGImageNode }
type QSGImageNode__TextureCoordinatesTransformFlag ¶
type QSGImageNode__TextureCoordinatesTransformFlag = int
const QSGImageNode__MirrorHorizontally QSGImageNode__TextureCoordinatesTransformFlag = 1
const QSGImageNode__MirrorVertically QSGImageNode__TextureCoordinatesTransformFlag = 2
const QSGImageNode__NoTransform QSGImageNode__TextureCoordinatesTransformFlag = 0
type QSGMaterial ¶
func NewQSGMaterial ¶
func NewQSGMaterial() *QSGMaterial
func NewQSGMaterialFromPointer ¶
func NewQSGMaterialFromPointer(cthis unsafe.Pointer) *QSGMaterial
func (*QSGMaterial) Compare ¶
func (this *QSGMaterial) Compare(other QSGMaterial_ITF) int
Compares this material to other and returns 0 if they are equal; -1 if this material should sort before other and 1 if other should sort before.
The scene graph can reorder geometry nodes to minimize state changes. The compare function is called during the sorting process so that the materials can be sorted to minimize state changes in each call to QSGMaterialShader::updateState().
The this pointer and other is guaranteed to have the same type().
func (*QSGMaterial) CreateShader ¶
func (this *QSGMaterial) CreateShader() *QSGMaterialShader
This function returns a new instance of a the QSGMaterialShader implementatation used to render geometry for a specific implementation of QSGMaterial.
The function will be called only once for each material type that exists in the scene graph and will be cached internally.
func (*QSGMaterial) GetCthis ¶
func (this *QSGMaterial) GetCthis() unsafe.Pointer
func (*QSGMaterial) NewFromPointer ¶
func (*QSGMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGMaterial
func (*QSGMaterial) QSGMaterial_PTR ¶
func (ptr *QSGMaterial) QSGMaterial_PTR() *QSGMaterial
func (*QSGMaterial) SetCthis ¶
func (this *QSGMaterial) SetCthis(cthis unsafe.Pointer)
func (*QSGMaterial) SetFlag ¶
func (this *QSGMaterial) SetFlag(flags int, on bool)
Sets the flags flags on this material if on is true; otherwise clears the attribute.
func (*QSGMaterial) SetFlag__ ¶
func (this *QSGMaterial) SetFlag__(flags int)
Sets the flags flags on this material if on is true; otherwise clears the attribute.
func (*QSGMaterial) Type ¶
func (this *QSGMaterial) Type() *QSGMaterialType
This function is called by the scene graph to return a unique instance per subclass.
type QSGMaterialShader ¶
func NewQSGMaterialShader ¶
func NewQSGMaterialShader() *QSGMaterialShader
func NewQSGMaterialShaderFromPointer ¶
func NewQSGMaterialShaderFromPointer(cthis unsafe.Pointer) *QSGMaterialShader
func (*QSGMaterialShader) Activate ¶
func (this *QSGMaterialShader) Activate()
func (*QSGMaterialShader) AttributeNames ¶
func (this *QSGMaterialShader) AttributeNames() []string
func (*QSGMaterialShader) Compile ¶
func (this *QSGMaterialShader) Compile()
func (*QSGMaterialShader) Deactivate ¶
func (this *QSGMaterialShader) Deactivate()
func (*QSGMaterialShader) FragmentShader ¶
func (this *QSGMaterialShader) FragmentShader() string
func (*QSGMaterialShader) GetCthis ¶
func (this *QSGMaterialShader) GetCthis() unsafe.Pointer
func (*QSGMaterialShader) InheritCompile ¶
func (this *QSGMaterialShader) InheritCompile(f func())
void compile()
func (*QSGMaterialShader) InheritFragmentShader ¶
func (this *QSGMaterialShader) InheritFragmentShader(f func() unsafe.Pointer)
const char * fragmentShader()
func (*QSGMaterialShader) InheritInitialize ¶
func (this *QSGMaterialShader) InheritInitialize(f func())
void initialize()
func (*QSGMaterialShader) InheritSetShaderSourceFile ¶
func (this *QSGMaterialShader) InheritSetShaderSourceFile(f func(type_ int, sourceFile string))
void setShaderSourceFile(class QOpenGLShader::ShaderType, const class QString &)
func (*QSGMaterialShader) InheritSetShaderSourceFiles ¶
func (this *QSGMaterialShader) InheritSetShaderSourceFiles(f func(type_ int, sourceFiles *qtcore.QStringList))
void setShaderSourceFiles(class QOpenGLShader::ShaderType, const class QStringList &)
func (*QSGMaterialShader) InheritVertexShader ¶
func (this *QSGMaterialShader) InheritVertexShader(f func() unsafe.Pointer)
const char * vertexShader()
func (*QSGMaterialShader) Initialize ¶
func (this *QSGMaterialShader) Initialize()
func (*QSGMaterialShader) NewFromPointer ¶
func (*QSGMaterialShader) NewFromPointer(cthis unsafe.Pointer) *QSGMaterialShader
func (*QSGMaterialShader) QSGMaterialShader_PTR ¶
func (ptr *QSGMaterialShader) QSGMaterialShader_PTR() *QSGMaterialShader
func (*QSGMaterialShader) SetCthis ¶
func (this *QSGMaterialShader) SetCthis(cthis unsafe.Pointer)
func (*QSGMaterialShader) SetShaderSourceFile ¶
func (this *QSGMaterialShader) SetShaderSourceFile(type_ int, sourceFile string)
func (*QSGMaterialShader) SetShaderSourceFiles ¶
func (this *QSGMaterialShader) SetShaderSourceFiles(type_ int, sourceFiles qtcore.QStringList_ITF)
func (*QSGMaterialShader) VertexShader ¶
func (this *QSGMaterialShader) VertexShader() string
type QSGMaterialShader_ITF ¶
type QSGMaterialShader_ITF interface {
QSGMaterialShader_PTR() *QSGMaterialShader
}
type QSGMaterialType ¶
func NewQSGMaterialTypeFromPointer ¶
func NewQSGMaterialTypeFromPointer(cthis unsafe.Pointer) *QSGMaterialType
func (*QSGMaterialType) GetCthis ¶
func (this *QSGMaterialType) GetCthis() unsafe.Pointer
func (*QSGMaterialType) NewFromPointer ¶
func (*QSGMaterialType) NewFromPointer(cthis unsafe.Pointer) *QSGMaterialType
func (*QSGMaterialType) QSGMaterialType_PTR ¶
func (ptr *QSGMaterialType) QSGMaterialType_PTR() *QSGMaterialType
func (*QSGMaterialType) SetCthis ¶
func (this *QSGMaterialType) SetCthis(cthis unsafe.Pointer)
type QSGMaterialType_ITF ¶
type QSGMaterialType_ITF interface {
QSGMaterialType_PTR() *QSGMaterialType
}
type QSGMaterial_ITF ¶
type QSGMaterial_ITF interface {
QSGMaterial_PTR() *QSGMaterial
}
type QSGMaterial__Flag ¶
type QSGMaterial__Flag = int
const QSGMaterial__Blending QSGMaterial__Flag = 1
const QSGMaterial__CustomCompileStep QSGMaterial__Flag = 16
const QSGMaterial__RequiresDeterminant QSGMaterial__Flag = 2
const QSGMaterial__RequiresFullMatrix QSGMaterial__Flag = 14
const QSGMaterial__RequiresFullMatrixExceptTranslate QSGMaterial__Flag = 6
type QSGNinePatchNode ¶
type QSGNinePatchNode struct {
*QSGGeometryNode
}
func NewQSGNinePatchNodeFromPointer ¶
func NewQSGNinePatchNodeFromPointer(cthis unsafe.Pointer) *QSGNinePatchNode
func (*QSGNinePatchNode) GetCthis ¶
func (this *QSGNinePatchNode) GetCthis() unsafe.Pointer
func (*QSGNinePatchNode) NewFromPointer ¶
func (*QSGNinePatchNode) NewFromPointer(cthis unsafe.Pointer) *QSGNinePatchNode
func (*QSGNinePatchNode) QSGNinePatchNode_PTR ¶
func (ptr *QSGNinePatchNode) QSGNinePatchNode_PTR() *QSGNinePatchNode
func (*QSGNinePatchNode) RebuildGeometry ¶
func (this *QSGNinePatchNode) RebuildGeometry(texture QSGTexture_ITF, geometry QSGGeometry_ITF, padding qtgui.QVector4D_ITF, bounds qtcore.QRectF_ITF, dpr float64)
func (*QSGNinePatchNode) SetBounds ¶
func (this *QSGNinePatchNode) SetBounds(bounds qtcore.QRectF_ITF)
func (*QSGNinePatchNode) SetCthis ¶
func (this *QSGNinePatchNode) SetCthis(cthis unsafe.Pointer)
func (*QSGNinePatchNode) SetDevicePixelRatio ¶
func (this *QSGNinePatchNode) SetDevicePixelRatio(ratio float64)
func (*QSGNinePatchNode) SetPadding ¶
func (this *QSGNinePatchNode) SetPadding(left float64, top float64, right float64, bottom float64)
func (*QSGNinePatchNode) SetTexture ¶
func (this *QSGNinePatchNode) SetTexture(texture QSGTexture_ITF)
func (*QSGNinePatchNode) Update ¶
func (this *QSGNinePatchNode) Update()
type QSGNinePatchNode_ITF ¶
type QSGNinePatchNode_ITF interface { QSGGeometryNode_ITF QSGNinePatchNode_PTR() *QSGNinePatchNode }
type QSGNode ¶
func NewQSGNodeFromPointer ¶
func (*QSGNode) AppendChildNode ¶
func (this *QSGNode) AppendChildNode(node QSGNode_ITF)
Appends node to this node's list of children.
Ordering of nodes is important as geometry nodes will be rendered in the order they are added to the scene graph.
func (*QSGNode) ChildAtIndex ¶
Returns the child at index i.
Children are stored internally as a linked list, so iterating over the children via the index is suboptimal.
func (*QSGNode) ChildCount ¶
Returns the number of child nodes.
func (*QSGNode) ClearDirty ¶
func (this *QSGNode) ClearDirty()
func (*QSGNode) DirtyState ¶
func (*QSGNode) FirstChild ¶
Returns the first child of this node.
The children are stored in a linked list.
func (*QSGNode) InsertChildNodeAfter ¶
func (this *QSGNode) InsertChildNodeAfter(node QSGNode_ITF, after QSGNode_ITF)
Inserts node to this node's list of children after the node specified with after.
Ordering of nodes is important as geometry nodes will be rendered in the order they are added to the scene graph.
func (*QSGNode) InsertChildNodeBefore ¶
func (this *QSGNode) InsertChildNodeBefore(node QSGNode_ITF, before QSGNode_ITF)
Inserts node to this node's list of children before the node specified with before.
Ordering of nodes is important as geometry nodes will be rendered in the order they are added to the scene graph.
func (*QSGNode) IsSubtreeBlocked ¶
Returns whether this node and its subtree is available for use.
Blocked subtrees will not get their dirty states updated and they will not be rendered.
The QSGOpacityNode will return a blocked subtree when accumulated opacity is 0, for instance.
func (*QSGNode) LastChild ¶
Returns the last child of this node.
The children are stored as a linked list.
func (*QSGNode) NextSibling ¶
Returns the node after this in the parent's list of children.
The children are stored as a linked list.
func (*QSGNode) PrependChildNode ¶
func (this *QSGNode) PrependChildNode(node QSGNode_ITF)
Prepends node to this node's the list of children.
Ordering of nodes is important as geometry nodes will be rendered in the order they are added to the scene graph.
func (*QSGNode) Preprocess ¶
func (this *QSGNode) Preprocess()
Override this function to do processing on the node before it is rendered.
Preprocessing needs to be explicitly enabled by setting the flag QSGNode::UsePreprocess. The flag needs to be set before the node is added to the scene graph and will cause the preprocess() function to be called for every frame the node is rendered.
Warning: Beware of deleting nodes while they are being preprocessed. It is possible, with a small performance hit, to delete a single node during its own preprocess call. Deleting a subtree which has nodes that also use preprocessing may result in a segmentation fault. This is done for performance reasons.
func (*QSGNode) PreviousSibling ¶
Returns the node before this in the parent's list of children.
The children are stored as a linked list.
func (*QSGNode) QSGNode_PTR ¶
func (*QSGNode) RemoveAllChildNodes ¶
func (this *QSGNode) RemoveAllChildNodes()
Removes all child nodes from this node's list of children.
func (*QSGNode) RemoveChildNode ¶
func (this *QSGNode) RemoveChildNode(node QSGNode_ITF)
Removes node from this node's list of children.
func (*QSGNode) ReparentChildNodesTo ¶
func (this *QSGNode) ReparentChildNodesTo(newParent QSGNode_ITF)
func (*QSGNode) SetFlag ¶
Sets the flag f on this node if enabled is true; otherwise clears the flag.
See also flags().
func (*QSGNode) SetFlag__ ¶
Sets the flag f on this node if enabled is true; otherwise clears the flag.
See also flags().
func (*QSGNode) SetFlags ¶
Sets the flags f on this node if enabled is true; otherwise clears the flags.
See also flags().
func (*QSGNode) SetFlags__ ¶
Sets the flags f on this node if enabled is true; otherwise clears the flags.
See also flags().
type QSGNodeVisitor ¶
func NewQSGNodeVisitorFromPointer ¶
func NewQSGNodeVisitorFromPointer(cthis unsafe.Pointer) *QSGNodeVisitor
func (*QSGNodeVisitor) EnterClipNode ¶
func (this *QSGNodeVisitor) EnterClipNode(arg0 QSGClipNode_ITF)
func (*QSGNodeVisitor) EnterGeometryNode ¶
func (this *QSGNodeVisitor) EnterGeometryNode(arg0 QSGGeometryNode_ITF)
func (*QSGNodeVisitor) EnterOpacityNode ¶
func (this *QSGNodeVisitor) EnterOpacityNode(arg0 QSGOpacityNode_ITF)
func (*QSGNodeVisitor) EnterTransformNode ¶
func (this *QSGNodeVisitor) EnterTransformNode(arg0 QSGTransformNode_ITF)
func (*QSGNodeVisitor) GetCthis ¶
func (this *QSGNodeVisitor) GetCthis() unsafe.Pointer
func (*QSGNodeVisitor) InheritEnterClipNode ¶
func (this *QSGNodeVisitor) InheritEnterClipNode(f func(arg0 *QSGClipNode))
void enterClipNode(class QSGClipNode *)
func (*QSGNodeVisitor) InheritEnterGeometryNode ¶
func (this *QSGNodeVisitor) InheritEnterGeometryNode(f func(arg0 *QSGGeometryNode))
void enterGeometryNode(class QSGGeometryNode *)
func (*QSGNodeVisitor) InheritEnterOpacityNode ¶
func (this *QSGNodeVisitor) InheritEnterOpacityNode(f func(arg0 *QSGOpacityNode))
void enterOpacityNode(class QSGOpacityNode *)
func (*QSGNodeVisitor) InheritEnterTransformNode ¶
func (this *QSGNodeVisitor) InheritEnterTransformNode(f func(arg0 *QSGTransformNode))
void enterTransformNode(class QSGTransformNode *)
func (*QSGNodeVisitor) InheritLeaveClipNode ¶
func (this *QSGNodeVisitor) InheritLeaveClipNode(f func(arg0 *QSGClipNode))
void leaveClipNode(class QSGClipNode *)
func (*QSGNodeVisitor) InheritLeaveGeometryNode ¶
func (this *QSGNodeVisitor) InheritLeaveGeometryNode(f func(arg0 *QSGGeometryNode))
void leaveGeometryNode(class QSGGeometryNode *)
func (*QSGNodeVisitor) InheritLeaveOpacityNode ¶
func (this *QSGNodeVisitor) InheritLeaveOpacityNode(f func(arg0 *QSGOpacityNode))
void leaveOpacityNode(class QSGOpacityNode *)
func (*QSGNodeVisitor) InheritLeaveTransformNode ¶
func (this *QSGNodeVisitor) InheritLeaveTransformNode(f func(arg0 *QSGTransformNode))
void leaveTransformNode(class QSGTransformNode *)
func (*QSGNodeVisitor) InheritVisitChildren ¶
func (this *QSGNodeVisitor) InheritVisitChildren(f func(n *QSGNode))
void visitChildren(class QSGNode *)
func (*QSGNodeVisitor) InheritVisitNode ¶
func (this *QSGNodeVisitor) InheritVisitNode(f func(n *QSGNode))
void visitNode(class QSGNode *)
func (*QSGNodeVisitor) LeaveClipNode ¶
func (this *QSGNodeVisitor) LeaveClipNode(arg0 QSGClipNode_ITF)
func (*QSGNodeVisitor) LeaveGeometryNode ¶
func (this *QSGNodeVisitor) LeaveGeometryNode(arg0 QSGGeometryNode_ITF)
func (*QSGNodeVisitor) LeaveOpacityNode ¶
func (this *QSGNodeVisitor) LeaveOpacityNode(arg0 QSGOpacityNode_ITF)
func (*QSGNodeVisitor) LeaveTransformNode ¶
func (this *QSGNodeVisitor) LeaveTransformNode(arg0 QSGTransformNode_ITF)
func (*QSGNodeVisitor) NewFromPointer ¶
func (*QSGNodeVisitor) NewFromPointer(cthis unsafe.Pointer) *QSGNodeVisitor
func (*QSGNodeVisitor) QSGNodeVisitor_PTR ¶
func (ptr *QSGNodeVisitor) QSGNodeVisitor_PTR() *QSGNodeVisitor
func (*QSGNodeVisitor) SetCthis ¶
func (this *QSGNodeVisitor) SetCthis(cthis unsafe.Pointer)
func (*QSGNodeVisitor) VisitChildren ¶
func (this *QSGNodeVisitor) VisitChildren(n QSGNode_ITF)
func (*QSGNodeVisitor) VisitNode ¶
func (this *QSGNodeVisitor) VisitNode(n QSGNode_ITF)
type QSGNodeVisitor_ITF ¶
type QSGNodeVisitor_ITF interface {
QSGNodeVisitor_PTR() *QSGNodeVisitor
}
type QSGNode_ITF ¶
type QSGNode_ITF interface {
QSGNode_PTR() *QSGNode
}
type QSGNode__DirtyStateBit ¶
type QSGNode__DirtyStateBit = int
const QSGNode__DirtyForceUpdate QSGNode__DirtyStateBit = 32768
const QSGNode__DirtyGeometry QSGNode__DirtyStateBit = 4096
const QSGNode__DirtyMaterial QSGNode__DirtyStateBit = 8192
const QSGNode__DirtyMatrix QSGNode__DirtyStateBit = 256
const QSGNode__DirtyNodeAdded QSGNode__DirtyStateBit = 1024
const QSGNode__DirtyNodeRemoved QSGNode__DirtyStateBit = 2048
const QSGNode__DirtyOpacity QSGNode__DirtyStateBit = 16384
const QSGNode__DirtyPropagationMask QSGNode__DirtyStateBit = 50432
const QSGNode__DirtySubtreeBlocked QSGNode__DirtyStateBit = 128
const QSGNode__DirtyUsePreprocess QSGNode__DirtyStateBit = 2
type QSGNode__Flag ¶
type QSGNode__Flag = int
const QSGNode__IsVisitableNode QSGNode__Flag = 16777216
const QSGNode__OwnedByParent QSGNode__Flag = 1
const QSGNode__OwnsGeometry QSGNode__Flag = 65536
const QSGNode__OwnsMaterial QSGNode__Flag = 131072
const QSGNode__OwnsOpaqueMaterial QSGNode__Flag = 262144
const QSGNode__UsePreprocess QSGNode__Flag = 2
type QSGNode__NodeType ¶
type QSGNode__NodeType = int
Can be used to figure out the type of node.
See also type().
const QSGNode__BasicNodeType QSGNode__NodeType = 0
The type of QSGNode
const QSGNode__ClipNodeType QSGNode__NodeType = 3
The type of QSGClipNode
const QSGNode__GeometryNodeType QSGNode__NodeType = 1
The type of QSGGeometryNode
const QSGNode__OpacityNodeType QSGNode__NodeType = 4
The type of QSGOpacityNode
const QSGNode__RenderNodeType QSGNode__NodeType = 6
The type of QSGRenderNode
const QSGNode__RootNodeType QSGNode__NodeType = 5
const QSGNode__TransformNodeType QSGNode__NodeType = 2
The type of QSGTransformNode
type QSGOpacityNode ¶
type QSGOpacityNode struct {
*QSGNode
}
func NewQSGOpacityNode ¶
func NewQSGOpacityNode() *QSGOpacityNode
func NewQSGOpacityNodeFromPointer ¶
func NewQSGOpacityNodeFromPointer(cthis unsafe.Pointer) *QSGOpacityNode
func (*QSGOpacityNode) CombinedOpacity ¶
func (this *QSGOpacityNode) CombinedOpacity() float64
func (*QSGOpacityNode) GetCthis ¶
func (this *QSGOpacityNode) GetCthis() unsafe.Pointer
func (*QSGOpacityNode) IsSubtreeBlocked ¶
func (this *QSGOpacityNode) IsSubtreeBlocked() bool
Returns whether this node and its subtree is available for use.
Blocked subtrees will not get their dirty states updated and they will not be rendered.
The QSGOpacityNode will return a blocked subtree when accumulated opacity is 0, for instance.
func (*QSGOpacityNode) NewFromPointer ¶
func (*QSGOpacityNode) NewFromPointer(cthis unsafe.Pointer) *QSGOpacityNode
func (*QSGOpacityNode) Opacity ¶
func (this *QSGOpacityNode) Opacity() float64
func (*QSGOpacityNode) QSGOpacityNode_PTR ¶
func (ptr *QSGOpacityNode) QSGOpacityNode_PTR() *QSGOpacityNode
func (*QSGOpacityNode) SetCombinedOpacity ¶
func (this *QSGOpacityNode) SetCombinedOpacity(opacity float64)
func (*QSGOpacityNode) SetCthis ¶
func (this *QSGOpacityNode) SetCthis(cthis unsafe.Pointer)
func (*QSGOpacityNode) SetOpacity ¶
func (this *QSGOpacityNode) SetOpacity(opacity float64)
type QSGOpacityNode_ITF ¶
type QSGOpacityNode_ITF interface { QSGNode_ITF QSGOpacityNode_PTR() *QSGOpacityNode }
type QSGOpaqueTextureMaterial ¶
type QSGOpaqueTextureMaterial struct {
*QSGMaterial
}
func NewQSGOpaqueTextureMaterial ¶
func NewQSGOpaqueTextureMaterial() *QSGOpaqueTextureMaterial
func NewQSGOpaqueTextureMaterialFromPointer ¶
func NewQSGOpaqueTextureMaterialFromPointer(cthis unsafe.Pointer) *QSGOpaqueTextureMaterial
func (*QSGOpaqueTextureMaterial) AnisotropyLevel ¶
func (this *QSGOpaqueTextureMaterial) AnisotropyLevel() int
func (*QSGOpaqueTextureMaterial) Compare ¶
func (this *QSGOpaqueTextureMaterial) Compare(other QSGMaterial_ITF) int
func (*QSGOpaqueTextureMaterial) CreateShader ¶
func (this *QSGOpaqueTextureMaterial) CreateShader() *QSGMaterialShader
func (*QSGOpaqueTextureMaterial) Filtering ¶
func (this *QSGOpaqueTextureMaterial) Filtering() int
func (*QSGOpaqueTextureMaterial) GetCthis ¶
func (this *QSGOpaqueTextureMaterial) GetCthis() unsafe.Pointer
func (*QSGOpaqueTextureMaterial) HorizontalWrapMode ¶
func (this *QSGOpaqueTextureMaterial) HorizontalWrapMode() int
func (*QSGOpaqueTextureMaterial) MipmapFiltering ¶
func (this *QSGOpaqueTextureMaterial) MipmapFiltering() int
func (*QSGOpaqueTextureMaterial) NewFromPointer ¶
func (*QSGOpaqueTextureMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGOpaqueTextureMaterial
func (*QSGOpaqueTextureMaterial) QSGOpaqueTextureMaterial_PTR ¶
func (ptr *QSGOpaqueTextureMaterial) QSGOpaqueTextureMaterial_PTR() *QSGOpaqueTextureMaterial
func (*QSGOpaqueTextureMaterial) SetAnisotropyLevel ¶
func (this *QSGOpaqueTextureMaterial) SetAnisotropyLevel(level int)
func (*QSGOpaqueTextureMaterial) SetCthis ¶
func (this *QSGOpaqueTextureMaterial) SetCthis(cthis unsafe.Pointer)
func (*QSGOpaqueTextureMaterial) SetFiltering ¶
func (this *QSGOpaqueTextureMaterial) SetFiltering(filteringType int)
func (*QSGOpaqueTextureMaterial) SetHorizontalWrapMode ¶
func (this *QSGOpaqueTextureMaterial) SetHorizontalWrapMode(mode int)
func (*QSGOpaqueTextureMaterial) SetMipmapFiltering ¶
func (this *QSGOpaqueTextureMaterial) SetMipmapFiltering(filteringType int)
func (*QSGOpaqueTextureMaterial) SetTexture ¶
func (this *QSGOpaqueTextureMaterial) SetTexture(texture QSGTexture_ITF)
func (*QSGOpaqueTextureMaterial) SetVerticalWrapMode ¶
func (this *QSGOpaqueTextureMaterial) SetVerticalWrapMode(mode int)
func (*QSGOpaqueTextureMaterial) Texture ¶
func (this *QSGOpaqueTextureMaterial) Texture() *QSGTexture
func (*QSGOpaqueTextureMaterial) Type ¶
func (this *QSGOpaqueTextureMaterial) Type() *QSGMaterialType
func (*QSGOpaqueTextureMaterial) VerticalWrapMode ¶
func (this *QSGOpaqueTextureMaterial) VerticalWrapMode() int
type QSGOpaqueTextureMaterial_ITF ¶
type QSGOpaqueTextureMaterial_ITF interface { QSGMaterial_ITF QSGOpaqueTextureMaterial_PTR() *QSGOpaqueTextureMaterial }
type QSGRectangleNode ¶
type QSGRectangleNode struct {
*QSGGeometryNode
}
func NewQSGRectangleNodeFromPointer ¶
func NewQSGRectangleNodeFromPointer(cthis unsafe.Pointer) *QSGRectangleNode
func (*QSGRectangleNode) Color ¶
func (this *QSGRectangleNode) Color() *qtgui.QColor
Returns the color of this rectangle.
See also setColor().
func (*QSGRectangleNode) GetCthis ¶
func (this *QSGRectangleNode) GetCthis() unsafe.Pointer
func (*QSGRectangleNode) NewFromPointer ¶
func (*QSGRectangleNode) NewFromPointer(cthis unsafe.Pointer) *QSGRectangleNode
func (*QSGRectangleNode) QSGRectangleNode_PTR ¶
func (ptr *QSGRectangleNode) QSGRectangleNode_PTR() *QSGRectangleNode
func (*QSGRectangleNode) Rect ¶
func (this *QSGRectangleNode) Rect() *qtcore.QRectF
Returns the rectangle that this rect node covers.
See also setRect().
func (*QSGRectangleNode) SetColor ¶
func (this *QSGRectangleNode) SetColor(color qtgui.QColor_ITF)
Sets the color of this rectangle to color. The default color will be white.
See also color().
func (*QSGRectangleNode) SetCthis ¶
func (this *QSGRectangleNode) SetCthis(cthis unsafe.Pointer)
func (*QSGRectangleNode) SetRect ¶
func (this *QSGRectangleNode) SetRect(rect qtcore.QRectF_ITF)
Sets the rectangle of this rect node to rect.
See also rect().
type QSGRectangleNode_ITF ¶
type QSGRectangleNode_ITF interface { QSGGeometryNode_ITF QSGRectangleNode_PTR() *QSGRectangleNode }
type QSGRenderNode ¶
type QSGRenderNode struct {
*QSGNode
}
func NewQSGRenderNode ¶
func NewQSGRenderNode() *QSGRenderNode
Default constructs an instance of QSGRenderNode.
func NewQSGRenderNodeFromPointer ¶
func NewQSGRenderNodeFromPointer(cthis unsafe.Pointer) *QSGRenderNode
func (*QSGRenderNode) ChangedStates ¶
func (this *QSGRenderNode) ChangedStates() int
This function should return a mask where each bit represents graphics states changed by the render() function:
DepthState - depth write mask, depth test enabled, depth comparison function StencilState - stencil write masks, stencil test enabled, stencil operations, stencil comparison functions ScissorState - scissor enabled, scissor test enabled ColorState - clear color, color write mask BlendState - blend enabled, blend function CullState - front face, cull face enabled ViewportState - viewport RenderTargetState - render target
The function is called by the renderer so it can reset the states after rendering this node. This makes the implementation of render() simpler since it does not have to query and restore these states.
The default implementation returns 0, meaning no relevant state was changed in render().
With APIs other than OpenGL the relevant states are only those that are set via the command list (for example, OMSetRenderTargets, RSSetViewports, RSSetScissorRects, OMSetBlendFactor, OMSetStencilRef in case of D3D12), and only when such commands were added to the scenegraph's command list queried via the QSGRendererInterface::CommandList resource enum. States set in pipeline state objects do not need to be reported here. Similarly, draw call related settings (root signature, descriptor heaps, etc.) are always set again by the scenegraph so render() can freely change them.
The software backend exposes its QPainter and saves and restores before and after invoking render(). Therefore reporting any changed states from here is not necessary.
Note: This function may be called before render().
func (*QSGRenderNode) ClipList ¶
func (this *QSGRenderNode) ClipList() *QSGClipNode
Returns the current clip list.
func (*QSGRenderNode) Flags ¶
func (this *QSGRenderNode) Flags() int
Returns flags describing the behavior of this render node.
The default implementation returns 0.
See also RenderingFlag and rect().
func (*QSGRenderNode) GetCthis ¶
func (this *QSGRenderNode) GetCthis() unsafe.Pointer
func (*QSGRenderNode) InheritedOpacity ¶
func (this *QSGRenderNode) InheritedOpacity() float64
Returns the current effective opacity.
func (*QSGRenderNode) Matrix ¶
func (this *QSGRenderNode) Matrix() *qtgui.QMatrix4x4
Returns pointer to the current model-view matrix.
func (*QSGRenderNode) NewFromPointer ¶
func (*QSGRenderNode) NewFromPointer(cthis unsafe.Pointer) *QSGRenderNode
func (*QSGRenderNode) QSGRenderNode_PTR ¶
func (ptr *QSGRenderNode) QSGRenderNode_PTR() *QSGRenderNode
func (*QSGRenderNode) Rect ¶
func (this *QSGRenderNode) Rect() *qtcore.QRectF
Returns the bounding rectangle in item coordinates for the area render() touches. The value is only in use when flags() includes BoundedRectRendering, ignored otherwise.
Reporting the rectangle in combination with BoundedRectRendering is particularly important with the software backend because otherwise having a rendernode in the scene would trigger fullscreen updates, skipping all partial update optimizations.
For rendernodes covering the entire area of a corresponding QQuickItem the return value will be (0, 0, item->width(), item->height()).
Note: Nodes are also free to render outside the boundaries specified by the item's width and height, since the scenegraph nodes are not bounded by the QQuickItem geometry, as long as this is reported correctly from this function.
See also flags().
func (*QSGRenderNode) ReleaseResources ¶
func (this *QSGRenderNode) ReleaseResources()
This function is called when all custom graphics resources allocated by this node have to be freed immediately. In case the node does not directly allocate graphics resources (buffers, textures, render targets, fences, etc.) through the graphics API that is in use, there is nothing to do here.
Failing to release all custom resources can lead to incorrect behavior in graphics device loss scenarios on some systems since subsequent reinitialization of the graphics system may fail.
Note: Some scenegraph backends may choose not to call this function. Therefore it is expected that QSGRenderNode implementations perform cleanup both in their destructor and in releaseResources().
Unlike with the destructor, it is expected that render() can reinitialize all resources it needs when called after a call to releaseResources().
With OpenGL, the scenegraph's OpenGL context will be current both when calling the destructor and this function.
func (*QSGRenderNode) SetCthis ¶
func (this *QSGRenderNode) SetCthis(cthis unsafe.Pointer)
type QSGRenderNode_ITF ¶
type QSGRenderNode_ITF interface { QSGNode_ITF QSGRenderNode_PTR() *QSGRenderNode }
type QSGRenderNode__RenderingFlag ¶
type QSGRenderNode__RenderingFlag = int
const QSGRenderNode__BoundedRectRendering QSGRenderNode__RenderingFlag = 1
const QSGRenderNode__DepthAwareRendering QSGRenderNode__RenderingFlag = 2
const QSGRenderNode__OpaqueRendering QSGRenderNode__RenderingFlag = 4
type QSGRenderNode__StateFlag ¶
type QSGRenderNode__StateFlag = int
const QSGRenderNode__BlendState QSGRenderNode__StateFlag = 16
const QSGRenderNode__ColorState QSGRenderNode__StateFlag = 8
const QSGRenderNode__CullState QSGRenderNode__StateFlag = 32
const QSGRenderNode__DepthState QSGRenderNode__StateFlag = 1
const QSGRenderNode__RenderTargetState QSGRenderNode__StateFlag = 128
const QSGRenderNode__ScissorState QSGRenderNode__StateFlag = 4
const QSGRenderNode__StencilState QSGRenderNode__StateFlag = 2
const QSGRenderNode__ViewportState QSGRenderNode__StateFlag = 64
type QSGRendererInterface ¶
func NewQSGRendererInterfaceFromPointer ¶
func NewQSGRendererInterfaceFromPointer(cthis unsafe.Pointer) *QSGRendererInterface
func (*QSGRendererInterface) GetCthis ¶
func (this *QSGRendererInterface) GetCthis() unsafe.Pointer
func (*QSGRendererInterface) GetResource ¶
func (this *QSGRendererInterface) GetResource(window QQuickWindow_ITF, resource int) unsafe.Pointer
Queries a graphics resource in window. Returns null when the resource in question is not supported or not available.
When successful, the returned pointer is either a direct pointer to an interface (and can be cast, for example, to ID3D12Device *) or a pointer to an opaque handle that needs to be dereferenced first (for example, VkDevice dev = *static_cast<VkDevice *>(result)). The latter is necessary since such handles may have sizes different from a pointer.
Note: The ownership of the returned pointer is never transferred to the caller.
Note: This function must only be called on the render thread.
func (*QSGRendererInterface) GetResource_1 ¶
func (this *QSGRendererInterface) GetResource_1(window QQuickWindow_ITF, resource string) unsafe.Pointer
Queries a graphics resource in window. Returns null when the resource in question is not supported or not available.
When successful, the returned pointer is either a direct pointer to an interface (and can be cast, for example, to ID3D12Device *) or a pointer to an opaque handle that needs to be dereferenced first (for example, VkDevice dev = *static_cast<VkDevice *>(result)). The latter is necessary since such handles may have sizes different from a pointer.
Note: The ownership of the returned pointer is never transferred to the caller.
Note: This function must only be called on the render thread.
func (*QSGRendererInterface) GraphicsApi ¶
func (this *QSGRendererInterface) GraphicsApi() int
Returns the graphics API that is in use by the Qt Quick scenegraph.
Note: This function can be called on any thread.
func (*QSGRendererInterface) NewFromPointer ¶
func (*QSGRendererInterface) NewFromPointer(cthis unsafe.Pointer) *QSGRendererInterface
func (*QSGRendererInterface) QSGRendererInterface_PTR ¶
func (ptr *QSGRendererInterface) QSGRendererInterface_PTR() *QSGRendererInterface
func (*QSGRendererInterface) SetCthis ¶
func (this *QSGRendererInterface) SetCthis(cthis unsafe.Pointer)
func (*QSGRendererInterface) ShaderCompilationType ¶
func (this *QSGRendererInterface) ShaderCompilationType() int
Returns a bitmask of the shader compilation approaches supported by the Qt Quick backend the application is using.
Note: This function can be called on any thread.
See also QtQuick::GraphicsInfo.
func (*QSGRendererInterface) ShaderSourceType ¶
func (this *QSGRendererInterface) ShaderSourceType() int
Returns a bitmask of the supported ways of providing shader sources in ShaderEffect items.
Note: This function can be called on any thread.
See also QtQuick::GraphicsInfo.
func (*QSGRendererInterface) ShaderType ¶
func (this *QSGRendererInterface) ShaderType() int
Returns the shading language supported by the Qt Quick backend the application is using.
Note: This function can be called on any thread.
See also QtQuick::GraphicsInfo.
type QSGRendererInterface_ITF ¶
type QSGRendererInterface_ITF interface {
QSGRendererInterface_PTR() *QSGRendererInterface
}
type QSGRendererInterface__GraphicsApi ¶
type QSGRendererInterface__GraphicsApi = int
const QSGRendererInterface__Direct3D12 QSGRendererInterface__GraphicsApi = 3
const QSGRendererInterface__OpenGL QSGRendererInterface__GraphicsApi = 2
const QSGRendererInterface__OpenVG QSGRendererInterface__GraphicsApi = 4
OpenVG via EGL
const QSGRendererInterface__Software QSGRendererInterface__GraphicsApi = 1
const QSGRendererInterface__Unknown QSGRendererInterface__GraphicsApi = 0
An unknown graphics API is in use
type QSGRendererInterface__Resource ¶
type QSGRendererInterface__Resource = int
const QSGRendererInterface__CommandListResource QSGRendererInterface__Resource = 2
The command list or buffer used by the scenegraph, when applicable.
const QSGRendererInterface__CommandQueueResource QSGRendererInterface__Resource = 1
The graphics command queue used by the scenegraph, when applicable.
const QSGRendererInterface__DeviceResource QSGRendererInterface__Resource = 0
The graphics device, when applicable.
const QSGRendererInterface__PainterResource QSGRendererInterface__Resource = 3
The active QPainter used by the scenegraph, when running with the software backend.
type QSGRendererInterface__ShaderCompilationType ¶
type QSGRendererInterface__ShaderCompilationType = int
const QSGRendererInterface__OfflineCompilation QSGRendererInterface__ShaderCompilationType = 2
const QSGRendererInterface__RuntimeCompilation QSGRendererInterface__ShaderCompilationType = 1
type QSGRendererInterface__ShaderSourceType ¶
type QSGRendererInterface__ShaderSourceType = int
const QSGRendererInterface__ShaderByteCode QSGRendererInterface__ShaderSourceType = 4
const QSGRendererInterface__ShaderSourceFile QSGRendererInterface__ShaderSourceType = 2
const QSGRendererInterface__ShaderSourceString QSGRendererInterface__ShaderSourceType = 1
type QSGRendererInterface__ShaderType ¶
type QSGRendererInterface__ShaderType = int
const QSGRendererInterface__GLSL QSGRendererInterface__ShaderType = 1
GLSL or GLSL ES
const QSGRendererInterface__HLSL QSGRendererInterface__ShaderType = 2
HLSL
const QSGRendererInterface__UnknownShadingLanguage QSGRendererInterface__ShaderType = 0
Not yet known due to no window and scenegraph associated
type QSGRootNode ¶
type QSGRootNode struct {
*QSGNode
}
func NewQSGRootNode ¶
func NewQSGRootNode() *QSGRootNode
func NewQSGRootNodeFromPointer ¶
func NewQSGRootNodeFromPointer(cthis unsafe.Pointer) *QSGRootNode
func (*QSGRootNode) GetCthis ¶
func (this *QSGRootNode) GetCthis() unsafe.Pointer
func (*QSGRootNode) NewFromPointer ¶
func (*QSGRootNode) NewFromPointer(cthis unsafe.Pointer) *QSGRootNode
func (*QSGRootNode) QSGRootNode_PTR ¶
func (ptr *QSGRootNode) QSGRootNode_PTR() *QSGRootNode
func (*QSGRootNode) SetCthis ¶
func (this *QSGRootNode) SetCthis(cthis unsafe.Pointer)
type QSGRootNode_ITF ¶
type QSGRootNode_ITF interface { QSGNode_ITF QSGRootNode_PTR() *QSGRootNode }
type QSGSimpleRectNode ¶
type QSGSimpleRectNode struct {
*QSGGeometryNode
}
func NewQSGSimpleRectNode ¶
func NewQSGSimpleRectNode(rect qtcore.QRectF_ITF, color qtgui.QColor_ITF) *QSGSimpleRectNode
Constructs a QSGSimpleRectNode instance which is spanning rect with the color color.
func NewQSGSimpleRectNodeFromPointer ¶
func NewQSGSimpleRectNodeFromPointer(cthis unsafe.Pointer) *QSGSimpleRectNode
func NewQSGSimpleRectNode_1 ¶
func NewQSGSimpleRectNode_1() *QSGSimpleRectNode
Constructs a QSGSimpleRectNode instance which is spanning rect with the color color.
func (*QSGSimpleRectNode) Color ¶
func (this *QSGSimpleRectNode) Color() *qtgui.QColor
Returns the color of this rectangle.
See also setColor().
func (*QSGSimpleRectNode) GetCthis ¶
func (this *QSGSimpleRectNode) GetCthis() unsafe.Pointer
func (*QSGSimpleRectNode) NewFromPointer ¶
func (*QSGSimpleRectNode) NewFromPointer(cthis unsafe.Pointer) *QSGSimpleRectNode
func (*QSGSimpleRectNode) QSGSimpleRectNode_PTR ¶
func (ptr *QSGSimpleRectNode) QSGSimpleRectNode_PTR() *QSGSimpleRectNode
func (*QSGSimpleRectNode) Rect ¶
func (this *QSGSimpleRectNode) Rect() *qtcore.QRectF
Returns the rectangle that this rect node covers.
See also setRect().
func (*QSGSimpleRectNode) SetColor ¶
func (this *QSGSimpleRectNode) SetColor(color qtgui.QColor_ITF)
Sets the color of this rectangle to color. The default color will be white.
See also color().
func (*QSGSimpleRectNode) SetCthis ¶
func (this *QSGSimpleRectNode) SetCthis(cthis unsafe.Pointer)
func (*QSGSimpleRectNode) SetRect ¶
func (this *QSGSimpleRectNode) SetRect(rect qtcore.QRectF_ITF)
Sets the rectangle of this rect node to rect.
See also rect().
type QSGSimpleRectNode_ITF ¶
type QSGSimpleRectNode_ITF interface { QSGGeometryNode_ITF QSGSimpleRectNode_PTR() *QSGSimpleRectNode }
type QSGSimpleTextureNode ¶
type QSGSimpleTextureNode struct {
*QSGGeometryNode
}
func NewQSGSimpleTextureNode ¶
func NewQSGSimpleTextureNode() *QSGSimpleTextureNode
Constructs a new simple texture node
func NewQSGSimpleTextureNodeFromPointer ¶
func NewQSGSimpleTextureNodeFromPointer(cthis unsafe.Pointer) *QSGSimpleTextureNode
func (*QSGSimpleTextureNode) Filtering ¶
func (this *QSGSimpleTextureNode) Filtering() int
Returns the filtering currently set on this texture node
See also setFiltering().
func (*QSGSimpleTextureNode) GetCthis ¶
func (this *QSGSimpleTextureNode) GetCthis() unsafe.Pointer
func (*QSGSimpleTextureNode) NewFromPointer ¶
func (*QSGSimpleTextureNode) NewFromPointer(cthis unsafe.Pointer) *QSGSimpleTextureNode
func (*QSGSimpleTextureNode) OwnsTexture ¶
func (this *QSGSimpleTextureNode) OwnsTexture() bool
Returns true if the node takes ownership of the texture; otherwise returns false.
This function was introduced in Qt 5.4.
See also setOwnsTexture().
func (*QSGSimpleTextureNode) QSGSimpleTextureNode_PTR ¶
func (ptr *QSGSimpleTextureNode) QSGSimpleTextureNode_PTR() *QSGSimpleTextureNode
func (*QSGSimpleTextureNode) Rect ¶
func (this *QSGSimpleTextureNode) Rect() *qtcore.QRectF
Returns the target rect of this texture node.
See also setRect().
func (*QSGSimpleTextureNode) SetCthis ¶
func (this *QSGSimpleTextureNode) SetCthis(cthis unsafe.Pointer)
func (*QSGSimpleTextureNode) SetFiltering ¶
func (this *QSGSimpleTextureNode) SetFiltering(filtering int)
Sets the filtering to be used for this texture node to filtering.
For smooth scaling, use QSGTexture::Linear; for normal scaling, use QSGTexture::Nearest.
See also filtering().
func (*QSGSimpleTextureNode) SetOwnsTexture ¶
func (this *QSGSimpleTextureNode) SetOwnsTexture(owns bool)
Sets whether the node takes ownership of the texture to owns.
By default, the node does not take ownership of the texture.
This function was introduced in Qt 5.4.
See also ownsTexture() and setTexture().
func (*QSGSimpleTextureNode) SetRect ¶
func (this *QSGSimpleTextureNode) SetRect(rect qtcore.QRectF_ITF)
Sets the target rect of this texture node to r.
See also rect().
func (*QSGSimpleTextureNode) SetRect_1 ¶
func (this *QSGSimpleTextureNode) SetRect_1(x float64, y float64, w float64, h float64)
Sets the target rect of this texture node to r.
See also rect().
func (*QSGSimpleTextureNode) SetSourceRect ¶
func (this *QSGSimpleTextureNode) SetSourceRect(r qtcore.QRectF_ITF)
Sets the source rect of this texture node to r.
This function was introduced in Qt 5.5.
See also sourceRect().
func (*QSGSimpleTextureNode) SetSourceRect_1 ¶
func (this *QSGSimpleTextureNode) SetSourceRect_1(x float64, y float64, w float64, h float64)
Sets the source rect of this texture node to r.
This function was introduced in Qt 5.5.
See also sourceRect().
func (*QSGSimpleTextureNode) SetTexture ¶
func (this *QSGSimpleTextureNode) SetTexture(texture QSGTexture_ITF)
Sets the texture of this texture node to texture.
Use setOwnsTexture() to set whether the node should take ownership of the texture. By default, the node does not take ownership.
Warning: A texture node must have a texture before being added to the scenegraph to be rendered.
See also texture().
func (*QSGSimpleTextureNode) SetTextureCoordinatesTransform ¶
func (this *QSGSimpleTextureNode) SetTextureCoordinatesTransform(mode int)
Sets the method used to generate texture coordinates to mode. This can be used to obtain correct orientation of the texture. This is commonly needed when using a third party OpenGL library to render to texture as OpenGL has an inverted y-axis relative to Qt Quick.
See also textureCoordinatesTransform().
func (*QSGSimpleTextureNode) SourceRect ¶
func (this *QSGSimpleTextureNode) SourceRect() *qtcore.QRectF
Returns the source rect of this texture node.
This function was introduced in Qt 5.5.
See also setSourceRect().
func (*QSGSimpleTextureNode) Texture ¶
func (this *QSGSimpleTextureNode) Texture() *QSGTexture
Returns the texture for this texture node
See also setTexture().
func (*QSGSimpleTextureNode) TextureCoordinatesTransform ¶
func (this *QSGSimpleTextureNode) TextureCoordinatesTransform() int
Returns the mode used to generate texture coordinates for this node.
See also setTextureCoordinatesTransform().
type QSGSimpleTextureNode_ITF ¶
type QSGSimpleTextureNode_ITF interface { QSGGeometryNode_ITF QSGSimpleTextureNode_PTR() *QSGSimpleTextureNode }
type QSGSimpleTextureNode__TextureCoordinatesTransformFlag ¶
type QSGSimpleTextureNode__TextureCoordinatesTransformFlag = int
const QSGSimpleTextureNode__MirrorHorizontally QSGSimpleTextureNode__TextureCoordinatesTransformFlag = 1
const QSGSimpleTextureNode__MirrorVertically QSGSimpleTextureNode__TextureCoordinatesTransformFlag = 2
const QSGSimpleTextureNode__NoTransform QSGSimpleTextureNode__TextureCoordinatesTransformFlag = 0
type QSGTexture ¶
func NewQSGTextureFromPointer ¶
func NewQSGTextureFromPointer(cthis unsafe.Pointer) *QSGTexture
func (*QSGTexture) AnisotropyLevel ¶
func (this *QSGTexture) AnisotropyLevel() int
Returns the anisotropy level in use for filtering this texture.
This function was introduced in Qt 5.9.
See also setAnisotropyLevel().
func (*QSGTexture) Bind ¶
func (this *QSGTexture) Bind()
Call this function to bind this texture to the current texture target.
Binding a texture may also include uploading the texture data from a previously set QImage.
Warning: This function can only be called from the rendering thread.
func (*QSGTexture) ConvertToNormalizedSourceRect ¶
func (this *QSGTexture) ConvertToNormalizedSourceRect(rect qtcore.QRectF_ITF) *qtcore.QRectF
Returns rect converted to normalized coordinates.
See also normalizedTextureSubRect().
func (*QSGTexture) Filtering ¶
func (this *QSGTexture) Filtering() int
Returns the sampling mode to be used for this texture.
See also setFiltering().
func (*QSGTexture) GetCthis ¶
func (this *QSGTexture) GetCthis() unsafe.Pointer
func (*QSGTexture) HasAlphaChannel ¶
func (this *QSGTexture) HasAlphaChannel() bool
Returns true if the texture data contains an alpha channel.
func (*QSGTexture) HasMipmaps ¶
func (this *QSGTexture) HasMipmaps() bool
Returns true if the texture data contains mipmap levels.
func (*QSGTexture) HorizontalWrapMode ¶
func (this *QSGTexture) HorizontalWrapMode() int
Returns the horizontal wrap mode to be used for this texture.
See also setHorizontalWrapMode().
func (*QSGTexture) IsAtlasTexture ¶
func (this *QSGTexture) IsAtlasTexture() bool
Returns weither this texture is part of an atlas or not.
The default implementation returns false.
func (*QSGTexture) MetaObject ¶
func (this *QSGTexture) MetaObject() *qtcore.QMetaObject
func (*QSGTexture) MipmapFiltering ¶
func (this *QSGTexture) MipmapFiltering() int
Returns whether mipmapping should be used when sampling from this texture.
See also setMipmapFiltering().
func (*QSGTexture) NewFromPointer ¶
func (*QSGTexture) NewFromPointer(cthis unsafe.Pointer) *QSGTexture
func (*QSGTexture) NormalizedTextureSubRect ¶
func (this *QSGTexture) NormalizedTextureSubRect() *qtcore.QRectF
Returns the rectangle inside textureSize() that this texture represents in normalized coordinates.
The default implementation returns a rect at position (0, 0) with width and height of 1.
func (*QSGTexture) QSGTexture_PTR ¶
func (ptr *QSGTexture) QSGTexture_PTR() *QSGTexture
func (*QSGTexture) RemovedFromAtlas ¶
func (this *QSGTexture) RemovedFromAtlas() *QSGTexture
This function returns a copy of the current texture which is removed from its atlas.
The current texture remains unchanged, so texture coordinates do not need to be updated.
Removing a texture from an atlas is primarily useful when passing it to a shader that operates on the texture coordinates 0-1 instead of the texture subrect inside the atlas.
If the texture is not part of a texture atlas, this function returns 0.
Implementations of this function are recommended to return the same instance for multiple calls to limit memory usage.
Warning: This function can only be called from the rendering thread.
func (*QSGTexture) SetAnisotropyLevel ¶
func (this *QSGTexture) SetAnisotropyLevel(level int)
Sets the level of anisotropic filtering to be used for the upcoming bind() call to level. The default value is QSGTexture::AnisotropyNone, which means no anisotropic filtering is enabled.
This function was introduced in Qt 5.9.
See also anisotropyLevel().
func (*QSGTexture) SetCthis ¶
func (this *QSGTexture) SetCthis(cthis unsafe.Pointer)
func (*QSGTexture) SetFiltering ¶
func (this *QSGTexture) SetFiltering(filter int)
Sets the sampling mode to be used for the upcoming bind() call to filter.
See also filtering().
func (*QSGTexture) SetHorizontalWrapMode ¶
func (this *QSGTexture) SetHorizontalWrapMode(hwrap int)
Sets the horizontal wrap mode to be used for the upcoming bind() call to hwrap
See also horizontalWrapMode().
func (*QSGTexture) SetMipmapFiltering ¶
func (this *QSGTexture) SetMipmapFiltering(filter int)
Sets the mipmap sampling mode to be used for the upcoming bind() call to filter.
Setting the mipmap filtering has no effect it the texture does not have mipmaps.
See also mipmapFiltering() and hasMipmaps().
func (*QSGTexture) SetVerticalWrapMode ¶
func (this *QSGTexture) SetVerticalWrapMode(vwrap int)
Sets the vertical wrap mode to be used for the upcoming bind() call to vwrap
See also verticalWrapMode().
func (*QSGTexture) TextureId ¶
func (this *QSGTexture) TextureId() int
Returns the OpenGL texture id for this texture.
The default value is 0, indicating that it is an invalid texture id.
The function should at all times return the correct texture id.
Warning: This function can only be called from the rendering thread.
func (*QSGTexture) TextureSize ¶
func (this *QSGTexture) TextureSize() *qtcore.QSize
Returns the size of the texture.
func (*QSGTexture) UpdateBindOptions ¶
func (this *QSGTexture) UpdateBindOptions(force bool)
Update the texture state to match the filtering, mipmap and wrap options currently set.
If force is true, all properties will be updated regardless of weither they have changed or not.
func (*QSGTexture) UpdateBindOptions__ ¶
func (this *QSGTexture) UpdateBindOptions__()
Update the texture state to match the filtering, mipmap and wrap options currently set.
If force is true, all properties will be updated regardless of weither they have changed or not.
func (*QSGTexture) VerticalWrapMode ¶
func (this *QSGTexture) VerticalWrapMode() int
Returns the vertical wrap mode to be used for this texture.
See also setVerticalWrapMode().
type QSGTextureMaterial ¶
type QSGTextureMaterial struct {
*QSGOpaqueTextureMaterial
}
func NewQSGTextureMaterialFromPointer ¶
func NewQSGTextureMaterialFromPointer(cthis unsafe.Pointer) *QSGTextureMaterial
func (*QSGTextureMaterial) CreateShader ¶
func (this *QSGTextureMaterial) CreateShader() *QSGMaterialShader
func (*QSGTextureMaterial) GetCthis ¶
func (this *QSGTextureMaterial) GetCthis() unsafe.Pointer
func (*QSGTextureMaterial) NewFromPointer ¶
func (*QSGTextureMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGTextureMaterial
func (*QSGTextureMaterial) QSGTextureMaterial_PTR ¶
func (ptr *QSGTextureMaterial) QSGTextureMaterial_PTR() *QSGTextureMaterial
func (*QSGTextureMaterial) SetCthis ¶
func (this *QSGTextureMaterial) SetCthis(cthis unsafe.Pointer)
func (*QSGTextureMaterial) Type ¶
func (this *QSGTextureMaterial) Type() *QSGMaterialType
type QSGTextureMaterial_ITF ¶
type QSGTextureMaterial_ITF interface { QSGOpaqueTextureMaterial_ITF QSGTextureMaterial_PTR() *QSGTextureMaterial }
type QSGTextureProvider ¶
func NewQSGTextureProviderFromPointer ¶
func NewQSGTextureProviderFromPointer(cthis unsafe.Pointer) *QSGTextureProvider
func (*QSGTextureProvider) GetCthis ¶
func (this *QSGTextureProvider) GetCthis() unsafe.Pointer
func (*QSGTextureProvider) MetaObject ¶
func (this *QSGTextureProvider) MetaObject() *qtcore.QMetaObject
func (*QSGTextureProvider) NewFromPointer ¶
func (*QSGTextureProvider) NewFromPointer(cthis unsafe.Pointer) *QSGTextureProvider
func (*QSGTextureProvider) QSGTextureProvider_PTR ¶
func (ptr *QSGTextureProvider) QSGTextureProvider_PTR() *QSGTextureProvider
func (*QSGTextureProvider) SetCthis ¶
func (this *QSGTextureProvider) SetCthis(cthis unsafe.Pointer)
func (*QSGTextureProvider) Texture ¶
func (this *QSGTextureProvider) Texture() *QSGTexture
Returns a pointer to the texture object.
func (*QSGTextureProvider) TextureChanged ¶
func (this *QSGTextureProvider) TextureChanged()
This signal is emitted when the texture changes.
type QSGTextureProvider_ITF ¶
type QSGTextureProvider_ITF interface { qtcore.QObject_ITF QSGTextureProvider_PTR() *QSGTextureProvider }
type QSGTexture_ITF ¶
type QSGTexture_ITF interface { qtcore.QObject_ITF QSGTexture_PTR() *QSGTexture }
type QSGTexture__AnisotropyLevel ¶
type QSGTexture__AnisotropyLevel = int
Specifies the anisotropic filtering level to be used when the texture is not screen aligned.
This enum was introduced or modified in Qt 5.9.
const QSGTexture__Anisotropy16x QSGTexture__AnisotropyLevel = 4
const QSGTexture__Anisotropy2x QSGTexture__AnisotropyLevel = 1
const QSGTexture__Anisotropy4x QSGTexture__AnisotropyLevel = 2
const QSGTexture__Anisotropy8x QSGTexture__AnisotropyLevel = 3
const QSGTexture__AnisotropyNone QSGTexture__AnisotropyLevel = 0
No anisotropic filtering.
type QSGTexture__Filtering ¶
type QSGTexture__Filtering = int
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
const QSGTexture__Linear QSGTexture__Filtering = 2
Sampling returns a linear interpolation of the neighboring texels.
const QSGTexture__Nearest QSGTexture__Filtering = 1
Sampling returns the nearest texel.
const QSGTexture__None QSGTexture__Filtering = 0
No filtering should occur. This value is only used together with setMipmapFiltering().
type QSGTexture__WrapMode ¶
type QSGTexture__WrapMode = int
Specifies how the texture should treat texture coordinates.
const QSGTexture__ClampToEdge QSGTexture__WrapMode = 1
const QSGTexture__MirroredRepeat QSGTexture__WrapMode = 2
const QSGTexture__Repeat QSGTexture__WrapMode = 0
type QSGTransformNode ¶
type QSGTransformNode struct {
*QSGNode
}
func NewQSGTransformNode ¶
func NewQSGTransformNode() *QSGTransformNode
func NewQSGTransformNodeFromPointer ¶
func NewQSGTransformNodeFromPointer(cthis unsafe.Pointer) *QSGTransformNode
func (*QSGTransformNode) CombinedMatrix ¶
func (this *QSGTransformNode) CombinedMatrix() *qtgui.QMatrix4x4
func (*QSGTransformNode) GetCthis ¶
func (this *QSGTransformNode) GetCthis() unsafe.Pointer
func (*QSGTransformNode) Matrix ¶
func (this *QSGTransformNode) Matrix() *qtgui.QMatrix4x4
func (*QSGTransformNode) NewFromPointer ¶
func (*QSGTransformNode) NewFromPointer(cthis unsafe.Pointer) *QSGTransformNode
func (*QSGTransformNode) QSGTransformNode_PTR ¶
func (ptr *QSGTransformNode) QSGTransformNode_PTR() *QSGTransformNode
func (*QSGTransformNode) SetCombinedMatrix ¶
func (this *QSGTransformNode) SetCombinedMatrix(matrix qtgui.QMatrix4x4_ITF)
func (*QSGTransformNode) SetCthis ¶
func (this *QSGTransformNode) SetCthis(cthis unsafe.Pointer)
func (*QSGTransformNode) SetMatrix ¶
func (this *QSGTransformNode) SetMatrix(matrix qtgui.QMatrix4x4_ITF)
type QSGTransformNode_ITF ¶
type QSGTransformNode_ITF interface { QSGNode_ITF QSGTransformNode_PTR() *QSGTransformNode }
type QSGVertexColorMaterial ¶
type QSGVertexColorMaterial struct {
*QSGMaterial
}
func NewQSGVertexColorMaterial ¶
func NewQSGVertexColorMaterial() *QSGVertexColorMaterial
Creates a new vertex color material.
func NewQSGVertexColorMaterialFromPointer ¶
func NewQSGVertexColorMaterialFromPointer(cthis unsafe.Pointer) *QSGVertexColorMaterial
func (*QSGVertexColorMaterial) Compare ¶
func (this *QSGVertexColorMaterial) Compare(other QSGMaterial_ITF) int
func (*QSGVertexColorMaterial) CreateShader ¶
func (this *QSGVertexColorMaterial) CreateShader() *QSGMaterialShader
func (*QSGVertexColorMaterial) GetCthis ¶
func (this *QSGVertexColorMaterial) GetCthis() unsafe.Pointer
func (*QSGVertexColorMaterial) InheritCreateShader ¶
func (this *QSGVertexColorMaterial) InheritCreateShader(f func() unsafe.Pointer)
QSGMaterialShader * createShader()
func (*QSGVertexColorMaterial) InheritType ¶
func (this *QSGVertexColorMaterial) InheritType(f func() unsafe.Pointer)
QSGMaterialType * type()
func (*QSGVertexColorMaterial) NewFromPointer ¶
func (*QSGVertexColorMaterial) NewFromPointer(cthis unsafe.Pointer) *QSGVertexColorMaterial
func (*QSGVertexColorMaterial) QSGVertexColorMaterial_PTR ¶
func (ptr *QSGVertexColorMaterial) QSGVertexColorMaterial_PTR() *QSGVertexColorMaterial
func (*QSGVertexColorMaterial) SetCthis ¶
func (this *QSGVertexColorMaterial) SetCthis(cthis unsafe.Pointer)
func (*QSGVertexColorMaterial) Type ¶
func (this *QSGVertexColorMaterial) Type() *QSGMaterialType
type QSGVertexColorMaterial_ITF ¶
type QSGVertexColorMaterial_ITF interface { QSGMaterial_ITF QSGVertexColorMaterial_PTR() *QSGVertexColorMaterial }
Source Files ¶
- mod.go
- qfunctions.go
- qquickasyncimageprovider.go
- qquickframebufferobject.go
- qquickimageprovider.go
- qquickimageresponse.go
- qquickitem.go
- qquickitemgrabresult.go
- qquickpainteditem.go
- qquickrendercontrol.go
- qquicktextdocument.go
- qquicktexturefactory.go
- qquicktransform.go
- qquickview.go
- qquickwindow.go
- qsgabstractrenderer.go
- qsgbasicgeometrynode.go
- qsgclipnode.go
- qsgdynamictexture.go
- qsgengine.go
- qsgflatcolormaterial.go
- qsggeometry.go
- qsggeometrynode.go
- qsgimagenode.go
- qsgmaterial.go
- qsgmaterialshader.go
- qsgmaterialtype.go
- qsgninepatchnode.go
- qsgnode.go
- qsgnodevisitor.go
- qsgopacitynode.go
- qsgopaquetexturematerial.go
- qsgrectanglenode.go
- qsgrendererinterface.go
- qsgrendernode.go
- qsgrootnode.go
- qsgsimplerectnode.go
- qsgsimpletexturenode.go
- qsgtexture.go
- qsgtexturematerial.go
- qsgtextureprovider.go
- qsgtransformnode.go
- qsgvertexcolormaterial.go