本文整理汇总了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))
}
}
示例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
}
示例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
}
示例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
}
示例5: QCursor_SetPos4
func QCursor_SetPos4(screen QScreen_ITF, p core.QPoint_ITF) {
C.QCursor_QCursor_SetPos4(PointerFromQScreen(screen), core.PointerFromQPoint(p))
}
示例6: Translate2
func (ptr *QRegion) Translate2(point core.QPoint_ITF) {
if ptr.Pointer() != nil {
C.QRegion_Translate2(ptr.Pointer(), core.PointerFromQPoint(point))
}
}
示例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
}
示例8: DrawPoint2
func (ptr *QPainter) DrawPoint2(position core.QPoint_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawPoint2(ptr.Pointer(), core.PointerFromQPoint(position))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}