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


Golang core.PointerFromQRect函数代码示例

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


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

示例1: DrawPixmap8

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

示例2: DrawItemPixmap

func (ptr *QProxyStyle) DrawItemPixmap(painter gui.QPainter_ITF, rect core.QRect_ITF, alignment int, pixmap gui.QPixmap_ITF) {
	if ptr.Pointer() != nil {
		C.QProxyStyle_DrawItemPixmap(ptr.Pointer(), gui.PointerFromQPainter(painter), core.PointerFromQRect(rect), C.int(alignment), gui.PointerFromQPixmap(pixmap))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qproxystyle.go

示例3: DrawItemText

func (ptr *QStylePainter) DrawItemText(rect core.QRect_ITF, flags int, pal gui.QPalette_ITF, enabled bool, text string, textRole gui.QPalette__ColorRole) {
	if ptr.Pointer() != nil {
		C.QStylePainter_DrawItemText(ptr.Pointer(), core.PointerFromQRect(rect), C.int(flags), gui.PointerFromQPalette(pal), C.int(qt.GoBoolToInt(enabled)), C.CString(text), C.int(textRole))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qstylepainter.go

示例4: NewQRegion6

func NewQRegion6(r core.QRect_ITF, t QRegion__RegionType) *QRegion {
	return NewQRegionFromPointer(C.QRegion_NewQRegion6(core.PointerFromQRect(r), C.int(t)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qregion.go

示例5: Intersected2

func (ptr *QRegion) Intersected2(rect core.QRect_ITF) *QRegion {
	if ptr.Pointer() != nil {
		return NewQRegionFromPointer(C.QRegion_Intersected2(ptr.Pointer(), core.PointerFromQRect(rect)))
	}
	return nil
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qregion.go

示例6: SetBoundingRect

func (ptr *QPicture) SetBoundingRect(r core.QRect_ITF) {
	if ptr.Pointer() != nil {
		C.QPicture_SetBoundingRect(ptr.Pointer(), core.PointerFromQRect(r))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpicture.go

示例7: Scroll2

func (ptr *QPixmap) Scroll2(dx int, dy int, rect core.QRect_ITF, exposed QRegion_ITF) {
	if ptr.Pointer() != nil {
		C.QPixmap_Scroll2(ptr.Pointer(), C.int(dx), C.int(dy), core.PointerFromQRect(rect), PointerFromQRegion(exposed))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpixmap.go

示例8: FillRect3

func (ptr *QPainter) FillRect3(rectangle core.QRect_ITF, style core.Qt__BrushStyle) {
	if ptr.Pointer() != nil {
		C.QPainter_FillRect3(ptr.Pointer(), core.PointerFromQRect(rectangle), C.int(style))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例9: FillRect11

func (ptr *QPainter) FillRect11(rectangle core.QRect_ITF, color core.Qt__GlobalColor) {
	if ptr.Pointer() != nil {
		C.QPainter_FillRect11(ptr.Pointer(), core.PointerFromQRect(rectangle), C.int(color))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例10: DrawTiledPixmap2

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

示例11: EraseRect2

func (ptr *QPainter) EraseRect2(rectangle core.QRect_ITF) {
	if ptr.Pointer() != nil {
		C.QPainter_EraseRect2(ptr.Pointer(), core.PointerFromQRect(rectangle))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例12: DrawText7

func (ptr *QPainter) DrawText7(x int, y int, width int, height int, flags int, text string, boundingRect core.QRect_ITF) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawText7(ptr.Pointer(), C.int(x), C.int(y), C.int(width), C.int(height), C.int(flags), C.CString(text), core.PointerFromQRect(boundingRect))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例13: DrawRoundedRect2

func (ptr *QPainter) DrawRoundedRect2(rect core.QRect_ITF, xRadius float64, yRadius float64, mode core.Qt__SizeMode) {
	if ptr.Pointer() != nil {
		C.QPainter_DrawRoundedRect2(ptr.Pointer(), core.PointerFromQRect(rect), C.double(xRadius), C.double(yRadius), C.int(mode))
	}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qpainter.go

示例14: DrawPixmap2

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

示例15: NewQPaintEvent2

func NewQPaintEvent2(paintRect core.QRect_ITF) *QPaintEvent {
	return NewQPaintEventFromPointer(C.QPaintEvent_NewQPaintEvent2(core.PointerFromQRect(paintRect)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qpaintevent.go


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