本文整理汇总了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))
}
}
示例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))
}
}
示例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))
}
}
示例4: NewQRegion6
func NewQRegion6(r core.QRect_ITF, t QRegion__RegionType) *QRegion {
return NewQRegionFromPointer(C.QRegion_NewQRegion6(core.PointerFromQRect(r), C.int(t)))
}
示例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
}
示例6: SetBoundingRect
func (ptr *QPicture) SetBoundingRect(r core.QRect_ITF) {
if ptr.Pointer() != nil {
C.QPicture_SetBoundingRect(ptr.Pointer(), core.PointerFromQRect(r))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例11: EraseRect2
func (ptr *QPainter) EraseRect2(rectangle core.QRect_ITF) {
if ptr.Pointer() != nil {
C.QPainter_EraseRect2(ptr.Pointer(), core.PointerFromQRect(rectangle))
}
}
示例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))
}
}
示例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))
}
}
示例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))
}
}
示例15: NewQPaintEvent2
func NewQPaintEvent2(paintRect core.QRect_ITF) *QPaintEvent {
return NewQPaintEventFromPointer(C.QPaintEvent_NewQPaintEvent2(core.PointerFromQRect(paintRect)))
}