本文整理汇总了Golang中github.com/therecipe/qt/gui.PointerFromQPainter函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQPainter函数的具体用法?Golang PointerFromQPainter怎么用?Golang PointerFromQPainter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQPainter函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: DrawComplexControl
func (ptr *QProxyStyle) DrawComplexControl(control QStyle__ComplexControl, option QStyleOptionComplex_ITF, painter gui.QPainter_ITF, widget QWidget_ITF) {
if ptr.Pointer() != nil {
C.QProxyStyle_DrawComplexControl(ptr.Pointer(), C.int(control), PointerFromQStyleOptionComplex(option), gui.PointerFromQPainter(painter), PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qproxystyle.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: Paint
func (ptr *QGraphicsSvgItem) Paint(painter gui.QPainter_ITF, option widgets.QStyleOptionGraphicsItem_ITF, widget widgets.QWidget_ITF) {
if ptr.Pointer() != nil {
C.QGraphicsSvgItem_Paint(ptr.Pointer(), gui.PointerFromQPainter(painter), widgets.PointerFromQStyleOptionGraphicsItem(option), widgets.PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qgraphicssvgitem.go
示例4: Paint
func (ptr *QGraphicsSimpleTextItem) Paint(painter gui.QPainter_ITF, option QStyleOptionGraphicsItem_ITF, widget QWidget_ITF) {
if ptr.Pointer() != nil {
C.QGraphicsSimpleTextItem_Paint(ptr.Pointer(), gui.PointerFromQPainter(painter), PointerFromQStyleOptionGraphicsItem(option), PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qgraphicssimpletextitem.go
示例5: Paint
func (ptr *QItemDelegate) Paint(painter gui.QPainter_ITF, option QStyleOptionViewItem_ITF, index core.QModelIndex_ITF) {
if ptr.Pointer() != nil {
C.QItemDelegate_Paint(ptr.Pointer(), gui.PointerFromQPainter(painter), PointerFromQStyleOptionViewItem(option), core.PointerFromQModelIndex(index))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qitemdelegate.go
示例6: 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
示例7: Render2
func (ptr *QSvgRenderer) Render2(painter gui.QPainter_ITF, bounds core.QRectF_ITF) {
if ptr.Pointer() != nil {
C.QSvgRenderer_Render2(ptr.Pointer(), gui.PointerFromQPainter(painter), core.PointerFromQRectF(bounds))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qsvgrenderer.go
示例8: Render
func (ptr *QGraphicsView) Render(painter gui.QPainter_ITF, target core.QRectF_ITF, source core.QRect_ITF, aspectRatioMode core.Qt__AspectRatioMode) {
if ptr.Pointer() != nil {
C.QGraphicsView_Render(ptr.Pointer(), gui.PointerFromQPainter(painter), core.PointerFromQRectF(target), core.PointerFromQRect(source), C.int(aspectRatioMode))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qgraphicsview.go
示例9: PaintWindowFrame
func (ptr *QGraphicsWidget) PaintWindowFrame(painter gui.QPainter_ITF, option QStyleOptionGraphicsItem_ITF, widget QWidget_ITF) {
if ptr.Pointer() != nil {
C.QGraphicsWidget_PaintWindowFrame(ptr.Pointer(), gui.PointerFromQPainter(painter), PointerFromQStyleOptionGraphicsItem(option), PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qgraphicswidget.go
示例10: Render
func (ptr *QSvgRenderer) Render(painter gui.QPainter_ITF) {
if ptr.Pointer() != nil {
C.QSvgRenderer_Render(ptr.Pointer(), gui.PointerFromQPainter(painter))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qsvgrenderer.go
示例11: DrawComplexControl
func (ptr *QCommonStyle) DrawComplexControl(cc QStyle__ComplexControl, opt QStyleOptionComplex_ITF, p gui.QPainter_ITF, widget QWidget_ITF) {
if ptr.Pointer() != nil {
C.QCommonStyle_DrawComplexControl(ptr.Pointer(), C.int(cc), PointerFromQStyleOptionComplex(opt), gui.PointerFromQPainter(p), PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qcommonstyle.go
示例12: DrawPrimitive
func (ptr *QCommonStyle) DrawPrimitive(pe QStyle__PrimitiveElement, opt QStyleOption_ITF, p gui.QPainter_ITF, widget QWidget_ITF) {
if ptr.Pointer() != nil {
C.QCommonStyle_DrawPrimitive(ptr.Pointer(), C.int(pe), PointerFromQStyleOption(opt), gui.PointerFromQPainter(p), PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qcommonstyle.go
示例13: DrawControl
func (ptr *QCommonStyle) DrawControl(element QStyle__ControlElement, opt QStyleOption_ITF, p gui.QPainter_ITF, widget QWidget_ITF) {
if ptr.Pointer() != nil {
C.QCommonStyle_DrawControl(ptr.Pointer(), C.int(element), PointerFromQStyleOption(opt), gui.PointerFromQPainter(p), PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qcommonstyle.go
示例14: DrawItemText
func (ptr *QProxyStyle) DrawItemText(painter gui.QPainter_ITF, rect core.QRect_ITF, flags int, pal gui.QPalette_ITF, enabled bool, text string, textRole gui.QPalette__ColorRole) {
if ptr.Pointer() != nil {
C.QProxyStyle_DrawItemText(ptr.Pointer(), gui.PointerFromQPainter(painter), core.PointerFromQRect(rect), C.int(flags), gui.PointerFromQPalette(pal), C.int(qt.GoBoolToInt(enabled)), C.CString(text), C.int(textRole))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qproxystyle.go
示例15: Render3
func (ptr *QSvgRenderer) Render3(painter gui.QPainter_ITF, elementId string, bounds core.QRectF_ITF) {
if ptr.Pointer() != nil {
C.QSvgRenderer_Render3(ptr.Pointer(), gui.PointerFromQPainter(painter), C.CString(elementId), core.PointerFromQRectF(bounds))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qsvgrenderer.go
示例16: DrawPrimitive
func (ptr *QProxyStyle) DrawPrimitive(element QStyle__PrimitiveElement, option QStyleOption_ITF, painter gui.QPainter_ITF, widget QWidget_ITF) {
if ptr.Pointer() != nil {
C.QProxyStyle_DrawPrimitive(ptr.Pointer(), C.int(element), PointerFromQStyleOption(option), gui.PointerFromQPainter(painter), PointerFromQWidget(widget))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qproxystyle.go
示例17: Paint
func (ptr *QQuickPaintedItem) Paint(painter gui.QPainter_ITF) {
if ptr.Pointer() != nil {
C.QQuickPaintedItem_Paint(ptr.Pointer(), gui.PointerFromQPainter(painter))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qquickpainteditem.go
注:本文中的github.com/therecipe/qt/gui.PointerFromQPainter函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论