本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQPointF函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQPointF函数的具体用法?Golang PointerFromQPointF怎么用?Golang PointerFromQPointF使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQPointF函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: Contains
func (ptr *QPainterPath) Contains(point core.QPointF_ITF) bool {
if ptr.Pointer() != nil {
return C.QPainterPath_Contains(ptr.Pointer(), core.PointerFromQPointF(point)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qpainterpath.go
示例2: SetOffset
func (ptr *QPanGesture) SetOffset(value core.QPointF_ITF) {
if ptr.Pointer() != nil {
C.QPanGesture_SetOffset(ptr.Pointer(), core.PointerFromQPointF(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpangesture.go
示例3: SetPosition
func (ptr *QTextLine) SetPosition(pos core.QPointF_ITF) {
if ptr.Pointer() != nil {
C.QTextLine_SetPosition(ptr.Pointer(), core.PointerFromQPointF(pos))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtextline.go
示例4: Contains
func (ptr *QGraphicsSimpleTextItem) Contains(point core.QPointF_ITF) bool {
if ptr.Pointer() != nil {
return C.QGraphicsSimpleTextItem_Contains(ptr.Pointer(), core.PointerFromQPointF(point)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qgraphicssimpletextitem.go
示例5: DrawCursor
func (ptr *QTextLayout) DrawCursor(painter QPainter_ITF, position core.QPointF_ITF, cursorPosition int, width int) {
if ptr.Pointer() != nil {
C.QTextLayout_DrawCursor(ptr.Pointer(), PointerFromQPainter(painter), core.PointerFromQPointF(position), C.int(cursorPosition), C.int(width))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtextlayout.go
示例6: DrawPolygon
func (ptr *QPainter) DrawPolygon(points core.QPointF_ITF, pointCount int, fillRule core.Qt__FillRule) {
if ptr.Pointer() != nil {
C.QPainter_DrawPolygon(ptr.Pointer(), core.PointerFromQPointF(points), C.int(pointCount), C.int(fillRule))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例7: DrawStaticText
func (ptr *QPainter) DrawStaticText(topLeftPosition core.QPointF_ITF, staticText QStaticText_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawStaticText(ptr.Pointer(), core.PointerFromQPointF(topLeftPosition), PointerFromQStaticText(staticText))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例8: DrawPicture
func (ptr *QPainter) DrawPicture(point core.QPointF_ITF, picture QPicture_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawPicture(ptr.Pointer(), core.PointerFromQPointF(point), PointerFromQPicture(picture))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例9: DrawPixmap5
func (ptr *QPainter) DrawPixmap5(point core.QPointF_ITF, pixmap QPixmap_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawPixmap5(ptr.Pointer(), core.PointerFromQPointF(point), PointerFromQPixmap(pixmap))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例10: DrawGlyphRun
func (ptr *QPainter) DrawGlyphRun(position core.QPointF_ITF, glyphs QGlyphRun_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawGlyphRun(ptr.Pointer(), core.PointerFromQPointF(position), PointerFromQGlyphRun(glyphs))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例11: DrawImage3
func (ptr *QPainter) DrawImage3(point core.QPointF_ITF, image QImage_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawImage3(ptr.Pointer(), core.PointerFromQPointF(point), PointerFromQImage(image))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例12: Translate
func (ptr *QPainter) Translate(offset core.QPointF_ITF) {
if ptr.Pointer() != nil {
C.QPainter_Translate(ptr.Pointer(), core.PointerFromQPointF(offset))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例13: NewQDropEvent
func NewQDropEvent(pos core.QPointF_ITF, actions core.Qt__DropAction, data core.QMimeData_ITF, buttons core.Qt__MouseButton, modifiers core.Qt__KeyboardModifier, ty core.QEvent__Type) *QDropEvent {
return NewQDropEventFromPointer(C.QDropEvent_NewQDropEvent(core.PointerFromQPointF(pos), C.int(actions), core.PointerFromQMimeData(data), C.int(buttons), C.int(modifiers), C.int(ty)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qdropevent.go
示例14: SetOffset
func (ptr *QGraphicsDropShadowEffect) SetOffset(ofs core.QPointF_ITF) {
if ptr.Pointer() != nil {
C.QGraphicsDropShadowEffect_SetOffset(ptr.Pointer(), core.PointerFromQPointF(ofs))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qgraphicsdropshadoweffect.go
示例15: DrawPixmap3
func (ptr *QPainter) DrawPixmap3(point core.QPointF_ITF, pixmap QPixmap_ITF, source core.QRectF_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawPixmap3(ptr.Pointer(), core.PointerFromQPointF(point), PointerFromQPixmap(pixmap), core.PointerFromQRectF(source))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例16: DrawText
func (ptr *QPainter) DrawText(position core.QPointF_ITF, text string) {
if ptr.Pointer() != nil {
C.QPainter_DrawText(ptr.Pointer(), core.PointerFromQPointF(position), C.CString(text))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例17: DrawPoint
func (ptr *QPainter) DrawPoint(position core.QPointF_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawPoint(ptr.Pointer(), core.PointerFromQPointF(position))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例18: DrawTiledPixmap
func (ptr *QPainter) DrawTiledPixmap(rectangle core.QRectF_ITF, pixmap QPixmap_ITF, position core.QPointF_ITF) {
if ptr.Pointer() != nil {
C.QPainter_DrawTiledPixmap(ptr.Pointer(), core.PointerFromQRectF(rectangle), PointerFromQPixmap(pixmap), core.PointerFromQPointF(position))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例19: DrawPolyline
func (ptr *QPainter) DrawPolyline(points core.QPointF_ITF, pointCount int) {
if ptr.Pointer() != nil {
C.QPainter_DrawPolyline(ptr.Pointer(), core.PointerFromQPointF(points), C.int(pointCount))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
示例20: SetBrushOrigin
func (ptr *QPainter) SetBrushOrigin(position core.QPointF_ITF) {
if ptr.Pointer() != nil {
C.QPainter_SetBrushOrigin(ptr.Pointer(), core.PointerFromQPointF(position))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go
注:本文中的github.com/therecipe/qt/core.PointerFromQPointF函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论