当前位置: 首页>>代码示例>>Golang>>正文


Golang core.PointerFromQPoint函数代码示例

本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQPoint函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQPoint函数的具体用法?Golang PointerFromQPoint怎么用?Golang PointerFromQPoint使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了PointerFromQPoint函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: DrawImage6

func (ptr *QPainter) DrawImage6(point core.QPoint_ITF, image QImage_ITF, source core.QRect_ITF, flags core.Qt__ImageConversionFlag) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawImage6(ptr.Pointer(), core.PointerFromQPoint(point), PointerFromQImage(image), core.PointerFromQRect(source), C.int(flags))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例2: IndexAt

func (ptr *QTreeView) IndexAt(point core.QPoint_ITF) *core.QModelIndex {
	if ptr.Pointer() != nil {
		return core.NewQModelIndexFromPointer(C.QTreeView_IndexAt(ptr.Pointer(), core.PointerFromQPoint(point)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qtreeview.go

示例3: ActionAt

func (ptr *QToolBar) ActionAt(p core.QPoint_ITF) *QAction {
	if ptr.Pointer() != nil {
		return NewQActionFromPointer(C.QToolBar_ActionAt(ptr.Pointer(), core.PointerFromQPoint(p)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qtoolbar.go

示例4: HitTestComplexControl

func (ptr *QProxyStyle) HitTestComplexControl(control QStyle__ComplexControl, option QStyleOptionComplex_ITF, pos core.QPoint_ITF, widget QWidget_ITF) QStyle__SubControl {
	if ptr.Pointer() != nil {
		return QStyle__SubControl(C.QProxyStyle_HitTestComplexControl(ptr.Pointer(), C.int(control), PointerFromQStyleOptionComplex(option), core.PointerFromQPoint(pos), PointerFromQWidget(widget)))
	}
	return 0
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qproxystyle.go

示例5: QCursor_SetPos4

func QCursor_SetPos4(screen QScreen_ITF, p core.QPoint_ITF) {
	C.QCursor_QCursor_SetPos4(PointerFromQScreen(screen), core.PointerFromQPoint(p))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qcursor.go

示例6: Translate2

func (ptr *QRegion) Translate2(point core.QPoint_ITF) {
	if ptr.Pointer() != nil {
		C.QRegion_Translate2(ptr.Pointer(), core.PointerFromQPoint(point))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qregion.go

示例7: Contains

func (ptr *QRegion) Contains(p core.QPoint_ITF) bool {
	if ptr.Pointer() != nil {
		return C.QRegion_Contains(ptr.Pointer(), core.PointerFromQPoint(p)) != 0
	}
	return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qregion.go

示例8: DrawPoint2

func (ptr *QPainter) DrawPoint2(position core.QPoint_ITF) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawPoint2(ptr.Pointer(), core.PointerFromQPoint(position))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例9: DrawPolygon2

func (ptr *QPainter) DrawPolygon2(points core.QPoint_ITF, pointCount int, fillRule core.Qt__FillRule) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawPolygon2(ptr.Pointer(), core.PointerFromQPoint(points), C.int(pointCount), C.int(fillRule))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例10: DrawPixmap6

func (ptr *QPainter) DrawPixmap6(point core.QPoint_ITF, pixmap QPixmap_ITF) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawPixmap6(ptr.Pointer(), core.PointerFromQPoint(point), PointerFromQPixmap(pixmap))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例11: DrawPixmap4

func (ptr *QPainter) DrawPixmap4(point core.QPoint_ITF, pixmap QPixmap_ITF, source core.QRect_ITF) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawPixmap4(ptr.Pointer(), core.PointerFromQPoint(point), PointerFromQPixmap(pixmap), core.PointerFromQRect(source))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例12: DrawPicture2

func (ptr *QPainter) DrawPicture2(point core.QPoint_ITF, picture QPicture_ITF) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawPicture2(ptr.Pointer(), core.PointerFromQPoint(point), PointerFromQPicture(picture))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例13: DrawLines4

func (ptr *QPainter) DrawLines4(pointPairs core.QPoint_ITF, lineCount int) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawLines4(ptr.Pointer(), core.PointerFromQPoint(pointPairs), C.int(lineCount))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例14: DrawLine3

func (ptr *QPainter) DrawLine3(p1 core.QPoint_ITF, p2 core.QPoint_ITF) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawLine3(ptr.Pointer(), core.PointerFromQPoint(p1), core.PointerFromQPoint(p2))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例15: Render2

func (ptr *QWidget) Render2(painter gui.QPainter_ITF, targetOffset core.QPoint_ITF, sourceRegion gui.QRegion_ITF, renderFlags QWidget__RenderFlag) {
	if ptr.Pointer() != nil {
		C.QWidget_Render2(ptr.Pointer(), gui.PointerFromQPainter(painter), core.PointerFromQPoint(targetOffset), gui.PointerFromQRegion(sourceRegion), C.int(renderFlags))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qwidget.go


注:本文中的github.com/therecipe/qt/core.PointerFromQPoint函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。