qtgui

package
v0.0.0-...-1f663c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2020 License: LGPL-3.0 Imports: 6 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFromPlainText

func ConvertFromPlainText(plain string, mode int) string

func DeleteQAbstractOpenGLFunctions

func DeleteQAbstractOpenGLFunctions(this *QAbstractOpenGLFunctions)

func DeleteQAbstractTextDocumentLayout

func DeleteQAbstractTextDocumentLayout(this *QAbstractTextDocumentLayout)

func DeleteQAbstractUndoItem

func DeleteQAbstractUndoItem(this *QAbstractUndoItem)

func DeleteQAccessible

func DeleteQAccessible(this *QAccessible)

func DeleteQAccessibleApplication

func DeleteQAccessibleApplication(this *QAccessibleApplication)

func DeleteQAccessibleBridge

func DeleteQAccessibleBridge(this *QAccessibleBridge)

func DeleteQAccessibleBridgePlugin

func DeleteQAccessibleBridgePlugin(this *QAccessibleBridgePlugin)

func DeleteQAccessibleEditableTextInterface

func DeleteQAccessibleEditableTextInterface(this *QAccessibleEditableTextInterface)

func DeleteQAccessibleEvent

func DeleteQAccessibleEvent(this *QAccessibleEvent)

func DeleteQAccessibleImageInterface

func DeleteQAccessibleImageInterface(this *QAccessibleImageInterface)

func DeleteQAccessibleInterface

func DeleteQAccessibleInterface(this *QAccessibleInterface)

func DeleteQAccessiblePlugin

func DeleteQAccessiblePlugin(this *QAccessiblePlugin)

func DeleteQAccessibleStateChangeEvent

func DeleteQAccessibleStateChangeEvent(this *QAccessibleStateChangeEvent)

func DeleteQAccessibleTableCellInterface

func DeleteQAccessibleTableCellInterface(this *QAccessibleTableCellInterface)

func DeleteQAccessibleTableInterface

func DeleteQAccessibleTableInterface(this *QAccessibleTableInterface)

func DeleteQAccessibleTableModelChangeEvent

func DeleteQAccessibleTableModelChangeEvent(this *QAccessibleTableModelChangeEvent)

func DeleteQAccessibleTextCursorEvent

func DeleteQAccessibleTextCursorEvent(this *QAccessibleTextCursorEvent)

func DeleteQAccessibleTextInsertEvent

func DeleteQAccessibleTextInsertEvent(this *QAccessibleTextInsertEvent)

func DeleteQAccessibleTextInterface

func DeleteQAccessibleTextInterface(this *QAccessibleTextInterface)

func DeleteQAccessibleTextRemoveEvent

func DeleteQAccessibleTextRemoveEvent(this *QAccessibleTextRemoveEvent)

func DeleteQAccessibleTextSelectionEvent

func DeleteQAccessibleTextSelectionEvent(this *QAccessibleTextSelectionEvent)

func DeleteQAccessibleTextUpdateEvent

func DeleteQAccessibleTextUpdateEvent(this *QAccessibleTextUpdateEvent)

func DeleteQAccessibleValueChangeEvent

func DeleteQAccessibleValueChangeEvent(this *QAccessibleValueChangeEvent)

func DeleteQAccessibleValueInterface

func DeleteQAccessibleValueInterface(this *QAccessibleValueInterface)

func DeleteQActionEvent

func DeleteQActionEvent(this *QActionEvent)

func DeleteQApplicationStateChangeEvent

func DeleteQApplicationStateChangeEvent(this *QApplicationStateChangeEvent)

func DeleteQBackingStore

func DeleteQBackingStore(this *QBackingStore)

func DeleteQBitmap

func DeleteQBitmap(this *QBitmap)

func DeleteQBrush

func DeleteQBrush(this *QBrush)

func DeleteQBrushData

func DeleteQBrushData(this *QBrushData)

func DeleteQClipboard

func DeleteQClipboard(this *QClipboard)

func DeleteQCloseEvent

func DeleteQCloseEvent(this *QCloseEvent)

func DeleteQColor

func DeleteQColor(this *QColor)

func DeleteQConicalGradient

func DeleteQConicalGradient(this *QConicalGradient)

func DeleteQContextMenuEvent

func DeleteQContextMenuEvent(this *QContextMenuEvent)

func DeleteQCursor

func DeleteQCursor(this *QCursor)

func DeleteQDesktopServices

func DeleteQDesktopServices(this *QDesktopServices)

func DeleteQDoubleValidator

func DeleteQDoubleValidator(this *QDoubleValidator)

func DeleteQDrag

func DeleteQDrag(this *QDrag)

func DeleteQDragEnterEvent

func DeleteQDragEnterEvent(this *QDragEnterEvent)

func DeleteQDragLeaveEvent

func DeleteQDragLeaveEvent(this *QDragLeaveEvent)

func DeleteQDragMoveEvent

func DeleteQDragMoveEvent(this *QDragMoveEvent)

func DeleteQDropEvent

func DeleteQDropEvent(this *QDropEvent)

func DeleteQEnterEvent

func DeleteQEnterEvent(this *QEnterEvent)

func DeleteQExposeEvent

func DeleteQExposeEvent(this *QExposeEvent)

func DeleteQFileOpenEvent

func DeleteQFileOpenEvent(this *QFileOpenEvent)

func DeleteQFocusEvent

func DeleteQFocusEvent(this *QFocusEvent)

func DeleteQFont

func DeleteQFont(this *QFont)

func DeleteQFontDatabase

func DeleteQFontDatabase(this *QFontDatabase)

func DeleteQFontInfo

func DeleteQFontInfo(this *QFontInfo)

func DeleteQFontMetrics

func DeleteQFontMetrics(this *QFontMetrics)

func DeleteQFontMetricsF

func DeleteQFontMetricsF(this *QFontMetricsF)

func DeleteQGenericPlugin

func DeleteQGenericPlugin(this *QGenericPlugin)

func DeleteQGenericPluginFactory

func DeleteQGenericPluginFactory(this *QGenericPluginFactory)

func DeleteQGlyphRun

func DeleteQGlyphRun(this *QGlyphRun)

func DeleteQGradient

func DeleteQGradient(this *QGradient)

func DeleteQGuiApplication

func DeleteQGuiApplication(this *QGuiApplication)

func DeleteQHelpEvent

func DeleteQHelpEvent(this *QHelpEvent)

func DeleteQHideEvent

func DeleteQHideEvent(this *QHideEvent)

func DeleteQHoverEvent

func DeleteQHoverEvent(this *QHoverEvent)

func DeleteQIcon

func DeleteQIcon(this *QIcon)

func DeleteQIconDragEvent

func DeleteQIconDragEvent(this *QIconDragEvent)

func DeleteQIconEngine

func DeleteQIconEngine(this *QIconEngine)

func DeleteQIconEnginePlugin

func DeleteQIconEnginePlugin(this *QIconEnginePlugin)

func DeleteQImage

func DeleteQImage(this *QImage)

func DeleteQImageIOHandler

func DeleteQImageIOHandler(this *QImageIOHandler)

func DeleteQImageIOPlugin

func DeleteQImageIOPlugin(this *QImageIOPlugin)

func DeleteQImageReader

func DeleteQImageReader(this *QImageReader)

func DeleteQImageWriter

func DeleteQImageWriter(this *QImageWriter)

func DeleteQInputEvent

func DeleteQInputEvent(this *QInputEvent)

func DeleteQInputMethod

func DeleteQInputMethod(this *QInputMethod)

func DeleteQInputMethodEvent

func DeleteQInputMethodEvent(this *QInputMethodEvent)

func DeleteQInputMethodQueryEvent

func DeleteQInputMethodQueryEvent(this *QInputMethodQueryEvent)

func DeleteQIntValidator

func DeleteQIntValidator(this *QIntValidator)

func DeleteQKeyEvent

func DeleteQKeyEvent(this *QKeyEvent)

func DeleteQKeySequence

func DeleteQKeySequence(this *QKeySequence)

func DeleteQLinearGradient

func DeleteQLinearGradient(this *QLinearGradient)

func DeleteQMatrix

func DeleteQMatrix(this *QMatrix)

func DeleteQMatrix4x4

func DeleteQMatrix4x4(this *QMatrix4x4)

func DeleteQMouseEvent

func DeleteQMouseEvent(this *QMouseEvent)

func DeleteQMoveEvent

func DeleteQMoveEvent(this *QMoveEvent)

func DeleteQMovie

func DeleteQMovie(this *QMovie)

func DeleteQNativeGestureEvent

func DeleteQNativeGestureEvent(this *QNativeGestureEvent)

func DeleteQOffscreenSurface

func DeleteQOffscreenSurface(this *QOffscreenSurface)

func DeleteQPageLayout

func DeleteQPageLayout(this *QPageLayout)

func DeleteQPageSize

func DeleteQPageSize(this *QPageSize)

func DeleteQPagedPaintDevice

func DeleteQPagedPaintDevice(this *QPagedPaintDevice)

func DeleteQPaintDevice

func DeleteQPaintDevice(this *QPaintDevice)

func DeleteQPaintDeviceWindow

func DeleteQPaintDeviceWindow(this *QPaintDeviceWindow)

func DeleteQPaintEngine

func DeleteQPaintEngine(this *QPaintEngine)

func DeleteQPaintEngineState

func DeleteQPaintEngineState(this *QPaintEngineState)

func DeleteQPaintEvent

func DeleteQPaintEvent(this *QPaintEvent)

func DeleteQPainter

func DeleteQPainter(this *QPainter)

func DeleteQPainterPath

func DeleteQPainterPath(this *QPainterPath)

func DeleteQPainterPathStroker

func DeleteQPainterPathStroker(this *QPainterPathStroker)

func DeleteQPalette

func DeleteQPalette(this *QPalette)

func DeleteQPdfWriter

func DeleteQPdfWriter(this *QPdfWriter)

func DeleteQPen

func DeleteQPen(this *QPen)

func DeleteQPicture

func DeleteQPicture(this *QPicture)

func DeleteQPictureFormatPlugin

func DeleteQPictureFormatPlugin(this *QPictureFormatPlugin)

func DeleteQPictureIO

func DeleteQPictureIO(this *QPictureIO)

func DeleteQPixelFormat

func DeleteQPixelFormat(this *QPixelFormat)

func DeleteQPixmap

func DeleteQPixmap(this *QPixmap)

func DeleteQPixmapCache

func DeleteQPixmapCache(this *QPixmapCache)

func DeleteQPlatformSurfaceEvent

func DeleteQPlatformSurfaceEvent(this *QPlatformSurfaceEvent)

func DeleteQPointingDeviceUniqueId

func DeleteQPointingDeviceUniqueId(this *QPointingDeviceUniqueId)

func DeleteQPolygon

func DeleteQPolygon(this *QPolygon)

func DeleteQPolygonF

func DeleteQPolygonF(this *QPolygonF)

func DeleteQQuaternion

func DeleteQQuaternion(this *QQuaternion)

func DeleteQRadialGradient

func DeleteQRadialGradient(this *QRadialGradient)

func DeleteQRasterWindow

func DeleteQRasterWindow(this *QRasterWindow)

func DeleteQRawFont

func DeleteQRawFont(this *QRawFont)

func DeleteQRegExpValidator

func DeleteQRegExpValidator(this *QRegExpValidator)

func DeleteQRegion

func DeleteQRegion(this *QRegion)

func DeleteQRegularExpressionValidator

func DeleteQRegularExpressionValidator(this *QRegularExpressionValidator)

func DeleteQResizeEvent

func DeleteQResizeEvent(this *QResizeEvent)

func DeleteQRgba64

func DeleteQRgba64(this *QRgba64)

func DeleteQScreen

func DeleteQScreen(this *QScreen)

func DeleteQScreenOrientationChangeEvent

func DeleteQScreenOrientationChangeEvent(this *QScreenOrientationChangeEvent)

func DeleteQScrollEvent

func DeleteQScrollEvent(this *QScrollEvent)

func DeleteQScrollPrepareEvent

func DeleteQScrollPrepareEvent(this *QScrollPrepareEvent)

func DeleteQSessionManager

func DeleteQSessionManager(this *QSessionManager)

func DeleteQShortcutEvent

func DeleteQShortcutEvent(this *QShortcutEvent)

func DeleteQShowEvent

func DeleteQShowEvent(this *QShowEvent)

func DeleteQStandardItem

func DeleteQStandardItem(this *QStandardItem)

func DeleteQStandardItemModel

func DeleteQStandardItemModel(this *QStandardItemModel)

func DeleteQStaticText

func DeleteQStaticText(this *QStaticText)

func DeleteQStatusTipEvent

func DeleteQStatusTipEvent(this *QStatusTipEvent)

func DeleteQStyleHints

func DeleteQStyleHints(this *QStyleHints)

func DeleteQSurface

func DeleteQSurface(this *QSurface)

func DeleteQSurfaceFormat

func DeleteQSurfaceFormat(this *QSurfaceFormat)

func DeleteQSyntaxHighlighter

func DeleteQSyntaxHighlighter(this *QSyntaxHighlighter)

func DeleteQTabletEvent

func DeleteQTabletEvent(this *QTabletEvent)

func DeleteQTextBlock

func DeleteQTextBlock(this *QTextBlock)

func DeleteQTextBlockFormat

func DeleteQTextBlockFormat(this *QTextBlockFormat)

func DeleteQTextBlockGroup

func DeleteQTextBlockGroup(this *QTextBlockGroup)

func DeleteQTextBlockUserData

func DeleteQTextBlockUserData(this *QTextBlockUserData)

func DeleteQTextCharFormat

func DeleteQTextCharFormat(this *QTextCharFormat)

func DeleteQTextCursor

func DeleteQTextCursor(this *QTextCursor)

func DeleteQTextDocument

func DeleteQTextDocument(this *QTextDocument)

func DeleteQTextDocumentFragment

func DeleteQTextDocumentFragment(this *QTextDocumentFragment)

func DeleteQTextDocumentWriter

func DeleteQTextDocumentWriter(this *QTextDocumentWriter)

func DeleteQTextFormat

func DeleteQTextFormat(this *QTextFormat)

func DeleteQTextFragment

func DeleteQTextFragment(this *QTextFragment)

func DeleteQTextFrame

func DeleteQTextFrame(this *QTextFrame)

func DeleteQTextFrameFormat

func DeleteQTextFrameFormat(this *QTextFrameFormat)

func DeleteQTextFrameLayoutData

func DeleteQTextFrameLayoutData(this *QTextFrameLayoutData)

func DeleteQTextImageFormat

func DeleteQTextImageFormat(this *QTextImageFormat)

func DeleteQTextInlineObject

func DeleteQTextInlineObject(this *QTextInlineObject)

func DeleteQTextItem

func DeleteQTextItem(this *QTextItem)

func DeleteQTextLayout

func DeleteQTextLayout(this *QTextLayout)

func DeleteQTextLength

func DeleteQTextLength(this *QTextLength)

func DeleteQTextLine

func DeleteQTextLine(this *QTextLine)

func DeleteQTextList

func DeleteQTextList(this *QTextList)

func DeleteQTextListFormat

func DeleteQTextListFormat(this *QTextListFormat)

func DeleteQTextObject

func DeleteQTextObject(this *QTextObject)

func DeleteQTextObjectInterface

func DeleteQTextObjectInterface(this *QTextObjectInterface)

func DeleteQTextOption

func DeleteQTextOption(this *QTextOption)

func DeleteQTextTable

func DeleteQTextTable(this *QTextTable)

func DeleteQTextTableCell

func DeleteQTextTableCell(this *QTextTableCell)

func DeleteQTextTableCellFormat

func DeleteQTextTableCellFormat(this *QTextTableCellFormat)

func DeleteQTextTableFormat

func DeleteQTextTableFormat(this *QTextTableFormat)

func DeleteQToolBarChangeEvent

func DeleteQToolBarChangeEvent(this *QToolBarChangeEvent)

func DeleteQTouchDevice

func DeleteQTouchDevice(this *QTouchDevice)

func DeleteQTouchEvent

func DeleteQTouchEvent(this *QTouchEvent)

func DeleteQTransform

func DeleteQTransform(this *QTransform)

func DeleteQValidator

func DeleteQValidator(this *QValidator)

func DeleteQVector2D

func DeleteQVector2D(this *QVector2D)

func DeleteQVector3D

func DeleteQVector3D(this *QVector3D)

func DeleteQVector4D

func DeleteQVector4D(this *QVector4D)

func DeleteQWhatsThisClickedEvent

func DeleteQWhatsThisClickedEvent(this *QWhatsThisClickedEvent)

func DeleteQWheelEvent

func DeleteQWheelEvent(this *QWheelEvent)

func DeleteQWindow

func DeleteQWindow(this *QWindow)

func DeleteQWindowStateChangeEvent

func DeleteQWindowStateChangeEvent(this *QWindowStateChangeEvent)

func KeepMe

func KeepMe()

func MightBeRichText

func MightBeRichText(arg0 string) bool

func Operator_equal_equal56

func Operator_equal_equal56(first int, second int) bool

func Operator_equal_equal57

func Operator_equal_equal57(lhs QPageSize_ITF, rhs QPageSize_ITF) bool

func Operator_equal_equal58

func Operator_equal_equal58(lhs QCursor_ITF, rhs QCursor_ITF) bool

func Operator_equal_equal59

func Operator_equal_equal59(arg0 QSurfaceFormat_ITF, arg1 QSurfaceFormat_ITF) bool

func Operator_equal_equal60

func Operator_equal_equal60(q1 QQuaternion_ITF, q2 QQuaternion_ITF) bool

func Operator_equal_equal61

func Operator_equal_equal61(lhs QPageLayout_ITF, rhs QPageLayout_ITF) bool

func Operator_not_equal55

func Operator_not_equal55(lhs QPageSize_ITF, rhs QPageSize_ITF) bool

func Operator_not_equal56

func Operator_not_equal56(lhs QCursor_ITF, rhs QCursor_ITF) bool

func Operator_not_equal57

func Operator_not_equal57(arg0 QSurfaceFormat_ITF, arg1 QSurfaceFormat_ITF) bool

func Operator_not_equal58

func Operator_not_equal58(q1 QQuaternion_ITF, q2 QQuaternion_ITF) bool

func Operator_not_equal59

func Operator_not_equal59(lhs QPageLayout_ITF, rhs QPageLayout_ITF) bool

func Operator_or53

func Operator_or53(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or54

func Operator_or54(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or55

func Operator_or55(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or56

func Operator_or56(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or57

func Operator_or57(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or58

func Operator_or58(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or59

func Operator_or59(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or60

func Operator_or60(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or61

func Operator_or61(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or62

func Operator_or62(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or63

func Operator_or63(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or64

func Operator_or64(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or65

func Operator_or65(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or66

func Operator_or66(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or67

func Operator_or67(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or68

func Operator_or68(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or69

func Operator_or69(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or70

func Operator_or70(f1 int, f2 int) *qtcore.QIncompatibleFlag

func Operator_or71

func Operator_or71(f1 int, f2 int) *qtcore.QIncompatibleFlag

func QAccessibleEventString

func QAccessibleEventString(event int) string

func QAccessibleLocalizedActionDescription

func QAccessibleLocalizedActionDescription(actionName string) string

func QAccessibleRoleString

func QAccessibleRoleString(role int) string

func QAccessibleTableModelChangeEvent_ModelChangeTypeItemName

func QAccessibleTableModelChangeEvent_ModelChangeTypeItemName(val int) string

func QAccessible_Cleanup

func QAccessible_Cleanup()

func QAccessible_DeleteAccessibleInterface

func QAccessible_DeleteAccessibleInterface(uniqueId uint)

func QAccessible_EventItemName

func QAccessible_EventItemName(val int) string

func QAccessible_InterfaceTypeItemName

func QAccessible_InterfaceTypeItemName(val int) string

func QAccessible_IsActive

func QAccessible_IsActive() bool

func QAccessible_RegisterAccessibleInterface

func QAccessible_RegisterAccessibleInterface(iface QAccessibleInterface_ITF) uint

func QAccessible_RelationFlagItemName

func QAccessible_RelationFlagItemName(val int) string

func QAccessible_RoleItemName

func QAccessible_RoleItemName(val int) string

func QAccessible_SetActive

func QAccessible_SetActive(active bool)

func QAccessible_SetRootObject

func QAccessible_SetRootObject(object qtcore.QObject_ITF)

func QAccessible_TextBoundaryTypeItemName

func QAccessible_TextBoundaryTypeItemName(val int) string

func QAccessible_TextItemName

func QAccessible_TextItemName(val int) string

func QAccessible_UniqueId

func QAccessible_UniqueId(iface QAccessibleInterface_ITF) uint

func QAccessible_UpdateAccessibility

func QAccessible_UpdateAccessibility(event QAccessibleEvent_ITF)

func QAlpha

func QAlpha(rgb uint) int

func QBlue

func QBlue(rgb uint) int

func QClipboard_ModeItemName

func QClipboard_ModeItemName(val int) string

func QColor_ColorNames

func QColor_ColorNames() *qtcore.QStringList

func QColor_IsValidColor

func QColor_IsValidColor(name string) bool

func QColor_IsValidColor1

func QColor_IsValidColor1(arg0 qtcore.QStringView_ITF) bool

func QColor_IsValidColor2

func QColor_IsValidColor2(arg0 qtcore.QLatin1String_ITF) bool

func QColor_NameFormatItemName

func QColor_NameFormatItemName(val int) string

func QColor_SpecItemName

func QColor_SpecItemName(val int) string

func QContextMenuEvent_ReasonItemName

func QContextMenuEvent_ReasonItemName(val int) string

func QCursor_Pos

func QCursor_Pos() *qtcore.QPoint

func QCursor_Pos1

func QCursor_Pos1(screen QScreen_ITF) *qtcore.QPoint

func QCursor_SetPos

func QCursor_SetPos(x int, y int)

func QCursor_SetPos1

func QCursor_SetPos1(screen QScreen_ITF, x int, y int)

func QCursor_SetPos2

func QCursor_SetPos2(p qtcore.QPoint_ITF)

func QCursor_SetPos3

func QCursor_SetPos3(screen QScreen_ITF, p qtcore.QPoint_ITF)

func QDesktopServices_OpenUrl

func QDesktopServices_OpenUrl(url qtcore.QUrl_ITF) bool

func QDesktopServices_SetUrlHandler

func QDesktopServices_SetUrlHandler(scheme string, receiver qtcore.QObject_ITF, method string)

func QDesktopServices_UnsetUrlHandler

func QDesktopServices_UnsetUrlHandler(scheme string)

func QDoubleValidator_NotationItemName

func QDoubleValidator_NotationItemName(val int) string

func QDrag_Cancel

func QDrag_Cancel()

func QFontDatabase_AddApplicationFont

func QFontDatabase_AddApplicationFont(fileName string) int

func QFontDatabase_AddApplicationFontFromData

func QFontDatabase_AddApplicationFontFromData(fontData qtcore.QByteArray_ITF) int

func QFontDatabase_ApplicationFontFamilies

func QFontDatabase_ApplicationFontFamilies(id int) *qtcore.QStringList

func QFontDatabase_RemoveAllApplicationFonts

func QFontDatabase_RemoveAllApplicationFonts() bool

func QFontDatabase_RemoveApplicationFont

func QFontDatabase_RemoveApplicationFont(id int) bool

func QFontDatabase_SupportsThreadedFontRendering

func QFontDatabase_SupportsThreadedFontRendering() bool

func QFontDatabase_SystemFontItemName

func QFontDatabase_SystemFontItemName(val int) string

func QFontDatabase_WritingSystemItemName

func QFontDatabase_WritingSystemItemName(val int) string

func QFontDatabase_WritingSystemName

func QFontDatabase_WritingSystemName(writingSystem int) string

func QFontDatabase_WritingSystemSample

func QFontDatabase_WritingSystemSample(writingSystem int) string

func QFont_CacheStatistics

func QFont_CacheStatistics()

func QFont_CapitalizationItemName

func QFont_CapitalizationItemName(val int) string

func QFont_Cleanup

func QFont_Cleanup()

func QFont_HintingPreferenceItemName

func QFont_HintingPreferenceItemName(val int) string

func QFont_Initialize

func QFont_Initialize()

func QFont_InsertSubstitution

func QFont_InsertSubstitution(arg0 string, arg1 string)

func QFont_InsertSubstitutions

func QFont_InsertSubstitutions(arg0 string, arg1 qtcore.QStringList_ITF)

func QFont_RemoveSubstitutions

func QFont_RemoveSubstitutions(arg0 string)

func QFont_ResolvePropertiesItemName

func QFont_ResolvePropertiesItemName(val int) string

func QFont_SpacingTypeItemName

func QFont_SpacingTypeItemName(val int) string

func QFont_StretchItemName

func QFont_StretchItemName(val int) string

func QFont_StyleHintItemName

func QFont_StyleHintItemName(val int) string

func QFont_StyleItemName

func QFont_StyleItemName(val int) string

func QFont_StyleStrategyItemName

func QFont_StyleStrategyItemName(val int) string

func QFont_Substitute

func QFont_Substitute(arg0 string) string

func QFont_Substitutes

func QFont_Substitutes(arg0 string) *qtcore.QStringList

func QFont_Substitutions

func QFont_Substitutions() *qtcore.QStringList

func QFont_WeightItemName

func QFont_WeightItemName(val int) string

func QFuzzyCompare3

func QFuzzyCompare3(q1 QQuaternion_ITF, q2 QQuaternion_ITF) bool

Returns true if q1 and q2 are equal, allowing for a small fuzziness factor for floating-point comparisons; false otherwise.

func QGenericPluginFactory_Create

func QGenericPluginFactory_Create(arg0 string, arg1 string) *qtcore.QObject

func QGenericPluginFactory_Keys

func QGenericPluginFactory_Keys() *qtcore.QStringList

func QGlyphRun_GlyphRunFlagItemName

func QGlyphRun_GlyphRunFlagItemName(val int) string

func QGradient_CoordinateModeItemName

func QGradient_CoordinateModeItemName(val int) string

func QGradient_InterpolationModeItemName

func QGradient_InterpolationModeItemName(val int) string

func QGradient_PresetItemName

func QGradient_PresetItemName(val int) string

func QGradient_SpreadItemName

func QGradient_SpreadItemName(val int) string

func QGradient_TypeItemName

func QGradient_TypeItemName(val int) string

func QGray

func QGray(rgb uint) int

func QGray1

func QGray1(r int, g int, b int) int

func QGreen

func QGreen(rgb uint) int

func QGuiApplication_ApplicationDisplayName

func QGuiApplication_ApplicationDisplayName() string

func QGuiApplication_ApplicationState

func QGuiApplication_ApplicationState() int

func QGuiApplication_ChangeOverrideCursor

func QGuiApplication_ChangeOverrideCursor(arg0 QCursor_ITF)

func QGuiApplication_DesktopFileName

func QGuiApplication_DesktopFileName() string

func QGuiApplication_DesktopSettingsAware

func QGuiApplication_DesktopSettingsAware() bool

func QGuiApplication_Exec

func QGuiApplication_Exec() int

func QGuiApplication_FocusObject

func QGuiApplication_FocusObject() *qtcore.QObject

func QGuiApplication_IsFallbackSessionManagementEnabled

func QGuiApplication_IsFallbackSessionManagementEnabled() bool

func QGuiApplication_IsLeftToRight

func QGuiApplication_IsLeftToRight() bool

func QGuiApplication_IsRightToLeft

func QGuiApplication_IsRightToLeft() bool

func QGuiApplication_KeyboardModifiers

func QGuiApplication_KeyboardModifiers() int

func QGuiApplication_LayoutDirection

func QGuiApplication_LayoutDirection() int

func QGuiApplication_MouseButtons

func QGuiApplication_MouseButtons() int

func QGuiApplication_PlatformFunction

func QGuiApplication_PlatformFunction(function qtcore.QByteArray_ITF) unsafe.Pointer

func QGuiApplication_PlatformName

func QGuiApplication_PlatformName() string

func QGuiApplication_QueryKeyboardModifiers

func QGuiApplication_QueryKeyboardModifiers() int

func QGuiApplication_QuitOnLastWindowClosed

func QGuiApplication_QuitOnLastWindowClosed() bool

func QGuiApplication_RestoreOverrideCursor

func QGuiApplication_RestoreOverrideCursor()

func QGuiApplication_SetApplicationDisplayName

func QGuiApplication_SetApplicationDisplayName(name string)

func QGuiApplication_SetDesktopFileName

func QGuiApplication_SetDesktopFileName(name string)

func QGuiApplication_SetDesktopSettingsAware

func QGuiApplication_SetDesktopSettingsAware(on bool)

func QGuiApplication_SetFallbackSessionManagementEnabled

func QGuiApplication_SetFallbackSessionManagementEnabled(arg0 bool)

func QGuiApplication_SetFont

func QGuiApplication_SetFont(arg0 QFont_ITF)

func QGuiApplication_SetLayoutDirection

func QGuiApplication_SetLayoutDirection(direction int)

func QGuiApplication_SetOverrideCursor

func QGuiApplication_SetOverrideCursor(arg0 QCursor_ITF)

func QGuiApplication_SetPalette

func QGuiApplication_SetPalette(pal QPalette_ITF)

func QGuiApplication_SetQuitOnLastWindowClosed

func QGuiApplication_SetQuitOnLastWindowClosed(quit bool)

func QGuiApplication_SetWindowIcon

func QGuiApplication_SetWindowIcon(icon QIcon_ITF)

func QGuiApplication_Sync

func QGuiApplication_Sync()

func QIconEngine_IconEngineHookItemName

func QIconEngine_IconEngineHookItemName(val int) string

func QIcon_FallbackSearchPaths

func QIcon_FallbackSearchPaths() *qtcore.QStringList

func QIcon_FallbackThemeName

func QIcon_FallbackThemeName() string

func QIcon_HasThemeIcon

func QIcon_HasThemeIcon(name string) bool

func QIcon_ModeItemName

func QIcon_ModeItemName(val int) string

func QIcon_SetFallbackSearchPaths

func QIcon_SetFallbackSearchPaths(paths qtcore.QStringList_ITF)

func QIcon_SetFallbackThemeName

func QIcon_SetFallbackThemeName(name string)

func QIcon_SetThemeName

func QIcon_SetThemeName(path string)

func QIcon_SetThemeSearchPaths

func QIcon_SetThemeSearchPaths(searchpath qtcore.QStringList_ITF)

func QIcon_StateItemName

func QIcon_StateItemName(val int) string

func QIcon_ThemeName

func QIcon_ThemeName() string

func QIcon_ThemeSearchPaths

func QIcon_ThemeSearchPaths() *qtcore.QStringList

func QImageIOHandler_ImageOptionItemName

func QImageIOHandler_ImageOptionItemName(val int) string

func QImageIOHandler_TransformationItemName

func QImageIOHandler_TransformationItemName(val int) string

func QImageIOPlugin_CapabilityItemName

func QImageIOPlugin_CapabilityItemName(val int) string

func QImageReader_ImageFormat1

func QImageReader_ImageFormat1(fileName string) *qtcore.QByteArray

func QImageReader_ImageFormat2

func QImageReader_ImageFormat2(device qtcore.QIODevice_ITF) *qtcore.QByteArray

func QImageReader_ImageReaderErrorItemName

func QImageReader_ImageReaderErrorItemName(val int) string

func QImageWriter_ImageWriterErrorItemName

func QImageWriter_ImageWriterErrorItemName(val int) string

func QImage_FormatItemName

func QImage_FormatItemName(val int) string

func QImage_InvertModeItemName

func QImage_InvertModeItemName(val int) string

func QImage_ToImageFormat

func QImage_ToImageFormat(format QPixelFormat_ITF) int

func QInputMethodEvent_AttributeTypeItemName

func QInputMethodEvent_AttributeTypeItemName(val int) string

func QInputMethod_ActionItemName

func QInputMethod_ActionItemName(val int) string

func QInputMethod_QueryFocusObject

func QInputMethod_QueryFocusObject(query int, argument qtcore.QVariant_ITF) *qtcore.QVariant

func QIsGray

func QIsGray(rgb uint) bool

func QKeySequence_SequenceFormatItemName

func QKeySequence_SequenceFormatItemName(val int) string

func QKeySequence_SequenceMatchItemName

func QKeySequence_SequenceMatchItemName(val int) string

func QKeySequence_StandardKeyItemName

func QKeySequence_StandardKeyItemName(val int) string

func QMatrix4x4_ItemName

func QMatrix4x4_ItemName(val int) string

func QMovie_CacheModeItemName

func QMovie_CacheModeItemName(val int) string

func QMovie_MovieStateItemName

func QMovie_MovieStateItemName(val int) string

func QPageLayout_ModeItemName

func QPageLayout_ModeItemName(val int) string

func QPageLayout_OrientationItemName

func QPageLayout_OrientationItemName(val int) string

func QPageLayout_UnitItemName

func QPageLayout_UnitItemName(val int) string

func QPageSize_DefinitionSize1

func QPageSize_DefinitionSize1(pageSizeId int) *qtcore.QSizeF

func QPageSize_DefinitionUnits1

func QPageSize_DefinitionUnits1(pageSizeId int) int

func QPageSize_Id1

func QPageSize_Id1(pointSize qtcore.QSize_ITF, matchPolicy int) int

func QPageSize_Id2

func QPageSize_Id2(size qtcore.QSizeF_ITF, units int, matchPolicy int) int

func QPageSize_Id3

func QPageSize_Id3(windowsId int) int

func QPageSize_Key1

func QPageSize_Key1(pageSizeId int) string

func QPageSize_Name1

func QPageSize_Name1(pageSizeId int) string

func QPageSize_PageSizeIdItemName

func QPageSize_PageSizeIdItemName(val int) string

func QPageSize_Size1

func QPageSize_Size1(pageSizeId int, units int) *qtcore.QSizeF

func QPageSize_SizeMatchPolicyItemName

func QPageSize_SizeMatchPolicyItemName(val int) string

func QPageSize_SizePixels1

func QPageSize_SizePixels1(pageSizeId int, resolution int) *qtcore.QSize

func QPageSize_SizePoints1

func QPageSize_SizePoints1(pageSizeId int) *qtcore.QSize

func QPageSize_UnitItemName

func QPageSize_UnitItemName(val int) string

func QPageSize_WindowsId1

func QPageSize_WindowsId1(pageSizeId int) int

func QPagedPaintDevice_PageSizeItemName

func QPagedPaintDevice_PageSizeItemName(val int) string

func QPagedPaintDevice_PdfVersionItemName

func QPagedPaintDevice_PdfVersionItemName(val int) string

func QPaintDevice_DevicePixelRatioFScale

func QPaintDevice_DevicePixelRatioFScale() float64

func QPaintDevice_PaintDeviceMetricItemName

func QPaintDevice_PaintDeviceMetricItemName(val int) string

func QPaintEngine_DirtyFlagItemName

func QPaintEngine_DirtyFlagItemName(val int) string

func QPaintEngine_PaintEngineFeatureItemName

func QPaintEngine_PaintEngineFeatureItemName(val int) string

func QPaintEngine_PolygonDrawModeItemName

func QPaintEngine_PolygonDrawModeItemName(val int) string

func QPaintEngine_TypeItemName

func QPaintEngine_TypeItemName(val int) string

func QPainterPath_ElementTypeItemName

func QPainterPath_ElementTypeItemName(val int) string

func QPainter_CompositionModeItemName

func QPainter_CompositionModeItemName(val int) string

func QPainter_PixmapFragmentHintItemName

func QPainter_PixmapFragmentHintItemName(val int) string

func QPainter_RenderHintItemName

func QPainter_RenderHintItemName(val int) string

func QPainter_RestoreRedirected

func QPainter_RestoreRedirected(device QPaintDevice_ITF)

func QPainter_SetRedirected

func QPainter_SetRedirected(device QPaintDevice_ITF, replacement QPaintDevice_ITF, offset qtcore.QPoint_ITF)

func QPalette_ColorGroupItemName

func QPalette_ColorGroupItemName(val int) string

func QPalette_ColorRoleItemName

func QPalette_ColorRoleItemName(val int) string

func QPictureIO_PictureFormat

func QPictureIO_PictureFormat(fileName string) *qtcore.QByteArray

func QPictureIO_PictureFormat1

func QPictureIO_PictureFormat1(arg0 qtcore.QIODevice_ITF) *qtcore.QByteArray

func QPicture_InputFormatList

func QPicture_InputFormatList() *qtcore.QStringList

func QPicture_OutputFormatList

func QPicture_OutputFormatList() *qtcore.QStringList

func QPicture_PictureFormat

func QPicture_PictureFormat(fileName string) string

func QPixelFormat_AlphaPositionItemName

func QPixelFormat_AlphaPositionItemName(val int) string

func QPixelFormat_AlphaPremultipliedItemName

func QPixelFormat_AlphaPremultipliedItemName(val int) string

func QPixelFormat_AlphaUsageItemName

func QPixelFormat_AlphaUsageItemName(val int) string

func QPixelFormat_ByteOrderItemName

func QPixelFormat_ByteOrderItemName(val int) string

func QPixelFormat_ColorModelItemName

func QPixelFormat_ColorModelItemName(val int) string

func QPixelFormat_FieldItemName

func QPixelFormat_FieldItemName(val int) string

func QPixelFormat_FieldWidthItemName

func QPixelFormat_FieldWidthItemName(val int) string

func QPixelFormat_TypeInterpretationItemName

func QPixelFormat_TypeInterpretationItemName(val int) string

func QPixelFormat_YUVLayoutItemName

func QPixelFormat_YUVLayoutItemName(val int) string

func QPixmapCache_CacheLimit

func QPixmapCache_CacheLimit() int

func QPixmapCache_Clear

func QPixmapCache_Clear()

func QPixmapCache_Find1

func QPixmapCache_Find1(key string, pixmap QPixmap_ITF) bool

func QPixmapCache_Find2

func QPixmapCache_Find2(key string, pixmap QPixmap_ITF) bool

func QPixmapCache_Remove

func QPixmapCache_Remove(key string)

func QPixmapCache_SetCacheLimit

func QPixmapCache_SetCacheLimit(arg0 int)

func QPixmap_DefaultDepth

func QPixmap_DefaultDepth() int

func QPlatformSurfaceEvent_SurfaceEventTypeItemName

func QPlatformSurfaceEvent_SurfaceEventTypeItemName(val int) string

func QPremultiply

func QPremultiply(x uint) uint

func QQuaternion_DotProduct

func QQuaternion_DotProduct(q1 QQuaternion_ITF, q2 QQuaternion_ITF) float32

func QRawFont_AntialiasingTypeItemName

func QRawFont_AntialiasingTypeItemName(val int) string

func QRawFont_LayoutFlagItemName

func QRawFont_LayoutFlagItemName(val int) string

func QRed

func QRed(rgb uint) int

func QRegion_RegionTypeItemName

func QRegion_RegionTypeItemName(val int) string

func QRgb

func QRgb(r int, g int, b int) uint

func QRgba

func QRgba(r int, g int, b int, a int) uint

func QRgba64_ShiftsItemName

func QRgba64_ShiftsItemName(val int) string

func QScrollEvent_ScrollStateItemName

func QScrollEvent_ScrollStateItemName(val int) string

func QSessionManager_RestartHintItemName

func QSessionManager_RestartHintItemName(val int) string

func QStandardItem_ItemTypeItemName

func QStandardItem_ItemTypeItemName(val int) string

func QStaticText_PerformanceHintItemName

func QStaticText_PerformanceHintItemName(val int) string

func QSurfaceFormat_ColorSpaceItemName

func QSurfaceFormat_ColorSpaceItemName(val int) string

func QSurfaceFormat_FormatOptionItemName

func QSurfaceFormat_FormatOptionItemName(val int) string

func QSurfaceFormat_OpenGLContextProfileItemName

func QSurfaceFormat_OpenGLContextProfileItemName(val int) string

func QSurfaceFormat_RenderableTypeItemName

func QSurfaceFormat_RenderableTypeItemName(val int) string

func QSurfaceFormat_SetDefaultFormat

func QSurfaceFormat_SetDefaultFormat(format QSurfaceFormat_ITF)

func QSurfaceFormat_SwapBehaviorItemName

func QSurfaceFormat_SwapBehaviorItemName(val int) string

func QSurface_SurfaceClassItemName

func QSurface_SurfaceClassItemName(val int) string

func QSurface_SurfaceTypeItemName

func QSurface_SurfaceTypeItemName(val int) string

func QTabletEvent_PointerTypeItemName

func QTabletEvent_PointerTypeItemName(val int) string

func QTabletEvent_TabletDeviceItemName

func QTabletEvent_TabletDeviceItemName(val int) string

func QTextBlockFormat_LineHeightTypesItemName

func QTextBlockFormat_LineHeightTypesItemName(val int) string

func QTextCharFormat_FontPropertiesInheritanceBehaviorItemName

func QTextCharFormat_FontPropertiesInheritanceBehaviorItemName(val int) string

func QTextCharFormat_UnderlineStyleItemName

func QTextCharFormat_UnderlineStyleItemName(val int) string

func QTextCharFormat_VerticalAlignmentItemName

func QTextCharFormat_VerticalAlignmentItemName(val int) string

func QTextCursor_MoveModeItemName

func QTextCursor_MoveModeItemName(val int) string

func QTextCursor_MoveOperationItemName

func QTextCursor_MoveOperationItemName(val int) string

func QTextCursor_SelectionTypeItemName

func QTextCursor_SelectionTypeItemName(val int) string

func QTextDocument_FindFlagItemName

func QTextDocument_FindFlagItemName(val int) string

func QTextDocument_MetaInformationItemName

func QTextDocument_MetaInformationItemName(val int) string

func QTextDocument_ResourceTypeItemName

func QTextDocument_ResourceTypeItemName(val int) string

func QTextDocument_StacksItemName

func QTextDocument_StacksItemName(val int) string

func QTextFormat_FormatTypeItemName

func QTextFormat_FormatTypeItemName(val int) string

func QTextFormat_ObjectTypesItemName

func QTextFormat_ObjectTypesItemName(val int) string

func QTextFormat_PageBreakFlagItemName

func QTextFormat_PageBreakFlagItemName(val int) string

func QTextFormat_PropertyItemName

func QTextFormat_PropertyItemName(val int) string

func QTextFrameFormat_BorderStyleItemName

func QTextFrameFormat_BorderStyleItemName(val int) string

func QTextFrameFormat_PositionItemName

func QTextFrameFormat_PositionItemName(val int) string

func QTextItem_RenderFlagItemName

func QTextItem_RenderFlagItemName(val int) string

func QTextLayout_CursorModeItemName

func QTextLayout_CursorModeItemName(val int) string

func QTextLength_TypeItemName

func QTextLength_TypeItemName(val int) string

func QTextLine_CursorPositionItemName

func QTextLine_CursorPositionItemName(val int) string

func QTextLine_EdgeItemName

func QTextLine_EdgeItemName(val int) string

func QTextListFormat_StyleItemName

func QTextListFormat_StyleItemName(val int) string

func QTextOption_FlagItemName

func QTextOption_FlagItemName(val int) string

func QTextOption_TabTypeItemName

func QTextOption_TabTypeItemName(val int) string

func QTextOption_WrapModeItemName

func QTextOption_WrapModeItemName(val int) string

func QTouchDevice_CapabilityFlagItemName

func QTouchDevice_CapabilityFlagItemName(val int) string

func QTouchDevice_DeviceTypeItemName

func QTouchDevice_DeviceTypeItemName(val int) string

func QTransform_QuadToQuad

func QTransform_QuadToQuad(one QPolygonF_ITF, two QPolygonF_ITF, result QTransform_ITF) bool

func QTransform_QuadToSquare

func QTransform_QuadToSquare(quad QPolygonF_ITF, result QTransform_ITF) bool

func QTransform_SquareToQuad

func QTransform_SquareToQuad(square QPolygonF_ITF, result QTransform_ITF) bool

func QTransform_TransformationTypeItemName

func QTransform_TransformationTypeItemName(val int) string

func QUnpremultiply

func QUnpremultiply(p uint) uint

func QValidator_StateItemName

func QValidator_StateItemName(val int) string

func QVector2D_DotProduct

func QVector2D_DotProduct(v1 QVector2D_ITF, v2 QVector2D_ITF) float32

func QVector3D_DotProduct

func QVector3D_DotProduct(v1 QVector3D_ITF, v2 QVector3D_ITF) float32

func QVector4D_DotProduct

func QVector4D_DotProduct(v1 QVector4D_ITF, v2 QVector4D_ITF) float32

func QWheelEvent_ItemName

func QWheelEvent_ItemName(val int) string

func QWindow_AncestorModeItemName

func QWindow_AncestorModeItemName(val int) string

func QWindow_VisibilityItemName

func QWindow_VisibilityItemName(val int) string

func Qt_findAtNxFile

func Qt_findAtNxFile(baseFileName string, targetDevicePixelRatio float64, sourceDevicePixelRatio unsafe.Pointer) string

func Swap32

func Swap32(value1 int, value2 int)

func Swap33

func Swap33(value1 QPolygonF_ITF, value2 QPolygonF_ITF)

Swaps polygon other with this polygon. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap34

func Swap34(value1 QPageSize_ITF, value2 QPageSize_ITF)

Swaps this QPageSize with other. This function is very fast and never fails.

func Swap35

func Swap35(value1 QGlyphRun_ITF, value2 QGlyphRun_ITF)

Swaps this glyph run instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap36

func Swap36(value1 QPolygon_ITF, value2 QPolygon_ITF)

Swaps polygon other with this polygon. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap37

func Swap37(value1 QPicture_ITF, value2 QPicture_ITF)

Swaps picture other with this picture. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap38

func Swap38(value1 QPalette_ITF, value2 QPalette_ITF)

Swaps this palette instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap39

func Swap39(value1 QRegion_ITF, value2 QRegion_ITF)

Swaps region other with this region. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap40

func Swap40(value1 QPixmap_ITF, value2 QPixmap_ITF)

Swaps pixmap other with this pixmap. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap41

func Swap41(value1 QCursor_ITF, value2 QCursor_ITF)

Swaps this cursor with the other cursor.

func Swap42

func Swap42(value1 QBitmap_ITF, value2 QBitmap_ITF)

Swaps bitmap other with this bitmap. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap43

func Swap43(value1 QImage_ITF, value2 QImage_ITF)

Swaps image other with this image. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap44

func Swap44(value1 QBrush_ITF, value2 QBrush_ITF)

Swaps brush other with this brush. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap45

func Swap45(value1 QIcon_ITF, value2 QIcon_ITF)

Swaps icon other with this icon. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap46

func Swap46(value1 QPen_ITF, value2 QPen_ITF)

Swaps pen other with this pen. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap48

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap49

func Swap49(value1 QOpenGLDebugMessage_ITF, value2 QOpenGLDebugMessage_ITF)

func Swap50

func Swap50(value1 QTextTableFormat_ITF, value2 QTextTableFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap51

func Swap51(value1 QTextImageFormat_ITF, value2 QTextImageFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap52

func Swap52(value1 QTextFrameFormat_ITF, value2 QTextFrameFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap53

func Swap53(value1 QTextBlockFormat_ITF, value2 QTextBlockFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap54

func Swap54(value1 QTextListFormat_ITF, value2 QTextListFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap55

func Swap55(value1 QTextCharFormat_ITF, value2 QTextCharFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap56

func Swap56(value1 QPainterPath_ITF, value2 QPainterPath_ITF)

Swaps painter path other with this painter path. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func Swap57

func Swap57(value1 QTextFormat_ITF, value2 QTextFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap58

func Swap58(value1 QTextCursor_ITF, value2 QTextCursor_ITF)

Swaps this text cursor instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap59

func Swap59(value1 QStaticText_ITF, value2 QStaticText_ITF)

Swaps this static text instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func Swap60

func Swap60(value1 QPageLayout_ITF, value2 QPageLayout_ITF)

Swaps this page layout with other. This function is very fast and never fails.

Types

type QAbstractOpenGLFunctions

type QAbstractOpenGLFunctions struct {
	*qtrt.CObject
}

func NewQAbstractOpenGLFunctions

func NewQAbstractOpenGLFunctions() *QAbstractOpenGLFunctions

func NewQAbstractOpenGLFunctionsFromPointer

func NewQAbstractOpenGLFunctionsFromPointer(cthis unsafe.Pointer) *QAbstractOpenGLFunctions

func (*QAbstractOpenGLFunctions) GetCthis

func (this *QAbstractOpenGLFunctions) GetCthis() unsafe.Pointer

func (*QAbstractOpenGLFunctions) InheritIsInitialized

func (this *QAbstractOpenGLFunctions) InheritIsInitialized(f func() bool)

bool isInitialized()

func (*QAbstractOpenGLFunctions) InitializeOpenGLFunctions

func (this *QAbstractOpenGLFunctions) InitializeOpenGLFunctions() bool

func (*QAbstractOpenGLFunctions) IsInitialized

func (this *QAbstractOpenGLFunctions) IsInitialized() bool

func (*QAbstractOpenGLFunctions) NewForInherit

func (*QAbstractOpenGLFunctions) NewFromPointer

func (*QAbstractOpenGLFunctions) QAbstractOpenGLFunctions_PTR

func (ptr *QAbstractOpenGLFunctions) QAbstractOpenGLFunctions_PTR() *QAbstractOpenGLFunctions

func (*QAbstractOpenGLFunctions) SetCthis

func (this *QAbstractOpenGLFunctions) SetCthis(cthis unsafe.Pointer)

type QAbstractOpenGLFunctions_ITF

type QAbstractOpenGLFunctions_ITF interface {
	QAbstractOpenGLFunctions_PTR() *QAbstractOpenGLFunctions
}

type QAbstractTextDocumentLayout

type QAbstractTextDocumentLayout struct {
	*qtcore.QObject
}

func NewQAbstractTextDocumentLayout

func NewQAbstractTextDocumentLayout(doc QTextDocument_ITF) *QAbstractTextDocumentLayout

func NewQAbstractTextDocumentLayoutFromPointer

func NewQAbstractTextDocumentLayoutFromPointer(cthis unsafe.Pointer) *QAbstractTextDocumentLayout

func (*QAbstractTextDocumentLayout) AnchorAt

Returns the reference of the anchor the given position, or an empty string if no anchor exists at that point.

func (*QAbstractTextDocumentLayout) BlockBoundingRect

func (this *QAbstractTextDocumentLayout) BlockBoundingRect(block QTextBlock_ITF) *qtcore.QRectF

Returns the bounding rectangle of block.

func (*QAbstractTextDocumentLayout) Document

func (this *QAbstractTextDocumentLayout) Document() *QTextDocument

Returns the text document that this layout is operating on.

func (*QAbstractTextDocumentLayout) DocumentChanged

func (this *QAbstractTextDocumentLayout) DocumentChanged(from int, charsRemoved int, charsAdded int)

This function is called whenever the contents of the document change. A change occurs when text is inserted, removed, or a combination of these two. The change is specified by position, charsRemoved, and charsAdded corresponding to the starting character position of the change, the number of characters removed from the document, and the number of characters added.

For example, when inserting the text "Hello" into an empty document, charsRemoved would be 0 and charsAdded would be 5 (the length of the string).

Replacing text is a combination of removing and inserting. For example, if the text "Hello" gets replaced by "Hi", charsRemoved would be 5 and charsAdded would be 2.

For subclasses of QAbstractTextDocumentLayout, this is the central function where a large portion of the work to lay out and position document contents is done.

For example, in a subclass that only arranges blocks of text, an implementation of this function would have to do the following:

Determine the list of changed QTextBlock(s) using the parameters provided. Each QTextBlock object's corresponding QTextLayout object needs to be processed. You can access the QTextBlock's layout using the QTextBlock::layout() function. This processing should take the document's page size into consideration. If the total number of pages changed, the pageCountChanged() signal should be emitted. If the total size changed, the documentSizeChanged() signal should be emitted. The update() signal should be emitted to schedule a repaint of areas in the layout that require repainting.

See also QTextLayout.

func (*QAbstractTextDocumentLayout) DocumentSize

func (this *QAbstractTextDocumentLayout) DocumentSize() *qtcore.QSizeF

Returns the total size of the document's layout.

This information can be used by display widgets to update their scroll bars correctly.

See also documentSizeChanged() and QTextDocument::pageSize.

func (*QAbstractTextDocumentLayout) DocumentSizeChanged

func (this *QAbstractTextDocumentLayout) DocumentSizeChanged(newSize qtcore.QSizeF_ITF)

This signal is emitted when the size of the document layout changes to newSize.

Subclasses of QAbstractTextDocumentLayout should emit this signal when the document's entire layout size changes. This signal is useful for widgets that display text documents since it enables them to update their scroll bars correctly.

See also documentSize().

func (*QAbstractTextDocumentLayout) DrawInlineObject

func (this *QAbstractTextDocumentLayout) DrawInlineObject(painter QPainter_ITF, rect qtcore.QRectF_ITF, object QTextInlineObject_ITF, posInDocument int, format QTextFormat_ITF)

This function is called to draw the inline object, object, with the given painter within the rectangle specified by rect using the specified text format.

posInDocument specifies the position of the object within the document.

The default implementation calls drawObject() on the object handlers. This function is called only within Qt. Subclasses can reimplement this function to customize the drawing of inline objects.

See also draw().

func (*QAbstractTextDocumentLayout) Format

func (this *QAbstractTextDocumentLayout) Format(pos int) *QTextCharFormat

Returns the character format that is applicable at the given position.

func (*QAbstractTextDocumentLayout) FormatAt

Returns the text format at the given position pos.

This function was introduced in Qt 5.8.

func (*QAbstractTextDocumentLayout) FormatIndex

func (this *QAbstractTextDocumentLayout) FormatIndex(pos int) int

func (*QAbstractTextDocumentLayout) FrameBoundingRect

func (this *QAbstractTextDocumentLayout) FrameBoundingRect(frame QTextFrame_ITF) *qtcore.QRectF

Returns the bounding rectangle of frame.

func (*QAbstractTextDocumentLayout) GetCthis

func (this *QAbstractTextDocumentLayout) GetCthis() unsafe.Pointer

func (*QAbstractTextDocumentLayout) HandlerForObject

func (this *QAbstractTextDocumentLayout) HandlerForObject(objectType int) *QTextObjectInterface

Returns a handler for objects of the given objectType.

func (*QAbstractTextDocumentLayout) HitTest

func (this *QAbstractTextDocumentLayout) HitTest(point qtcore.QPointF_ITF, accuracy int) int

Returns the cursor position for the given point with the specified accuracy. Returns -1 if no valid cursor position was found.

func (*QAbstractTextDocumentLayout) ImageAt

Returns the source of the image at the given position pos, or an empty string if no image exists at that point.

This function was introduced in Qt 5.8.

func (*QAbstractTextDocumentLayout) InheritDocumentChanged

func (this *QAbstractTextDocumentLayout) InheritDocumentChanged(f func(from int, charsRemoved int, charsAdded int))

void documentChanged(int, int, int)

func (*QAbstractTextDocumentLayout) InheritDrawInlineObject

func (this *QAbstractTextDocumentLayout) InheritDrawInlineObject(f func(painter *QPainter, rect *qtcore.QRectF, object *QTextInlineObject, posInDocument int, format *QTextFormat))

void drawInlineObject(QPainter *, const QRectF &, QTextInlineObject, int, const QTextFormat &)

func (*QAbstractTextDocumentLayout) InheritFormat

func (this *QAbstractTextDocumentLayout) InheritFormat(f func(pos int) unsafe.Pointer)

QTextCharFormat format(int)

func (*QAbstractTextDocumentLayout) InheritFormatIndex

func (this *QAbstractTextDocumentLayout) InheritFormatIndex(f func(pos int) int)

int formatIndex(int)

func (*QAbstractTextDocumentLayout) InheritPositionInlineObject

func (this *QAbstractTextDocumentLayout) InheritPositionInlineObject(f func(item *QTextInlineObject, posInDocument int, format *QTextFormat))

void positionInlineObject(QTextInlineObject, int, const QTextFormat &)

func (*QAbstractTextDocumentLayout) InheritResizeInlineObject

func (this *QAbstractTextDocumentLayout) InheritResizeInlineObject(f func(item *QTextInlineObject, posInDocument int, format *QTextFormat))

void resizeInlineObject(QTextInlineObject, int, const QTextFormat &)

func (*QAbstractTextDocumentLayout) MetaObject

func (this *QAbstractTextDocumentLayout) MetaObject() *qtcore.QMetaObject

func (*QAbstractTextDocumentLayout) NewForInherit

Creates a new text document layout for the given document.

func (*QAbstractTextDocumentLayout) NewFromPointer

func (*QAbstractTextDocumentLayout) PageCount

func (this *QAbstractTextDocumentLayout) PageCount() int

Returns the number of pages contained in the layout.

See also pageCountChanged().

func (*QAbstractTextDocumentLayout) PageCountChanged

func (this *QAbstractTextDocumentLayout) PageCountChanged(newPages int)

This signal is emitted when the number of pages in the layout changes; newPages is the updated page count.

Subclasses of QAbstractTextDocumentLayout should emit this signal when the number of pages in the layout has changed. Changes to the page count are caused by changes to the layout or the document content itself.

See also pageCount().

func (*QAbstractTextDocumentLayout) PaintDevice

func (this *QAbstractTextDocumentLayout) PaintDevice() *QPaintDevice

Returns the paint device used to render the document's layout.

See also setPaintDevice().

func (*QAbstractTextDocumentLayout) PositionInlineObject

func (this *QAbstractTextDocumentLayout) PositionInlineObject(item QTextInlineObject_ITF, posInDocument int, format QTextFormat_ITF)

Lays out the inline object item using the given text format.

posInDocument specifies the position of the object within the document.

The default implementation does nothing. This function is called only within Qt. Subclasses can reimplement this function to customize the position of inline objects.

See also drawInlineObject().

func (*QAbstractTextDocumentLayout) QAbstractTextDocumentLayout_PTR

func (ptr *QAbstractTextDocumentLayout) QAbstractTextDocumentLayout_PTR() *QAbstractTextDocumentLayout

func (*QAbstractTextDocumentLayout) RegisterHandler

func (this *QAbstractTextDocumentLayout) RegisterHandler(objectType int, component qtcore.QObject_ITF)

Registers the given component as a handler for items of the given objectType.

Note: registerHandler() has to be called once for each object type. This means that there is only one handler for multiple replacement characters of the same object type.

The text document layout does not take ownership of component.

func (*QAbstractTextDocumentLayout) ResizeInlineObject

func (this *QAbstractTextDocumentLayout) ResizeInlineObject(item QTextInlineObject_ITF, posInDocument int, format QTextFormat_ITF)

Sets the size of the inline object item corresponding to the text format.

posInDocument specifies the position of the object within the document.

The default implementation resizes the item to the size returned by the object handler's intrinsicSize() function. This function is called only within Qt. Subclasses can reimplement this function to customize the resizing of inline objects.

func (*QAbstractTextDocumentLayout) SetCthis

func (this *QAbstractTextDocumentLayout) SetCthis(cthis unsafe.Pointer)

func (*QAbstractTextDocumentLayout) SetPaintDevice

func (this *QAbstractTextDocumentLayout) SetPaintDevice(device QPaintDevice_ITF)

Sets the paint device used for rendering the document's layout to the given device.

See also paintDevice().

func (*QAbstractTextDocumentLayout) UnregisterHandler

func (this *QAbstractTextDocumentLayout) UnregisterHandler(objectType int, component qtcore.QObject_ITF)

Unregisters the given component as a handler for items of the given objectType, or any handler if the component is not specified.

This function was introduced in Qt 5.2.

func (*QAbstractTextDocumentLayout) UnregisterHandlerp

func (this *QAbstractTextDocumentLayout) UnregisterHandlerp(objectType int)

Unregisters the given component as a handler for items of the given objectType, or any handler if the component is not specified.

This function was introduced in Qt 5.2.

func (*QAbstractTextDocumentLayout) Update

func (this *QAbstractTextDocumentLayout) Update(arg0 qtcore.QRectF_ITF)

This signal is emitted when the rectangle rect has been updated.

Subclasses of QAbstractTextDocumentLayout should emit this signal when the layout of the contents change in order to repaint.

func (*QAbstractTextDocumentLayout) UpdateBlock

func (this *QAbstractTextDocumentLayout) UpdateBlock(block QTextBlock_ITF)

This signal is emitted when the specified block has been updated.

Subclasses of QAbstractTextDocumentLayout should emit this signal when the layout of block has changed in order to repaint.

This function was introduced in Qt 4.4.

func (*QAbstractTextDocumentLayout) Updatep

func (this *QAbstractTextDocumentLayout) Updatep()

This signal is emitted when the rectangle rect has been updated.

Subclasses of QAbstractTextDocumentLayout should emit this signal when the layout of the contents change in order to repaint.

type QAbstractTextDocumentLayout_ITF

type QAbstractTextDocumentLayout_ITF interface {
	qtcore.QObject_ITF
	QAbstractTextDocumentLayout_PTR() *QAbstractTextDocumentLayout
}

type QAbstractUndoItem

type QAbstractUndoItem struct {
	*qtrt.CObject
}

func NewQAbstractUndoItemFromPointer

func NewQAbstractUndoItemFromPointer(cthis unsafe.Pointer) *QAbstractUndoItem

func (*QAbstractUndoItem) GetCthis

func (this *QAbstractUndoItem) GetCthis() unsafe.Pointer

func (*QAbstractUndoItem) NewFromPointer

func (*QAbstractUndoItem) NewFromPointer(cthis unsafe.Pointer) *QAbstractUndoItem

func (*QAbstractUndoItem) QAbstractUndoItem_PTR

func (ptr *QAbstractUndoItem) QAbstractUndoItem_PTR() *QAbstractUndoItem

func (*QAbstractUndoItem) Redo

func (this *QAbstractUndoItem) Redo()

Redoes the last editing operation on the document if redo is available.

The provided cursor is positioned at the end of the location where the edition operation was redone.

This function was introduced in Qt 4.2.

func (*QAbstractUndoItem) SetCthis

func (this *QAbstractUndoItem) SetCthis(cthis unsafe.Pointer)

func (*QAbstractUndoItem) Undo

func (this *QAbstractUndoItem) Undo()

Undoes the last editing operation on the document if undo is available. The provided cursor is positioned at the end of the location where the edition operation was undone.

See the Qt Undo Framework documentation for details.

This function was introduced in Qt 4.2.

See also undoAvailable() and isUndoRedoEnabled().

type QAbstractUndoItem_ITF

type QAbstractUndoItem_ITF interface {
	QAbstractUndoItem_PTR() *QAbstractUndoItem
}

type QAccessible

type QAccessible struct {
	*qtrt.CObject
}

func NewQAccessibleFromPointer

func NewQAccessibleFromPointer(cthis unsafe.Pointer) *QAccessible

func (*QAccessible) AccessibleInterface

func (this *QAccessible) AccessibleInterface(uniqueId uint) *QAccessibleInterface

Returns the QAccessibleInterface belonging to the id.

Returns 0 if the id is invalid.

func (*QAccessible) Cleanup

func (this *QAccessible) Cleanup()

func (*QAccessible) DeleteAccessibleInterface

func (this *QAccessible) DeleteAccessibleInterface(uniqueId uint)

Removes the interface belonging to this id from the cache and deletes it. The id becomes invalid an may be re-used by the cache.

func (*QAccessible) EventItemName

func (this *QAccessible) EventItemName(val int) string

func (*QAccessible) GetCthis

func (this *QAccessible) GetCthis() unsafe.Pointer

func (*QAccessible) InterfaceTypeItemName

func (this *QAccessible) InterfaceTypeItemName(val int) string

func (*QAccessible) IsActive

func (this *QAccessible) IsActive() bool

Returns true if the platform requested accessibility information.

This function will return false until a tool such as a screen reader accessed the accessibility framework. It is still possible to use QAccessible::queryAccessibleInterface() even if accessibility is not active. But there will be no notifications sent to the platform.

It is recommended to use this function to prevent expensive notifications via updateAccessibility() when they are not needed.

func (*QAccessible) NewFromPointer

func (*QAccessible) NewFromPointer(cthis unsafe.Pointer) *QAccessible

func (*QAccessible) QAccessible_PTR

func (ptr *QAccessible) QAccessible_PTR() *QAccessible

func (*QAccessible) QueryAccessibleInterface

func (this *QAccessible) QueryAccessibleInterface(arg0 qtcore.QObject_ITF) *QAccessibleInterface

If a QAccessibleInterface implementation exists for the given object, this function returns a pointer to the implementation; otherwise it returns 0.

The function calls all installed factory functions (from most recently installed to least recently installed) until one is found that provides an interface for the class of object. If no factory can provide an accessibility implementation for the class the function loads installed accessibility plugins, and tests if any of the plugins can provide the implementation.

If no implementation for the object's class is available, the function tries to find an implementation for the object's parent class, using the above strategy.

All interfaces are managed by an internal cache and should not be deleted.

func (*QAccessible) RegisterAccessibleInterface

func (this *QAccessible) RegisterAccessibleInterface(iface QAccessibleInterface_ITF) uint

Call this function to ensure that manually created interfaces are properly memory managed.

Must only be called exactly once per interface iface. This is implicitly called when calling queryAccessibleInterface, calling this function is only required when QAccessibleInterfaces are instantiated with the "new" operator. This is not recommended, whenever possible use the default functions and let queryAccessibleInterface() take care of this.

When it is necessary to reimplement the QAccessibleInterface::child() function and returning the child after constructing it, this function needs to be called.

func (*QAccessible) RelationFlagItemName

func (this *QAccessible) RelationFlagItemName(val int) string

func (*QAccessible) RoleItemName

func (this *QAccessible) RoleItemName(val int) string

func (*QAccessible) SetActive

func (this *QAccessible) SetActive(active bool)

func (*QAccessible) SetCthis

func (this *QAccessible) SetCthis(cthis unsafe.Pointer)

func (*QAccessible) SetRootObject

func (this *QAccessible) SetRootObject(object qtcore.QObject_ITF)

Sets the root object of the accessible objects of this application to object. All other accessible objects are reachable using object navigation from the root object.

Normally, it isn't necessary to call this function, because Qt sets the QApplication object as the root object immediately before the event loop is entered in QApplication::exec().

Use QAccessible::installRootObjectHandler() to redirect the function call to a customized handler function.

See also queryAccessibleInterface().

func (*QAccessible) TextBoundaryTypeItemName

func (this *QAccessible) TextBoundaryTypeItemName(val int) string

func (*QAccessible) TextItemName

func (this *QAccessible) TextItemName(val int) string

func (*QAccessible) UniqueId

func (this *QAccessible) UniqueId(iface QAccessibleInterface_ITF) uint

Returns the unique ID for the QAccessibleInterface iface.

func (*QAccessible) UpdateAccessibility

func (this *QAccessible) UpdateAccessibility(event QAccessibleEvent_ITF)

Notifies about a change that might be relevant for accessibility clients.

event provides details about the change. These include the source of the change and the nature of the change. The event should contain enough information give meaningful notifications.

For example, the type ValueChange indicates that the position of a slider has been changed.

Call this function whenever the state of your accessible object or one of its sub-elements has been changed either programmatically (e.g. by calling QLabel::setText()) or by user interaction.

If there are no accessibility tools listening to this event, the performance penalty for calling this function is small, but if determining the parameters of the call is expensive you can test QAccessible::isActive() to avoid unnecessary computation.

type QAccessibleApplication

type QAccessibleApplication struct {
	*qtrt.CObject
}

func NewQAccessibleApplication

func NewQAccessibleApplication() *QAccessibleApplication

func NewQAccessibleApplicationFromPointer

func NewQAccessibleApplicationFromPointer(cthis unsafe.Pointer) *QAccessibleApplication

func (*QAccessibleApplication) Child

func (this *QAccessibleApplication) Child(index int) *QAccessibleInterface

func (*QAccessibleApplication) ChildCount

func (this *QAccessibleApplication) ChildCount() int

func (*QAccessibleApplication) FocusChild

func (this *QAccessibleApplication) FocusChild() *QAccessibleInterface

func (*QAccessibleApplication) GetCthis

func (this *QAccessibleApplication) GetCthis() unsafe.Pointer

func (*QAccessibleApplication) IndexOfChild

func (this *QAccessibleApplication) IndexOfChild(arg0 QAccessibleInterface_ITF) int

func (*QAccessibleApplication) NewForInherit

func (*QAccessibleApplication) NewFromPointer

func (*QAccessibleApplication) Parent

func (*QAccessibleApplication) QAccessibleApplication_PTR

func (ptr *QAccessibleApplication) QAccessibleApplication_PTR() *QAccessibleApplication

func (*QAccessibleApplication) Role

func (this *QAccessibleApplication) Role() int

func (*QAccessibleApplication) SetCthis

func (this *QAccessibleApplication) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleApplication) State

func (this *QAccessibleApplication) State() int

func (*QAccessibleApplication) Text

func (this *QAccessibleApplication) Text(t int) string

func (*QAccessibleApplication) Window

func (this *QAccessibleApplication) Window() *QWindow

type QAccessibleApplication_ITF

type QAccessibleApplication_ITF interface {
	QAccessibleApplication_PTR() *QAccessibleApplication
}

type QAccessibleBridge

type QAccessibleBridge struct {
	*qtrt.CObject
}

func NewQAccessibleBridgeFromPointer

func NewQAccessibleBridgeFromPointer(cthis unsafe.Pointer) *QAccessibleBridge

func (*QAccessibleBridge) GetCthis

func (this *QAccessibleBridge) GetCthis() unsafe.Pointer

func (*QAccessibleBridge) NewFromPointer

func (*QAccessibleBridge) NewFromPointer(cthis unsafe.Pointer) *QAccessibleBridge

func (*QAccessibleBridge) NotifyAccessibilityUpdate

func (this *QAccessibleBridge) NotifyAccessibilityUpdate(event QAccessibleEvent_ITF)

func (*QAccessibleBridge) QAccessibleBridge_PTR

func (ptr *QAccessibleBridge) QAccessibleBridge_PTR() *QAccessibleBridge

func (*QAccessibleBridge) SetCthis

func (this *QAccessibleBridge) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleBridge) SetRootObject

func (this *QAccessibleBridge) SetRootObject(arg0 QAccessibleInterface_ITF)

type QAccessibleBridgePlugin

type QAccessibleBridgePlugin struct {
	*qtcore.QObject
}

func NewQAccessibleBridgePlugin

func NewQAccessibleBridgePlugin(parent qtcore.QObject_ITF) *QAccessibleBridgePlugin

func NewQAccessibleBridgePluginFromPointer

func NewQAccessibleBridgePluginFromPointer(cthis unsafe.Pointer) *QAccessibleBridgePlugin

func NewQAccessibleBridgePluginp

func NewQAccessibleBridgePluginp() *QAccessibleBridgePlugin

func (*QAccessibleBridgePlugin) Create

func (*QAccessibleBridgePlugin) GetCthis

func (this *QAccessibleBridgePlugin) GetCthis() unsafe.Pointer

func (*QAccessibleBridgePlugin) MetaObject

func (this *QAccessibleBridgePlugin) MetaObject() *qtcore.QMetaObject

func (*QAccessibleBridgePlugin) NewForInherit

func (*QAccessibleBridgePlugin) NewForInheritp

func (*QAccessibleBridgePlugin) NewFromPointer

func (*QAccessibleBridgePlugin) QAccessibleBridgePlugin_PTR

func (ptr *QAccessibleBridgePlugin) QAccessibleBridgePlugin_PTR() *QAccessibleBridgePlugin

func (*QAccessibleBridgePlugin) SetCthis

func (this *QAccessibleBridgePlugin) SetCthis(cthis unsafe.Pointer)

type QAccessibleBridgePlugin_ITF

type QAccessibleBridgePlugin_ITF interface {
	qtcore.QObject_ITF
	QAccessibleBridgePlugin_PTR() *QAccessibleBridgePlugin
}

type QAccessibleBridge_ITF

type QAccessibleBridge_ITF interface {
	QAccessibleBridge_PTR() *QAccessibleBridge
}

type QAccessibleEditableTextInterface

type QAccessibleEditableTextInterface struct {
	*qtrt.CObject
}

func NewQAccessibleEditableTextInterfaceFromPointer

func NewQAccessibleEditableTextInterfaceFromPointer(cthis unsafe.Pointer) *QAccessibleEditableTextInterface

func (*QAccessibleEditableTextInterface) DeleteText

func (this *QAccessibleEditableTextInterface) DeleteText(startOffset int, endOffset int)

func (*QAccessibleEditableTextInterface) GetCthis

func (*QAccessibleEditableTextInterface) InsertText

func (this *QAccessibleEditableTextInterface) InsertText(offset int, text string)

func (*QAccessibleEditableTextInterface) NewFromPointer

func (*QAccessibleEditableTextInterface) QAccessibleEditableTextInterface_PTR

func (ptr *QAccessibleEditableTextInterface) QAccessibleEditableTextInterface_PTR() *QAccessibleEditableTextInterface

func (*QAccessibleEditableTextInterface) ReplaceText

func (this *QAccessibleEditableTextInterface) ReplaceText(startOffset int, endOffset int, text string)

func (*QAccessibleEditableTextInterface) SetCthis

func (this *QAccessibleEditableTextInterface) SetCthis(cthis unsafe.Pointer)

type QAccessibleEditableTextInterface_ITF

type QAccessibleEditableTextInterface_ITF interface {
	QAccessibleEditableTextInterface_PTR() *QAccessibleEditableTextInterface
}

type QAccessibleEvent

type QAccessibleEvent struct {
	*qtrt.CObject
}

func NewQAccessibleEvent

func NewQAccessibleEvent(obj qtcore.QObject_ITF, typ int) *QAccessibleEvent

func NewQAccessibleEvent1

func NewQAccessibleEvent1(iface QAccessibleInterface_ITF, typ int) *QAccessibleEvent

func NewQAccessibleEventFromPointer

func NewQAccessibleEventFromPointer(cthis unsafe.Pointer) *QAccessibleEvent

func (*QAccessibleEvent) AccessibleInterface

func (this *QAccessibleEvent) AccessibleInterface() *QAccessibleInterface

Returns the QAccessibleInterface belonging to the id.

Returns 0 if the id is invalid.

func (*QAccessibleEvent) Child

func (this *QAccessibleEvent) Child() int

func (*QAccessibleEvent) GetCthis

func (this *QAccessibleEvent) GetCthis() unsafe.Pointer

func (*QAccessibleEvent) NewForInherit

func (*QAccessibleEvent) NewForInherit(obj qtcore.QObject_ITF, typ int) *QAccessibleEvent

func (*QAccessibleEvent) NewForInherit1

func (*QAccessibleEvent) NewForInherit1(iface QAccessibleInterface_ITF, typ int) *QAccessibleEvent

func (*QAccessibleEvent) NewFromPointer

func (*QAccessibleEvent) NewFromPointer(cthis unsafe.Pointer) *QAccessibleEvent

func (*QAccessibleEvent) Object

func (this *QAccessibleEvent) Object() *qtcore.QObject

func (*QAccessibleEvent) QAccessibleEvent_PTR

func (ptr *QAccessibleEvent) QAccessibleEvent_PTR() *QAccessibleEvent

func (*QAccessibleEvent) SetChild

func (this *QAccessibleEvent) SetChild(chld int)

func (*QAccessibleEvent) SetCthis

func (this *QAccessibleEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleEvent) Type

func (this *QAccessibleEvent) Type() int

func (*QAccessibleEvent) UniqueId

func (this *QAccessibleEvent) UniqueId() int

Returns the unique ID for the QAccessibleInterface iface.

type QAccessibleEvent_ITF

type QAccessibleEvent_ITF interface {
	QAccessibleEvent_PTR() *QAccessibleEvent
}

type QAccessibleImageInterface

type QAccessibleImageInterface struct {
	*qtrt.CObject
}

func NewQAccessibleImageInterfaceFromPointer

func NewQAccessibleImageInterfaceFromPointer(cthis unsafe.Pointer) *QAccessibleImageInterface

func (*QAccessibleImageInterface) GetCthis

func (this *QAccessibleImageInterface) GetCthis() unsafe.Pointer

func (*QAccessibleImageInterface) ImageDescription

func (this *QAccessibleImageInterface) ImageDescription() string

func (*QAccessibleImageInterface) ImagePosition

func (this *QAccessibleImageInterface) ImagePosition() *qtcore.QPoint

func (*QAccessibleImageInterface) ImageSize

func (this *QAccessibleImageInterface) ImageSize() *qtcore.QSize

func (*QAccessibleImageInterface) NewFromPointer

func (*QAccessibleImageInterface) QAccessibleImageInterface_PTR

func (ptr *QAccessibleImageInterface) QAccessibleImageInterface_PTR() *QAccessibleImageInterface

func (*QAccessibleImageInterface) SetCthis

func (this *QAccessibleImageInterface) SetCthis(cthis unsafe.Pointer)

type QAccessibleImageInterface_ITF

type QAccessibleImageInterface_ITF interface {
	QAccessibleImageInterface_PTR() *QAccessibleImageInterface
}

type QAccessibleInterface

type QAccessibleInterface struct {
	*qtrt.CObject
}

func NewQAccessibleInterfaceFromPointer

func NewQAccessibleInterfaceFromPointer(cthis unsafe.Pointer) *QAccessibleInterface

func QAccessible_AccessibleInterface

func QAccessible_AccessibleInterface(uniqueId uint) *QAccessibleInterface

func QAccessible_QueryAccessibleInterface

func QAccessible_QueryAccessibleInterface(arg0 qtcore.QObject_ITF) *QAccessibleInterface

func (*QAccessibleInterface) BackgroundColor

func (this *QAccessibleInterface) BackgroundColor() *QColor

func (*QAccessibleInterface) Child

func (this *QAccessibleInterface) Child(index int) *QAccessibleInterface

func (*QAccessibleInterface) ChildAt

func (this *QAccessibleInterface) ChildAt(x int, y int) *QAccessibleInterface

func (*QAccessibleInterface) ChildCount

func (this *QAccessibleInterface) ChildCount() int

func (*QAccessibleInterface) EditableTextInterface

func (this *QAccessibleInterface) EditableTextInterface() *QAccessibleEditableTextInterface

func (*QAccessibleInterface) FocusChild

func (this *QAccessibleInterface) FocusChild() *QAccessibleInterface

func (*QAccessibleInterface) ForegroundColor

func (this *QAccessibleInterface) ForegroundColor() *QColor

func (*QAccessibleInterface) GetCthis

func (this *QAccessibleInterface) GetCthis() unsafe.Pointer

func (*QAccessibleInterface) ImageInterface

func (this *QAccessibleInterface) ImageInterface() *QAccessibleImageInterface

func (*QAccessibleInterface) IndexOfChild

func (this *QAccessibleInterface) IndexOfChild(arg0 QAccessibleInterface_ITF) int

func (*QAccessibleInterface) Interface_cast

func (this *QAccessibleInterface) Interface_cast(arg0 int) unsafe.Pointer

func (*QAccessibleInterface) IsValid

func (this *QAccessibleInterface) IsValid() bool

func (*QAccessibleInterface) NewFromPointer

func (*QAccessibleInterface) NewFromPointer(cthis unsafe.Pointer) *QAccessibleInterface

func (*QAccessibleInterface) Object

func (this *QAccessibleInterface) Object() *qtcore.QObject

func (*QAccessibleInterface) Parent

func (*QAccessibleInterface) QAccessibleInterface_PTR

func (ptr *QAccessibleInterface) QAccessibleInterface_PTR() *QAccessibleInterface

func (*QAccessibleInterface) Rect

func (this *QAccessibleInterface) Rect() *qtcore.QRect

func (*QAccessibleInterface) Role

func (this *QAccessibleInterface) Role() int

func (*QAccessibleInterface) SetCthis

func (this *QAccessibleInterface) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleInterface) SetText

func (this *QAccessibleInterface) SetText(t int, text string)

func (*QAccessibleInterface) State

func (this *QAccessibleInterface) State() int

func (*QAccessibleInterface) TableCellInterface

func (this *QAccessibleInterface) TableCellInterface() *QAccessibleTableCellInterface

func (*QAccessibleInterface) TableInterface

func (this *QAccessibleInterface) TableInterface() *QAccessibleTableInterface

func (*QAccessibleInterface) Text

func (this *QAccessibleInterface) Text(t int) string

func (*QAccessibleInterface) TextInterface

func (this *QAccessibleInterface) TextInterface() *QAccessibleTextInterface

func (*QAccessibleInterface) ValueInterface

func (this *QAccessibleInterface) ValueInterface() *QAccessibleValueInterface

func (*QAccessibleInterface) Virtual_hook

func (this *QAccessibleInterface) Virtual_hook(id int, data unsafe.Pointer)

func (*QAccessibleInterface) Window

func (this *QAccessibleInterface) Window() *QWindow

type QAccessibleInterfaceList

type QAccessibleInterfaceList struct {
	*qtrt.CObject
}

body block begin

func (*QAccessibleInterfaceList) Append0

func (this *QAccessibleInterfaceList) Append0()

void append(const T &)

func (*QAccessibleInterfaceList) Append1

func (this *QAccessibleInterfaceList) Append1()

void append(const QList<T> &)

func (*QAccessibleInterfaceList) At0

const T & at(int)

func (*QAccessibleInterfaceList) Back0

T & back()

func (*QAccessibleInterfaceList) Back1

const T & back()

func (*QAccessibleInterfaceList) Begin0

func (this *QAccessibleInterfaceList) Begin0()

QList::iterator begin()

func (*QAccessibleInterfaceList) Begin1

func (this *QAccessibleInterfaceList) Begin1()

QList::const_iterator begin()

func (*QAccessibleInterfaceList) Cbegin0

func (this *QAccessibleInterfaceList) Cbegin0()

QList::const_iterator cbegin()

func (*QAccessibleInterfaceList) Cend0

func (this *QAccessibleInterfaceList) Cend0()

QList::const_iterator cend()

func (*QAccessibleInterfaceList) Clear0

func (this *QAccessibleInterfaceList) Clear0()

void clear()

func (*QAccessibleInterfaceList) ConstBegin0

func (this *QAccessibleInterfaceList) ConstBegin0()

QList::const_iterator constBegin()

func (*QAccessibleInterfaceList) ConstEnd0

func (this *QAccessibleInterfaceList) ConstEnd0()

QList::const_iterator constEnd()

func (*QAccessibleInterfaceList) ConstFirst0

func (this *QAccessibleInterfaceList) ConstFirst0() *QAccessibleInterface

const T & constFirst()

func (*QAccessibleInterfaceList) ConstLast0

func (this *QAccessibleInterfaceList) ConstLast0() *QAccessibleInterface

const T & constLast()

func (*QAccessibleInterfaceList) Contains0

func (this *QAccessibleInterfaceList) Contains0() bool

bool contains(const T &)

func (*QAccessibleInterfaceList) Contains_impl0

func (this *QAccessibleInterfaceList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QAccessibleInterfaceList) Contains_impl1

func (this *QAccessibleInterfaceList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QAccessibleInterfaceList) Count0

func (this *QAccessibleInterfaceList) Count0() int

int count(const T &)

func (*QAccessibleInterfaceList) Count1

func (this *QAccessibleInterfaceList) Count1() int

int count()

func (*QAccessibleInterfaceList) Count_impl0

func (this *QAccessibleInterfaceList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QAccessibleInterfaceList) Count_impl1

func (this *QAccessibleInterfaceList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QAccessibleInterfaceList) Crbegin0

func (this *QAccessibleInterfaceList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QAccessibleInterfaceList) Crend0

func (this *QAccessibleInterfaceList) Crend0()

QList::const_reverse_iterator crend()

func (*QAccessibleInterfaceList) Dealloc0

func (this *QAccessibleInterfaceList) Dealloc0()

void dealloc(QListData::Data *)

func (*QAccessibleInterfaceList) Detach0

func (this *QAccessibleInterfaceList) Detach0()

void detach()

func (*QAccessibleInterfaceList) DetachShared0

func (this *QAccessibleInterfaceList) DetachShared0()

void detachShared()

func (*QAccessibleInterfaceList) Detach_helper0

func (this *QAccessibleInterfaceList) Detach_helper0()

void detach_helper(int)

func (*QAccessibleInterfaceList) Detach_helper1

func (this *QAccessibleInterfaceList) Detach_helper1()

void detach_helper()

func (*QAccessibleInterfaceList) Detach_helper_grow0

func (this *QAccessibleInterfaceList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QAccessibleInterfaceList) Empty0

func (this *QAccessibleInterfaceList) Empty0() bool

bool empty()

func (*QAccessibleInterfaceList) End0

func (this *QAccessibleInterfaceList) End0()

QList::iterator end()

func (*QAccessibleInterfaceList) End1

func (this *QAccessibleInterfaceList) End1()

QList::const_iterator end()

func (*QAccessibleInterfaceList) EndsWith0

func (this *QAccessibleInterfaceList) EndsWith0() bool

bool endsWith(const T &)

func (*QAccessibleInterfaceList) Erase0

func (this *QAccessibleInterfaceList) Erase0()

QList::iterator erase(QList::iterator)

func (*QAccessibleInterfaceList) Erase1

func (this *QAccessibleInterfaceList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QAccessibleInterfaceList) First0

T & first()

func (*QAccessibleInterfaceList) First1

const T & first()

func (*QAccessibleInterfaceList) FromSet0

QList<T> fromSet(const QSet<T> &)

func (*QAccessibleInterfaceList) FromStdList0

func (this *QAccessibleInterfaceList) FromStdList0() *QAccessibleInterfaceList

QList<T> fromStdList(const std::list<T> &)

func (*QAccessibleInterfaceList) FromVector0

QList<T> fromVector(const QVector<T> &)

func (*QAccessibleInterfaceList) Front0

T & front()

func (*QAccessibleInterfaceList) Front1

const T & front()

func (*QAccessibleInterfaceList) IndexOf0

func (this *QAccessibleInterfaceList) IndexOf0() int

int indexOf(const T &, int)

func (*QAccessibleInterfaceList) Insert0

func (this *QAccessibleInterfaceList) Insert0()

void insert(int, const T &)

func (*QAccessibleInterfaceList) Insert1

func (this *QAccessibleInterfaceList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QAccessibleInterfaceList) IsDetached0

func (this *QAccessibleInterfaceList) IsDetached0() bool

bool isDetached()

func (*QAccessibleInterfaceList) IsEmpty0

func (this *QAccessibleInterfaceList) IsEmpty0() bool

bool isEmpty()

func (*QAccessibleInterfaceList) IsSharedWith0

func (this *QAccessibleInterfaceList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QAccessibleInterfaceList) IsValidIterator0

func (this *QAccessibleInterfaceList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QAccessibleInterfaceList) Last0

T & last()

func (*QAccessibleInterfaceList) Last1

const T & last()

func (*QAccessibleInterfaceList) LastIndexOf0

func (this *QAccessibleInterfaceList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QAccessibleInterfaceList) Length0

func (this *QAccessibleInterfaceList) Length0() int

int length()

func (*QAccessibleInterfaceList) Mid0

QList<T> mid(int, int)

func (*QAccessibleInterfaceList) Move0

func (this *QAccessibleInterfaceList) Move0()

void move(int, int)

func (*QAccessibleInterfaceList) Node_construct0

func (this *QAccessibleInterfaceList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QAccessibleInterfaceList) Node_copy0

func (this *QAccessibleInterfaceList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QAccessibleInterfaceList) Node_destruct0

func (this *QAccessibleInterfaceList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QAccessibleInterfaceList) Node_destruct1

func (this *QAccessibleInterfaceList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QAccessibleInterfaceList) Op_eq_impl0

func (this *QAccessibleInterfaceList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QAccessibleInterfaceList) Op_eq_impl1

func (this *QAccessibleInterfaceList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QAccessibleInterfaceList) Operator_add0

func (this *QAccessibleInterfaceList) Operator_add0() *QAccessibleInterfaceList

QList<T> operator+(const QList<T> &)

func (*QAccessibleInterfaceList) Operator_add_equal0

func (this *QAccessibleInterfaceList) Operator_add_equal0() *QAccessibleInterfaceList

QList<T> & operator+=(const QList<T> &)

func (*QAccessibleInterfaceList) Operator_add_equal1

func (this *QAccessibleInterfaceList) Operator_add_equal1() *QAccessibleInterfaceList

QList<T> & operator+=(const T &)

func (*QAccessibleInterfaceList) Operator_equal0

func (this *QAccessibleInterfaceList) Operator_equal0() *QAccessibleInterfaceList

QList<T> & operator=(const QList<T> &)

func (*QAccessibleInterfaceList) Operator_equal1

func (this *QAccessibleInterfaceList) Operator_equal1() *QAccessibleInterfaceList

QList<T> & operator=(QList<T> &&)

func (*QAccessibleInterfaceList) Operator_equal_equal0

func (this *QAccessibleInterfaceList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QAccessibleInterfaceList) Operator_get_index0

func (this *QAccessibleInterfaceList) Operator_get_index0() *QAccessibleInterface

const T & operator[](int)

func (*QAccessibleInterfaceList) Operator_get_index1

func (this *QAccessibleInterfaceList) Operator_get_index1() *QAccessibleInterface

T & operator[](int)

func (*QAccessibleInterfaceList) Operator_left_shift0

func (this *QAccessibleInterfaceList) Operator_left_shift0() *QAccessibleInterfaceList

QList<T> & operator<<(const T &)

func (*QAccessibleInterfaceList) Operator_left_shift1

func (this *QAccessibleInterfaceList) Operator_left_shift1() *QAccessibleInterfaceList

QList<T> & operator<<(const QList<T> &)

func (*QAccessibleInterfaceList) Operator_not_equal0

func (this *QAccessibleInterfaceList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QAccessibleInterfaceList) Pop_back0

func (this *QAccessibleInterfaceList) Pop_back0()

void pop_back()

func (*QAccessibleInterfaceList) Pop_front0

func (this *QAccessibleInterfaceList) Pop_front0()

void pop_front()

func (*QAccessibleInterfaceList) Prepend0

func (this *QAccessibleInterfaceList) Prepend0()

void prepend(const T &)

func (*QAccessibleInterfaceList) Push_back0

func (this *QAccessibleInterfaceList) Push_back0()

void push_back(const T &)

func (*QAccessibleInterfaceList) Push_front0

func (this *QAccessibleInterfaceList) Push_front0()

void push_front(const T &)

func (*QAccessibleInterfaceList) Rbegin0

func (this *QAccessibleInterfaceList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QAccessibleInterfaceList) Rbegin1

func (this *QAccessibleInterfaceList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QAccessibleInterfaceList) RemoveAll0

func (this *QAccessibleInterfaceList) RemoveAll0() int

int removeAll(const T &)

func (*QAccessibleInterfaceList) RemoveAt0

func (this *QAccessibleInterfaceList) RemoveAt0()

void removeAt(int)

func (*QAccessibleInterfaceList) RemoveFirst0

func (this *QAccessibleInterfaceList) RemoveFirst0()

void removeFirst()

func (*QAccessibleInterfaceList) RemoveLast0

func (this *QAccessibleInterfaceList) RemoveLast0()

void removeLast()

func (*QAccessibleInterfaceList) RemoveOne0

func (this *QAccessibleInterfaceList) RemoveOne0() bool

bool removeOne(const T &)

func (*QAccessibleInterfaceList) Rend0

func (this *QAccessibleInterfaceList) Rend0()

QList::reverse_iterator rend()

func (*QAccessibleInterfaceList) Rend1

func (this *QAccessibleInterfaceList) Rend1()

QList::const_reverse_iterator rend()

func (*QAccessibleInterfaceList) Replace0

func (this *QAccessibleInterfaceList) Replace0()

void replace(int, const T &)

func (*QAccessibleInterfaceList) Reserve0

func (this *QAccessibleInterfaceList) Reserve0()

void reserve(int)

func (*QAccessibleInterfaceList) SetSharable0

func (this *QAccessibleInterfaceList) SetSharable0()

void setSharable(bool)

func (*QAccessibleInterfaceList) Size0

func (this *QAccessibleInterfaceList) Size0() int

int size()

func (*QAccessibleInterfaceList) StartsWith0

func (this *QAccessibleInterfaceList) StartsWith0() bool

bool startsWith(const T &)

func (*QAccessibleInterfaceList) Swap0

func (this *QAccessibleInterfaceList) Swap0()

void swap(QList<T> &)

func (*QAccessibleInterfaceList) Swap1

func (this *QAccessibleInterfaceList) Swap1()

void swap(int, int)

func (*QAccessibleInterfaceList) TakeAt0

T takeAt(int)

func (*QAccessibleInterfaceList) TakeFirst0

func (this *QAccessibleInterfaceList) TakeFirst0() *QAccessibleInterface

T takeFirst()

func (*QAccessibleInterfaceList) TakeLast0

T takeLast()

func (*QAccessibleInterfaceList) ToSet0

func (this *QAccessibleInterfaceList) ToSet0()

QSet<T> toSet()

func (*QAccessibleInterfaceList) ToStdList0

func (this *QAccessibleInterfaceList) ToStdList0()

std::list<T> toStdList()

func (*QAccessibleInterfaceList) ToVector0

func (this *QAccessibleInterfaceList) ToVector0()

QVector<T> toVector()

func (*QAccessibleInterfaceList) Value0

T value(int)

func (*QAccessibleInterfaceList) Value1

T value(int, const T &)

type QAccessibleInterface_ITF

type QAccessibleInterface_ITF interface {
	QAccessibleInterface_PTR() *QAccessibleInterface
}

type QAccessiblePlugin

type QAccessiblePlugin struct {
	*qtcore.QObject
}

func NewQAccessiblePlugin

func NewQAccessiblePlugin(parent qtcore.QObject_ITF) *QAccessiblePlugin

func NewQAccessiblePluginFromPointer

func NewQAccessiblePluginFromPointer(cthis unsafe.Pointer) *QAccessiblePlugin

func NewQAccessiblePluginp

func NewQAccessiblePluginp() *QAccessiblePlugin

func (*QAccessiblePlugin) Create

func (this *QAccessiblePlugin) Create(key string, object qtcore.QObject_ITF) *QAccessibleInterface

Creates and returns a QAccessibleInterface implementation for the class key and the object object. Keys are case sensitive.

func (*QAccessiblePlugin) GetCthis

func (this *QAccessiblePlugin) GetCthis() unsafe.Pointer

func (*QAccessiblePlugin) MetaObject

func (this *QAccessiblePlugin) MetaObject() *qtcore.QMetaObject

func (*QAccessiblePlugin) NewForInherit

func (*QAccessiblePlugin) NewForInherit(parent qtcore.QObject_ITF) *QAccessiblePlugin

Constructs an accessibility plugin with the given parent. This is invoked automatically by the plugin loader.

func (*QAccessiblePlugin) NewForInheritp

func (*QAccessiblePlugin) NewForInheritp() *QAccessiblePlugin

Constructs an accessibility plugin with the given parent. This is invoked automatically by the plugin loader.

func (*QAccessiblePlugin) NewFromPointer

func (*QAccessiblePlugin) NewFromPointer(cthis unsafe.Pointer) *QAccessiblePlugin

func (*QAccessiblePlugin) QAccessiblePlugin_PTR

func (ptr *QAccessiblePlugin) QAccessiblePlugin_PTR() *QAccessiblePlugin

func (*QAccessiblePlugin) SetCthis

func (this *QAccessiblePlugin) SetCthis(cthis unsafe.Pointer)

type QAccessiblePlugin_ITF

type QAccessiblePlugin_ITF interface {
	qtcore.QObject_ITF
	QAccessiblePlugin_PTR() *QAccessiblePlugin
}

type QAccessibleStateChangeEvent

type QAccessibleStateChangeEvent struct {
	*QAccessibleEvent
}

func NewQAccessibleStateChangeEventFromPointer

func NewQAccessibleStateChangeEventFromPointer(cthis unsafe.Pointer) *QAccessibleStateChangeEvent

func (*QAccessibleStateChangeEvent) ChangedStates

func (this *QAccessibleStateChangeEvent) ChangedStates() int

func (*QAccessibleStateChangeEvent) GetCthis

func (this *QAccessibleStateChangeEvent) GetCthis() unsafe.Pointer

func (*QAccessibleStateChangeEvent) NewFromPointer

func (*QAccessibleStateChangeEvent) QAccessibleStateChangeEvent_PTR

func (ptr *QAccessibleStateChangeEvent) QAccessibleStateChangeEvent_PTR() *QAccessibleStateChangeEvent

func (*QAccessibleStateChangeEvent) SetCthis

func (this *QAccessibleStateChangeEvent) SetCthis(cthis unsafe.Pointer)

type QAccessibleStateChangeEvent_ITF

type QAccessibleStateChangeEvent_ITF interface {
	QAccessibleEvent_ITF
	QAccessibleStateChangeEvent_PTR() *QAccessibleStateChangeEvent
}

type QAccessibleTableCellInterface

type QAccessibleTableCellInterface struct {
	*qtrt.CObject
}

func NewQAccessibleTableCellInterfaceFromPointer

func NewQAccessibleTableCellInterfaceFromPointer(cthis unsafe.Pointer) *QAccessibleTableCellInterface

func (*QAccessibleTableCellInterface) ColumnExtent

func (this *QAccessibleTableCellInterface) ColumnExtent() int

func (*QAccessibleTableCellInterface) ColumnIndex

func (this *QAccessibleTableCellInterface) ColumnIndex() int

func (*QAccessibleTableCellInterface) GetCthis

func (this *QAccessibleTableCellInterface) GetCthis() unsafe.Pointer

func (*QAccessibleTableCellInterface) IsSelected

func (this *QAccessibleTableCellInterface) IsSelected() bool

func (*QAccessibleTableCellInterface) NewFromPointer

func (*QAccessibleTableCellInterface) QAccessibleTableCellInterface_PTR

func (ptr *QAccessibleTableCellInterface) QAccessibleTableCellInterface_PTR() *QAccessibleTableCellInterface

func (*QAccessibleTableCellInterface) RowExtent

func (this *QAccessibleTableCellInterface) RowExtent() int

func (*QAccessibleTableCellInterface) RowIndex

func (this *QAccessibleTableCellInterface) RowIndex() int

func (*QAccessibleTableCellInterface) SetCthis

func (this *QAccessibleTableCellInterface) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTableCellInterface) Table

type QAccessibleTableCellInterface_ITF

type QAccessibleTableCellInterface_ITF interface {
	QAccessibleTableCellInterface_PTR() *QAccessibleTableCellInterface
}

type QAccessibleTableInterface

type QAccessibleTableInterface struct {
	*qtrt.CObject
}

func NewQAccessibleTableInterfaceFromPointer

func NewQAccessibleTableInterfaceFromPointer(cthis unsafe.Pointer) *QAccessibleTableInterface

func (*QAccessibleTableInterface) Caption

func (*QAccessibleTableInterface) CellAt

func (this *QAccessibleTableInterface) CellAt(row int, column int) *QAccessibleInterface

func (*QAccessibleTableInterface) ColumnCount

func (this *QAccessibleTableInterface) ColumnCount() int

func (*QAccessibleTableInterface) ColumnDescription

func (this *QAccessibleTableInterface) ColumnDescription(column int) string

func (*QAccessibleTableInterface) GetCthis

func (this *QAccessibleTableInterface) GetCthis() unsafe.Pointer

func (*QAccessibleTableInterface) IsColumnSelected

func (this *QAccessibleTableInterface) IsColumnSelected(column int) bool

func (*QAccessibleTableInterface) IsRowSelected

func (this *QAccessibleTableInterface) IsRowSelected(row int) bool

func (*QAccessibleTableInterface) ModelChange

func (*QAccessibleTableInterface) NewFromPointer

func (*QAccessibleTableInterface) QAccessibleTableInterface_PTR

func (ptr *QAccessibleTableInterface) QAccessibleTableInterface_PTR() *QAccessibleTableInterface

func (*QAccessibleTableInterface) RowCount

func (this *QAccessibleTableInterface) RowCount() int

func (*QAccessibleTableInterface) RowDescription

func (this *QAccessibleTableInterface) RowDescription(row int) string

func (*QAccessibleTableInterface) SelectColumn

func (this *QAccessibleTableInterface) SelectColumn(column int) bool

func (*QAccessibleTableInterface) SelectRow

func (this *QAccessibleTableInterface) SelectRow(row int) bool

func (*QAccessibleTableInterface) SelectedCellCount

func (this *QAccessibleTableInterface) SelectedCellCount() int

func (*QAccessibleTableInterface) SelectedColumnCount

func (this *QAccessibleTableInterface) SelectedColumnCount() int

func (*QAccessibleTableInterface) SelectedRowCount

func (this *QAccessibleTableInterface) SelectedRowCount() int

func (*QAccessibleTableInterface) SetCthis

func (this *QAccessibleTableInterface) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTableInterface) Summary

func (*QAccessibleTableInterface) UnselectColumn

func (this *QAccessibleTableInterface) UnselectColumn(column int) bool

func (*QAccessibleTableInterface) UnselectRow

func (this *QAccessibleTableInterface) UnselectRow(row int) bool

type QAccessibleTableInterface_ITF

type QAccessibleTableInterface_ITF interface {
	QAccessibleTableInterface_PTR() *QAccessibleTableInterface
}

type QAccessibleTableModelChangeEvent

type QAccessibleTableModelChangeEvent struct {
	*QAccessibleEvent
}

func NewQAccessibleTableModelChangeEvent

func NewQAccessibleTableModelChangeEvent(obj qtcore.QObject_ITF, changeType int) *QAccessibleTableModelChangeEvent

func NewQAccessibleTableModelChangeEvent1

func NewQAccessibleTableModelChangeEvent1(iface QAccessibleInterface_ITF, changeType int) *QAccessibleTableModelChangeEvent

func NewQAccessibleTableModelChangeEventFromPointer

func NewQAccessibleTableModelChangeEventFromPointer(cthis unsafe.Pointer) *QAccessibleTableModelChangeEvent

func (*QAccessibleTableModelChangeEvent) FirstColumn

func (this *QAccessibleTableModelChangeEvent) FirstColumn() int

func (*QAccessibleTableModelChangeEvent) FirstRow

func (this *QAccessibleTableModelChangeEvent) FirstRow() int

func (*QAccessibleTableModelChangeEvent) GetCthis

func (*QAccessibleTableModelChangeEvent) LastColumn

func (this *QAccessibleTableModelChangeEvent) LastColumn() int

func (*QAccessibleTableModelChangeEvent) LastRow

func (this *QAccessibleTableModelChangeEvent) LastRow() int

func (*QAccessibleTableModelChangeEvent) ModelChangeType

func (this *QAccessibleTableModelChangeEvent) ModelChangeType() int

func (*QAccessibleTableModelChangeEvent) ModelChangeTypeItemName

func (this *QAccessibleTableModelChangeEvent) ModelChangeTypeItemName(val int) string

func (*QAccessibleTableModelChangeEvent) NewForInherit

func (*QAccessibleTableModelChangeEvent) NewForInherit1

func (*QAccessibleTableModelChangeEvent) NewFromPointer

func (*QAccessibleTableModelChangeEvent) QAccessibleTableModelChangeEvent_PTR

func (ptr *QAccessibleTableModelChangeEvent) QAccessibleTableModelChangeEvent_PTR() *QAccessibleTableModelChangeEvent

func (*QAccessibleTableModelChangeEvent) SetCthis

func (this *QAccessibleTableModelChangeEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTableModelChangeEvent) SetFirstColumn

func (this *QAccessibleTableModelChangeEvent) SetFirstColumn(col int)

func (*QAccessibleTableModelChangeEvent) SetFirstRow

func (this *QAccessibleTableModelChangeEvent) SetFirstRow(row int)

func (*QAccessibleTableModelChangeEvent) SetLastColumn

func (this *QAccessibleTableModelChangeEvent) SetLastColumn(col int)

func (*QAccessibleTableModelChangeEvent) SetLastRow

func (this *QAccessibleTableModelChangeEvent) SetLastRow(row int)

func (*QAccessibleTableModelChangeEvent) SetModelChangeType

func (this *QAccessibleTableModelChangeEvent) SetModelChangeType(changeType int)

type QAccessibleTableModelChangeEvent_ITF

type QAccessibleTableModelChangeEvent_ITF interface {
	QAccessibleEvent_ITF
	QAccessibleTableModelChangeEvent_PTR() *QAccessibleTableModelChangeEvent
}

type QAccessibleTableModelChangeEvent__ModelChangeType

type QAccessibleTableModelChangeEvent__ModelChangeType = int
const QAccessibleTableModelChangeEvent__ColumnsInserted QAccessibleTableModelChangeEvent__ModelChangeType = 3
const QAccessibleTableModelChangeEvent__ColumnsRemoved QAccessibleTableModelChangeEvent__ModelChangeType = 5
const QAccessibleTableModelChangeEvent__DataChanged QAccessibleTableModelChangeEvent__ModelChangeType = 1
const QAccessibleTableModelChangeEvent__ModelReset QAccessibleTableModelChangeEvent__ModelChangeType = 0
const QAccessibleTableModelChangeEvent__RowsInserted QAccessibleTableModelChangeEvent__ModelChangeType = 2
const QAccessibleTableModelChangeEvent__RowsRemoved QAccessibleTableModelChangeEvent__ModelChangeType = 4

type QAccessibleTextCursorEvent

type QAccessibleTextCursorEvent struct {
	*QAccessibleEvent
}

func NewQAccessibleTextCursorEvent

func NewQAccessibleTextCursorEvent(obj qtcore.QObject_ITF, cursorPos int) *QAccessibleTextCursorEvent

func NewQAccessibleTextCursorEvent1

func NewQAccessibleTextCursorEvent1(iface QAccessibleInterface_ITF, cursorPos int) *QAccessibleTextCursorEvent

func NewQAccessibleTextCursorEventFromPointer

func NewQAccessibleTextCursorEventFromPointer(cthis unsafe.Pointer) *QAccessibleTextCursorEvent

func (*QAccessibleTextCursorEvent) CursorPosition

func (this *QAccessibleTextCursorEvent) CursorPosition() int

func (*QAccessibleTextCursorEvent) GetCthis

func (this *QAccessibleTextCursorEvent) GetCthis() unsafe.Pointer

func (*QAccessibleTextCursorEvent) NewForInherit

func (*QAccessibleTextCursorEvent) NewForInherit1

func (*QAccessibleTextCursorEvent) NewFromPointer

func (*QAccessibleTextCursorEvent) QAccessibleTextCursorEvent_PTR

func (ptr *QAccessibleTextCursorEvent) QAccessibleTextCursorEvent_PTR() *QAccessibleTextCursorEvent

func (*QAccessibleTextCursorEvent) SetCthis

func (this *QAccessibleTextCursorEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTextCursorEvent) SetCursorPosition

func (this *QAccessibleTextCursorEvent) SetCursorPosition(position int)

type QAccessibleTextCursorEvent_ITF

type QAccessibleTextCursorEvent_ITF interface {
	QAccessibleEvent_ITF
	QAccessibleTextCursorEvent_PTR() *QAccessibleTextCursorEvent
}

type QAccessibleTextInsertEvent

type QAccessibleTextInsertEvent struct {
	*QAccessibleTextCursorEvent
}

func NewQAccessibleTextInsertEvent

func NewQAccessibleTextInsertEvent(obj qtcore.QObject_ITF, position int, text string) *QAccessibleTextInsertEvent

func NewQAccessibleTextInsertEvent1

func NewQAccessibleTextInsertEvent1(iface QAccessibleInterface_ITF, position int, text string) *QAccessibleTextInsertEvent

func NewQAccessibleTextInsertEventFromPointer

func NewQAccessibleTextInsertEventFromPointer(cthis unsafe.Pointer) *QAccessibleTextInsertEvent

func (*QAccessibleTextInsertEvent) ChangePosition

func (this *QAccessibleTextInsertEvent) ChangePosition() int

func (*QAccessibleTextInsertEvent) GetCthis

func (this *QAccessibleTextInsertEvent) GetCthis() unsafe.Pointer

func (*QAccessibleTextInsertEvent) NewForInherit

func (*QAccessibleTextInsertEvent) NewForInherit1

func (*QAccessibleTextInsertEvent) NewFromPointer

func (*QAccessibleTextInsertEvent) QAccessibleTextInsertEvent_PTR

func (ptr *QAccessibleTextInsertEvent) QAccessibleTextInsertEvent_PTR() *QAccessibleTextInsertEvent

func (*QAccessibleTextInsertEvent) SetCthis

func (this *QAccessibleTextInsertEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTextInsertEvent) TextInserted

func (this *QAccessibleTextInsertEvent) TextInserted() string

type QAccessibleTextInsertEvent_ITF

type QAccessibleTextInsertEvent_ITF interface {
	QAccessibleTextCursorEvent_ITF
	QAccessibleTextInsertEvent_PTR() *QAccessibleTextInsertEvent
}

type QAccessibleTextInterface

type QAccessibleTextInterface struct {
	*qtrt.CObject
}

func NewQAccessibleTextInterfaceFromPointer

func NewQAccessibleTextInterfaceFromPointer(cthis unsafe.Pointer) *QAccessibleTextInterface

func (*QAccessibleTextInterface) AddSelection

func (this *QAccessibleTextInterface) AddSelection(startOffset int, endOffset int)

func (*QAccessibleTextInterface) Attributes

func (this *QAccessibleTextInterface) Attributes(offset int, startOffset unsafe.Pointer, endOffset unsafe.Pointer) string

func (*QAccessibleTextInterface) CharacterCount

func (this *QAccessibleTextInterface) CharacterCount() int

func (*QAccessibleTextInterface) CharacterRect

func (this *QAccessibleTextInterface) CharacterRect(offset int) *qtcore.QRect

func (*QAccessibleTextInterface) CursorPosition

func (this *QAccessibleTextInterface) CursorPosition() int

func (*QAccessibleTextInterface) GetCthis

func (this *QAccessibleTextInterface) GetCthis() unsafe.Pointer

func (*QAccessibleTextInterface) NewFromPointer

func (*QAccessibleTextInterface) OffsetAtPoint

func (this *QAccessibleTextInterface) OffsetAtPoint(point qtcore.QPoint_ITF) int

func (*QAccessibleTextInterface) QAccessibleTextInterface_PTR

func (ptr *QAccessibleTextInterface) QAccessibleTextInterface_PTR() *QAccessibleTextInterface

func (*QAccessibleTextInterface) RemoveSelection

func (this *QAccessibleTextInterface) RemoveSelection(selectionIndex int)

func (*QAccessibleTextInterface) ScrollToSubstring

func (this *QAccessibleTextInterface) ScrollToSubstring(startIndex int, endIndex int)

func (*QAccessibleTextInterface) Selection

func (this *QAccessibleTextInterface) Selection(selectionIndex int, startOffset unsafe.Pointer, endOffset unsafe.Pointer)

func (*QAccessibleTextInterface) SelectionCount

func (this *QAccessibleTextInterface) SelectionCount() int

func (*QAccessibleTextInterface) SetCthis

func (this *QAccessibleTextInterface) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTextInterface) SetCursorPosition

func (this *QAccessibleTextInterface) SetCursorPosition(position int)

func (*QAccessibleTextInterface) SetSelection

func (this *QAccessibleTextInterface) SetSelection(selectionIndex int, startOffset int, endOffset int)

func (*QAccessibleTextInterface) Text

func (this *QAccessibleTextInterface) Text(startOffset int, endOffset int) string

func (*QAccessibleTextInterface) TextAfterOffset

func (this *QAccessibleTextInterface) TextAfterOffset(offset int, boundaryType int, startOffset unsafe.Pointer, endOffset unsafe.Pointer) string

func (*QAccessibleTextInterface) TextAtOffset

func (this *QAccessibleTextInterface) TextAtOffset(offset int, boundaryType int, startOffset unsafe.Pointer, endOffset unsafe.Pointer) string

func (*QAccessibleTextInterface) TextBeforeOffset

func (this *QAccessibleTextInterface) TextBeforeOffset(offset int, boundaryType int, startOffset unsafe.Pointer, endOffset unsafe.Pointer) string

type QAccessibleTextInterface_ITF

type QAccessibleTextInterface_ITF interface {
	QAccessibleTextInterface_PTR() *QAccessibleTextInterface
}

type QAccessibleTextRemoveEvent

type QAccessibleTextRemoveEvent struct {
	*QAccessibleTextCursorEvent
}

func NewQAccessibleTextRemoveEvent

func NewQAccessibleTextRemoveEvent(obj qtcore.QObject_ITF, position int, text string) *QAccessibleTextRemoveEvent

func NewQAccessibleTextRemoveEvent1

func NewQAccessibleTextRemoveEvent1(iface QAccessibleInterface_ITF, position int, text string) *QAccessibleTextRemoveEvent

func NewQAccessibleTextRemoveEventFromPointer

func NewQAccessibleTextRemoveEventFromPointer(cthis unsafe.Pointer) *QAccessibleTextRemoveEvent

func (*QAccessibleTextRemoveEvent) ChangePosition

func (this *QAccessibleTextRemoveEvent) ChangePosition() int

func (*QAccessibleTextRemoveEvent) GetCthis

func (this *QAccessibleTextRemoveEvent) GetCthis() unsafe.Pointer

func (*QAccessibleTextRemoveEvent) NewForInherit

func (*QAccessibleTextRemoveEvent) NewForInherit1

func (*QAccessibleTextRemoveEvent) NewFromPointer

func (*QAccessibleTextRemoveEvent) QAccessibleTextRemoveEvent_PTR

func (ptr *QAccessibleTextRemoveEvent) QAccessibleTextRemoveEvent_PTR() *QAccessibleTextRemoveEvent

func (*QAccessibleTextRemoveEvent) SetCthis

func (this *QAccessibleTextRemoveEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTextRemoveEvent) TextRemoved

func (this *QAccessibleTextRemoveEvent) TextRemoved() string

type QAccessibleTextRemoveEvent_ITF

type QAccessibleTextRemoveEvent_ITF interface {
	QAccessibleTextCursorEvent_ITF
	QAccessibleTextRemoveEvent_PTR() *QAccessibleTextRemoveEvent
}

type QAccessibleTextSelectionEvent

type QAccessibleTextSelectionEvent struct {
	*QAccessibleTextCursorEvent
}

func NewQAccessibleTextSelectionEvent

func NewQAccessibleTextSelectionEvent(obj qtcore.QObject_ITF, start int, end_ int) *QAccessibleTextSelectionEvent

func NewQAccessibleTextSelectionEvent1

func NewQAccessibleTextSelectionEvent1(iface QAccessibleInterface_ITF, start int, end_ int) *QAccessibleTextSelectionEvent

func NewQAccessibleTextSelectionEventFromPointer

func NewQAccessibleTextSelectionEventFromPointer(cthis unsafe.Pointer) *QAccessibleTextSelectionEvent

func (*QAccessibleTextSelectionEvent) GetCthis

func (this *QAccessibleTextSelectionEvent) GetCthis() unsafe.Pointer

func (*QAccessibleTextSelectionEvent) NewForInherit

func (*QAccessibleTextSelectionEvent) NewForInherit1

func (*QAccessibleTextSelectionEvent) NewFromPointer

func (*QAccessibleTextSelectionEvent) QAccessibleTextSelectionEvent_PTR

func (ptr *QAccessibleTextSelectionEvent) QAccessibleTextSelectionEvent_PTR() *QAccessibleTextSelectionEvent

func (*QAccessibleTextSelectionEvent) SelectionEnd

func (this *QAccessibleTextSelectionEvent) SelectionEnd() int

func (*QAccessibleTextSelectionEvent) SelectionStart

func (this *QAccessibleTextSelectionEvent) SelectionStart() int

func (*QAccessibleTextSelectionEvent) SetCthis

func (this *QAccessibleTextSelectionEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTextSelectionEvent) SetSelection

func (this *QAccessibleTextSelectionEvent) SetSelection(start int, end_ int)

type QAccessibleTextSelectionEvent_ITF

type QAccessibleTextSelectionEvent_ITF interface {
	QAccessibleTextCursorEvent_ITF
	QAccessibleTextSelectionEvent_PTR() *QAccessibleTextSelectionEvent
}

type QAccessibleTextUpdateEvent

type QAccessibleTextUpdateEvent struct {
	*QAccessibleTextCursorEvent
}

func NewQAccessibleTextUpdateEvent

func NewQAccessibleTextUpdateEvent(obj qtcore.QObject_ITF, position int, oldText string, text string) *QAccessibleTextUpdateEvent

func NewQAccessibleTextUpdateEvent1

func NewQAccessibleTextUpdateEvent1(iface QAccessibleInterface_ITF, position int, oldText string, text string) *QAccessibleTextUpdateEvent

func NewQAccessibleTextUpdateEventFromPointer

func NewQAccessibleTextUpdateEventFromPointer(cthis unsafe.Pointer) *QAccessibleTextUpdateEvent

func (*QAccessibleTextUpdateEvent) ChangePosition

func (this *QAccessibleTextUpdateEvent) ChangePosition() int

func (*QAccessibleTextUpdateEvent) GetCthis

func (this *QAccessibleTextUpdateEvent) GetCthis() unsafe.Pointer

func (*QAccessibleTextUpdateEvent) NewForInherit

func (*QAccessibleTextUpdateEvent) NewForInherit(obj qtcore.QObject_ITF, position int, oldText string, text string) *QAccessibleTextUpdateEvent

func (*QAccessibleTextUpdateEvent) NewForInherit1

func (*QAccessibleTextUpdateEvent) NewForInherit1(iface QAccessibleInterface_ITF, position int, oldText string, text string) *QAccessibleTextUpdateEvent

func (*QAccessibleTextUpdateEvent) NewFromPointer

func (*QAccessibleTextUpdateEvent) QAccessibleTextUpdateEvent_PTR

func (ptr *QAccessibleTextUpdateEvent) QAccessibleTextUpdateEvent_PTR() *QAccessibleTextUpdateEvent

func (*QAccessibleTextUpdateEvent) SetCthis

func (this *QAccessibleTextUpdateEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleTextUpdateEvent) TextInserted

func (this *QAccessibleTextUpdateEvent) TextInserted() string

func (*QAccessibleTextUpdateEvent) TextRemoved

func (this *QAccessibleTextUpdateEvent) TextRemoved() string

type QAccessibleTextUpdateEvent_ITF

type QAccessibleTextUpdateEvent_ITF interface {
	QAccessibleTextCursorEvent_ITF
	QAccessibleTextUpdateEvent_PTR() *QAccessibleTextUpdateEvent
}

type QAccessibleValueChangeEvent

type QAccessibleValueChangeEvent struct {
	*QAccessibleEvent
}

func NewQAccessibleValueChangeEventFromPointer

func NewQAccessibleValueChangeEventFromPointer(cthis unsafe.Pointer) *QAccessibleValueChangeEvent

func (*QAccessibleValueChangeEvent) GetCthis

func (this *QAccessibleValueChangeEvent) GetCthis() unsafe.Pointer

func (*QAccessibleValueChangeEvent) NewForInherit

func (*QAccessibleValueChangeEvent) NewForInherit1

func (*QAccessibleValueChangeEvent) NewFromPointer

func (*QAccessibleValueChangeEvent) QAccessibleValueChangeEvent_PTR

func (ptr *QAccessibleValueChangeEvent) QAccessibleValueChangeEvent_PTR() *QAccessibleValueChangeEvent

func (*QAccessibleValueChangeEvent) SetCthis

func (this *QAccessibleValueChangeEvent) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleValueChangeEvent) SetValue

func (this *QAccessibleValueChangeEvent) SetValue(val qtcore.QVariant_ITF)

func (*QAccessibleValueChangeEvent) Value

type QAccessibleValueChangeEvent_ITF

type QAccessibleValueChangeEvent_ITF interface {
	QAccessibleEvent_ITF
	QAccessibleValueChangeEvent_PTR() *QAccessibleValueChangeEvent
}

type QAccessibleValueInterface

type QAccessibleValueInterface struct {
	*qtrt.CObject
}

func NewQAccessibleValueInterfaceFromPointer

func NewQAccessibleValueInterfaceFromPointer(cthis unsafe.Pointer) *QAccessibleValueInterface

func (*QAccessibleValueInterface) CurrentValue

func (this *QAccessibleValueInterface) CurrentValue() *qtcore.QVariant

func (*QAccessibleValueInterface) GetCthis

func (this *QAccessibleValueInterface) GetCthis() unsafe.Pointer

func (*QAccessibleValueInterface) MaximumValue

func (this *QAccessibleValueInterface) MaximumValue() *qtcore.QVariant

func (*QAccessibleValueInterface) MinimumStepSize

func (this *QAccessibleValueInterface) MinimumStepSize() *qtcore.QVariant

func (*QAccessibleValueInterface) MinimumValue

func (this *QAccessibleValueInterface) MinimumValue() *qtcore.QVariant

func (*QAccessibleValueInterface) NewFromPointer

func (*QAccessibleValueInterface) QAccessibleValueInterface_PTR

func (ptr *QAccessibleValueInterface) QAccessibleValueInterface_PTR() *QAccessibleValueInterface

func (*QAccessibleValueInterface) SetCthis

func (this *QAccessibleValueInterface) SetCthis(cthis unsafe.Pointer)

func (*QAccessibleValueInterface) SetCurrentValue

func (this *QAccessibleValueInterface) SetCurrentValue(value qtcore.QVariant_ITF)

type QAccessibleValueInterface_ITF

type QAccessibleValueInterface_ITF interface {
	QAccessibleValueInterface_PTR() *QAccessibleValueInterface
}

type QAccessible_ITF

type QAccessible_ITF interface {
	QAccessible_PTR() *QAccessible
}

type QAccessible__Event

type QAccessible__Event = int

This enum type defines accessible event types.

The values for this enum are defined to be the same as those defined in the IAccessible2 and MSAA specifications.

const QAccessible__AcceleratorChanged QAccessible__Event = 32960
const QAccessible__ActionChanged QAccessible__Event = 257
const QAccessible__ActiveDescendantChanged QAccessible__Event = 258
const QAccessible__Alert QAccessible__Event = 2
const QAccessible__AttributeChanged QAccessible__Event = 259
const QAccessible__ContextHelpEnd QAccessible__Event = 13
const QAccessible__ContextHelpStart QAccessible__Event = 12
const QAccessible__DefaultActionChanged QAccessible__Event = 32944
const QAccessible__DescriptionChanged QAccessible__Event = 32781
const QAccessible__DialogEnd QAccessible__Event = 17
const QAccessible__DialogStart QAccessible__Event = 16
const QAccessible__DocumentContentChanged QAccessible__Event = 260
const QAccessible__DocumentLoadComplete QAccessible__Event = 261
const QAccessible__DocumentLoadStopped QAccessible__Event = 262
const QAccessible__DocumentReload QAccessible__Event = 263
const QAccessible__DragDropEnd QAccessible__Event = 15
const QAccessible__DragDropStart QAccessible__Event = 14
const QAccessible__Focus QAccessible__Event = 32773
const QAccessible__ForegroundChanged QAccessible__Event = 3
const QAccessible__HelpChanged QAccessible__Event = 32928
const QAccessible__HyperlinkEndIndexChanged QAccessible__Event = 264
const QAccessible__HyperlinkNumberOfAnchorsChanged QAccessible__Event = 265
const QAccessible__HyperlinkSelectedLinkChanged QAccessible__Event = 266
const QAccessible__HyperlinkStartIndexChanged QAccessible__Event = 269
const QAccessible__HypertextChanged QAccessible__Event = 270
const QAccessible__HypertextLinkActivated QAccessible__Event = 267
const QAccessible__HypertextLinkSelected QAccessible__Event = 268
const QAccessible__HypertextNLinksChanged QAccessible__Event = 271
const QAccessible__InvalidEvent QAccessible__Event = 32961
const QAccessible__LocationChanged QAccessible__Event = 32779
const QAccessible__MenuCommand QAccessible__Event = 24
const QAccessible__MenuEnd QAccessible__Event = 5
const QAccessible__MenuStart QAccessible__Event = 4
const QAccessible__NameChanged QAccessible__Event = 32780
const QAccessible__ObjectAttributeChanged QAccessible__Event = 272
const QAccessible__ObjectCreated QAccessible__Event = 32768
const QAccessible__ObjectDestroyed QAccessible__Event = 32769
const QAccessible__ObjectHide QAccessible__Event = 32771
const QAccessible__ObjectReorder QAccessible__Event = 32772
const QAccessible__ObjectShow QAccessible__Event = 32770
const QAccessible__PageChanged QAccessible__Event = 273
const QAccessible__ParentChanged QAccessible__Event = 32783
const QAccessible__PopupMenuEnd QAccessible__Event = 7
const QAccessible__PopupMenuStart QAccessible__Event = 6
const QAccessible__ScrollingEnd QAccessible__Event = 19
const QAccessible__ScrollingStart QAccessible__Event = 18
const QAccessible__SectionChanged QAccessible__Event = 274
const QAccessible__Selection QAccessible__Event = 32774
const QAccessible__SelectionAdd QAccessible__Event = 32775
const QAccessible__SelectionRemove QAccessible__Event = 32776
const QAccessible__SelectionWithin QAccessible__Event = 32777
const QAccessible__SoundPlayed QAccessible__Event = 1
const QAccessible__StateChanged QAccessible__Event = 32778
const QAccessible__TableCaptionChanged QAccessible__Event = 275
const QAccessible__TableColumnDescriptionChanged QAccessible__Event = 276
const QAccessible__TableColumnHeaderChanged QAccessible__Event = 277
const QAccessible__TableModelChanged QAccessible__Event = 278
const QAccessible__TableRowDescriptionChanged QAccessible__Event = 279
const QAccessible__TableRowHeaderChanged QAccessible__Event = 280
const QAccessible__TableSummaryChanged QAccessible__Event = 281
const QAccessible__TextAttributeChanged QAccessible__Event = 282
const QAccessible__TextCaretMoved QAccessible__Event = 283
const QAccessible__TextColumnChanged QAccessible__Event = 285
const QAccessible__TextInserted QAccessible__Event = 286
const QAccessible__TextRemoved QAccessible__Event = 287
const QAccessible__TextSelectionChanged QAccessible__Event = 289
const QAccessible__TextUpdated QAccessible__Event = 288
const QAccessible__ValueChanged QAccessible__Event = 32782
const QAccessible__VisibleDataChanged QAccessible__Event = 290

type QAccessible__InterfaceType

type QAccessible__InterfaceType = int

QAccessibleInterface supports several sub interfaces. In order to provide more information about some objects, their accessible representation should implement one or more of these interfaces.

Note: When subclassing one of these interfaces, QAccessibleInterface::interface_cast() needs to be implemented.

See also QAccessibleInterface::interface_cast(), QAccessibleTextInterface, QAccessibleValueInterface, QAccessibleActionInterface, QAccessibleTableInterface, and QAccessibleTableCellInterface.

const QAccessible__ActionInterface QAccessible__InterfaceType = 3

For interactive objects that allow the user to trigger an action. Basically everything that allows for example mouse interaction.

const QAccessible__EditableTextInterface QAccessible__InterfaceType = 1
const QAccessible__ImageInterface QAccessible__InterfaceType = 4
const QAccessible__TableCellInterface QAccessible__InterfaceType = 6

For cells in a TableInterface object.

const QAccessible__TableInterface QAccessible__InterfaceType = 5

For lists, tables and trees.

const QAccessible__TextInterface QAccessible__InterfaceType = 0

For text that supports selections or is more than one line. Simple labels do not need to implement this interface.

const QAccessible__ValueInterface QAccessible__InterfaceType = 2

For objects that are used to manipulate a value, for example slider or scroll bar.

type QAccessible__RelationFlag

type QAccessible__RelationFlag = int
const QAccessible__AllRelations QAccessible__RelationFlag = -1
const QAccessible__Controlled QAccessible__RelationFlag = 8
const QAccessible__Controller QAccessible__RelationFlag = 4
const QAccessible__Label QAccessible__RelationFlag = 1
const QAccessible__Labelled QAccessible__RelationFlag = 2

type QAccessible__Role

type QAccessible__Role = int

This enum defines the role of an accessible object. The roles are:

const QAccessible__AlertMessage QAccessible__Role = 8
const QAccessible__Animation QAccessible__Role = 54
const QAccessible__Application QAccessible__Role = 14
const QAccessible__Assistant QAccessible__Role = 32
const QAccessible__Border QAccessible__Role = 19
const QAccessible__Button QAccessible__Role = 43
const QAccessible__ButtonDropDown QAccessible__Role = 56
const QAccessible__ButtonDropGrid QAccessible__Role = 58
const QAccessible__ButtonMenu QAccessible__Role = 57
const QAccessible__Canvas QAccessible__Role = 53
const QAccessible__Caret QAccessible__Role = 7
const QAccessible__Cell QAccessible__Role = 29
const QAccessible__Chart QAccessible__Role = 17
const QAccessible__CheckBox QAccessible__Role = 44
const QAccessible__Client QAccessible__Role = 10
const QAccessible__Clock QAccessible__Role = 61
const QAccessible__ColorChooser QAccessible__Role = 1028
const QAccessible__Column QAccessible__Role = 27
const QAccessible__ColumnHeader QAccessible__Role = 25
const QAccessible__ComboBox QAccessible__Role = 46
const QAccessible__ComplementaryContent QAccessible__Role = 1068
const QAccessible__Cursor QAccessible__Role = 6
const QAccessible__Desktop QAccessible__Role = 130
const QAccessible__Dial QAccessible__Role = 49
const QAccessible__Dialog QAccessible__Role = 18
const QAccessible__Document QAccessible__Role = 15
const QAccessible__EditableText QAccessible__Role = 42
const QAccessible__Equation QAccessible__Role = 55
const QAccessible__Footer QAccessible__Role = 1038
const QAccessible__Form QAccessible__Role = 1040
const QAccessible__Graphic QAccessible__Role = 40
const QAccessible__Grip QAccessible__Role = 4
const QAccessible__Grouping QAccessible__Role = 20
const QAccessible__Heading QAccessible__Role = 1044
const QAccessible__HelpBalloon QAccessible__Role = 31
const QAccessible__HotkeyField QAccessible__Role = 50
const QAccessible__Indicator QAccessible__Role = 39
const QAccessible__LayeredPane QAccessible__Role = 128
const QAccessible__Link QAccessible__Role = 30
const QAccessible__List QAccessible__Role = 33
const QAccessible__ListItem QAccessible__Role = 34
const QAccessible__MenuBar QAccessible__Role = 2
const QAccessible__MenuItem QAccessible__Role = 12
const QAccessible__NoRole QAccessible__Role = 0
const QAccessible__Note QAccessible__Role = 1051
const QAccessible__PageTab QAccessible__Role = 37
const QAccessible__PageTabList QAccessible__Role = 60
const QAccessible__Pane QAccessible__Role = 16
const QAccessible__Paragraph QAccessible__Role = 131
const QAccessible__PopupMenu QAccessible__Role = 11
const QAccessible__ProgressBar QAccessible__Role = 48
const QAccessible__PropertyPage QAccessible__Role = 38
const QAccessible__PushButton QAccessible__Role = 43
const QAccessible__RadioButton QAccessible__Role = 45
const QAccessible__Row QAccessible__Role = 28
const QAccessible__RowHeader QAccessible__Role = 26
const QAccessible__ScrollBar QAccessible__Role = 3
const QAccessible__Section QAccessible__Role = 133
const QAccessible__Separator QAccessible__Role = 21
const QAccessible__Slider QAccessible__Role = 51
const QAccessible__Sound QAccessible__Role = 5
const QAccessible__SpinBox QAccessible__Role = 52
const QAccessible__Splitter QAccessible__Role = 62
const QAccessible__StaticText QAccessible__Role = 41
const QAccessible__StatusBar QAccessible__Role = 23
const QAccessible__Table QAccessible__Role = 24
const QAccessible__Terminal QAccessible__Role = 129
const QAccessible__TitleBar QAccessible__Role = 1
const QAccessible__ToolBar QAccessible__Role = 22
const QAccessible__ToolTip QAccessible__Role = 13
const QAccessible__Tree QAccessible__Role = 35
const QAccessible__TreeItem QAccessible__Role = 36
const QAccessible__UserRole QAccessible__Role = 65535
const QAccessible__WebDocument QAccessible__Role = 132
const QAccessible__Whitespace QAccessible__Role = 59
const QAccessible__Window QAccessible__Role = 9

type QAccessible__Text

type QAccessible__Text = int

This enum specifies string information that an accessible object returns.

const QAccessible__Accelerator QAccessible__Text = 4

The keyboard shortcut that executes the object's default action.

const QAccessible__DebugDescription QAccessible__Text = 5
const QAccessible__Description QAccessible__Text = 1

A short text describing the object.

const QAccessible__Help QAccessible__Text = 3

A longer text giving information about how to use the object.

const QAccessible__Name QAccessible__Text = 0

The name of the object. This can be used both as an identifier or a short description by accessible clients.

const QAccessible__UserText QAccessible__Text = 65535
const QAccessible__Value QAccessible__Text = 2

The value of the object.

type QAccessible__TextBoundaryType

type QAccessible__TextBoundaryType = int

This enum describes different types of text boundaries. It follows the IAccessible2 API and is used in the QAccessibleTextInterface.

See also QAccessibleTextInterface.

const QAccessible__CharBoundary QAccessible__TextBoundaryType = 0

Use individual characters as boundary.

const QAccessible__LineBoundary QAccessible__TextBoundaryType = 4

Use newlines as boundary.

const QAccessible__NoBoundary QAccessible__TextBoundaryType = 5

No boundary (use the whole text).

const QAccessible__ParagraphBoundary QAccessible__TextBoundaryType = 3

Use paragraphs as boundary.

const QAccessible__SentenceBoundary QAccessible__TextBoundaryType = 2

Use sentences as boundary.

const QAccessible__WordBoundary QAccessible__TextBoundaryType = 1

Use words as boundaries.

type QActionEvent

type QActionEvent struct {
	*qtcore.QEvent
}

func NewQActionEvent

func NewQActionEvent(type_ int, action unsafe.Pointer, before unsafe.Pointer) *QActionEvent

func NewQActionEventFromPointer

func NewQActionEventFromPointer(cthis unsafe.Pointer) *QActionEvent

func NewQActionEventp

func NewQActionEventp(type_ int, action unsafe.Pointer) *QActionEvent

func (*QActionEvent) Action

func (this *QActionEvent) Action() unsafe.Pointer

func (*QActionEvent) Before

func (this *QActionEvent) Before() unsafe.Pointer

func (*QActionEvent) GetCthis

func (this *QActionEvent) GetCthis() unsafe.Pointer

func (*QActionEvent) NewForInherit

func (*QActionEvent) NewForInherit(type_ int, action unsafe.Pointer, before unsafe.Pointer) *QActionEvent

func (*QActionEvent) NewForInheritp

func (*QActionEvent) NewForInheritp(type_ int, action unsafe.Pointer) *QActionEvent

func (*QActionEvent) NewFromPointer

func (*QActionEvent) NewFromPointer(cthis unsafe.Pointer) *QActionEvent

func (*QActionEvent) QActionEvent_PTR

func (ptr *QActionEvent) QActionEvent_PTR() *QActionEvent

func (*QActionEvent) SetCthis

func (this *QActionEvent) SetCthis(cthis unsafe.Pointer)

type QActionEvent_ITF

type QActionEvent_ITF interface {
	qtcore.QEvent_ITF
	QActionEvent_PTR() *QActionEvent
}

type QApplicationStateChangeEvent

type QApplicationStateChangeEvent struct {
	*qtcore.QEvent
}

func NewQApplicationStateChangeEvent

func NewQApplicationStateChangeEvent(state int) *QApplicationStateChangeEvent

func NewQApplicationStateChangeEventFromPointer

func NewQApplicationStateChangeEventFromPointer(cthis unsafe.Pointer) *QApplicationStateChangeEvent

func (*QApplicationStateChangeEvent) ApplicationState

func (this *QApplicationStateChangeEvent) ApplicationState() int

func (*QApplicationStateChangeEvent) GetCthis

func (this *QApplicationStateChangeEvent) GetCthis() unsafe.Pointer

func (*QApplicationStateChangeEvent) NewForInherit

func (*QApplicationStateChangeEvent) NewFromPointer

func (*QApplicationStateChangeEvent) QApplicationStateChangeEvent_PTR

func (ptr *QApplicationStateChangeEvent) QApplicationStateChangeEvent_PTR() *QApplicationStateChangeEvent

func (*QApplicationStateChangeEvent) SetCthis

func (this *QApplicationStateChangeEvent) SetCthis(cthis unsafe.Pointer)

type QApplicationStateChangeEvent_ITF

type QApplicationStateChangeEvent_ITF interface {
	qtcore.QEvent_ITF
	QApplicationStateChangeEvent_PTR() *QApplicationStateChangeEvent
}

type QBackingStore

type QBackingStore struct {
	*qtrt.CObject
}

func NewQBackingStore

func NewQBackingStore(window QWindow_ITF) *QBackingStore

func NewQBackingStoreFromPointer

func NewQBackingStoreFromPointer(cthis unsafe.Pointer) *QBackingStore

func (*QBackingStore) BeginPaint

func (this *QBackingStore) BeginPaint(arg0 QRegion_ITF)

Begins painting on the backing store surface in the given region.

You should call this function before using the paintDevice() to paint.

See also endPaint() and paintDevice().

func (*QBackingStore) EndPaint

func (this *QBackingStore) EndPaint()

Ends painting.

You should call this function after painting with the paintDevice() has ended.

See also beginPaint() and paintDevice().

func (*QBackingStore) Flush

func (this *QBackingStore) Flush(region QRegion_ITF, window QWindow_ITF, offset qtcore.QPoint_ITF)

Flushes the given region from the specified window onto the screen.

The window must either be the top level window represented by this backingstore, or a non-transient child of that window. Passing nullptr falls back to using the backingstore's top level window.

If the window is a child window, the region should be in child window coordinates, and the offset should be the child window's offset in relation to the backingstore's top level window.

You should call this function after ending painting with endPaint().

See also QWindow::transientParent().

func (*QBackingStore) Flushp

func (this *QBackingStore) Flushp(region QRegion_ITF)

Flushes the given region from the specified window onto the screen.

The window must either be the top level window represented by this backingstore, or a non-transient child of that window. Passing nullptr falls back to using the backingstore's top level window.

If the window is a child window, the region should be in child window coordinates, and the offset should be the child window's offset in relation to the backingstore's top level window.

You should call this function after ending painting with endPaint().

See also QWindow::transientParent().

func (*QBackingStore) Flushp1

func (this *QBackingStore) Flushp1(region QRegion_ITF, window QWindow_ITF)

Flushes the given region from the specified window onto the screen.

The window must either be the top level window represented by this backingstore, or a non-transient child of that window. Passing nullptr falls back to using the backingstore's top level window.

If the window is a child window, the region should be in child window coordinates, and the offset should be the child window's offset in relation to the backingstore's top level window.

You should call this function after ending painting with endPaint().

See also QWindow::transientParent().

func (*QBackingStore) GetCthis

func (this *QBackingStore) GetCthis() unsafe.Pointer

func (*QBackingStore) HasStaticContents

func (this *QBackingStore) HasStaticContents() bool

Returns a boolean indicating if this window has static contents or not.

func (*QBackingStore) NewForInherit

func (*QBackingStore) NewForInherit(window QWindow_ITF) *QBackingStore

Constructs an empty surface for the given top-level window.

func (*QBackingStore) NewFromPointer

func (*QBackingStore) NewFromPointer(cthis unsafe.Pointer) *QBackingStore

func (*QBackingStore) PaintDevice

func (this *QBackingStore) PaintDevice() *QPaintDevice

Returns the paint device for this surface.

Warning: The device is only valid between calls to beginPaint() and endPaint(). You should not cache the returned value.

func (*QBackingStore) QBackingStore_PTR

func (ptr *QBackingStore) QBackingStore_PTR() *QBackingStore

func (*QBackingStore) Resize

func (this *QBackingStore) Resize(size qtcore.QSize_ITF)

Sets the size of the window surface to size.

See also size().

func (*QBackingStore) Scroll

func (this *QBackingStore) Scroll(area QRegion_ITF, dx int, dy int) bool

Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.

Returns true if the area was scrolled successfully; false otherwise.

func (*QBackingStore) SetCthis

func (this *QBackingStore) SetCthis(cthis unsafe.Pointer)

func (*QBackingStore) SetStaticContents

func (this *QBackingStore) SetStaticContents(region QRegion_ITF)

Set region as the static contents of this window.

See also staticContents().

func (*QBackingStore) Size

func (this *QBackingStore) Size() *qtcore.QSize

Returns the current size of the window surface.

func (*QBackingStore) StaticContents

func (this *QBackingStore) StaticContents() *QRegion

Returns a QRegion representing the area of the window that has static contents.

See also setStaticContents().

func (*QBackingStore) Window

func (this *QBackingStore) Window() *QWindow

Returns a pointer to the top-level window associated with this surface.

type QBackingStore_ITF

type QBackingStore_ITF interface {
	QBackingStore_PTR() *QBackingStore
}

type QBitmap

type QBitmap struct {
	*QPixmap
}

func NewQBitmap

func NewQBitmap() *QBitmap

func NewQBitmap1

func NewQBitmap1(arg0 QPixmap_ITF) *QBitmap

func NewQBitmap2

func NewQBitmap2(w int, h int) *QBitmap

func NewQBitmap3

func NewQBitmap3(arg0 qtcore.QSize_ITF) *QBitmap

func NewQBitmap4

func NewQBitmap4(fileName string, format string) *QBitmap

func NewQBitmap4p

func NewQBitmap4p(fileName string) *QBitmap

func NewQBitmapFromPointer

func NewQBitmapFromPointer(cthis unsafe.Pointer) *QBitmap

func QBitmap_FromData

func QBitmap_FromData(size qtcore.QSize_ITF, bits unsafe.Pointer, monoFormat int) *QBitmap

func QBitmap_FromImage

func QBitmap_FromImage(image QImage_ITF, flags int) *QBitmap

func QBitmap_FromImage1

func QBitmap_FromImage1(image unsafe.Pointer, flags int) *QBitmap

func (*QBitmap) Clear

func (this *QBitmap) Clear()

Clears the bitmap, setting all its bits to Qt::color0.

func (*QBitmap) FromData

func (this *QBitmap) FromData(size qtcore.QSize_ITF, bits unsafe.Pointer, monoFormat int) *QBitmap

Constructs a bitmap with the given size, and sets the contents to the bits supplied.

The bitmap data has to be byte aligned and provided in in the bit order specified by monoFormat. The mono format must be either QImage::Format_Mono or QImage::Format_MonoLSB. Use QImage::Format_Mono to specify data on the XBM format.

See also fromImage().

func (*QBitmap) FromDatap

func (this *QBitmap) FromDatap(size qtcore.QSize_ITF, bits unsafe.Pointer) *QBitmap

Constructs a bitmap with the given size, and sets the contents to the bits supplied.

The bitmap data has to be byte aligned and provided in in the bit order specified by monoFormat. The mono format must be either QImage::Format_Mono or QImage::Format_MonoLSB. Use QImage::Format_Mono to specify data on the XBM format.

See also fromImage().

func (*QBitmap) FromImage

func (this *QBitmap) FromImage(image QImage_ITF, flags int) *QBitmap

Returns a copy of the given image converted to a bitmap using the specified image conversion flags.

See also fromData().

func (*QBitmap) FromImage1

func (this *QBitmap) FromImage1(image unsafe.Pointer, flags int) *QBitmap

Returns a copy of the given image converted to a bitmap using the specified image conversion flags.

See also fromData().

func (*QBitmap) FromImage1p

func (this *QBitmap) FromImage1p(image unsafe.Pointer) *QBitmap

Returns a copy of the given image converted to a bitmap using the specified image conversion flags.

See also fromData().

func (*QBitmap) FromImagep

func (this *QBitmap) FromImagep(image QImage_ITF) *QBitmap

Returns a copy of the given image converted to a bitmap using the specified image conversion flags.

See also fromData().

func (*QBitmap) GetCthis

func (this *QBitmap) GetCthis() unsafe.Pointer

func (*QBitmap) NewForInherit

func (*QBitmap) NewForInherit() *QBitmap

Constructs a null bitmap.

See also QPixmap::isNull().

func (*QBitmap) NewForInherit1

func (*QBitmap) NewForInherit1(arg0 QPixmap_ITF) *QBitmap

Constructs a null bitmap.

See also QPixmap::isNull().

func (*QBitmap) NewForInherit2

func (*QBitmap) NewForInherit2(w int, h int) *QBitmap

Constructs a null bitmap.

See also QPixmap::isNull().

func (*QBitmap) NewForInherit3

func (*QBitmap) NewForInherit3(arg0 qtcore.QSize_ITF) *QBitmap

Constructs a null bitmap.

See also QPixmap::isNull().

func (*QBitmap) NewForInherit4

func (*QBitmap) NewForInherit4(fileName string, format string) *QBitmap

Constructs a null bitmap.

See also QPixmap::isNull().

func (*QBitmap) NewForInherit4p

func (*QBitmap) NewForInherit4p(fileName string) *QBitmap

Constructs a null bitmap.

See also QPixmap::isNull().

func (*QBitmap) NewFromPointer

func (*QBitmap) NewFromPointer(cthis unsafe.Pointer) *QBitmap

func (*QBitmap) Operator_equal

func (this *QBitmap) Operator_equal(other QBitmap_ITF) *QBitmap

func (*QBitmap) Operator_equal1

func (this *QBitmap) Operator_equal1(other unsafe.Pointer) *QBitmap

func (*QBitmap) Operator_equal2

func (this *QBitmap) Operator_equal2(arg0 QPixmap_ITF) *QBitmap

func (*QBitmap) QBitmap_PTR

func (ptr *QBitmap) QBitmap_PTR() *QBitmap

func (*QBitmap) SetCthis

func (this *QBitmap) SetCthis(cthis unsafe.Pointer)

func (*QBitmap) Swap

func (this *QBitmap) Swap(other QBitmap_ITF)

Swaps bitmap other with this bitmap. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QBitmap) Transformed

func (this *QBitmap) Transformed(arg0 QMatrix_ITF) *QBitmap

Returns a copy of this bitmap, transformed according to the given matrix.

See also QPixmap::transformed().

func (*QBitmap) Transformed1

func (this *QBitmap) Transformed1(matrix QTransform_ITF) *QBitmap

Returns a copy of this bitmap, transformed according to the given matrix.

See also QPixmap::transformed().

type QBitmap_ITF

type QBitmap_ITF interface {
	QPixmap_ITF
	QBitmap_PTR() *QBitmap
}

type QBrush

type QBrush struct {
	*qtrt.CObject
}

func NewQBrush

func NewQBrush() *QBrush

func NewQBrush1

func NewQBrush1(bs int) *QBrush

func NewQBrush2

func NewQBrush2(color QColor_ITF, bs int) *QBrush

func NewQBrush2p

func NewQBrush2p(color QColor_ITF) *QBrush

func NewQBrush3

func NewQBrush3(color int, bs int) *QBrush

func NewQBrush3p

func NewQBrush3p(color int) *QBrush

func NewQBrush4

func NewQBrush4(color QColor_ITF, pixmap QPixmap_ITF) *QBrush

func NewQBrush5

func NewQBrush5(color int, pixmap QPixmap_ITF) *QBrush

func NewQBrush6

func NewQBrush6(pixmap QPixmap_ITF) *QBrush

func NewQBrush7

func NewQBrush7(image QImage_ITF) *QBrush

func NewQBrush8

func NewQBrush8(gradient QGradient_ITF) *QBrush

func NewQBrushFromPointer

func NewQBrushFromPointer(cthis unsafe.Pointer) *QBrush

func (*QBrush) Color

func (this *QBrush) Color() *QColor

Returns the brush color.

See also setColor().

func (*QBrush) GetCthis

func (this *QBrush) GetCthis() unsafe.Pointer

func (*QBrush) Gradient

func (this *QBrush) Gradient() *QGradient

Returns the gradient describing this brush.

func (*QBrush) IsDetached

func (this *QBrush) IsDetached() bool

func (*QBrush) IsOpaque

func (this *QBrush) IsOpaque() bool

Returns true if the brush is fully opaque otherwise false. A brush is considered opaque if:

The alpha component of the color() is 255. Its texture() does not have an alpha channel and is not a QBitmap. The colors in the gradient() all have an alpha component that is 255. It is an extended radial gradient.

func (*QBrush) Matrix

func (this *QBrush) Matrix() *QMatrix

Returns the current transformation matrix for the brush.

This function was introduced in Qt 4.2.

See also setMatrix().

func (*QBrush) NewForInherit

func (*QBrush) NewForInherit() *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit1

func (*QBrush) NewForInherit1(bs int) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit2

func (*QBrush) NewForInherit2(color QColor_ITF, bs int) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit2p

func (*QBrush) NewForInherit2p(color QColor_ITF) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit3

func (*QBrush) NewForInherit3(color int, bs int) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit3p

func (*QBrush) NewForInherit3p(color int) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit4

func (*QBrush) NewForInherit4(color QColor_ITF, pixmap QPixmap_ITF) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit5

func (*QBrush) NewForInherit5(color int, pixmap QPixmap_ITF) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit6

func (*QBrush) NewForInherit6(pixmap QPixmap_ITF) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit7

func (*QBrush) NewForInherit7(image QImage_ITF) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewForInherit8

func (*QBrush) NewForInherit8(gradient QGradient_ITF) *QBrush

Constructs a default black brush with the style Qt::NoBrush (i.e. this brush will not fill shapes).

func (*QBrush) NewFromPointer

func (*QBrush) NewFromPointer(cthis unsafe.Pointer) *QBrush

func (*QBrush) Operator_equal

func (this *QBrush) Operator_equal(brush QBrush_ITF) *QBrush

func (*QBrush) Operator_equal1

func (this *QBrush) Operator_equal1(other unsafe.Pointer) *QBrush

func (*QBrush) Operator_equal_equal

func (this *QBrush) Operator_equal_equal(b QBrush_ITF) bool

func (*QBrush) Operator_not_equal

func (this *QBrush) Operator_not_equal(b QBrush_ITF) bool

func (*QBrush) QBrush_PTR

func (ptr *QBrush) QBrush_PTR() *QBrush

func (*QBrush) SetColor

func (this *QBrush) SetColor(color QColor_ITF)

Sets the brush color to the given color.

Note that calling setColor() will not make a difference if the style is a gradient. The same is the case if the style is Qt::TexturePattern style unless the current texture is a QBitmap.

See also color().

func (*QBrush) SetColor1

func (this *QBrush) SetColor1(color int)

Sets the brush color to the given color.

Note that calling setColor() will not make a difference if the style is a gradient. The same is the case if the style is Qt::TexturePattern style unless the current texture is a QBitmap.

See also color().

func (*QBrush) SetCthis

func (this *QBrush) SetCthis(cthis unsafe.Pointer)

func (*QBrush) SetMatrix

func (this *QBrush) SetMatrix(mat QMatrix_ITF)

Sets matrix as an explicit transformation matrix on the current brush. The brush transformation matrix is merged with QPainter transformation matrix to produce the final result.

This function was introduced in Qt 4.2.

See also matrix().

func (*QBrush) SetStyle

func (this *QBrush) SetStyle(arg0 int)

Sets the brush style to style.

See also style().

func (*QBrush) SetTexture

func (this *QBrush) SetTexture(pixmap QPixmap_ITF)

Sets the brush pixmap to pixmap. The style is set to Qt::TexturePattern.

The current brush color will only have an effect for monochrome pixmaps, i.e. for QPixmap::depth() == 1 (QBitmaps).

See also texture().

func (*QBrush) SetTextureImage

func (this *QBrush) SetTextureImage(image QImage_ITF)

Sets the brush image to image. The style is set to Qt::TexturePattern.

Note the current brush color will not have any affect on monochrome images, as opposed to calling setTexture() with a QBitmap. If you want to change the color of monochrome image brushes, either convert the image to QBitmap with QBitmap::fromImage() and set the resulting QBitmap as a texture, or change the entries in the color table for the image.

This function was introduced in Qt 4.2.

See also textureImage() and setTexture().

func (*QBrush) SetTransform

func (this *QBrush) SetTransform(arg0 QTransform_ITF)

Sets matrix as an explicit transformation matrix on the current brush. The brush transformation matrix is merged with QPainter transformation matrix to produce the final result.

This function was introduced in Qt 4.3.

See also transform().

func (*QBrush) Style

func (this *QBrush) Style() int

Returns the brush style.

See also setStyle().

func (*QBrush) Swap

func (this *QBrush) Swap(other QBrush_ITF)

Swaps brush other with this brush. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QBrush) Texture

func (this *QBrush) Texture() *QPixmap

Returns the custom brush pattern, or a null pixmap if no custom brush pattern has been set.

See also setTexture().

func (*QBrush) TextureImage

func (this *QBrush) TextureImage() *QImage

Returns the custom brush pattern, or a null image if no custom brush pattern has been set.

If the texture was set as a QPixmap it will be converted to a QImage.

This function was introduced in Qt 4.2.

See also setTextureImage().

func (*QBrush) Transform

func (this *QBrush) Transform() *QTransform

Returns the current transformation matrix for the brush.

This function was introduced in Qt 4.3.

See also setTransform().

type QBrushData

type QBrushData struct {
	*qtrt.CObject
}

func NewQBrushDataFromPointer

func NewQBrushDataFromPointer(cthis unsafe.Pointer) *QBrushData

func (*QBrushData) GetCthis

func (this *QBrushData) GetCthis() unsafe.Pointer

func (*QBrushData) NewFromPointer

func (*QBrushData) NewFromPointer(cthis unsafe.Pointer) *QBrushData

func (*QBrushData) QBrushData_PTR

func (ptr *QBrushData) QBrushData_PTR() *QBrushData

func (*QBrushData) SetCthis

func (this *QBrushData) SetCthis(cthis unsafe.Pointer)

type QBrushData_ITF

type QBrushData_ITF interface {
	QBrushData_PTR() *QBrushData
}

type QBrush_ITF

type QBrush_ITF interface {
	QBrush_PTR() *QBrush
}

type QClipboard

type QClipboard struct {
	*qtcore.QObject
}

func NewQClipboardFromPointer

func NewQClipboardFromPointer(cthis unsafe.Pointer) *QClipboard

func QGuiApplication_Clipboard

func QGuiApplication_Clipboard() *QClipboard

func (*QClipboard) Changed

func (this *QClipboard) Changed(mode int)

This signal is emitted when the data for the given clipboard mode is changed.

This function was introduced in Qt 4.2.

See also dataChanged(), selectionChanged(), and findBufferChanged().

func (*QClipboard) Clear

func (this *QClipboard) Clear(mode int)

Clear the clipboard contents.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, this function clears the global clipboard contents. If mode is QClipboard::Selection, this function clears the global mouse selection contents. If mode is QClipboard::FindBuffer, this function clears the search string buffer.

See also QClipboard::Mode and supportsSelection().

func (*QClipboard) Clearp

func (this *QClipboard) Clearp()

Clear the clipboard contents.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, this function clears the global clipboard contents. If mode is QClipboard::Selection, this function clears the global mouse selection contents. If mode is QClipboard::FindBuffer, this function clears the search string buffer.

See also QClipboard::Mode and supportsSelection().

func (*QClipboard) DataChanged

func (this *QClipboard) DataChanged()

This signal is emitted when the clipboard data is changed.

On macOS and with Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated.

See also findBufferChanged(), selectionChanged(), and changed().

func (*QClipboard) FindBufferChanged

func (this *QClipboard) FindBufferChanged()

This signal is emitted when the find buffer is changed. This only applies to macOS.

With Qt version 4.3 or higher, clipboard changes made by other applications will only be detected when the application is activated.

This function was introduced in Qt 4.2.

See also dataChanged(), selectionChanged(), and changed().

func (*QClipboard) GetCthis

func (this *QClipboard) GetCthis() unsafe.Pointer

func (*QClipboard) Image

func (this *QClipboard) Image(mode int) *QImage

Returns the clipboard image, or returns a null image if the clipboard does not contain an image or if it contains an image in an unsupported image format.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is retrieved from the global clipboard. If mode is QClipboard::Selection, the image is retrieved from the global mouse selection.

See also setImage(), pixmap(), mimeData(), and QImage::isNull().

func (*QClipboard) Imagep

func (this *QClipboard) Imagep() *QImage

Returns the clipboard image, or returns a null image if the clipboard does not contain an image or if it contains an image in an unsupported image format.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is retrieved from the global clipboard. If mode is QClipboard::Selection, the image is retrieved from the global mouse selection.

See also setImage(), pixmap(), mimeData(), and QImage::isNull().

func (*QClipboard) MetaObject

func (this *QClipboard) MetaObject() *qtcore.QMetaObject

func (*QClipboard) MimeData

func (this *QClipboard) MimeData(mode int) *qtcore.QMimeData

Returns a pointer to a QMimeData representation of the current clipboard data (can be NULL if the given mode is not supported by the platform).

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is retrieved from the global clipboard. If mode is QClipboard::Selection, the data is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the data is retrieved from the search string buffer.

The text(), image(), and pixmap() functions are simpler wrappers for retrieving text, image, and pixmap data.

Note: The pointer returned might become invalidated when the contents of the clipboard changes; either by calling one of the setter functions or externally by the system clipboard changing.

See also setMimeData().

func (*QClipboard) MimeDatap

func (this *QClipboard) MimeDatap() *qtcore.QMimeData

Returns a pointer to a QMimeData representation of the current clipboard data (can be NULL if the given mode is not supported by the platform).

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is retrieved from the global clipboard. If mode is QClipboard::Selection, the data is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the data is retrieved from the search string buffer.

The text(), image(), and pixmap() functions are simpler wrappers for retrieving text, image, and pixmap data.

Note: The pointer returned might become invalidated when the contents of the clipboard changes; either by calling one of the setter functions or externally by the system clipboard changing.

See also setMimeData().

func (*QClipboard) ModeItemName

func (this *QClipboard) ModeItemName(val int) string

func (*QClipboard) NewFromPointer

func (*QClipboard) NewFromPointer(cthis unsafe.Pointer) *QClipboard

func (*QClipboard) OwnsClipboard

func (this *QClipboard) OwnsClipboard() bool

Returns true if this clipboard object owns the clipboard data; otherwise returns false.

func (*QClipboard) OwnsFindBuffer

func (this *QClipboard) OwnsFindBuffer() bool

Returns true if this clipboard object owns the find buffer data; otherwise returns false.

This function was introduced in Qt 4.2.

func (*QClipboard) OwnsSelection

func (this *QClipboard) OwnsSelection() bool

Returns true if this clipboard object owns the mouse selection data; otherwise returns false.

func (*QClipboard) Pixmap

func (this *QClipboard) Pixmap(mode int) *QPixmap

Returns the clipboard pixmap, or null if the clipboard does not contain a pixmap. Note that this can lose information. For example, if the image is 24-bit and the display is 8-bit, the result is converted to 8 bits, and if the image has an alpha channel, the result just has a mask.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is retrieved from the global clipboard. If mode is QClipboard::Selection, the pixmap is retrieved from the global mouse selection.

See also setPixmap(), image(), mimeData(), and QPixmap::convertFromImage().

func (*QClipboard) Pixmapp

func (this *QClipboard) Pixmapp() *QPixmap

Returns the clipboard pixmap, or null if the clipboard does not contain a pixmap. Note that this can lose information. For example, if the image is 24-bit and the display is 8-bit, the result is converted to 8 bits, and if the image has an alpha channel, the result just has a mask.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is retrieved from the global clipboard. If mode is QClipboard::Selection, the pixmap is retrieved from the global mouse selection.

See also setPixmap(), image(), mimeData(), and QPixmap::convertFromImage().

func (*QClipboard) QClipboard_PTR

func (ptr *QClipboard) QClipboard_PTR() *QClipboard

func (*QClipboard) SelectionChanged

func (this *QClipboard) SelectionChanged()

This signal is emitted when the selection is changed. This only applies to windowing systems that support selections, e.g. X11. Windows and macOS don't support selections.

See also dataChanged(), findBufferChanged(), and changed().

func (*QClipboard) SetCthis

func (this *QClipboard) SetCthis(cthis unsafe.Pointer)

func (*QClipboard) SetImage

func (this *QClipboard) SetImage(arg0 QImage_ITF, mode int)

Copies the image into the clipboard.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection.

This is shorthand for:

QMimeData *data = new QMimeData;
data->setImageData(image);
clipboard->setMimeData(data, mode);

See also image(), setPixmap(), and setMimeData().

func (*QClipboard) SetImagep

func (this *QClipboard) SetImagep(arg0 QImage_ITF)

Copies the image into the clipboard.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the image is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection.

This is shorthand for:

QMimeData *data = new QMimeData;
data->setImageData(image);
clipboard->setMimeData(data, mode);

See also image(), setPixmap(), and setMimeData().

func (*QClipboard) SetMimeData

func (this *QClipboard) SetMimeData(data qtcore.QMimeData_ITF, mode int)

Sets the clipboard data to src. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setMimeData() again with new data.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the data is stored in the search string buffer.

The setText(), setImage() and setPixmap() functions are simpler wrappers for setting text, image and pixmap data respectively.

See also mimeData().

func (*QClipboard) SetMimeDatap

func (this *QClipboard) SetMimeDatap(data qtcore.QMimeData_ITF)

Sets the clipboard data to src. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setMimeData() again with new data.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the data is stored in the global clipboard. If mode is QClipboard::Selection, the data is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the data is stored in the search string buffer.

The setText(), setImage() and setPixmap() functions are simpler wrappers for setting text, image and pixmap data respectively.

See also mimeData().

func (*QClipboard) SetPixmap

func (this *QClipboard) SetPixmap(arg0 QPixmap_ITF, mode int)

Copies pixmap into the clipboard. Note that this is slower than setImage() because it needs to convert the QPixmap to a QImage first.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is stored in the global clipboard. If mode is QClipboard::Selection, the pixmap is stored in the global mouse selection.

See also pixmap(), setImage(), and setMimeData().

func (*QClipboard) SetPixmapp

func (this *QClipboard) SetPixmapp(arg0 QPixmap_ITF)

Copies pixmap into the clipboard. Note that this is slower than setImage() because it needs to convert the QPixmap to a QImage first.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the pixmap is stored in the global clipboard. If mode is QClipboard::Selection, the pixmap is stored in the global mouse selection.

See also pixmap(), setImage(), and setMimeData().

func (*QClipboard) SetText

func (this *QClipboard) SetText(arg0 string, mode int)

Copies text into the clipboard as plain text.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is stored in the global clipboard. If mode is QClipboard::Selection, the text is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the text is stored in the search string buffer.

See also text() and setMimeData().

func (*QClipboard) SetTextp

func (this *QClipboard) SetTextp(arg0 string)

Copies text into the clipboard as plain text.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is stored in the global clipboard. If mode is QClipboard::Selection, the text is stored in the global mouse selection. If mode is QClipboard::FindBuffer, the text is stored in the search string buffer.

See also text() and setMimeData().

func (*QClipboard) SupportsFindBuffer

func (this *QClipboard) SupportsFindBuffer() bool

Returns true if the clipboard supports a separate search buffer; otherwise returns false.

func (*QClipboard) SupportsSelection

func (this *QClipboard) SupportsSelection() bool

Returns true if the clipboard supports mouse selection; otherwise returns false.

func (*QClipboard) Text

func (this *QClipboard) Text(mode int) string

Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.

See also setText() and mimeData().

func (*QClipboard) Text1

func (this *QClipboard) Text1(subtype string, mode int) string

Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.

See also setText() and mimeData().

func (*QClipboard) Text1p

func (this *QClipboard) Text1p(subtype string) string

Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.

See also setText() and mimeData().

func (*QClipboard) Textp

func (this *QClipboard) Textp() string

Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any text.

The mode argument is used to control which part of the system clipboard is used. If mode is QClipboard::Clipboard, the text is retrieved from the global clipboard. If mode is QClipboard::Selection, the text is retrieved from the global mouse selection. If mode is QClipboard::FindBuffer, the text is retrieved from the search string buffer.

See also setText() and mimeData().

type QClipboard_ITF

type QClipboard_ITF interface {
	qtcore.QObject_ITF
	QClipboard_PTR() *QClipboard
}

type QClipboard__Mode

type QClipboard__Mode = int

This enum type is used to control which part of the system clipboard is used by QClipboard::mimeData(), QClipboard::setMimeData() and related functions.

See also QClipboard::supportsSelection().

const QClipboard__Clipboard QClipboard__Mode = 0

indicates that data should be stored and retrieved from the global clipboard.

const QClipboard__FindBuffer QClipboard__Mode = 2

indicates that data should be stored and retrieved from the Find buffer. This mode is used for holding search strings on macOS.

const QClipboard__LastMode QClipboard__Mode = 2
const QClipboard__Selection QClipboard__Mode = 1

type QCloseEvent

type QCloseEvent struct {
	*qtcore.QEvent
}

func NewQCloseEvent

func NewQCloseEvent() *QCloseEvent

func NewQCloseEventFromPointer

func NewQCloseEventFromPointer(cthis unsafe.Pointer) *QCloseEvent

func (*QCloseEvent) GetCthis

func (this *QCloseEvent) GetCthis() unsafe.Pointer

func (*QCloseEvent) NewForInherit

func (*QCloseEvent) NewForInherit() *QCloseEvent

func (*QCloseEvent) NewFromPointer

func (*QCloseEvent) NewFromPointer(cthis unsafe.Pointer) *QCloseEvent

func (*QCloseEvent) QCloseEvent_PTR

func (ptr *QCloseEvent) QCloseEvent_PTR() *QCloseEvent

func (*QCloseEvent) SetCthis

func (this *QCloseEvent) SetCthis(cthis unsafe.Pointer)

type QCloseEvent_ITF

type QCloseEvent_ITF interface {
	qtcore.QEvent_ITF
	QCloseEvent_PTR() *QCloseEvent
}

type QColor

type QColor struct {
	*qtrt.CObject
}

func NewQColor

func NewQColor() *QColor

func NewQColor1

func NewQColor1(color int) *QColor

func NewQColor2

func NewQColor2(r int, g int, b int, a int) *QColor

func NewQColor2p

func NewQColor2p(r int, g int, b int) *QColor

func NewQColor3

func NewQColor3(rgb uint) *QColor

func NewQColor4

func NewQColor4(rgba64 QRgba64_ITF) *QColor

func NewQColor5

func NewQColor5(name string) *QColor

func NewQColor6

func NewQColor6(name qtcore.QStringView_ITF) *QColor

func NewQColor7

func NewQColor7(aname string) *QColor

func NewQColor8

func NewQColor8(name qtcore.QLatin1String_ITF) *QColor

func NewQColor9

func NewQColor9(spec int) *QColor

func NewQColorFromPointer

func NewQColorFromPointer(cthis unsafe.Pointer) *QColor

func QColor_FromCmyk

func QColor_FromCmyk(c int, m int, y int, k int, a int) *QColor

func QColor_FromCmykF

func QColor_FromCmykF(c float64, m float64, y float64, k float64, a float64) *QColor

func QColor_FromHsl

func QColor_FromHsl(h int, s int, l int, a int) *QColor

func QColor_FromHslF

func QColor_FromHslF(h float64, s float64, l float64, a float64) *QColor

func QColor_FromHsv

func QColor_FromHsv(h int, s int, v int, a int) *QColor

func QColor_FromHsvF

func QColor_FromHsvF(h float64, s float64, v float64, a float64) *QColor

func QColor_FromRgb

func QColor_FromRgb(rgb uint) *QColor

func QColor_FromRgb1

func QColor_FromRgb1(r int, g int, b int, a int) *QColor

func QColor_FromRgbF

func QColor_FromRgbF(r float64, g float64, b float64, a float64) *QColor

func QColor_FromRgba

func QColor_FromRgba(rgba uint) *QColor

func QColor_FromRgba64

func QColor_FromRgba64(r uint16, g uint16, b uint16, a uint16) *QColor

func QColor_FromRgba641

func QColor_FromRgba641(rgba QRgba64_ITF) *QColor

func (*QColor) Alpha

func (this *QColor) Alpha() int

Returns the alpha color component of this color.

See also setAlpha(), alphaF(), and Alpha-Blended Drawing.

func (*QColor) AlphaF

func (this *QColor) AlphaF() float64

Returns the alpha color component of this color.

See also setAlphaF(), alpha(), and Alpha-Blended Drawing.

func (*QColor) Black

func (this *QColor) Black() int

Returns the black color component of this color.

See also blackF(), getCmyk(), and The CMYK Color Model.

func (*QColor) BlackF

func (this *QColor) BlackF() float64

Returns the black color component of this color.

See also black(), getCmykF(), and The CMYK Color Model.

func (*QColor) Blue

func (this *QColor) Blue() int

Returns the blue color component of this color.

See also setBlue(), blueF(), and getRgb().

func (*QColor) BlueF

func (this *QColor) BlueF() float64

Returns the blue color component of this color.

See also setBlueF(), blue(), and getRgbF().

func (*QColor) ColorNames

func (this *QColor) ColorNames() *qtcore.QStringList

Returns a QStringList containing the color names Qt knows about.

See also Predefined Colors.

func (*QColor) ConvertTo

func (this *QColor) ConvertTo(colorSpec int) *QColor

Creates a copy of this color in the format specified by colorSpec.

See also spec(), toCmyk(), toHsv(), toRgb(), and isValid().

func (*QColor) Cyan

func (this *QColor) Cyan() int

Returns the cyan color component of this color.

See also cyanF(), getCmyk(), and The CMYK Color Model.

func (*QColor) CyanF

func (this *QColor) CyanF() float64

Returns the cyan color component of this color.

See also cyan(), getCmykF(), and The CMYK Color Model.

func (*QColor) Dark

func (this *QColor) Dark(f int) *QColor

func (*QColor) Darker

func (this *QColor) Darker(f int) *QColor

Returns a darker (or lighter) color, but does not change this object.

If the factor is greater than 100, this functions returns a darker color. Setting factor to 300 returns a color that has one-third the brightness. If the factor is less than 100, the return color is lighter, but we recommend using the lighter() function for this purpose. If the factor is 0 or negative, the return value is unspecified.

The function converts the current RGB color to HSV, divides the value (V) component by factor and converts the color back to RGB.

This function was introduced in Qt 4.3.

See also lighter() and isValid().

func (*QColor) Darkerp

func (this *QColor) Darkerp() *QColor

Returns a darker (or lighter) color, but does not change this object.

If the factor is greater than 100, this functions returns a darker color. Setting factor to 300 returns a color that has one-third the brightness. If the factor is less than 100, the return color is lighter, but we recommend using the lighter() function for this purpose. If the factor is 0 or negative, the return value is unspecified.

The function converts the current RGB color to HSV, divides the value (V) component by factor and converts the color back to RGB.

This function was introduced in Qt 4.3.

See also lighter() and isValid().

func (*QColor) Darkp

func (this *QColor) Darkp() *QColor

func (*QColor) FromCmyk

func (this *QColor) FromCmyk(c int, m int, y int, k int, a int) *QColor

Static convenience function that returns a QColor constructed from the given CMYK color values: c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0-255.

See also toCmyk(), fromCmykF(), isValid(), and The CMYK Color Model.

func (*QColor) FromCmykF

func (this *QColor) FromCmykF(c float64, m float64, y float64, k float64, a float64) *QColor

This is an overloaded function.

Static convenience function that returns a QColor constructed from the given CMYK color values: c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also toCmyk(), fromCmyk(), isValid(), and The CMYK Color Model.

func (*QColor) FromCmykFp

func (this *QColor) FromCmykFp(c float64, m float64, y float64, k float64) *QColor

This is an overloaded function.

Static convenience function that returns a QColor constructed from the given CMYK color values: c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also toCmyk(), fromCmyk(), isValid(), and The CMYK Color Model.

func (*QColor) FromCmykp

func (this *QColor) FromCmykp(c int, m int, y int, k int) *QColor

Static convenience function that returns a QColor constructed from the given CMYK color values: c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0-255.

See also toCmyk(), fromCmykF(), isValid(), and The CMYK Color Model.

func (*QColor) FromHsl

func (this *QColor) FromHsl(h int, s int, l int, a int) *QColor

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), l (lightness), and a (alpha-channel, i.e. transparency).

The value of s, l, and a must all be in the range 0-255; the value of h must be in the range 0-359.

This function was introduced in Qt 4.6.

See also toHsl(), fromHslF(), and isValid().

func (*QColor) FromHslF

func (this *QColor) FromHslF(h float64, s float64, l float64, a float64) *QColor

This is an overloaded function.

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), l (lightness), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

This function was introduced in Qt 4.6.

See also toHsl(), fromHsl(), and isValid().

func (*QColor) FromHslFp

func (this *QColor) FromHslFp(h float64, s float64, l float64) *QColor

This is an overloaded function.

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), l (lightness), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

This function was introduced in Qt 4.6.

See also toHsl(), fromHsl(), and isValid().

func (*QColor) FromHslp

func (this *QColor) FromHslp(h int, s int, l int) *QColor

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), l (lightness), and a (alpha-channel, i.e. transparency).

The value of s, l, and a must all be in the range 0-255; the value of h must be in the range 0-359.

This function was introduced in Qt 4.6.

See also toHsl(), fromHslF(), and isValid().

func (*QColor) FromHsv

func (this *QColor) FromHsv(h int, s int, v int, a int) *QColor

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), v (value), and a (alpha-channel, i.e. transparency).

The value of s, v, and a must all be in the range 0-255; the value of h must be in the range 0-359.

See also toHsv(), fromHsvF(), isValid(), and The HSV Color Model.

func (*QColor) FromHsvF

func (this *QColor) FromHsvF(h float64, s float64, v float64, a float64) *QColor

This is an overloaded function.

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), v (value), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also toHsv(), fromHsv(), isValid(), and The HSV Color Model.

func (*QColor) FromHsvFp

func (this *QColor) FromHsvFp(h float64, s float64, v float64) *QColor

This is an overloaded function.

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), v (value), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also toHsv(), fromHsv(), isValid(), and The HSV Color Model.

func (*QColor) FromHsvp

func (this *QColor) FromHsvp(h int, s int, v int) *QColor

Static convenience function that returns a QColor constructed from the HSV color values, h (hue), s (saturation), v (value), and a (alpha-channel, i.e. transparency).

The value of s, v, and a must all be in the range 0-255; the value of h must be in the range 0-359.

See also toHsv(), fromHsvF(), isValid(), and The HSV Color Model.

func (*QColor) FromRgb

func (this *QColor) FromRgb(rgb uint) *QColor

Static convenience function that returns a QColor constructed from the given QRgb value rgb.

The alpha component of rgb is ignored (i.e. it is automatically set to 255), use the fromRgba() function to include the alpha-channel specified by the given QRgb value.

See also fromRgba(), fromRgbF(), toRgb(), and isValid().

func (*QColor) FromRgb1

func (this *QColor) FromRgb1(r int, g int, b int, a int) *QColor

Static convenience function that returns a QColor constructed from the given QRgb value rgb.

The alpha component of rgb is ignored (i.e. it is automatically set to 255), use the fromRgba() function to include the alpha-channel specified by the given QRgb value.

See also fromRgba(), fromRgbF(), toRgb(), and isValid().

func (*QColor) FromRgb1p

func (this *QColor) FromRgb1p(r int, g int, b int) *QColor

Static convenience function that returns a QColor constructed from the given QRgb value rgb.

The alpha component of rgb is ignored (i.e. it is automatically set to 255), use the fromRgba() function to include the alpha-channel specified by the given QRgb value.

See also fromRgba(), fromRgbF(), toRgb(), and isValid().

func (*QColor) FromRgbF

func (this *QColor) FromRgbF(r float64, g float64, b float64, a float64) *QColor

Static convenience function that returns a QColor constructed from the RGB color values, r (red), g (green), b (blue), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also fromRgb(), fromRgba64(), toRgb(), and isValid().

func (*QColor) FromRgbFp

func (this *QColor) FromRgbFp(r float64, g float64, b float64) *QColor

Static convenience function that returns a QColor constructed from the RGB color values, r (red), g (green), b (blue), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also fromRgb(), fromRgba64(), toRgb(), and isValid().

func (*QColor) FromRgba

func (this *QColor) FromRgba(rgba uint) *QColor

Static convenience function that returns a QColor constructed from the given QRgb value rgba.

Unlike the fromRgb() function, the alpha-channel specified by the given QRgb value is included.

See also fromRgb(), fromRgba64(), and isValid().

func (*QColor) FromRgba64

func (this *QColor) FromRgba64(r uint16, g uint16, b uint16, a uint16) *QColor

Static convenience function that returns a QColor constructed from the RGBA64 color values, r (red), g (green), b (blue), and a (alpha-channel, i.e. transparency).

This function was introduced in Qt 5.6.

See also fromRgb(), fromRgbF(), toRgb(), and isValid().

func (*QColor) FromRgba641

func (this *QColor) FromRgba641(rgba QRgba64_ITF) *QColor

Static convenience function that returns a QColor constructed from the RGBA64 color values, r (red), g (green), b (blue), and a (alpha-channel, i.e. transparency).

This function was introduced in Qt 5.6.

See also fromRgb(), fromRgbF(), toRgb(), and isValid().

func (*QColor) FromRgba64p

func (this *QColor) FromRgba64p(r uint16, g uint16, b uint16) *QColor

Static convenience function that returns a QColor constructed from the RGBA64 color values, r (red), g (green), b (blue), and a (alpha-channel, i.e. transparency).

This function was introduced in Qt 5.6.

See also fromRgb(), fromRgbF(), toRgb(), and isValid().

func (*QColor) GetCmyk

func (this *QColor) GetCmyk(c unsafe.Pointer, m unsafe.Pointer, y unsafe.Pointer, k unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by c, m, y, k, and a, to the cyan, magenta, yellow, black, and alpha-channel (transparency) components of the color's CMYK value.

These components can be retrieved individually using the cyan(), magenta(), yellow(), black() and alpha() functions.

See also setCmyk() and The CMYK Color Model.

func (*QColor) GetCmykF

func (this *QColor) GetCmykF(c unsafe.Pointer, m unsafe.Pointer, y unsafe.Pointer, k unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by c, m, y, k, and a, to the cyan, magenta, yellow, black, and alpha-channel (transparency) components of the color's CMYK value.

These components can be retrieved individually using the cyanF(), magentaF(), yellowF(), blackF() and alphaF() functions.

See also setCmykF() and The CMYK Color Model.

func (*QColor) GetCmykFp

func (this *QColor) GetCmykFp(c unsafe.Pointer, m unsafe.Pointer, y unsafe.Pointer, k unsafe.Pointer)

Sets the contents pointed to by c, m, y, k, and a, to the cyan, magenta, yellow, black, and alpha-channel (transparency) components of the color's CMYK value.

These components can be retrieved individually using the cyanF(), magentaF(), yellowF(), blackF() and alphaF() functions.

See also setCmykF() and The CMYK Color Model.

func (*QColor) GetCmykp

func (this *QColor) GetCmykp(c unsafe.Pointer, m unsafe.Pointer, y unsafe.Pointer, k unsafe.Pointer)

Sets the contents pointed to by c, m, y, k, and a, to the cyan, magenta, yellow, black, and alpha-channel (transparency) components of the color's CMYK value.

These components can be retrieved individually using the cyan(), magenta(), yellow(), black() and alpha() functions.

See also setCmyk() and The CMYK Color Model.

func (*QColor) GetCthis

func (this *QColor) GetCthis() unsafe.Pointer

func (*QColor) GetHsl

func (this *QColor) GetHsl(h unsafe.Pointer, s unsafe.Pointer, l unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by h, s, l, and a, to the hue, saturation, lightness, and alpha-channel (transparency) components of the color's HSL value.

These components can be retrieved individually using the hslHue(), hslSaturation(), lightness() and alpha() functions.

This function was introduced in Qt 4.6.

See also setHsl().

func (*QColor) GetHslF

func (this *QColor) GetHslF(h unsafe.Pointer, s unsafe.Pointer, l unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by h, s, l, and a, to the hue, saturation, lightness, and alpha-channel (transparency) components of the color's HSL value.

These components can be retrieved individually using the hslHueF(), hslSaturationF(), lightnessF() and alphaF() functions.

This function was introduced in Qt 4.6.

See also setHsl().

func (*QColor) GetHslFp

func (this *QColor) GetHslFp(h unsafe.Pointer, s unsafe.Pointer, l unsafe.Pointer)

Sets the contents pointed to by h, s, l, and a, to the hue, saturation, lightness, and alpha-channel (transparency) components of the color's HSL value.

These components can be retrieved individually using the hslHueF(), hslSaturationF(), lightnessF() and alphaF() functions.

This function was introduced in Qt 4.6.

See also setHsl().

func (*QColor) GetHslp

func (this *QColor) GetHslp(h unsafe.Pointer, s unsafe.Pointer, l unsafe.Pointer)

Sets the contents pointed to by h, s, l, and a, to the hue, saturation, lightness, and alpha-channel (transparency) components of the color's HSL value.

These components can be retrieved individually using the hslHue(), hslSaturation(), lightness() and alpha() functions.

This function was introduced in Qt 4.6.

See also setHsl().

func (*QColor) GetHsv

func (this *QColor) GetHsv(h unsafe.Pointer, s unsafe.Pointer, v unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by h, s, v, and a, to the hue, saturation, value, and alpha-channel (transparency) components of the color's HSV value.

These components can be retrieved individually using the hue(), saturation(), value() and alpha() functions.

See also setHsv() and The HSV Color Model.

func (*QColor) GetHsvF

func (this *QColor) GetHsvF(h unsafe.Pointer, s unsafe.Pointer, v unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by h, s, v, and a, to the hue, saturation, value, and alpha-channel (transparency) components of the color's HSV value.

These components can be retrieved individually using the hueF(), saturationF(), valueF() and alphaF() functions.

See also setHsv() and The HSV Color Model.

func (*QColor) GetHsvFp

func (this *QColor) GetHsvFp(h unsafe.Pointer, s unsafe.Pointer, v unsafe.Pointer)

Sets the contents pointed to by h, s, v, and a, to the hue, saturation, value, and alpha-channel (transparency) components of the color's HSV value.

These components can be retrieved individually using the hueF(), saturationF(), valueF() and alphaF() functions.

See also setHsv() and The HSV Color Model.

func (*QColor) GetHsvp

func (this *QColor) GetHsvp(h unsafe.Pointer, s unsafe.Pointer, v unsafe.Pointer)

Sets the contents pointed to by h, s, v, and a, to the hue, saturation, value, and alpha-channel (transparency) components of the color's HSV value.

These components can be retrieved individually using the hue(), saturation(), value() and alpha() functions.

See also setHsv() and The HSV Color Model.

func (*QColor) GetRgb

func (this *QColor) GetRgb(r unsafe.Pointer, g unsafe.Pointer, b unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by r, g, b, and a, to the red, green, blue, and alpha-channel (transparency) components of the color's RGB value.

These components can be retrieved individually using the red(), green(), blue() and alpha() functions.

See also rgb() and setRgb().

func (*QColor) GetRgbF

func (this *QColor) GetRgbF(r unsafe.Pointer, g unsafe.Pointer, b unsafe.Pointer, a unsafe.Pointer)

Sets the contents pointed to by r, g, b, and a, to the red, green, blue, and alpha-channel (transparency) components of the color's RGB value.

These components can be retrieved individually using the redF(), greenF(), blueF() and alphaF() functions.

See also rgb() and setRgb().

func (*QColor) GetRgbFp

func (this *QColor) GetRgbFp(r unsafe.Pointer, g unsafe.Pointer, b unsafe.Pointer)

Sets the contents pointed to by r, g, b, and a, to the red, green, blue, and alpha-channel (transparency) components of the color's RGB value.

These components can be retrieved individually using the redF(), greenF(), blueF() and alphaF() functions.

See also rgb() and setRgb().

func (*QColor) GetRgbp

func (this *QColor) GetRgbp(r unsafe.Pointer, g unsafe.Pointer, b unsafe.Pointer)

Sets the contents pointed to by r, g, b, and a, to the red, green, blue, and alpha-channel (transparency) components of the color's RGB value.

These components can be retrieved individually using the red(), green(), blue() and alpha() functions.

See also rgb() and setRgb().

func (*QColor) Green

func (this *QColor) Green() int

Returns the green color component of this color.

See also setGreen(), greenF(), and getRgb().

func (*QColor) GreenF

func (this *QColor) GreenF() float64

Returns the green color component of this color.

See also setGreenF(), green(), and getRgbF().

func (*QColor) HslHue

func (this *QColor) HslHue() int

Returns the hue color component of this color.

This function was introduced in Qt 4.6.

See also getHslF() and getHsl().

func (*QColor) HslHueF

func (this *QColor) HslHueF() float64

Returns the hue color component of this color.

This function was introduced in Qt 4.6.

See also hue() and getHslF().

func (*QColor) HslSaturation

func (this *QColor) HslSaturation() int

Returns the saturation color component of this color.

This function was introduced in Qt 4.6.

See also saturationF(), getHsv(), and The HSV Color Model.

func (*QColor) HslSaturationF

func (this *QColor) HslSaturationF() float64

Returns the saturation color component of this color.

This function was introduced in Qt 4.6.

See also saturationF() and getHslF().

func (*QColor) HsvHue

func (this *QColor) HsvHue() int

Returns the hue color component of this color.

See also hueF(), getHsv(), and The HSV Color Model.

func (*QColor) HsvHueF

func (this *QColor) HsvHueF() float64

Returns the hue color component of this color.

See also hue(), getHsvF(), and The HSV Color Model.

func (*QColor) HsvSaturation

func (this *QColor) HsvSaturation() int

Returns the saturation color component of this color.

See also saturationF(), getHsv(), and The HSV Color Model.

func (*QColor) HsvSaturationF

func (this *QColor) HsvSaturationF() float64

Returns the saturation color component of this color.

See also saturation(), getHsvF(), and The HSV Color Model.

func (*QColor) Hue

func (this *QColor) Hue() int

Returns the hue color component of this color.

The color is implicitly converted to HSV.

See also hsvHue(), hueF(), getHsv(), and The HSV Color Model.

func (*QColor) HueF

func (this *QColor) HueF() float64

Returns the hue color component of this color.

The color is implicitly converted to HSV.

See also hsvHueF(), hue(), getHsvF(), and The HSV Color Model.

func (*QColor) IsValid

func (this *QColor) IsValid() bool

Returns true if the color is valid; otherwise returns false.

func (*QColor) IsValidColor

func (this *QColor) IsValidColor(name string) bool

Returns true if the name is a valid color name and can be used to construct a valid QColor object, otherwise returns false.

It uses the same algorithm used in setNamedColor().

This function was introduced in Qt 4.7.

See also setNamedColor().

func (*QColor) IsValidColor1

func (this *QColor) IsValidColor1(arg0 qtcore.QStringView_ITF) bool

Returns true if the name is a valid color name and can be used to construct a valid QColor object, otherwise returns false.

It uses the same algorithm used in setNamedColor().

This function was introduced in Qt 4.7.

See also setNamedColor().

func (*QColor) IsValidColor2

func (this *QColor) IsValidColor2(arg0 qtcore.QLatin1String_ITF) bool

Returns true if the name is a valid color name and can be used to construct a valid QColor object, otherwise returns false.

It uses the same algorithm used in setNamedColor().

This function was introduced in Qt 4.7.

See also setNamedColor().

func (*QColor) Light

func (this *QColor) Light(f int) *QColor

func (*QColor) Lighter

func (this *QColor) Lighter(f int) *QColor

Returns a lighter (or darker) color, but does not change this object.

If the factor is greater than 100, this functions returns a lighter color. Setting factor to 150 returns a color that is 50% brighter. If the factor is less than 100, the return color is darker, but we recommend using the darker() function for this purpose. If the factor is 0 or negative, the return value is unspecified.

The function converts the current RGB color to HSV, multiplies the value (V) component by factor and converts the color back to RGB.

This function was introduced in Qt 4.3.

See also darker() and isValid().

func (*QColor) Lighterp

func (this *QColor) Lighterp() *QColor

Returns a lighter (or darker) color, but does not change this object.

If the factor is greater than 100, this functions returns a lighter color. Setting factor to 150 returns a color that is 50% brighter. If the factor is less than 100, the return color is darker, but we recommend using the darker() function for this purpose. If the factor is 0 or negative, the return value is unspecified.

The function converts the current RGB color to HSV, multiplies the value (V) component by factor and converts the color back to RGB.

This function was introduced in Qt 4.3.

See also darker() and isValid().

func (*QColor) Lightness

func (this *QColor) Lightness() int

Returns the lightness color component of this color.

This function was introduced in Qt 4.6.

See also lightnessF() and getHsl().

func (*QColor) LightnessF

func (this *QColor) LightnessF() float64

Returns the lightness color component of this color.

This function was introduced in Qt 4.6.

See also value() and getHslF().

func (*QColor) Lightp

func (this *QColor) Lightp() *QColor

func (*QColor) Magenta

func (this *QColor) Magenta() int

Returns the magenta color component of this color.

See also magentaF(), getCmyk(), and The CMYK Color Model.

func (*QColor) MagentaF

func (this *QColor) MagentaF() float64

Returns the magenta color component of this color.

See also magenta(), getCmykF(), and The CMYK Color Model.

func (*QColor) Name

func (this *QColor) Name() string

Returns the name of the color in the format "#RRGGBB"; i.e. a "#" character followed by three two-digit hexadecimal numbers.

See also setNamedColor().

func (*QColor) Name1

func (this *QColor) Name1(format int) string

Returns the name of the color in the format "#RRGGBB"; i.e. a "#" character followed by three two-digit hexadecimal numbers.

See also setNamedColor().

func (*QColor) NameFormatItemName

func (this *QColor) NameFormatItemName(val int) string

func (*QColor) NewForInherit

func (*QColor) NewForInherit() *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit1

func (*QColor) NewForInherit1(color int) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit2

func (*QColor) NewForInherit2(r int, g int, b int, a int) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit2p

func (*QColor) NewForInherit2p(r int, g int, b int) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit3

func (*QColor) NewForInherit3(rgb uint) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit4

func (*QColor) NewForInherit4(rgba64 QRgba64_ITF) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit5

func (*QColor) NewForInherit5(name string) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit6

func (*QColor) NewForInherit6(name qtcore.QStringView_ITF) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit7

func (*QColor) NewForInherit7(aname string) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit8

func (*QColor) NewForInherit8(name qtcore.QLatin1String_ITF) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewForInherit9

func (*QColor) NewForInherit9(spec int) *QColor

Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.

The alpha value of an invalid color is unspecified.

See also isValid().

func (*QColor) NewFromPointer

func (*QColor) NewFromPointer(cthis unsafe.Pointer) *QColor

func (*QColor) Operator_equal

func (this *QColor) Operator_equal(other unsafe.Pointer) *QColor

func (*QColor) Operator_equal1

func (this *QColor) Operator_equal1(arg0 QColor_ITF) *QColor

func (*QColor) Operator_equal2

func (this *QColor) Operator_equal2(color int) *QColor

func (*QColor) Operator_equal_equal

func (this *QColor) Operator_equal_equal(c QColor_ITF) bool

func (*QColor) Operator_not_equal

func (this *QColor) Operator_not_equal(c QColor_ITF) bool

func (*QColor) QColor_PTR

func (ptr *QColor) QColor_PTR() *QColor

func (*QColor) Red

func (this *QColor) Red() int

Returns the red color component of this color.

See also setRed(), redF(), and getRgb().

func (*QColor) RedF

func (this *QColor) RedF() float64

Returns the red color component of this color.

See also setRedF(), red(), and getRgbF().

func (*QColor) Rgb

func (this *QColor) Rgb() uint

Returns the RGB value of the color. The alpha value is opaque.

See also setRgb(), getRgb(), and rgba().

func (*QColor) Rgba

func (this *QColor) Rgba() uint

Returns the RGB value of the color, including its alpha.

For an invalid color, the alpha value of the returned color is unspecified.

See also setRgba(), rgb(), and rgba64().

func (*QColor) Rgba64

func (this *QColor) Rgba64() *QRgba64

Returns the RGB64 value of the color, including its alpha.

For an invalid color, the alpha value of the returned color is unspecified.

This function was introduced in Qt 5.6.

See also setRgba64(), rgba(), and rgb().

func (*QColor) Saturation

func (this *QColor) Saturation() int

Returns the saturation color component of this color.

The color is implicitly converted to HSV.

See also hsvSaturation(), saturationF(), getHsv(), and The HSV Color Model.

func (*QColor) SaturationF

func (this *QColor) SaturationF() float64

Returns the saturation color component of this color.

The color is implicitly converted to HSV.

See also hsvSaturationF(), saturation(), getHsvF(), and The HSV Color Model.

func (*QColor) SetAlpha

func (this *QColor) SetAlpha(alpha int)

Sets the alpha of this color to alpha. Integer alpha is specified in the range 0-255.

See also alpha(), alphaF(), and Alpha-Blended Drawing.

func (*QColor) SetAlphaF

func (this *QColor) SetAlphaF(alpha float64)

Sets the alpha of this color to alpha. qreal alpha is specified in the range 0.0-1.0.

See also alphaF(), alpha(), and Alpha-Blended Drawing.

func (*QColor) SetBlue

func (this *QColor) SetBlue(blue int)

Sets the blue color component of this color to blue. Integer components are specified in the range 0-255.

See also blue(), blueF(), and setRgb().

func (*QColor) SetBlueF

func (this *QColor) SetBlueF(blue float64)

Sets the blue color component of this color to blue. Float components are specified in the range 0.0-1.0.

See also blueF(), blue(), and setRgbF().

func (*QColor) SetCmyk

func (this *QColor) SetCmyk(c int, m int, y int, k int, a int)

Sets the color to CMYK values, c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0-255.

See also getCmyk(), setCmykF(), and The CMYK Color Model.

func (*QColor) SetCmykF

func (this *QColor) SetCmykF(c float64, m float64, y float64, k float64, a float64)

This is an overloaded function.

Sets the color to CMYK values, c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also getCmykF(), setCmyk(), and The CMYK Color Model.

func (*QColor) SetCmykFp

func (this *QColor) SetCmykFp(c float64, m float64, y float64, k float64)

This is an overloaded function.

Sets the color to CMYK values, c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0.0-1.0.

See also getCmykF(), setCmyk(), and The CMYK Color Model.

func (*QColor) SetCmykp

func (this *QColor) SetCmykp(c int, m int, y int, k int)

Sets the color to CMYK values, c (cyan), m (magenta), y (yellow), k (black), and a (alpha-channel, i.e. transparency).

All the values must be in the range 0-255.

See also getCmyk(), setCmykF(), and The CMYK Color Model.

func (*QColor) SetCthis

func (this *QColor) SetCthis(cthis unsafe.Pointer)

func (*QColor) SetGreen

func (this *QColor) SetGreen(green int)

Sets the green color component of this color to green. Integer components are specified in the range 0-255.

See also green(), greenF(), and setRgb().

func (*QColor) SetGreenF

func (this *QColor) SetGreenF(green float64)

Sets the green color component of this color to green. Float components are specified in the range 0.0-1.0.

See also greenF(), green(), and setRgbF().

func (*QColor) SetHsl

func (this *QColor) SetHsl(h int, s int, l int, a int)

Sets a HSL color value; h is the hue, s is the saturation, l is the lightness and a is the alpha component of the HSL color.

The saturation, value and alpha-channel values must be in the range 0-255, and the hue value must be greater than -1.

This function was introduced in Qt 4.6.

See also getHsl() and setHslF().

func (*QColor) SetHslF

func (this *QColor) SetHslF(h float64, s float64, l float64, a float64)

Sets a HSL color lightness; h is the hue, s is the saturation, l is the lightness and a is the alpha component of the HSL color.

All the values must be in the range 0.0-1.0.

This function was introduced in Qt 4.6.

See also getHslF() and setHsl().

func (*QColor) SetHslFp

func (this *QColor) SetHslFp(h float64, s float64, l float64)

Sets a HSL color lightness; h is the hue, s is the saturation, l is the lightness and a is the alpha component of the HSL color.

All the values must be in the range 0.0-1.0.

This function was introduced in Qt 4.6.

See also getHslF() and setHsl().

func (*QColor) SetHslp

func (this *QColor) SetHslp(h int, s int, l int)

Sets a HSL color value; h is the hue, s is the saturation, l is the lightness and a is the alpha component of the HSL color.

The saturation, value and alpha-channel values must be in the range 0-255, and the hue value must be greater than -1.

This function was introduced in Qt 4.6.

See also getHsl() and setHslF().

func (*QColor) SetHsv

func (this *QColor) SetHsv(h int, s int, v int, a int)

Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha component of the HSV color.

The saturation, value and alpha-channel values must be in the range 0-255, and the hue value must be greater than -1.

See also getHsv(), setHsvF(), and The HSV Color Model.

func (*QColor) SetHsvF

func (this *QColor) SetHsvF(h float64, s float64, v float64, a float64)

Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha component of the HSV color.

All the values must be in the range 0.0-1.0.

See also getHsvF(), setHsv(), and The HSV Color Model.

func (*QColor) SetHsvFp

func (this *QColor) SetHsvFp(h float64, s float64, v float64)

Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha component of the HSV color.

All the values must be in the range 0.0-1.0.

See also getHsvF(), setHsv(), and The HSV Color Model.

func (*QColor) SetHsvp

func (this *QColor) SetHsvp(h int, s int, v int)

Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha component of the HSV color.

The saturation, value and alpha-channel values must be in the range 0-255, and the hue value must be greater than -1.

See also getHsv(), setHsvF(), and The HSV Color Model.

func (*QColor) SetNamedColor

func (this *QColor) SetNamedColor(name string)

Sets the RGB value of this QColor to name, which may be in one of these formats:

#RGB (each of R, G, and B is a single hex digit) #RRGGBB #AARRGGBB (Since 5.2) #RRRGGGBBB #RRRRGGGGBBBB A name from the list of colors defined in the list of SVG color keyword names provided by the World Wide Web Consortium; for example, "steelblue" or "gainsboro". These color names work on all platforms. Note that these color names are not the same as defined by the Qt::GlobalColor enums, e.g. "green" and Qt::green does not refer to the same color. transparent - representing the absence of a color.

The color is invalid if name cannot be parsed.

See also QColor(), name(), and isValid().

func (*QColor) SetNamedColor1

func (this *QColor) SetNamedColor1(name qtcore.QStringView_ITF)

Sets the RGB value of this QColor to name, which may be in one of these formats:

#RGB (each of R, G, and B is a single hex digit) #RRGGBB #AARRGGBB (Since 5.2) #RRRGGGBBB #RRRRGGGGBBBB A name from the list of colors defined in the list of SVG color keyword names provided by the World Wide Web Consortium; for example, "steelblue" or "gainsboro". These color names work on all platforms. Note that these color names are not the same as defined by the Qt::GlobalColor enums, e.g. "green" and Qt::green does not refer to the same color. transparent - representing the absence of a color.

The color is invalid if name cannot be parsed.

See also QColor(), name(), and isValid().

func (*QColor) SetNamedColor2

func (this *QColor) SetNamedColor2(name qtcore.QLatin1String_ITF)

Sets the RGB value of this QColor to name, which may be in one of these formats:

#RGB (each of R, G, and B is a single hex digit) #RRGGBB #AARRGGBB (Since 5.2) #RRRGGGBBB #RRRRGGGGBBBB A name from the list of colors defined in the list of SVG color keyword names provided by the World Wide Web Consortium; for example, "steelblue" or "gainsboro". These color names work on all platforms. Note that these color names are not the same as defined by the Qt::GlobalColor enums, e.g. "green" and Qt::green does not refer to the same color. transparent - representing the absence of a color.

The color is invalid if name cannot be parsed.

See also QColor(), name(), and isValid().

func (*QColor) SetRed

func (this *QColor) SetRed(red int)

Sets the red color component of this color to red. Integer components are specified in the range 0-255.

See also red(), redF(), and setRgb().

func (*QColor) SetRedF

func (this *QColor) SetRedF(red float64)

Sets the red color component of this color to red. Float components are specified in the range 0.0-1.0.

See also redF(), red(), and setRgbF().

func (*QColor) SetRgb

func (this *QColor) SetRgb(r int, g int, b int, a int)

Sets the RGB value to r, g, b and the alpha value to a.

All the values must be in the range 0-255.

See also rgb(), getRgb(), and setRgbF().

func (*QColor) SetRgb1

func (this *QColor) SetRgb1(rgb uint)

Sets the RGB value to r, g, b and the alpha value to a.

All the values must be in the range 0-255.

See also rgb(), getRgb(), and setRgbF().

func (*QColor) SetRgbF

func (this *QColor) SetRgbF(r float64, g float64, b float64, a float64)

Sets the color channels of this color to r (red), g (green), b (blue) and a (alpha, transparency).

All values must be in the range 0.0-1.0.

See also rgb(), getRgbF(), and setRgb().

func (*QColor) SetRgbFp

func (this *QColor) SetRgbFp(r float64, g float64, b float64)

Sets the color channels of this color to r (red), g (green), b (blue) and a (alpha, transparency).

All values must be in the range 0.0-1.0.

See also rgb(), getRgbF(), and setRgb().

func (*QColor) SetRgba

func (this *QColor) SetRgba(rgba uint)

Sets the RGB value to rgba, including its alpha.

See also rgba(), rgb(), and setRgba64().

func (*QColor) SetRgba64

func (this *QColor) SetRgba64(rgba QRgba64_ITF)

Sets the RGB64 value to rgba, including its alpha.

This function was introduced in Qt 5.6.

See also setRgba() and rgba64().

func (*QColor) SetRgbp

func (this *QColor) SetRgbp(r int, g int, b int)

Sets the RGB value to r, g, b and the alpha value to a.

All the values must be in the range 0-255.

See also rgb(), getRgb(), and setRgbF().

func (*QColor) Spec

func (this *QColor) Spec() int

Returns how the color was specified.

See also Spec and convertTo().

func (*QColor) SpecItemName

func (this *QColor) SpecItemName(val int) string

func (*QColor) ToCmyk

func (this *QColor) ToCmyk() *QColor

Creates and returns a CMYK QColor based on this color.

See also fromCmyk(), convertTo(), isValid(), and The CMYK Color Model.

func (*QColor) ToHsl

func (this *QColor) ToHsl() *QColor

Creates and returns an HSL QColor based on this color.

See also fromHsl(), convertTo(), and isValid().

func (*QColor) ToHsv

func (this *QColor) ToHsv() *QColor

Creates and returns an HSV QColor based on this color.

See also fromHsv(), convertTo(), isValid(), and The HSV Color Model.

func (*QColor) ToRgb

func (this *QColor) ToRgb() *QColor

Create and returns an RGB QColor based on this color.

See also fromRgb(), convertTo(), and isValid().

func (*QColor) Value

func (this *QColor) Value() int

Returns the value color component of this color.

See also valueF(), getHsv(), and The HSV Color Model.

func (*QColor) ValueF

func (this *QColor) ValueF() float64

Returns the value color component of this color.

See also value(), getHsvF(), and The HSV Color Model.

func (*QColor) Yellow

func (this *QColor) Yellow() int

Returns the yellow color component of this color.

See also yellowF(), getCmyk(), and The CMYK Color Model.

func (*QColor) YellowF

func (this *QColor) YellowF() float64

Returns the yellow color component of this color.

See also yellow(), getCmykF(), and The CMYK Color Model.

type QColor_ITF

type QColor_ITF interface {
	QColor_PTR() *QColor
}

type QColor__NameFormat

type QColor__NameFormat = int

How to format the output of the name() function

See also name().

const QColor__HexArgb QColor__NameFormat = 1

#AARRGGBB A "#" character followed by four two-digit hexadecimal numbers (i.e. #AARRGGBB).

const QColor__HexRgb QColor__NameFormat = 0

#RRGGBB A "#" character followed by three two-digit hexadecimal numbers (i.e. #RRGGBB).

type QColor__Spec

type QColor__Spec = int

The type of color specified, either RGB, HSV, CMYK or HSL.

ConstantValue QColor::Rgb1 QColor::Hsv2 QColor::Cmyk3 QColor::Hsl4 QColor::Invalid0

See also spec() and convertTo().

const QColor__Cmyk QColor__Spec = 3
const QColor__Hsl QColor__Spec = 4
const QColor__Hsv QColor__Spec = 2
const QColor__Invalid QColor__Spec = 0
const QColor__Rgb QColor__Spec = 1

type QConicalGradient

type QConicalGradient struct {
	*QGradient
}

func NewQConicalGradient

func NewQConicalGradient() *QConicalGradient

func NewQConicalGradient1

func NewQConicalGradient1(center qtcore.QPointF_ITF, startAngle float64) *QConicalGradient

func NewQConicalGradient2

func NewQConicalGradient2(cx float64, cy float64, startAngle float64) *QConicalGradient

func NewQConicalGradientFromPointer

func NewQConicalGradientFromPointer(cthis unsafe.Pointer) *QConicalGradient

func (*QConicalGradient) Angle

func (this *QConicalGradient) Angle() float64

func (*QConicalGradient) Center

func (this *QConicalGradient) Center() *qtcore.QPointF

func (*QConicalGradient) GetCthis

func (this *QConicalGradient) GetCthis() unsafe.Pointer

func (*QConicalGradient) NewForInherit

func (*QConicalGradient) NewForInherit() *QConicalGradient

func (*QConicalGradient) NewForInherit1

func (*QConicalGradient) NewForInherit1(center qtcore.QPointF_ITF, startAngle float64) *QConicalGradient

func (*QConicalGradient) NewForInherit2

func (*QConicalGradient) NewForInherit2(cx float64, cy float64, startAngle float64) *QConicalGradient

func (*QConicalGradient) NewFromPointer

func (*QConicalGradient) NewFromPointer(cthis unsafe.Pointer) *QConicalGradient

func (*QConicalGradient) QConicalGradient_PTR

func (ptr *QConicalGradient) QConicalGradient_PTR() *QConicalGradient

func (*QConicalGradient) SetAngle

func (this *QConicalGradient) SetAngle(angle float64)

func (*QConicalGradient) SetCenter

func (this *QConicalGradient) SetCenter(center qtcore.QPointF_ITF)

func (*QConicalGradient) SetCenter1

func (this *QConicalGradient) SetCenter1(x float64, y float64)

func (*QConicalGradient) SetCthis

func (this *QConicalGradient) SetCthis(cthis unsafe.Pointer)

type QConicalGradient_ITF

type QConicalGradient_ITF interface {
	QGradient_ITF
	QConicalGradient_PTR() *QConicalGradient
}

type QContextMenuEvent

type QContextMenuEvent struct {
	*QInputEvent
}

func NewQContextMenuEvent

func NewQContextMenuEvent(reason int, pos qtcore.QPoint_ITF, globalPos qtcore.QPoint_ITF, modifiers int) *QContextMenuEvent

func NewQContextMenuEvent1

func NewQContextMenuEvent1(reason int, pos qtcore.QPoint_ITF, globalPos qtcore.QPoint_ITF) *QContextMenuEvent

func NewQContextMenuEvent2

func NewQContextMenuEvent2(reason int, pos qtcore.QPoint_ITF) *QContextMenuEvent

func NewQContextMenuEventFromPointer

func NewQContextMenuEventFromPointer(cthis unsafe.Pointer) *QContextMenuEvent

func (*QContextMenuEvent) GetCthis

func (this *QContextMenuEvent) GetCthis() unsafe.Pointer

func (*QContextMenuEvent) GlobalPos

func (this *QContextMenuEvent) GlobalPos() *qtcore.QPoint

func (*QContextMenuEvent) GlobalX

func (this *QContextMenuEvent) GlobalX() int

func (*QContextMenuEvent) GlobalY

func (this *QContextMenuEvent) GlobalY() int

func (*QContextMenuEvent) NewForInherit

func (*QContextMenuEvent) NewForInherit(reason int, pos qtcore.QPoint_ITF, globalPos qtcore.QPoint_ITF, modifiers int) *QContextMenuEvent

func (*QContextMenuEvent) NewForInherit1

func (*QContextMenuEvent) NewForInherit1(reason int, pos qtcore.QPoint_ITF, globalPos qtcore.QPoint_ITF) *QContextMenuEvent

func (*QContextMenuEvent) NewForInherit2

func (*QContextMenuEvent) NewForInherit2(reason int, pos qtcore.QPoint_ITF) *QContextMenuEvent

func (*QContextMenuEvent) NewFromPointer

func (*QContextMenuEvent) NewFromPointer(cthis unsafe.Pointer) *QContextMenuEvent

func (*QContextMenuEvent) Pos

func (this *QContextMenuEvent) Pos() *qtcore.QPoint

func (*QContextMenuEvent) QContextMenuEvent_PTR

func (ptr *QContextMenuEvent) QContextMenuEvent_PTR() *QContextMenuEvent

func (*QContextMenuEvent) Reason

func (this *QContextMenuEvent) Reason() int

func (*QContextMenuEvent) ReasonItemName

func (this *QContextMenuEvent) ReasonItemName(val int) string

func (*QContextMenuEvent) SetCthis

func (this *QContextMenuEvent) SetCthis(cthis unsafe.Pointer)

func (*QContextMenuEvent) X

func (this *QContextMenuEvent) X() int

func (*QContextMenuEvent) Y

func (this *QContextMenuEvent) Y() int

type QContextMenuEvent_ITF

type QContextMenuEvent_ITF interface {
	QInputEvent_ITF
	QContextMenuEvent_PTR() *QContextMenuEvent
}

type QContextMenuEvent__Reason

type QContextMenuEvent__Reason = int
const QContextMenuEvent__Keyboard QContextMenuEvent__Reason = 1
const QContextMenuEvent__Mouse QContextMenuEvent__Reason = 0
const QContextMenuEvent__Other QContextMenuEvent__Reason = 2

type QCursor

type QCursor struct {
	*qtrt.CObject
}

func NewQCursor

func NewQCursor() *QCursor

func NewQCursor1

func NewQCursor1(shape int) *QCursor

func NewQCursor2

func NewQCursor2(bitmap QBitmap_ITF, mask QBitmap_ITF, hotX int, hotY int) *QCursor

func NewQCursor2p

func NewQCursor2p(bitmap QBitmap_ITF, mask QBitmap_ITF) *QCursor

func NewQCursor2p1

func NewQCursor2p1(bitmap QBitmap_ITF, mask QBitmap_ITF, hotX int) *QCursor

func NewQCursor3

func NewQCursor3(pixmap QPixmap_ITF, hotX int, hotY int) *QCursor

func NewQCursor3p

func NewQCursor3p(pixmap QPixmap_ITF) *QCursor

func NewQCursor3p1

func NewQCursor3p1(pixmap QPixmap_ITF, hotX int) *QCursor

func NewQCursorFromPointer

func NewQCursorFromPointer(cthis unsafe.Pointer) *QCursor

func QGuiApplication_OverrideCursor

func QGuiApplication_OverrideCursor() *QCursor

func (*QCursor) Bitmap

func (this *QCursor) Bitmap() *QBitmap

Returns the cursor bitmap, or 0 if it is one of the standard cursors.

func (*QCursor) GetCthis

func (this *QCursor) GetCthis() unsafe.Pointer

func (*QCursor) HotSpot

func (this *QCursor) HotSpot() *qtcore.QPoint

Returns the cursor hot spot, or (0, 0) if it is one of the standard cursors.

func (*QCursor) Mask

func (this *QCursor) Mask() *QBitmap

Returns the cursor bitmap mask, or 0 if it is one of the standard cursors.

func (*QCursor) NewForInherit

func (*QCursor) NewForInherit() *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewForInherit1

func (*QCursor) NewForInherit1(shape int) *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewForInherit2

func (*QCursor) NewForInherit2(bitmap QBitmap_ITF, mask QBitmap_ITF, hotX int, hotY int) *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewForInherit2p

func (*QCursor) NewForInherit2p(bitmap QBitmap_ITF, mask QBitmap_ITF) *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewForInherit2p1

func (*QCursor) NewForInherit2p1(bitmap QBitmap_ITF, mask QBitmap_ITF, hotX int) *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewForInherit3

func (*QCursor) NewForInherit3(pixmap QPixmap_ITF, hotX int, hotY int) *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewForInherit3p

func (*QCursor) NewForInherit3p(pixmap QPixmap_ITF) *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewForInherit3p1

func (*QCursor) NewForInherit3p1(pixmap QPixmap_ITF, hotX int) *QCursor

Constructs a cursor with the default arrow shape.

func (*QCursor) NewFromPointer

func (*QCursor) NewFromPointer(cthis unsafe.Pointer) *QCursor

func (*QCursor) Operator_equal

func (this *QCursor) Operator_equal(cursor QCursor_ITF) *QCursor

func (*QCursor) Operator_equal1

func (this *QCursor) Operator_equal1(other unsafe.Pointer) *QCursor

func (*QCursor) Pixmap

func (this *QCursor) Pixmap() *QPixmap

Returns the cursor pixmap. This is only valid if the cursor is a pixmap cursor.

func (*QCursor) Pos

func (this *QCursor) Pos() *qtcore.QPoint

Returns the position of the cursor (hot spot) of the primary screen in global screen coordinates.

You can call QWidget::mapFromGlobal() to translate it to widget coordinates.

Note: The position is queried from the windowing system. If mouse events are generated via other means (e.g., via QWindowSystemInterface in a unit test), those fake mouse moves will not be reflected in the returned value.

Note: On platforms where there is no windowing system or cursors are not available, the returned position is based on the mouse move events generated via QWindowSystemInterface.

See also setPos(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), and QGuiApplication::primaryScreen().

func (*QCursor) Pos1

func (this *QCursor) Pos1(screen QScreen_ITF) *qtcore.QPoint

Returns the position of the cursor (hot spot) of the primary screen in global screen coordinates.

You can call QWidget::mapFromGlobal() to translate it to widget coordinates.

Note: The position is queried from the windowing system. If mouse events are generated via other means (e.g., via QWindowSystemInterface in a unit test), those fake mouse moves will not be reflected in the returned value.

Note: On platforms where there is no windowing system or cursors are not available, the returned position is based on the mouse move events generated via QWindowSystemInterface.

See also setPos(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), and QGuiApplication::primaryScreen().

func (*QCursor) QCursor_PTR

func (ptr *QCursor) QCursor_PTR() *QCursor

func (*QCursor) SetCthis

func (this *QCursor) SetCthis(cthis unsafe.Pointer)

func (*QCursor) SetPos

func (this *QCursor) SetPos(x int, y int)

Moves the cursor (hot spot) of the primary screen to the global screen position (x, y).

You can call QWidget::mapToGlobal() to translate widget coordinates to global screen coordinates.

See also pos(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), and QGuiApplication::primaryScreen().

func (*QCursor) SetPos1

func (this *QCursor) SetPos1(screen QScreen_ITF, x int, y int)

Moves the cursor (hot spot) of the primary screen to the global screen position (x, y).

You can call QWidget::mapToGlobal() to translate widget coordinates to global screen coordinates.

See also pos(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), and QGuiApplication::primaryScreen().

func (*QCursor) SetPos2

func (this *QCursor) SetPos2(p qtcore.QPoint_ITF)

Moves the cursor (hot spot) of the primary screen to the global screen position (x, y).

You can call QWidget::mapToGlobal() to translate widget coordinates to global screen coordinates.

See also pos(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), and QGuiApplication::primaryScreen().

func (*QCursor) SetPos3

func (this *QCursor) SetPos3(screen QScreen_ITF, p qtcore.QPoint_ITF)

Moves the cursor (hot spot) of the primary screen to the global screen position (x, y).

You can call QWidget::mapToGlobal() to translate widget coordinates to global screen coordinates.

See also pos(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), and QGuiApplication::primaryScreen().

func (*QCursor) SetShape

func (this *QCursor) SetShape(newShape int)

Sets the cursor to the shape identified by shape.

See Qt::CursorShape for the list of cursor shapes.

See also shape().

func (*QCursor) Shape

func (this *QCursor) Shape() int

Returns the cursor shape identifier. The return value is one of the Qt::CursorShape enum values (cast to an int).

See also setShape().

func (*QCursor) Swap

func (this *QCursor) Swap(other QCursor_ITF)

Swaps this cursor with the other cursor.

type QCursor_ITF

type QCursor_ITF interface {
	QCursor_PTR() *QCursor
}

type QDesktopServices

type QDesktopServices struct {
	*qtrt.CObject
}

func NewQDesktopServicesFromPointer

func NewQDesktopServicesFromPointer(cthis unsafe.Pointer) *QDesktopServices

func (*QDesktopServices) GetCthis

func (this *QDesktopServices) GetCthis() unsafe.Pointer

func (*QDesktopServices) NewFromPointer

func (*QDesktopServices) NewFromPointer(cthis unsafe.Pointer) *QDesktopServices

func (*QDesktopServices) OpenUrl

func (this *QDesktopServices) OpenUrl(url qtcore.QUrl_ITF) bool

Opens the given url in the appropriate Web browser for the user's desktop environment, and returns true if successful; otherwise returns false.

If the URL is a reference to a local file (i.e., the URL scheme is "file") then it will be opened with a suitable application instead of a Web browser.

The following example opens a file on the Windows file system residing on a path that contains spaces:

QDesktopServices::openUrl(QUrl("file:///C:/Documents and Settings/All Users/Desktop", QUrl::TolerantMode));

If a mailto URL is specified, the user's e-mail client will be used to open a composer window containing the options specified in the URL, similar to the way mailto links are handled by a Web browser.

For example, the following URL contains a recipient (user@foo.com), a subject (Test), and a message body (Just a test):

mailto:user@foo.com?subject=Test&body=Just a test

Warning: Although many e-mail clients can send attachments and are Unicode-aware, the user may have configured their client without these features. Also, certain e-mail clients (e.g., Lotus Notes) have problems with long URLs.

Warning: A return value of true indicates that the application has successfully requested the operating system to open the URL in an external application. The external application may still fail to launch or fail to open the requested URL. This result will not be reported back to the application.

Warning: URLs passed to this function on iOS will not load unless their schemes are listed in the LSApplicationQueriesSchemes key of the application's Info.plist file. For more information, see the Apple Developer Documentation for canOpenURL(_:). For example, the following lines enable URLs with the HTTPS scheme:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>https</string>
</array>

See also setUrlHandler().

func (*QDesktopServices) QDesktopServices_PTR

func (ptr *QDesktopServices) QDesktopServices_PTR() *QDesktopServices

func (*QDesktopServices) SetCthis

func (this *QDesktopServices) SetCthis(cthis unsafe.Pointer)

func (*QDesktopServices) SetUrlHandler

func (this *QDesktopServices) SetUrlHandler(scheme string, receiver qtcore.QObject_ITF, method string)

Sets the handler for the given scheme to be the handler method provided by the receiver object.

This function provides a way to customize the behavior of openUrl(). If openUrl() is called with a URL with the specified scheme then the given method on the receiver object is called instead of QDesktopServices launching an external application.

The provided method must be implemented as a slot that only accepts a single QUrl argument.

To use this function for receiving data from other apps on iOS you also need to add the custom scheme to the CFBundleURLSchemes list in your Info.plist file:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>myapp</string>
        </array>
    </dict>
</array>

For more information, see the Apple Developer Documentation for Communicating with Other Apps Using Custom URLs.

If setUrlHandler() is used to set a new handler for a scheme which already has a handler, the existing handler is simply replaced with the new one. Since QDesktopServices does not take ownership of handlers, no objects are deleted when a handler is replaced.

Note that the handler will always be called from within the same thread that calls QDesktopServices::openUrl().

See also openUrl() and unsetUrlHandler().

func (*QDesktopServices) UnsetUrlHandler

func (this *QDesktopServices) UnsetUrlHandler(scheme string)

Removes a previously set URL handler for the specified scheme.

See also setUrlHandler().

type QDesktopServices_ITF

type QDesktopServices_ITF interface {
	QDesktopServices_PTR() *QDesktopServices
}

type QDoubleValidator

type QDoubleValidator struct {
	*QValidator
}

func NewQDoubleValidator

func NewQDoubleValidator(parent qtcore.QObject_ITF) *QDoubleValidator

func NewQDoubleValidator1

func NewQDoubleValidator1(bottom float64, top float64, decimals int, parent qtcore.QObject_ITF) *QDoubleValidator

func NewQDoubleValidator1p

func NewQDoubleValidator1p(bottom float64, top float64, decimals int) *QDoubleValidator

func NewQDoubleValidatorFromPointer

func NewQDoubleValidatorFromPointer(cthis unsafe.Pointer) *QDoubleValidator

func NewQDoubleValidatorp

func NewQDoubleValidatorp() *QDoubleValidator

func (*QDoubleValidator) Bottom

func (this *QDoubleValidator) Bottom() float64

func (*QDoubleValidator) BottomChanged

func (this *QDoubleValidator) BottomChanged(bottom float64)

func (*QDoubleValidator) Decimals

func (this *QDoubleValidator) Decimals() int

func (*QDoubleValidator) DecimalsChanged

func (this *QDoubleValidator) DecimalsChanged(decimals int)

func (*QDoubleValidator) GetCthis

func (this *QDoubleValidator) GetCthis() unsafe.Pointer

func (*QDoubleValidator) MetaObject

func (this *QDoubleValidator) MetaObject() *qtcore.QMetaObject

func (*QDoubleValidator) NewForInherit

func (*QDoubleValidator) NewForInherit(parent qtcore.QObject_ITF) *QDoubleValidator

func (*QDoubleValidator) NewForInherit1

func (*QDoubleValidator) NewForInherit1(bottom float64, top float64, decimals int, parent qtcore.QObject_ITF) *QDoubleValidator

func (*QDoubleValidator) NewForInherit1p

func (*QDoubleValidator) NewForInherit1p(bottom float64, top float64, decimals int) *QDoubleValidator

func (*QDoubleValidator) NewForInheritp

func (*QDoubleValidator) NewForInheritp() *QDoubleValidator

func (*QDoubleValidator) NewFromPointer

func (*QDoubleValidator) NewFromPointer(cthis unsafe.Pointer) *QDoubleValidator

func (*QDoubleValidator) Notation

func (this *QDoubleValidator) Notation() int

func (*QDoubleValidator) NotationChanged

func (this *QDoubleValidator) NotationChanged(notation int)

func (*QDoubleValidator) NotationItemName

func (this *QDoubleValidator) NotationItemName(val int) string

func (*QDoubleValidator) QDoubleValidator_PTR

func (ptr *QDoubleValidator) QDoubleValidator_PTR() *QDoubleValidator

func (*QDoubleValidator) SetBottom

func (this *QDoubleValidator) SetBottom(arg0 float64)

func (*QDoubleValidator) SetCthis

func (this *QDoubleValidator) SetCthis(cthis unsafe.Pointer)

func (*QDoubleValidator) SetDecimals

func (this *QDoubleValidator) SetDecimals(arg0 int)

func (*QDoubleValidator) SetNotation

func (this *QDoubleValidator) SetNotation(arg0 int)

func (*QDoubleValidator) SetRange

func (this *QDoubleValidator) SetRange(bottom float64, top float64, decimals int)

func (*QDoubleValidator) SetRangep

func (this *QDoubleValidator) SetRangep(bottom float64, top float64)

func (*QDoubleValidator) SetTop

func (this *QDoubleValidator) SetTop(arg0 float64)

func (*QDoubleValidator) Top

func (this *QDoubleValidator) Top() float64

func (*QDoubleValidator) TopChanged

func (this *QDoubleValidator) TopChanged(top float64)

func (*QDoubleValidator) Validate

func (this *QDoubleValidator) Validate(arg0 string, arg1 int) int

This virtual function returns Invalid if input is invalid according to this validator's rules, Intermediate if it is likely that a little more editing will make the input acceptable (e.g. the user types "4" into a widget which accepts integers between 10 and 99), and Acceptable if the input is valid.

The function can change both input and pos (the cursor position) if required.

type QDoubleValidator_ITF

type QDoubleValidator_ITF interface {
	QValidator_ITF
	QDoubleValidator_PTR() *QDoubleValidator
}

type QDoubleValidator__Notation

type QDoubleValidator__Notation = int
const QDoubleValidator__ScientificNotation QDoubleValidator__Notation = 1
const QDoubleValidator__StandardNotation QDoubleValidator__Notation = 0

type QDrag

type QDrag struct {
	*qtcore.QObject
}

func NewQDrag

func NewQDrag(dragSource qtcore.QObject_ITF) *QDrag

func NewQDragFromPointer

func NewQDragFromPointer(cthis unsafe.Pointer) *QDrag

func (*QDrag) ActionChanged

func (this *QDrag) ActionChanged(action int)

This signal is emitted when the action associated with the drag changes.

See also targetChanged().

func (*QDrag) Cancel

func (this *QDrag) Cancel()

Cancels a drag operation initiated by Qt.

Note: This is currently implemented on Windows and X11.

This function was introduced in Qt 5.7.

See also exec().

func (*QDrag) DefaultAction

func (this *QDrag) DefaultAction() int

Returns the default proposed drop action for this drag operation.

See also exec() and supportedActions().

func (*QDrag) DragCursor

func (this *QDrag) DragCursor(action int) *QPixmap

Returns the drag cursor for the action.

This function was introduced in Qt 5.0.

See also setDragCursor().

func (*QDrag) Exec

func (this *QDrag) Exec(supportedActions int) int

Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in supportedActions. The default proposed action will be selected among the allowed actions in the following order: Move, Copy and Link.

Note: On Linux and macOS, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked during the operation.

This function was introduced in Qt 4.3.

See also cancel().

func (*QDrag) Exec1

func (this *QDrag) Exec1(supportedActions int, defaultAction int) int

Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in supportedActions. The default proposed action will be selected among the allowed actions in the following order: Move, Copy and Link.

Note: On Linux and macOS, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked during the operation.

This function was introduced in Qt 4.3.

See also cancel().

func (*QDrag) Execp

func (this *QDrag) Execp() int

Starts the drag and drop operation and returns a value indicating the requested drop action when it is completed. The drop actions that the user can choose from are specified in supportedActions. The default proposed action will be selected among the allowed actions in the following order: Move, Copy and Link.

Note: On Linux and macOS, the drag and drop operation can take some time, but this function does not block the event loop. Other events are still delivered to the application while the operation is performed. On Windows, the Qt event loop is blocked during the operation.

This function was introduced in Qt 4.3.

See also cancel().

func (*QDrag) GetCthis

func (this *QDrag) GetCthis() unsafe.Pointer

func (*QDrag) HotSpot

func (this *QDrag) HotSpot() *qtcore.QPoint

Returns the position of the hot spot relative to the top-left corner of the cursor.

See also setHotSpot().

func (*QDrag) MetaObject

func (this *QDrag) MetaObject() *qtcore.QMetaObject

func (*QDrag) MimeData

func (this *QDrag) MimeData() *qtcore.QMimeData

Returns the MIME data that is encapsulated by the drag object.

See also setMimeData().

func (*QDrag) NewForInherit

func (*QDrag) NewForInherit(dragSource qtcore.QObject_ITF) *QDrag

Constructs a new drag object for the widget specified by dragSource.

func (*QDrag) NewFromPointer

func (*QDrag) NewFromPointer(cthis unsafe.Pointer) *QDrag

func (*QDrag) Pixmap

func (this *QDrag) Pixmap() *QPixmap

Returns the pixmap used to represent the data in a drag and drop operation.

See also setPixmap().

func (*QDrag) QDrag_PTR

func (ptr *QDrag) QDrag_PTR() *QDrag

func (*QDrag) SetCthis

func (this *QDrag) SetCthis(cthis unsafe.Pointer)

func (*QDrag) SetDragCursor

func (this *QDrag) SetDragCursor(cursor QPixmap_ITF, action int)

Sets the drag cursor for the action. This allows you to override the default native cursors. To revert to using the native cursor for action pass in a null QPixmap as cursor.

Note: setting the drag cursor for IgnoreAction may not work on all platforms. X11 and macOS has been tested to work. Windows does not support it.

See also dragCursor().

func (*QDrag) SetHotSpot

func (this *QDrag) SetHotSpot(hotspot qtcore.QPoint_ITF)

Sets the position of the hot spot relative to the top-left corner of the pixmap used to the point specified by hotspot.

Note: on X11, the pixmap may not be able to keep up with the mouse movements if the hot spot causes the pixmap to be displayed directly under the cursor.

See also hotSpot().

func (*QDrag) SetMimeData

func (this *QDrag) SetMimeData(data qtcore.QMimeData_ITF)

Sets the data to be sent to the given MIME data. Ownership of the data is transferred to the QDrag object.

See also mimeData().

func (*QDrag) SetPixmap

func (this *QDrag) SetPixmap(arg0 QPixmap_ITF)

Sets pixmap as the pixmap used to represent the data in a drag and drop operation. You can only set a pixmap before the drag is started.

See also pixmap().

func (*QDrag) Source

func (this *QDrag) Source() *qtcore.QObject

Returns the source of the drag object. This is the widget where the drag and drop operation originated.

func (*QDrag) Start

func (this *QDrag) Start(supportedActions int) int

func (*QDrag) Startp

func (this *QDrag) Startp() int

func (*QDrag) SupportedActions

func (this *QDrag) SupportedActions() int

Returns the set of possible drop actions for this drag operation.

See also exec() and defaultAction().

func (*QDrag) Target

func (this *QDrag) Target() *qtcore.QObject

Returns the target of the drag and drop operation. This is the widget where the drag object was dropped.

func (*QDrag) TargetChanged

func (this *QDrag) TargetChanged(newTarget qtcore.QObject_ITF)

This signal is emitted when the target of the drag and drop operation changes, with newTarget the new target.

See also target() and actionChanged().

type QDragEnterEvent

type QDragEnterEvent struct {
	*QDragMoveEvent
}

func NewQDragEnterEvent

func NewQDragEnterEvent(pos qtcore.QPoint_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int) *QDragEnterEvent

func NewQDragEnterEventFromPointer

func NewQDragEnterEventFromPointer(cthis unsafe.Pointer) *QDragEnterEvent

func (*QDragEnterEvent) GetCthis

func (this *QDragEnterEvent) GetCthis() unsafe.Pointer

func (*QDragEnterEvent) NewForInherit

func (*QDragEnterEvent) NewForInherit(pos qtcore.QPoint_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int) *QDragEnterEvent

func (*QDragEnterEvent) NewFromPointer

func (*QDragEnterEvent) NewFromPointer(cthis unsafe.Pointer) *QDragEnterEvent

func (*QDragEnterEvent) QDragEnterEvent_PTR

func (ptr *QDragEnterEvent) QDragEnterEvent_PTR() *QDragEnterEvent

func (*QDragEnterEvent) SetCthis

func (this *QDragEnterEvent) SetCthis(cthis unsafe.Pointer)

type QDragEnterEvent_ITF

type QDragEnterEvent_ITF interface {
	QDragMoveEvent_ITF
	QDragEnterEvent_PTR() *QDragEnterEvent
}

type QDragLeaveEvent

type QDragLeaveEvent struct {
	*qtcore.QEvent
}

func NewQDragLeaveEvent

func NewQDragLeaveEvent() *QDragLeaveEvent

func NewQDragLeaveEventFromPointer

func NewQDragLeaveEventFromPointer(cthis unsafe.Pointer) *QDragLeaveEvent

func (*QDragLeaveEvent) GetCthis

func (this *QDragLeaveEvent) GetCthis() unsafe.Pointer

func (*QDragLeaveEvent) NewForInherit

func (*QDragLeaveEvent) NewForInherit() *QDragLeaveEvent

func (*QDragLeaveEvent) NewFromPointer

func (*QDragLeaveEvent) NewFromPointer(cthis unsafe.Pointer) *QDragLeaveEvent

func (*QDragLeaveEvent) QDragLeaveEvent_PTR

func (ptr *QDragLeaveEvent) QDragLeaveEvent_PTR() *QDragLeaveEvent

func (*QDragLeaveEvent) SetCthis

func (this *QDragLeaveEvent) SetCthis(cthis unsafe.Pointer)

type QDragLeaveEvent_ITF

type QDragLeaveEvent_ITF interface {
	qtcore.QEvent_ITF
	QDragLeaveEvent_PTR() *QDragLeaveEvent
}

type QDragMoveEvent

type QDragMoveEvent struct {
	*QDropEvent
}

func NewQDragMoveEvent

func NewQDragMoveEvent(pos qtcore.QPoint_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int, type_ int) *QDragMoveEvent

func NewQDragMoveEventFromPointer

func NewQDragMoveEventFromPointer(cthis unsafe.Pointer) *QDragMoveEvent

func NewQDragMoveEventp

func NewQDragMoveEventp(pos qtcore.QPoint_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int) *QDragMoveEvent

func (*QDragMoveEvent) Accept

func (this *QDragMoveEvent) Accept()

func (*QDragMoveEvent) Accept1

func (this *QDragMoveEvent) Accept1(r qtcore.QRect_ITF)

func (*QDragMoveEvent) AnswerRect

func (this *QDragMoveEvent) AnswerRect() *qtcore.QRect

func (*QDragMoveEvent) GetCthis

func (this *QDragMoveEvent) GetCthis() unsafe.Pointer

func (*QDragMoveEvent) Ignore

func (this *QDragMoveEvent) Ignore()

func (*QDragMoveEvent) Ignore1

func (this *QDragMoveEvent) Ignore1(r qtcore.QRect_ITF)

func (*QDragMoveEvent) NewForInherit

func (*QDragMoveEvent) NewForInherit(pos qtcore.QPoint_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int, type_ int) *QDragMoveEvent

func (*QDragMoveEvent) NewForInheritp

func (*QDragMoveEvent) NewForInheritp(pos qtcore.QPoint_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int) *QDragMoveEvent

func (*QDragMoveEvent) NewFromPointer

func (*QDragMoveEvent) NewFromPointer(cthis unsafe.Pointer) *QDragMoveEvent

func (*QDragMoveEvent) QDragMoveEvent_PTR

func (ptr *QDragMoveEvent) QDragMoveEvent_PTR() *QDragMoveEvent

func (*QDragMoveEvent) SetCthis

func (this *QDragMoveEvent) SetCthis(cthis unsafe.Pointer)

type QDragMoveEvent_ITF

type QDragMoveEvent_ITF interface {
	QDropEvent_ITF
	QDragMoveEvent_PTR() *QDragMoveEvent
}

type QDrag_ITF

type QDrag_ITF interface {
	qtcore.QObject_ITF
	QDrag_PTR() *QDrag
}

type QDropEvent

type QDropEvent struct {
	*qtcore.QEvent
}

func NewQDropEvent

func NewQDropEvent(pos qtcore.QPointF_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int, type_ int) *QDropEvent

func NewQDropEventFromPointer

func NewQDropEventFromPointer(cthis unsafe.Pointer) *QDropEvent

func NewQDropEventp

func NewQDropEventp(pos qtcore.QPointF_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int) *QDropEvent

func (*QDropEvent) AcceptProposedAction

func (this *QDropEvent) AcceptProposedAction()

func (*QDropEvent) DropAction

func (this *QDropEvent) DropAction() int

func (*QDropEvent) GetCthis

func (this *QDropEvent) GetCthis() unsafe.Pointer

func (*QDropEvent) KeyboardModifiers

func (this *QDropEvent) KeyboardModifiers() int

func (*QDropEvent) MimeData

func (this *QDropEvent) MimeData() *qtcore.QMimeData

func (*QDropEvent) MouseButtons

func (this *QDropEvent) MouseButtons() int

func (*QDropEvent) NewForInherit

func (*QDropEvent) NewForInherit(pos qtcore.QPointF_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int, type_ int) *QDropEvent

func (*QDropEvent) NewForInheritp

func (*QDropEvent) NewForInheritp(pos qtcore.QPointF_ITF, actions int, data qtcore.QMimeData_ITF, buttons int, modifiers int) *QDropEvent

func (*QDropEvent) NewFromPointer

func (*QDropEvent) NewFromPointer(cthis unsafe.Pointer) *QDropEvent

func (*QDropEvent) Pos

func (this *QDropEvent) Pos() *qtcore.QPoint

func (*QDropEvent) PosF

func (this *QDropEvent) PosF() *qtcore.QPointF

func (*QDropEvent) PossibleActions

func (this *QDropEvent) PossibleActions() int

func (*QDropEvent) ProposedAction

func (this *QDropEvent) ProposedAction() int

func (*QDropEvent) QDropEvent_PTR

func (ptr *QDropEvent) QDropEvent_PTR() *QDropEvent

func (*QDropEvent) SetCthis

func (this *QDropEvent) SetCthis(cthis unsafe.Pointer)

func (*QDropEvent) SetDropAction

func (this *QDropEvent) SetDropAction(action int)

func (*QDropEvent) Source

func (this *QDropEvent) Source() *qtcore.QObject

type QDropEvent_ITF

type QDropEvent_ITF interface {
	qtcore.QEvent_ITF
	QDropEvent_PTR() *QDropEvent
}

type QEnterEvent

type QEnterEvent struct {
	*qtcore.QEvent
}

func NewQEnterEvent

func NewQEnterEvent(localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF) *QEnterEvent

func NewQEnterEventFromPointer

func NewQEnterEventFromPointer(cthis unsafe.Pointer) *QEnterEvent

func (*QEnterEvent) GetCthis

func (this *QEnterEvent) GetCthis() unsafe.Pointer

func (*QEnterEvent) GlobalPos

func (this *QEnterEvent) GlobalPos() *qtcore.QPoint

func (*QEnterEvent) GlobalX

func (this *QEnterEvent) GlobalX() int

func (*QEnterEvent) GlobalY

func (this *QEnterEvent) GlobalY() int

func (*QEnterEvent) LocalPos

func (this *QEnterEvent) LocalPos() *qtcore.QPointF

func (*QEnterEvent) NewForInherit

func (*QEnterEvent) NewForInherit(localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF) *QEnterEvent

func (*QEnterEvent) NewFromPointer

func (*QEnterEvent) NewFromPointer(cthis unsafe.Pointer) *QEnterEvent

func (*QEnterEvent) Pos

func (this *QEnterEvent) Pos() *qtcore.QPoint

func (*QEnterEvent) QEnterEvent_PTR

func (ptr *QEnterEvent) QEnterEvent_PTR() *QEnterEvent

func (*QEnterEvent) ScreenPos

func (this *QEnterEvent) ScreenPos() *qtcore.QPointF

func (*QEnterEvent) SetCthis

func (this *QEnterEvent) SetCthis(cthis unsafe.Pointer)

func (*QEnterEvent) WindowPos

func (this *QEnterEvent) WindowPos() *qtcore.QPointF

func (*QEnterEvent) X

func (this *QEnterEvent) X() int

func (*QEnterEvent) Y

func (this *QEnterEvent) Y() int

type QEnterEvent_ITF

type QEnterEvent_ITF interface {
	qtcore.QEvent_ITF
	QEnterEvent_PTR() *QEnterEvent
}

type QExposeEvent

type QExposeEvent struct {
	*qtcore.QEvent
}

func NewQExposeEvent

func NewQExposeEvent(rgn QRegion_ITF) *QExposeEvent

func NewQExposeEventFromPointer

func NewQExposeEventFromPointer(cthis unsafe.Pointer) *QExposeEvent

func (*QExposeEvent) GetCthis

func (this *QExposeEvent) GetCthis() unsafe.Pointer

func (*QExposeEvent) NewForInherit

func (*QExposeEvent) NewForInherit(rgn QRegion_ITF) *QExposeEvent

func (*QExposeEvent) NewFromPointer

func (*QExposeEvent) NewFromPointer(cthis unsafe.Pointer) *QExposeEvent

func (*QExposeEvent) QExposeEvent_PTR

func (ptr *QExposeEvent) QExposeEvent_PTR() *QExposeEvent

func (*QExposeEvent) Region

func (this *QExposeEvent) Region() *QRegion

func (*QExposeEvent) SetCthis

func (this *QExposeEvent) SetCthis(cthis unsafe.Pointer)

type QExposeEvent_ITF

type QExposeEvent_ITF interface {
	qtcore.QEvent_ITF
	QExposeEvent_PTR() *QExposeEvent
}

type QFileOpenEvent

type QFileOpenEvent struct {
	*qtcore.QEvent
}

func NewQFileOpenEvent

func NewQFileOpenEvent(file string) *QFileOpenEvent

func NewQFileOpenEvent1

func NewQFileOpenEvent1(url qtcore.QUrl_ITF) *QFileOpenEvent

func NewQFileOpenEventFromPointer

func NewQFileOpenEventFromPointer(cthis unsafe.Pointer) *QFileOpenEvent

func (*QFileOpenEvent) File

func (this *QFileOpenEvent) File() string

func (*QFileOpenEvent) GetCthis

func (this *QFileOpenEvent) GetCthis() unsafe.Pointer

func (*QFileOpenEvent) NewForInherit

func (*QFileOpenEvent) NewForInherit(file string) *QFileOpenEvent

func (*QFileOpenEvent) NewForInherit1

func (*QFileOpenEvent) NewForInherit1(url qtcore.QUrl_ITF) *QFileOpenEvent

func (*QFileOpenEvent) NewFromPointer

func (*QFileOpenEvent) NewFromPointer(cthis unsafe.Pointer) *QFileOpenEvent

func (*QFileOpenEvent) OpenFile

func (this *QFileOpenEvent) OpenFile(file qtcore.QFile_ITF, flags int) bool

func (*QFileOpenEvent) QFileOpenEvent_PTR

func (ptr *QFileOpenEvent) QFileOpenEvent_PTR() *QFileOpenEvent

func (*QFileOpenEvent) SetCthis

func (this *QFileOpenEvent) SetCthis(cthis unsafe.Pointer)

func (*QFileOpenEvent) Url

func (this *QFileOpenEvent) Url() *qtcore.QUrl

type QFileOpenEvent_ITF

type QFileOpenEvent_ITF interface {
	qtcore.QEvent_ITF
	QFileOpenEvent_PTR() *QFileOpenEvent
}

type QFocusEvent

type QFocusEvent struct {
	*qtcore.QEvent
}

func NewQFocusEvent

func NewQFocusEvent(type_ int, reason int) *QFocusEvent

func NewQFocusEventFromPointer

func NewQFocusEventFromPointer(cthis unsafe.Pointer) *QFocusEvent

func NewQFocusEventp

func NewQFocusEventp(type_ int) *QFocusEvent

func (*QFocusEvent) GetCthis

func (this *QFocusEvent) GetCthis() unsafe.Pointer

func (*QFocusEvent) GotFocus

func (this *QFocusEvent) GotFocus() bool

func (*QFocusEvent) LostFocus

func (this *QFocusEvent) LostFocus() bool

func (*QFocusEvent) NewForInherit

func (*QFocusEvent) NewForInherit(type_ int, reason int) *QFocusEvent

func (*QFocusEvent) NewForInheritp

func (*QFocusEvent) NewForInheritp(type_ int) *QFocusEvent

func (*QFocusEvent) NewFromPointer

func (*QFocusEvent) NewFromPointer(cthis unsafe.Pointer) *QFocusEvent

func (*QFocusEvent) QFocusEvent_PTR

func (ptr *QFocusEvent) QFocusEvent_PTR() *QFocusEvent

func (*QFocusEvent) Reason

func (this *QFocusEvent) Reason() int

func (*QFocusEvent) SetCthis

func (this *QFocusEvent) SetCthis(cthis unsafe.Pointer)

type QFocusEvent_ITF

type QFocusEvent_ITF interface {
	qtcore.QEvent_ITF
	QFocusEvent_PTR() *QFocusEvent
}

type QFont

type QFont struct {
	*qtrt.CObject
}

func NewQFont

func NewQFont() *QFont

func NewQFont1

func NewQFont1(family string, pointSize int, weight int, italic bool) *QFont

func NewQFont1p

func NewQFont1p(family string) *QFont

func NewQFont1p1

func NewQFont1p1(family string, pointSize int) *QFont

func NewQFont1p2

func NewQFont1p2(family string, pointSize int, weight int) *QFont

func NewQFont2

func NewQFont2(arg0 QFont_ITF, pd QPaintDevice_ITF) *QFont

func NewQFontFromPointer

func NewQFontFromPointer(cthis unsafe.Pointer) *QFont

func QFontDatabase_SystemFont

func QFontDatabase_SystemFont(type_ int) *QFont

func QGuiApplication_Font

func QGuiApplication_Font() *QFont

func (*QFont) Bold

func (this *QFont) Bold() bool

Returns true if weight() is a value greater than QFont::Medium; otherwise returns false.

See also weight(), setBold(), and QFontInfo::bold().

func (*QFont) CacheStatistics

func (this *QFont) CacheStatistics()

func (*QFont) Capitalization

func (this *QFont) Capitalization() int

Returns the current capitalization type of the font.

This function was introduced in Qt 4.4.

See also setCapitalization().

func (*QFont) CapitalizationItemName

func (this *QFont) CapitalizationItemName(val int) string

func (*QFont) Cleanup

func (this *QFont) Cleanup()

func (*QFont) DefaultFamily

func (this *QFont) DefaultFamily() string

Returns the family name that corresponds to the current style hint.

See also StyleHint, styleHint(), and setStyleHint().

func (*QFont) ExactMatch

func (this *QFont) ExactMatch() bool

Returns true if a window system font exactly matching the settings of this font is available.

See also QFontInfo.

func (*QFont) Family

func (this *QFont) Family() string

Returns the requested font family name, i.e. the name set in the constructor or the last setFont() call.

See also setFamily(), substitutes(), and substitute().

func (*QFont) FixedPitch

func (this *QFont) FixedPitch() bool

Returns true if fixed pitch has been set; otherwise returns false.

See also setFixedPitch() and QFontInfo::fixedPitch().

func (*QFont) FromString

func (this *QFont) FromString(arg0 string) bool

Sets this font to match the description descrip. The description is a comma-separated list of the font attributes, as returned by toString().

See also toString().

func (*QFont) GetCthis

func (this *QFont) GetCthis() unsafe.Pointer

func (*QFont) HintingPreference

func (this *QFont) HintingPreference() int

Returns the currently preferred hinting level for glyphs rendered with this font.

This function was introduced in Qt 4.8.

See also setHintingPreference().

func (*QFont) HintingPreferenceItemName

func (this *QFont) HintingPreferenceItemName(val int) string

func (*QFont) Initialize

func (this *QFont) Initialize()

func (*QFont) InsertSubstitution

func (this *QFont) InsertSubstitution(arg0 string, arg1 string)

Inserts substituteName into the substitution table for the family familyName.

See also insertSubstitutions(), removeSubstitutions(), substitutions(), substitute(), and substitutes().

func (*QFont) InsertSubstitutions

func (this *QFont) InsertSubstitutions(arg0 string, arg1 qtcore.QStringList_ITF)

Inserts the list of families substituteNames into the substitution list for familyName.

See also insertSubstitution(), removeSubstitutions(), substitutions(), and substitute().

func (*QFont) IsCopyOf

func (this *QFont) IsCopyOf(arg0 QFont_ITF) bool

Returns true if this font and f are copies of each other, i.e. one of them was created as a copy of the other and neither has been modified since. This is much stricter than equality.

See also operator=() and operator==().

func (*QFont) Italic

func (this *QFont) Italic() bool

Returns true if the style() of the font is not QFont::StyleNormal

See also setItalic() and style().

func (*QFont) Kerning

func (this *QFont) Kerning() bool

Returns true if kerning should be used when drawing text with this font.

See also setKerning().

func (*QFont) Key

func (this *QFont) Key() string

Returns the font's key, a textual representation of a font. It is typically used as the key for a cache or dictionary of fonts.

See also QMap.

func (*QFont) LastResortFamily

func (this *QFont) LastResortFamily() string

Returns the "last resort" font family name.

The current implementation tries a wide variety of common fonts, returning the first one it finds. Is is possible that no family is found in which case an empty string is returned.

See also lastResortFont().

func (*QFont) LastResortFont

func (this *QFont) LastResortFont() string

Returns a "last resort" font name for the font matching algorithm. This is used if the last resort family is not available. It will always return a name, if necessary returning something like "fixed" or "system".

The current implementation tries a wide variety of common fonts, returning the first one it finds. The implementation may change at any time, but this function will always return a string containing something.

It is theoretically possible that there really isn't a lastResortFont() in which case Qt will abort with an error message. We have not been able to identify a case where this happens. Please report it as a bug if it does, preferably with a list of the fonts you have installed.

See also lastResortFamily().

func (*QFont) LetterSpacing

func (this *QFont) LetterSpacing() float64

Returns the letter spacing for the font.

This function was introduced in Qt 4.4.

See also setLetterSpacing(), letterSpacingType(), and setWordSpacing().

func (*QFont) LetterSpacingType

func (this *QFont) LetterSpacingType() int

Returns the spacing type used for letter spacing.

This function was introduced in Qt 4.4.

See also letterSpacing(), setLetterSpacing(), and setWordSpacing().

func (*QFont) NewForInherit

func (*QFont) NewForInherit() *QFont

Constructs a font object that uses the application's default font.

See also QGuiApplication::setFont() and QGuiApplication::font().

func (*QFont) NewForInherit1

func (*QFont) NewForInherit1(family string, pointSize int, weight int, italic bool) *QFont

Constructs a font object that uses the application's default font.

See also QGuiApplication::setFont() and QGuiApplication::font().

func (*QFont) NewForInherit1p

func (*QFont) NewForInherit1p(family string) *QFont

Constructs a font object that uses the application's default font.

See also QGuiApplication::setFont() and QGuiApplication::font().

func (*QFont) NewForInherit1p1

func (*QFont) NewForInherit1p1(family string, pointSize int) *QFont

Constructs a font object that uses the application's default font.

See also QGuiApplication::setFont() and QGuiApplication::font().

func (*QFont) NewForInherit1p2

func (*QFont) NewForInherit1p2(family string, pointSize int, weight int) *QFont

Constructs a font object that uses the application's default font.

See also QGuiApplication::setFont() and QGuiApplication::font().

func (*QFont) NewForInherit2

func (*QFont) NewForInherit2(arg0 QFont_ITF, pd QPaintDevice_ITF) *QFont

Constructs a font object that uses the application's default font.

See also QGuiApplication::setFont() and QGuiApplication::font().

func (*QFont) NewFromPointer

func (*QFont) NewFromPointer(cthis unsafe.Pointer) *QFont

func (*QFont) Operator_equal

func (this *QFont) Operator_equal(arg0 QFont_ITF) *QFont

func (*QFont) Operator_equal1

func (this *QFont) Operator_equal1(other unsafe.Pointer) *QFont

func (*QFont) Operator_equal_equal

func (this *QFont) Operator_equal_equal(arg0 QFont_ITF) bool

func (*QFont) Operator_less_than

func (this *QFont) Operator_less_than(arg0 QFont_ITF) bool

func (*QFont) Operator_not_equal

func (this *QFont) Operator_not_equal(arg0 QFont_ITF) bool

func (*QFont) Overline

func (this *QFont) Overline() bool

Returns true if overline has been set; otherwise returns false.

See also setOverline().

func (*QFont) PixelSize

func (this *QFont) PixelSize() int

Returns the pixel size of the font if it was set with setPixelSize(). Returns -1 if the size was set with setPointSize() or setPointSizeF().

See also setPixelSize(), pointSize(), QFontInfo::pointSize(), and QFontInfo::pixelSize().

func (*QFont) PointSize

func (this *QFont) PointSize() int

Returns the point size of the font. Returns -1 if the font size was specified in pixels.

See also setPointSize() and pointSizeF().

func (*QFont) PointSizeF

func (this *QFont) PointSizeF() float64

Returns the point size of the font. Returns -1 if the font size was specified in pixels.

See also pointSize(), setPointSizeF(), pixelSize(), QFontInfo::pointSize(), and QFontInfo::pixelSize().

func (*QFont) QFont_PTR

func (ptr *QFont) QFont_PTR() *QFont

func (*QFont) RawMode

func (this *QFont) RawMode() bool

func (*QFont) RawName

func (this *QFont) RawName() string

func (*QFont) RemoveSubstitutions

func (this *QFont) RemoveSubstitutions(arg0 string)

Removes all the substitutions for familyName.

This function was introduced in Qt 5.0.

See also insertSubstitutions(), insertSubstitution(), substitutions(), and substitute().

func (*QFont) Resolve

func (this *QFont) Resolve(arg0 QFont_ITF) *QFont

Returns a new QFont that has attributes copied from other that have not been previously set on this font.

func (*QFont) Resolve1

func (this *QFont) Resolve1() uint

Returns a new QFont that has attributes copied from other that have not been previously set on this font.

func (*QFont) Resolve2

func (this *QFont) Resolve2(mask uint)

Returns a new QFont that has attributes copied from other that have not been previously set on this font.

func (*QFont) ResolvePropertiesItemName

func (this *QFont) ResolvePropertiesItemName(val int) string

func (*QFont) SetBold

func (this *QFont) SetBold(arg0 bool)

If enable is true sets the font's weight to QFont::Bold; otherwise sets the weight to QFont::Normal.

For finer boldness control use setWeight().

Note: If styleName() is set, this value may be ignored, or if supported on the platform, the font artificially embolded.

See also bold() and setWeight().

func (*QFont) SetCapitalization

func (this *QFont) SetCapitalization(arg0 int)

Sets the capitalization of the text in this font to caps.

A font's capitalization makes the text appear in the selected capitalization mode.

This function was introduced in Qt 4.4.

See also capitalization().

func (*QFont) SetCthis

func (this *QFont) SetCthis(cthis unsafe.Pointer)

func (*QFont) SetFamily

func (this *QFont) SetFamily(arg0 string)

Sets the family name of the font. The name is case insensitive and may include a foundry name.

The family name may optionally also include a foundry name, e.g. "Helvetica [Cronyx]". If the family is available from more than one foundry and the foundry isn't specified, an arbitrary foundry is chosen. If the family isn't available a family will be set using the font matching algorithm.

See also family(), setStyleHint(), and QFontInfo.

func (*QFont) SetFixedPitch

func (this *QFont) SetFixedPitch(arg0 bool)

If enable is true, sets fixed pitch on; otherwise sets fixed pitch off.

See also fixedPitch() and QFontInfo.

func (*QFont) SetHintingPreference

func (this *QFont) SetHintingPreference(hintingPreference int)

Set the preference for the hinting level of the glyphs to hintingPreference. This is a hint to the underlying font rendering system to use a certain level of hinting, and has varying support across platforms. See the table in the documentation for QFont::HintingPreference for more details.

The default hinting preference is QFont::PreferDefaultHinting.

This function was introduced in Qt 4.8.

See also hintingPreference().

func (*QFont) SetItalic

func (this *QFont) SetItalic(b bool)

Sets the style() of the font to QFont::StyleItalic if enable is true; otherwise the style is set to QFont::StyleNormal.

Note: If styleName() is set, this value may be ignored, or if supported on the platform, the font may be rendered tilted instead of picking a designed italic font-variant.

See also italic() and QFontInfo.

func (*QFont) SetKerning

func (this *QFont) SetKerning(arg0 bool)

Enables kerning for this font if enable is true; otherwise disables it. By default, kerning is enabled.

When kerning is enabled, glyph metrics do not add up anymore, even for Latin text. In other words, the assumption that width('a') + width('b') is equal to width("ab") is not necessarily true.

See also kerning() and QFontMetrics.

func (*QFont) SetLetterSpacing

func (this *QFont) SetLetterSpacing(type_ int, spacing float64)

Sets the letter spacing for the font to spacing and the type of spacing to type.

Letter spacing changes the default spacing between individual letters in the font. The spacing between the letters can be made smaller as well as larger either in percentage of the character width or in pixels, depending on the selected spacing type.

This function was introduced in Qt 4.4.

See also letterSpacing(), letterSpacingType(), and setWordSpacing().

func (*QFont) SetOverline

func (this *QFont) SetOverline(arg0 bool)

If enable is true, sets overline on; otherwise sets overline off.

See also overline() and QFontInfo.

func (*QFont) SetPixelSize

func (this *QFont) SetPixelSize(arg0 int)

Sets the font size to pixelSize pixels.

Using this function makes the font device dependent. Use setPointSize() or setPointSizeF() to set the size of the font in a device independent manner.

See also pixelSize().

func (*QFont) SetPointSize

func (this *QFont) SetPointSize(arg0 int)

Sets the point size to pointSize. The point size must be greater than zero.

See also pointSize() and setPointSizeF().

func (*QFont) SetPointSizeF

func (this *QFont) SetPointSizeF(arg0 float64)

Sets the point size to pointSize. The point size must be greater than zero. The requested precision may not be achieved on all platforms.

See also pointSizeF(), setPointSize(), and setPixelSize().

func (*QFont) SetRawMode

func (this *QFont) SetRawMode(arg0 bool)

func (*QFont) SetRawName

func (this *QFont) SetRawName(arg0 string)

func (*QFont) SetStretch

func (this *QFont) SetStretch(arg0 int)

Sets the stretch factor for the font.

The stretch factor matches a condensed or expanded version of the font or applies a stretch transform that changes the width of all characters in the font by factor percent. For example, setting factor to 150 results in all characters in the font being 1.5 times (ie. 150%) wider. The minimum stretch factor is 1, and the maximum stretch factor is 4000. The default stretch factor is AnyStretch, which will accept any stretch factor and not apply any transform on the font.

The stretch factor is only applied to outline fonts. The stretch factor is ignored for bitmap fonts.

Note: When matching a font with a native non-default stretch factor, requesting a stretch of 100 will stretch it back to a medium width font.

See also stretch() and QFont::Stretch.

func (*QFont) SetStrikeOut

func (this *QFont) SetStrikeOut(arg0 bool)

If enable is true, sets strikeout on; otherwise sets strikeout off.

See also strikeOut() and QFontInfo.

func (*QFont) SetStyle

func (this *QFont) SetStyle(style int)

Sets the style of the font to style.

See also style(), italic(), and QFontInfo.

func (*QFont) SetStyleHint

func (this *QFont) SetStyleHint(arg0 int, arg1 int)

Sets the style hint and strategy to hint and strategy, respectively.

If these aren't set explicitly the style hint will default to AnyStyle and the style strategy to PreferDefault.

Qt does not support style hints on X11 since this information is not provided by the window system.

See also StyleHint, styleHint(), StyleStrategy, styleStrategy(), and QFontInfo.

func (*QFont) SetStyleHintp

func (this *QFont) SetStyleHintp(arg0 int)

Sets the style hint and strategy to hint and strategy, respectively.

If these aren't set explicitly the style hint will default to AnyStyle and the style strategy to PreferDefault.

Qt does not support style hints on X11 since this information is not provided by the window system.

See also StyleHint, styleHint(), StyleStrategy, styleStrategy(), and QFontInfo.

func (*QFont) SetStyleName

func (this *QFont) SetStyleName(arg0 string)

Sets the style name of the font to styleName. When set, other style properties like style() and weight() will be ignored for font matching, though they may be simulated afterwards if supported by the platform's font engine.

This function was introduced in Qt 4.8.

See also styleName().

func (*QFont) SetStyleStrategy

func (this *QFont) SetStyleStrategy(s int)

Sets the style strategy for the font to s.

See also styleStrategy() and QFont::StyleStrategy.

func (*QFont) SetUnderline

func (this *QFont) SetUnderline(arg0 bool)

If enable is true, sets underline on; otherwise sets underline off.

See also underline() and QFontInfo.

func (*QFont) SetWeight

func (this *QFont) SetWeight(arg0 int)

Sets the weight of the font to weight, using the scale defined by QFont::Weight enumeration.

Note: If styleName() is set, this value may be ignored for font selection.

See also weight() and QFontInfo.

func (*QFont) SetWordSpacing

func (this *QFont) SetWordSpacing(spacing float64)

Sets the word spacing for the font to spacing.

Word spacing changes the default spacing between individual words. A positive value increases the word spacing by a corresponding amount of pixels, while a negative value decreases the inter-word spacing accordingly.

Word spacing will not apply to writing systems, where indiviaul words are not separated by white space.

This function was introduced in Qt 4.4.

See also wordSpacing() and setLetterSpacing().

func (*QFont) SpacingTypeItemName

func (this *QFont) SpacingTypeItemName(val int) string

func (*QFont) Stretch

func (this *QFont) Stretch() int

Returns the stretch factor for the font.

See also setStretch().

func (*QFont) StretchItemName

func (this *QFont) StretchItemName(val int) string

func (*QFont) StrikeOut

func (this *QFont) StrikeOut() bool

Returns true if strikeout has been set; otherwise returns false.

See also setStrikeOut().

func (*QFont) Style

func (this *QFont) Style() int

Returns the style of the font.

See also setStyle().

func (*QFont) StyleHint

func (this *QFont) StyleHint() int

Returns the StyleHint.

The style hint affects the font matching algorithm. See QFont::StyleHint for the list of available hints.

See also setStyleHint(), QFont::StyleStrategy, and QFontInfo::styleHint().

func (*QFont) StyleHintItemName

func (this *QFont) StyleHintItemName(val int) string

func (*QFont) StyleItemName

func (this *QFont) StyleItemName(val int) string

func (*QFont) StyleName

func (this *QFont) StyleName() string

Returns the requested font style name. This can be used to match the font with irregular styles (that can't be normalized in other style properties).

This function was introduced in Qt 4.8.

See also setStyleName(), setFamily(), and setStyle().

func (*QFont) StyleStrategy

func (this *QFont) StyleStrategy() int

Returns the StyleStrategy.

The style strategy affects the font matching algorithm. See QFont::StyleStrategy for the list of available strategies.

See also setStyleStrategy(), setStyleHint(), and QFont::StyleHint.

func (*QFont) StyleStrategyItemName

func (this *QFont) StyleStrategyItemName(val int) string

func (*QFont) Substitute

func (this *QFont) Substitute(arg0 string) string

Returns the first family name to be used whenever familyName is specified. The lookup is case insensitive.

If there is no substitution for familyName, familyName is returned.

To obtain a list of substitutions use substitutes().

See also setFamily(), insertSubstitutions(), insertSubstitution(), and removeSubstitutions().

func (*QFont) Substitutes

func (this *QFont) Substitutes(arg0 string) *qtcore.QStringList

Returns a list of family names to be used whenever familyName is specified. The lookup is case insensitive.

If there is no substitution for familyName, an empty list is returned.

See also substitute(), insertSubstitutions(), insertSubstitution(), and removeSubstitutions().

func (*QFont) Substitutions

func (this *QFont) Substitutions() *qtcore.QStringList

Returns a sorted list of substituted family names.

See also insertSubstitution(), removeSubstitution(), and substitute().

func (*QFont) Swap

func (this *QFont) Swap(other QFont_ITF)

Swaps this font instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QFont) ToString

func (this *QFont) ToString() string

Returns a description of the font. The description is a comma-separated list of the attributes, perfectly suited for use in QSettings.

See also fromString().

func (*QFont) Underline

func (this *QFont) Underline() bool

Returns true if underline has been set; otherwise returns false.

See also setUnderline().

func (*QFont) Weight

func (this *QFont) Weight() int

Returns the weight of the font, using the same scale as the QFont::Weight enumeration.

See also setWeight(), Weight, and QFontInfo.

func (*QFont) WeightItemName

func (this *QFont) WeightItemName(val int) string

func (*QFont) WordSpacing

func (this *QFont) WordSpacing() float64

Returns the word spacing for the font.

This function was introduced in Qt 4.4.

See also setWordSpacing() and setLetterSpacing().

type QFontDatabase

type QFontDatabase struct {
	*qtrt.CObject
}

func NewQFontDatabase

func NewQFontDatabase() *QFontDatabase

func NewQFontDatabaseFromPointer

func NewQFontDatabaseFromPointer(cthis unsafe.Pointer) *QFontDatabase

func (*QFontDatabase) AddApplicationFont

func (this *QFontDatabase) AddApplicationFont(fileName string) int

Loads the font from the file specified by fileName and makes it available to the application. An ID is returned that can be used to remove the font again with removeApplicationFont() or to retrieve the list of family names contained in the font.

The function returns -1 if the font could not be loaded.

Currently only TrueType fonts, TrueType font collections, and OpenType fonts are supported.

Note: Adding application fonts on Unix/X11 platforms without fontconfig is currently not supported.

This function was introduced in Qt 4.2.

See also addApplicationFontFromData(), applicationFontFamilies(), and removeApplicationFont().

func (*QFontDatabase) AddApplicationFontFromData

func (this *QFontDatabase) AddApplicationFontFromData(fontData qtcore.QByteArray_ITF) int

Loads the font from binary data specified by fontData and makes it available to the application. An ID is returned that can be used to remove the font again with removeApplicationFont() or to retrieve the list of family names contained in the font.

The function returns -1 if the font could not be loaded.

Currently only TrueType fonts and TrueType font collections are supported.

Note: Adding application fonts on Unix/X11 platforms without fontconfig is currently not supported.

This function was introduced in Qt 4.2.

See also addApplicationFont(), applicationFontFamilies(), and removeApplicationFont().

func (*QFontDatabase) ApplicationFontFamilies

func (this *QFontDatabase) ApplicationFontFamilies(id int) *qtcore.QStringList

Returns a list of font families for the given application font identified by id.

This function was introduced in Qt 4.2.

See also addApplicationFont() and addApplicationFontFromData().

func (*QFontDatabase) Bold

func (this *QFontDatabase) Bold(family string, style string) bool

Returns true if the font that has family family and style style is bold; otherwise returns false.

See also italic() and weight().

func (*QFontDatabase) Families

func (this *QFontDatabase) Families(writingSystem int) *qtcore.QStringList

Returns a sorted list of the available font families which support the writingSystem.

If a family exists in several foundries, the returned name for that font is in the form "family [foundry]". Examples: "Times [Adobe]", "Times [Cronyx]", "Palatino".

See also writingSystems().

func (*QFontDatabase) Familiesp

func (this *QFontDatabase) Familiesp() *qtcore.QStringList

Returns a sorted list of the available font families which support the writingSystem.

If a family exists in several foundries, the returned name for that font is in the form "family [foundry]". Examples: "Times [Adobe]", "Times [Cronyx]", "Palatino".

See also writingSystems().

func (*QFontDatabase) Font

func (this *QFontDatabase) Font(family string, style string, pointSize int) *QFont

Returns a QFont object that has family family, style style and point size pointSize. If no matching font could be created, a QFont object that uses the application's default font is returned.

func (*QFontDatabase) GetCthis

func (this *QFontDatabase) GetCthis() unsafe.Pointer

func (*QFontDatabase) HasFamily

func (this *QFontDatabase) HasFamily(family string) bool

func (*QFontDatabase) IsBitmapScalable

func (this *QFontDatabase) IsBitmapScalable(family string, style string) bool

Returns true if the font that has family family and style style is a scalable bitmap font; otherwise returns false. Scaling a bitmap font usually produces an unattractive hardly readable result, because the pixels of the font are scaled. If you need to scale a bitmap font it is better to scale it to one of the fixed sizes returned by smoothSizes().

See also isScalable() and isSmoothlyScalable().

func (*QFontDatabase) IsBitmapScalablep

func (this *QFontDatabase) IsBitmapScalablep(family string) bool

Returns true if the font that has family family and style style is a scalable bitmap font; otherwise returns false. Scaling a bitmap font usually produces an unattractive hardly readable result, because the pixels of the font are scaled. If you need to scale a bitmap font it is better to scale it to one of the fixed sizes returned by smoothSizes().

See also isScalable() and isSmoothlyScalable().

func (*QFontDatabase) IsFixedPitch

func (this *QFontDatabase) IsFixedPitch(family string, style string) bool

Returns true if the font that has family family and style style is fixed pitch; otherwise returns false.

func (*QFontDatabase) IsFixedPitchp

func (this *QFontDatabase) IsFixedPitchp(family string) bool

Returns true if the font that has family family and style style is fixed pitch; otherwise returns false.

func (*QFontDatabase) IsPrivateFamily

func (this *QFontDatabase) IsPrivateFamily(family string) bool

Returns true if and only if the family font family is private.

This happens, for instance, on macOS and iOS, where the system UI fonts are not accessible to the user. For completeness, QFontDatabase::families() returns all font families, including the private ones. You should use this function if you are developing a font selection control in order to keep private fonts hidden.

This function was introduced in Qt 5.5.

See also families().

func (*QFontDatabase) IsScalable

func (this *QFontDatabase) IsScalable(family string, style string) bool

Returns true if the font that has family family and style style is scalable; otherwise returns false.

See also isBitmapScalable() and isSmoothlyScalable().

func (*QFontDatabase) IsScalablep

func (this *QFontDatabase) IsScalablep(family string) bool

Returns true if the font that has family family and style style is scalable; otherwise returns false.

See also isBitmapScalable() and isSmoothlyScalable().

func (*QFontDatabase) IsSmoothlyScalable

func (this *QFontDatabase) IsSmoothlyScalable(family string, style string) bool

Returns true if the font that has family family and style style is smoothly scalable; otherwise returns false. If this function returns true, it's safe to scale this font to any size, and the result will always look attractive.

See also isScalable() and isBitmapScalable().

func (*QFontDatabase) IsSmoothlyScalablep

func (this *QFontDatabase) IsSmoothlyScalablep(family string) bool

Returns true if the font that has family family and style style is smoothly scalable; otherwise returns false. If this function returns true, it's safe to scale this font to any size, and the result will always look attractive.

See also isScalable() and isBitmapScalable().

func (*QFontDatabase) Italic

func (this *QFontDatabase) Italic(family string, style string) bool

Returns true if the font that has family family and style style is italic; otherwise returns false.

See also weight() and bold().

func (*QFontDatabase) NewForInherit

func (*QFontDatabase) NewForInherit() *QFontDatabase

Creates a font database object.

func (*QFontDatabase) NewFromPointer

func (*QFontDatabase) NewFromPointer(cthis unsafe.Pointer) *QFontDatabase

func (*QFontDatabase) QFontDatabase_PTR

func (ptr *QFontDatabase) QFontDatabase_PTR() *QFontDatabase

func (*QFontDatabase) RemoveAllApplicationFonts

func (this *QFontDatabase) RemoveAllApplicationFonts() bool

Removes all application-local fonts previously added using addApplicationFont() and addApplicationFontFromData().

Returns true if unloading of the fonts succeeded; otherwise returns false.

This function was introduced in Qt 4.2.

See also removeApplicationFont(), addApplicationFont(), and addApplicationFontFromData().

func (*QFontDatabase) RemoveApplicationFont

func (this *QFontDatabase) RemoveApplicationFont(id int) bool

Removes the previously loaded application font identified by id. Returns true if unloading of the font succeeded; otherwise returns false.

This function was introduced in Qt 4.2.

See also removeAllApplicationFonts(), addApplicationFont(), and addApplicationFontFromData().

func (*QFontDatabase) SetCthis

func (this *QFontDatabase) SetCthis(cthis unsafe.Pointer)

func (*QFontDatabase) StyleString

func (this *QFontDatabase) StyleString(font QFont_ITF) string

Returns a string that describes the style of the font. For example, "Bold Italic", "Bold", "Italic" or "Normal". An empty string may be returned.

func (*QFontDatabase) StyleString1

func (this *QFontDatabase) StyleString1(fontInfo QFontInfo_ITF) string

Returns a string that describes the style of the font. For example, "Bold Italic", "Bold", "Italic" or "Normal". An empty string may be returned.

func (*QFontDatabase) Styles

func (this *QFontDatabase) Styles(family string) *qtcore.QStringList

Returns a list of the styles available for the font family family. Some example styles: "Light", "Light Italic", "Bold", "Oblique", "Demi". The list may be empty.

See also families().

func (*QFontDatabase) SupportsThreadedFontRendering

func (this *QFontDatabase) SupportsThreadedFontRendering() bool

func (*QFontDatabase) SystemFont

func (this *QFontDatabase) SystemFont(type_ int) *QFont

Returns the most adequate font for a given type case for proper integration with the system's look and feel.

This function was introduced in Qt 5.2.

See also QGuiApplication::font().

func (*QFontDatabase) SystemFontItemName

func (this *QFontDatabase) SystemFontItemName(val int) string

func (*QFontDatabase) Weight

func (this *QFontDatabase) Weight(family string, style string) int

Returns the weight of the font that has family family and style style. If there is no such family and style combination, returns -1.

See also italic() and bold().

func (*QFontDatabase) WritingSystemItemName

func (this *QFontDatabase) WritingSystemItemName(val int) string

func (*QFontDatabase) WritingSystemName

func (this *QFontDatabase) WritingSystemName(writingSystem int) string

Returns the names the writingSystem (e.g. for displaying to the user in a dialog).

func (*QFontDatabase) WritingSystemSample

func (this *QFontDatabase) WritingSystemSample(writingSystem int) string

Returns a string with sample characters from writingSystem.

type QFontDatabase_ITF

type QFontDatabase_ITF interface {
	QFontDatabase_PTR() *QFontDatabase
}

type QFontDatabase__SystemFont

type QFontDatabase__SystemFont = int

This enum was introduced or modified in Qt 5.2.

const QFontDatabase__FixedFont QFontDatabase__SystemFont = 1

The fixed font that the system recommends.

const QFontDatabase__GeneralFont QFontDatabase__SystemFont = 0

The default system font.

const QFontDatabase__SmallestReadableFont QFontDatabase__SystemFont = 3

The smallest readable system font.

const QFontDatabase__TitleFont QFontDatabase__SystemFont = 2

The system standard font for titles.

type QFontDatabase__WritingSystem

type QFontDatabase__WritingSystem = int

QFontDatabase::OtherSymbol(the same as Symbol)

const QFontDatabase__Any QFontDatabase__WritingSystem = 0
const QFontDatabase__Arabic QFontDatabase__WritingSystem = 6
const QFontDatabase__Armenian QFontDatabase__WritingSystem = 4
const QFontDatabase__Bengali QFontDatabase__WritingSystem = 10
const QFontDatabase__Cyrillic QFontDatabase__WritingSystem = 3
const QFontDatabase__Devanagari QFontDatabase__WritingSystem = 9
const QFontDatabase__Georgian QFontDatabase__WritingSystem = 23
const QFontDatabase__Greek QFontDatabase__WritingSystem = 2
const QFontDatabase__Gujarati QFontDatabase__WritingSystem = 12
const QFontDatabase__Gurmukhi QFontDatabase__WritingSystem = 11
const QFontDatabase__Hebrew QFontDatabase__WritingSystem = 5
const QFontDatabase__Japanese QFontDatabase__WritingSystem = 27
const QFontDatabase__Kannada QFontDatabase__WritingSystem = 16
const QFontDatabase__Khmer QFontDatabase__WritingSystem = 24
const QFontDatabase__Korean QFontDatabase__WritingSystem = 28
const QFontDatabase__Lao QFontDatabase__WritingSystem = 20
const QFontDatabase__Latin QFontDatabase__WritingSystem = 1
const QFontDatabase__Malayalam QFontDatabase__WritingSystem = 17
const QFontDatabase__Myanmar QFontDatabase__WritingSystem = 22
const QFontDatabase__Nko QFontDatabase__WritingSystem = 33

3

const QFontDatabase__Ogham QFontDatabase__WritingSystem = 31
const QFontDatabase__Oriya QFontDatabase__WritingSystem = 13
const QFontDatabase__Other QFontDatabase__WritingSystem = 30
const QFontDatabase__Runic QFontDatabase__WritingSystem = 32
const QFontDatabase__SimplifiedChinese QFontDatabase__WritingSystem = 25
const QFontDatabase__Sinhala QFontDatabase__WritingSystem = 18
const QFontDatabase__Symbol QFontDatabase__WritingSystem = 30
const QFontDatabase__Syriac QFontDatabase__WritingSystem = 7
const QFontDatabase__Tamil QFontDatabase__WritingSystem = 14
const QFontDatabase__Telugu QFontDatabase__WritingSystem = 15
const QFontDatabase__Thaana QFontDatabase__WritingSystem = 8
const QFontDatabase__Thai QFontDatabase__WritingSystem = 19
const QFontDatabase__Tibetan QFontDatabase__WritingSystem = 21
const QFontDatabase__TraditionalChinese QFontDatabase__WritingSystem = 26
const QFontDatabase__Vietnamese QFontDatabase__WritingSystem = 29
const QFontDatabase__WritingSystemsCount QFontDatabase__WritingSystem = 34

type QFontInfo

type QFontInfo struct {
	*qtrt.CObject
}

func NewQFontInfo

func NewQFontInfo(arg0 QFont_ITF) *QFontInfo

func NewQFontInfoFromPointer

func NewQFontInfoFromPointer(cthis unsafe.Pointer) *QFontInfo

func (*QFontInfo) Bold

func (this *QFontInfo) Bold() bool

Returns true if weight() would return a value greater than QFont::Normal; otherwise returns false.

See also weight() and QFont::bold().

func (*QFontInfo) ExactMatch

func (this *QFontInfo) ExactMatch() bool

Returns true if the matched window system font is exactly the same as the one specified by the font; otherwise returns false.

See also QFont::exactMatch().

func (*QFontInfo) Family

func (this *QFontInfo) Family() string

Returns the family name of the matched window system font.

See also QFont::family().

func (*QFontInfo) FixedPitch

func (this *QFontInfo) FixedPitch() bool

Returns the fixed pitch value of the matched window system font.

See also QFont::fixedPitch().

func (*QFontInfo) GetCthis

func (this *QFontInfo) GetCthis() unsafe.Pointer

func (*QFontInfo) Italic

func (this *QFontInfo) Italic() bool

Returns the italic value of the matched window system font.

See also QFont::italic().

func (*QFontInfo) NewForInherit

func (*QFontInfo) NewForInherit(arg0 QFont_ITF) *QFontInfo

Constructs a font info object for font.

The font must be screen-compatible, i.e. a font you use when drawing text in widgets or pixmaps, not QPicture or QPrinter.

The font info object holds the information for the font that is passed in the constructor at the time it is created, and is not updated if the font's attributes are changed later.

Use QPainter::fontInfo() to get the font info when painting. This will give correct results also when painting on paint device that is not screen-compatible.

func (*QFontInfo) NewFromPointer

func (*QFontInfo) NewFromPointer(cthis unsafe.Pointer) *QFontInfo

func (*QFontInfo) Operator_equal

func (this *QFontInfo) Operator_equal(arg0 QFontInfo_ITF) *QFontInfo

func (*QFontInfo) Overline

func (this *QFontInfo) Overline() bool

func (*QFontInfo) PixelSize

func (this *QFontInfo) PixelSize() int

Returns the pixel size of the matched window system font.

See also QFont::pointSize().

func (*QFontInfo) PointSize

func (this *QFontInfo) PointSize() int

Returns the point size of the matched window system font.

See also pointSizeF() and QFont::pointSize().

func (*QFontInfo) PointSizeF

func (this *QFontInfo) PointSizeF() float64

Returns the point size of the matched window system font.

See also QFont::pointSizeF().

func (*QFontInfo) QFontInfo_PTR

func (ptr *QFontInfo) QFontInfo_PTR() *QFontInfo

func (*QFontInfo) RawMode

func (this *QFontInfo) RawMode() bool

func (*QFontInfo) SetCthis

func (this *QFontInfo) SetCthis(cthis unsafe.Pointer)

func (*QFontInfo) StrikeOut

func (this *QFontInfo) StrikeOut() bool

func (*QFontInfo) Style

func (this *QFontInfo) Style() int

Returns the style value of the matched window system font.

See also QFont::style().

func (*QFontInfo) StyleHint

func (this *QFontInfo) StyleHint() int

Returns the style of the matched window system font.

Currently only returns the style hint set in QFont.

See also QFont::styleHint() and QFont::StyleHint.

func (*QFontInfo) StyleName

func (this *QFontInfo) StyleName() string

Returns the style name of the matched window system font on systems that support it.

This function was introduced in Qt 4.8.

See also QFont::styleName().

func (*QFontInfo) Swap

func (this *QFontInfo) Swap(other QFontInfo_ITF)

Swaps this font info instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QFontInfo) Underline

func (this *QFontInfo) Underline() bool

func (*QFontInfo) Weight

func (this *QFontInfo) Weight() int

Returns the weight of the matched window system font.

See also QFont::weight() and bold().

type QFontInfo_ITF

type QFontInfo_ITF interface {
	QFontInfo_PTR() *QFontInfo
}

type QFontMetrics

type QFontMetrics struct {
	*qtrt.CObject
}

func NewQFontMetrics

func NewQFontMetrics(arg0 QFont_ITF) *QFontMetrics

func NewQFontMetrics1

func NewQFontMetrics1(arg0 QFont_ITF, pd QPaintDevice_ITF) *QFontMetrics

func NewQFontMetricsFromPointer

func NewQFontMetricsFromPointer(cthis unsafe.Pointer) *QFontMetrics

func (*QFontMetrics) Ascent

func (this *QFontMetrics) Ascent() int

Returns the ascent of the font.

The ascent of a font is the distance from the baseline to the highest position characters extend to. In practice, some font designers break this rule, e.g. when they put more than one accent on top of a character, or to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.

See also descent().

func (*QFontMetrics) AverageCharWidth

func (this *QFontMetrics) AverageCharWidth() int

Returns the average width of glyphs in the font.

This function was introduced in Qt 4.2.

func (*QFontMetrics) BoundingRect

func (this *QFontMetrics) BoundingRect(arg0 qtcore.QChar_ITF) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) BoundingRect1

func (this *QFontMetrics) BoundingRect1(text string) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) BoundingRect2

func (this *QFontMetrics) BoundingRect2(r qtcore.QRect_ITF, flags int, text string, tabstops int, tabarray unsafe.Pointer) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) BoundingRect2p

func (this *QFontMetrics) BoundingRect2p(r qtcore.QRect_ITF, flags int, text string) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) BoundingRect2p1

func (this *QFontMetrics) BoundingRect2p1(r qtcore.QRect_ITF, flags int, text string, tabstops int) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) BoundingRect3

func (this *QFontMetrics) BoundingRect3(x int, y int, w int, h int, flags int, text string, tabstops int, tabarray unsafe.Pointer) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) BoundingRect3p

func (this *QFontMetrics) BoundingRect3p(x int, y int, w int, h int, flags int, text string) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) BoundingRect3p1

func (this *QFontMetrics) BoundingRect3p1(x int, y int, w int, h int, flags int, text string, tabstops int) *qtcore.QRect

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetrics) CapHeight

func (this *QFontMetrics) CapHeight() int

Returns the cap height of the font.

The cap height of a font is the height of a capital letter above the baseline. It specifically is the height of capital letters that are flat - such as H or I - as opposed to round letters such as O, or pointed letters like A, both of which may display overshoot.

This function was introduced in Qt 5.8.

See also ascent().

func (*QFontMetrics) CharWidth

func (this *QFontMetrics) CharWidth(str string, pos int) int

func (*QFontMetrics) Descent

func (this *QFontMetrics) Descent() int

Returns the descent of the font.

The descent is the distance from the base line to the lowest point characters extend to. In practice, some font designers break this rule, e.g. to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.

See also ascent().

func (*QFontMetrics) ElidedText

func (this *QFontMetrics) ElidedText(text string, mode int, width int, flags int) string

If the string text is wider than width, returns an elided version of the string (i.e., a string with "..." in it). Otherwise, returns the original string.

The mode parameter specifies whether the text is elided on the left (e.g., "...tech"), in the middle (e.g., "Tr...ch"), or on the right (e.g., "Trol...").

The width is specified in pixels, not characters.

The flags argument is optional and currently only supports Qt::TextShowMnemonic as value.

The elide mark follows the layoutdirection. For example, it will be on the right side of the text for right-to-left layouts if the mode is Qt::ElideLeft, and on the left side of the text if the mode is Qt::ElideRight.

This function was introduced in Qt 4.2.

func (*QFontMetrics) ElidedTextp

func (this *QFontMetrics) ElidedTextp(text string, mode int, width int) string

If the string text is wider than width, returns an elided version of the string (i.e., a string with "..." in it). Otherwise, returns the original string.

The mode parameter specifies whether the text is elided on the left (e.g., "...tech"), in the middle (e.g., "Tr...ch"), or on the right (e.g., "Trol...").

The width is specified in pixels, not characters.

The flags argument is optional and currently only supports Qt::TextShowMnemonic as value.

The elide mark follows the layoutdirection. For example, it will be on the right side of the text for right-to-left layouts if the mode is Qt::ElideLeft, and on the left side of the text if the mode is Qt::ElideRight.

This function was introduced in Qt 4.2.

func (*QFontMetrics) GetCthis

func (this *QFontMetrics) GetCthis() unsafe.Pointer

func (*QFontMetrics) Height

func (this *QFontMetrics) Height() int

Returns the height of the font.

This is always equal to ascent()+descent().

See also leading() and lineSpacing().

func (*QFontMetrics) HorizontalAdvance

func (this *QFontMetrics) HorizontalAdvance(arg0 string, len_ int) int

Returns the horizontal advance in pixels of the first len characters of text. If len is negative (the default), the entire string is used.

This is the distance appropriate for drawing a subsequent character after text.

This function was introduced in Qt 5.11.

See also boundingRect().

func (*QFontMetrics) HorizontalAdvance1

func (this *QFontMetrics) HorizontalAdvance1(arg0 qtcore.QChar_ITF) int

Returns the horizontal advance in pixels of the first len characters of text. If len is negative (the default), the entire string is used.

This is the distance appropriate for drawing a subsequent character after text.

This function was introduced in Qt 5.11.

See also boundingRect().

func (*QFontMetrics) HorizontalAdvancep

func (this *QFontMetrics) HorizontalAdvancep(arg0 string) int

Returns the horizontal advance in pixels of the first len characters of text. If len is negative (the default), the entire string is used.

This is the distance appropriate for drawing a subsequent character after text.

This function was introduced in Qt 5.11.

See also boundingRect().

func (*QFontMetrics) InFont

func (this *QFontMetrics) InFont(arg0 qtcore.QChar_ITF) bool

Returns true if character ch is a valid character in the font; otherwise returns false.

func (*QFontMetrics) InFontUcs4

func (this *QFontMetrics) InFontUcs4(ucs4 uint) bool

Returns true if the character ucs4 encoded in UCS-4/UTF-32 is a valid character in the font; otherwise returns false.

func (*QFontMetrics) Leading

func (this *QFontMetrics) Leading() int

Returns the leading of the font.

This is the natural inter-line spacing.

See also height() and lineSpacing().

func (*QFontMetrics) LeftBearing

func (this *QFontMetrics) LeftBearing(arg0 qtcore.QChar_ITF) int

Returns the left bearing of character ch in the font.

The left bearing is the right-ward distance of the left-most pixel of the character from the logical origin of the character. This value is negative if the pixels of the character extend to the left of the logical origin.

See width() for a graphical description of this metric.

See also rightBearing(), minLeftBearing(), and width().

func (*QFontMetrics) LineSpacing

func (this *QFontMetrics) LineSpacing() int

Returns the distance from one base line to the next.

This value is always equal to leading()+height().

See also height() and leading().

func (*QFontMetrics) LineWidth

func (this *QFontMetrics) LineWidth() int

Returns the width of the underline and strikeout lines, adjusted for the point size of the font.

See also underlinePos(), overlinePos(), and strikeOutPos().

func (*QFontMetrics) MaxWidth

func (this *QFontMetrics) MaxWidth() int

Returns the width of the widest character in the font.

func (*QFontMetrics) MinLeftBearing

func (this *QFontMetrics) MinLeftBearing() int

Returns the minimum left bearing of the font.

This is the smallest leftBearing(char) of all characters in the font.

Note that this function can be very slow if the font is large.

See also minRightBearing() and leftBearing().

func (*QFontMetrics) MinRightBearing

func (this *QFontMetrics) MinRightBearing() int

Returns the minimum right bearing of the font.

This is the smallest rightBearing(char) of all characters in the font.

Note that this function can be very slow if the font is large.

See also minLeftBearing() and rightBearing().

func (*QFontMetrics) NewForInherit

func (*QFontMetrics) NewForInherit(arg0 QFont_ITF) *QFontMetrics

Constructs a font metrics object for font.

The font metrics will be compatible with the paintdevice used to create font.

The font metrics object holds the information for the font that is passed in the constructor at the time it is created, and is not updated if the font's attributes are changed later.

Use QFontMetrics(const QFont &, QPaintDevice *) to get the font metrics that are compatible with a certain paint device.

func (*QFontMetrics) NewForInherit1

func (*QFontMetrics) NewForInherit1(arg0 QFont_ITF, pd QPaintDevice_ITF) *QFontMetrics

Constructs a font metrics object for font.

The font metrics will be compatible with the paintdevice used to create font.

The font metrics object holds the information for the font that is passed in the constructor at the time it is created, and is not updated if the font's attributes are changed later.

Use QFontMetrics(const QFont &, QPaintDevice *) to get the font metrics that are compatible with a certain paint device.

func (*QFontMetrics) NewFromPointer

func (*QFontMetrics) NewFromPointer(cthis unsafe.Pointer) *QFontMetrics

func (*QFontMetrics) Operator_equal

func (this *QFontMetrics) Operator_equal(arg0 QFontMetrics_ITF) *QFontMetrics

func (*QFontMetrics) Operator_equal1

func (this *QFontMetrics) Operator_equal1(other unsafe.Pointer) *QFontMetrics

func (*QFontMetrics) Operator_equal_equal

func (this *QFontMetrics) Operator_equal_equal(other QFontMetrics_ITF) bool

func (*QFontMetrics) Operator_not_equal

func (this *QFontMetrics) Operator_not_equal(other QFontMetrics_ITF) bool

func (*QFontMetrics) OverlinePos

func (this *QFontMetrics) OverlinePos() int

Returns the distance from the base line to where an overline should be drawn.

See also underlinePos(), strikeOutPos(), and lineWidth().

func (*QFontMetrics) QFontMetrics_PTR

func (ptr *QFontMetrics) QFontMetrics_PTR() *QFontMetrics

func (*QFontMetrics) RightBearing

func (this *QFontMetrics) RightBearing(arg0 qtcore.QChar_ITF) int

Returns the right bearing of character ch in the font.

The right bearing is the left-ward distance of the right-most pixel of the character from the logical origin of a subsequent character. This value is negative if the pixels of the character extend to the right of the width() of the character.

See width() for a graphical description of this metric.

See also leftBearing(), minRightBearing(), and width().

func (*QFontMetrics) SetCthis

func (this *QFontMetrics) SetCthis(cthis unsafe.Pointer)

func (*QFontMetrics) Size

func (this *QFontMetrics) Size(flags int, str string, tabstops int, tabarray unsafe.Pointer) *qtcore.QSize

Returns the size in pixels of text.

The flags argument is the bitwise OR of the following flags:

Qt::TextSingleLine ignores newline characters. Qt::TextExpandTabs expands tabs (see below) Qt::TextShowMnemonic interprets "&x" as x; i.e., underlined. Qt::TextWordWrap breaks the text to fit the rectangle.

If Qt::TextExpandTabs is set in flags, then: if tabArray is non-null, it specifies a 0-terminated sequence of pixel-positions for tabs; otherwise if tabStops is non-zero, it is used as the tab spacing (in pixels).

Newline characters are processed as linebreaks.

Despite the different actual character heights, the heights of the bounding rectangles of "Yes" and "yes" are the same.

See also boundingRect().

func (*QFontMetrics) Sizep

func (this *QFontMetrics) Sizep(flags int, str string) *qtcore.QSize

Returns the size in pixels of text.

The flags argument is the bitwise OR of the following flags:

Qt::TextSingleLine ignores newline characters. Qt::TextExpandTabs expands tabs (see below) Qt::TextShowMnemonic interprets "&x" as x; i.e., underlined. Qt::TextWordWrap breaks the text to fit the rectangle.

If Qt::TextExpandTabs is set in flags, then: if tabArray is non-null, it specifies a 0-terminated sequence of pixel-positions for tabs; otherwise if tabStops is non-zero, it is used as the tab spacing (in pixels).

Newline characters are processed as linebreaks.

Despite the different actual character heights, the heights of the bounding rectangles of "Yes" and "yes" are the same.

See also boundingRect().

func (*QFontMetrics) Sizep1

func (this *QFontMetrics) Sizep1(flags int, str string, tabstops int) *qtcore.QSize

Returns the size in pixels of text.

The flags argument is the bitwise OR of the following flags:

Qt::TextSingleLine ignores newline characters. Qt::TextExpandTabs expands tabs (see below) Qt::TextShowMnemonic interprets "&x" as x; i.e., underlined. Qt::TextWordWrap breaks the text to fit the rectangle.

If Qt::TextExpandTabs is set in flags, then: if tabArray is non-null, it specifies a 0-terminated sequence of pixel-positions for tabs; otherwise if tabStops is non-zero, it is used as the tab spacing (in pixels).

Newline characters are processed as linebreaks.

Despite the different actual character heights, the heights of the bounding rectangles of "Yes" and "yes" are the same.

See also boundingRect().

func (*QFontMetrics) StrikeOutPos

func (this *QFontMetrics) StrikeOutPos() int

Returns the distance from the base line to where the strikeout line should be drawn.

See also underlinePos(), overlinePos(), and lineWidth().

func (*QFontMetrics) Swap

func (this *QFontMetrics) Swap(other QFontMetrics_ITF)

Swaps this font metrics instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QFontMetrics) TightBoundingRect

func (this *QFontMetrics) TightBoundingRect(text string) *qtcore.QRect

Returns a tight bounding rectangle around the characters in the string specified by text. The bounding rectangle always covers at least the set of pixels the text would cover if drawn at (0, 0).

Note that the bounding rectangle may extend to the left of (0, 0), e.g. for italicized fonts, and that the width of the returned rectangle might be different than what the width() method returns.

If you want to know the advance width of the string (to lay out a set of strings next to each other), use horizontalAdvance() instead.

Newline characters are processed as normal characters, not as linebreaks.

Warning: Calling this method is very slow on Windows.

This function was introduced in Qt 4.3.

See also width(), height(), and boundingRect().

func (*QFontMetrics) UnderlinePos

func (this *QFontMetrics) UnderlinePos() int

Returns the distance from the base line to where an underscore should be drawn.

See also overlinePos(), strikeOutPos(), and lineWidth().

func (*QFontMetrics) Width

func (this *QFontMetrics) Width(arg0 string, len_ int) int

func (*QFontMetrics) Width1

func (this *QFontMetrics) Width1(arg0 string, len_ int, flags int) int

func (*QFontMetrics) Width2

func (this *QFontMetrics) Width2(arg0 qtcore.QChar_ITF) int

func (*QFontMetrics) Widthp

func (this *QFontMetrics) Widthp(arg0 string) int

func (*QFontMetrics) XHeight

func (this *QFontMetrics) XHeight() int

Returns the 'x' height of the font. This is often but not always the same as the height of the character 'x'.

type QFontMetricsF

type QFontMetricsF struct {
	*qtrt.CObject
}

func NewQFontMetricsF

func NewQFontMetricsF(arg0 QFont_ITF) *QFontMetricsF

func NewQFontMetricsF1

func NewQFontMetricsF1(arg0 QFont_ITF, pd QPaintDevice_ITF) *QFontMetricsF

func NewQFontMetricsF2

func NewQFontMetricsF2(arg0 QFontMetrics_ITF) *QFontMetricsF

func NewQFontMetricsFFromPointer

func NewQFontMetricsFFromPointer(cthis unsafe.Pointer) *QFontMetricsF

func (*QFontMetricsF) Ascent

func (this *QFontMetricsF) Ascent() float64

Returns the ascent of the font.

The ascent of a font is the distance from the baseline to the highest position characters extend to. In practice, some font designers break this rule, e.g. when they put more than one accent on top of a character, or to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.

See also descent().

func (*QFontMetricsF) AverageCharWidth

func (this *QFontMetricsF) AverageCharWidth() float64

Returns the average width of glyphs in the font.

This function was introduced in Qt 4.2.

func (*QFontMetricsF) BoundingRect

func (this *QFontMetricsF) BoundingRect(string string) *qtcore.QRectF

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetricsF) BoundingRect1

func (this *QFontMetricsF) BoundingRect1(arg0 qtcore.QChar_ITF) *qtcore.QRectF

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetricsF) BoundingRect2

func (this *QFontMetricsF) BoundingRect2(r qtcore.QRectF_ITF, flags int, string string, tabstops int, tabarray unsafe.Pointer) *qtcore.QRectF

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetricsF) BoundingRect2p

func (this *QFontMetricsF) BoundingRect2p(r qtcore.QRectF_ITF, flags int, string string) *qtcore.QRectF

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetricsF) BoundingRect2p1

func (this *QFontMetricsF) BoundingRect2p1(r qtcore.QRectF_ITF, flags int, string string, tabstops int) *qtcore.QRectF

Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the coordinate system.

Note that the bounding rectangle may extend to the left of (0, 0) (e.g., for italicized fonts), and that the text output may cover all pixels in the bounding rectangle. For a space character the rectangle will usually be empty.

Note that the rectangle usually extends both above and below the base line.

Warning: The width of the returned rectangle is not the advance width of the character. Use boundingRect(const QString &) or horizontalAdvance() instead.

See also width().

func (*QFontMetricsF) CapHeight

func (this *QFontMetricsF) CapHeight() float64

Returns the cap height of the font.

The cap height of a font is the height of a capital letter above the baseline. It specifically is the height of capital letters that are flat - such as H or I - as opposed to round letters such as O, or pointed letters like A, both of which may display overshoot.

This function was introduced in Qt 5.8.

See also ascent().

func (*QFontMetricsF) Descent

func (this *QFontMetricsF) Descent() float64

Returns the descent of the font.

The descent is the distance from the base line to the lowest point characters extend to. In practice, some font designers break this rule, e.g. to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.

See also ascent().

func (*QFontMetricsF) ElidedText

func (this *QFontMetricsF) ElidedText(text string, mode int, width float64, flags int) string

If the string text is wider than width, returns an elided version of the string (i.e., a string with "..." in it). Otherwise, returns the original string.

The mode parameter specifies whether the text is elided on the left (e.g., "...tech"), in the middle (e.g., "Tr...ch"), or on the right (e.g., "Trol...").

The width is specified in pixels, not characters.

The flags argument is optional and currently only supports Qt::TextShowMnemonic as value.

The elide mark follows the layoutdirection. For example, it will be on the right side of the text for right-to-left layouts if the mode is Qt::ElideLeft, and on the left side of the text if the mode is Qt::ElideRight.

This function was introduced in Qt 4.2.

func (*QFontMetricsF) ElidedTextp

func (this *QFontMetricsF) ElidedTextp(text string, mode int, width float64) string

If the string text is wider than width, returns an elided version of the string (i.e., a string with "..." in it). Otherwise, returns the original string.

The mode parameter specifies whether the text is elided on the left (e.g., "...tech"), in the middle (e.g., "Tr...ch"), or on the right (e.g., "Trol...").

The width is specified in pixels, not characters.

The flags argument is optional and currently only supports Qt::TextShowMnemonic as value.

The elide mark follows the layoutdirection. For example, it will be on the right side of the text for right-to-left layouts if the mode is Qt::ElideLeft, and on the left side of the text if the mode is Qt::ElideRight.

This function was introduced in Qt 4.2.

func (*QFontMetricsF) GetCthis

func (this *QFontMetricsF) GetCthis() unsafe.Pointer

func (*QFontMetricsF) Height

func (this *QFontMetricsF) Height() float64

Returns the height of the font.

This is always equal to ascent()+descent().

See also leading() and lineSpacing().

func (*QFontMetricsF) HorizontalAdvance

func (this *QFontMetricsF) HorizontalAdvance(string string, length int) float64

Returns the horizontal advance in pixels of the first len characters of text. If len is negative (the default), the entire string is used.

This is the distance appropriate for drawing a subsequent character after text.

This function was introduced in Qt 5.11.

See also boundingRect().

func (*QFontMetricsF) HorizontalAdvance1

func (this *QFontMetricsF) HorizontalAdvance1(arg0 qtcore.QChar_ITF) float64

Returns the horizontal advance in pixels of the first len characters of text. If len is negative (the default), the entire string is used.

This is the distance appropriate for drawing a subsequent character after text.

This function was introduced in Qt 5.11.

See also boundingRect().

func (*QFontMetricsF) HorizontalAdvancep

func (this *QFontMetricsF) HorizontalAdvancep(string string) float64

Returns the horizontal advance in pixels of the first len characters of text. If len is negative (the default), the entire string is used.

This is the distance appropriate for drawing a subsequent character after text.

This function was introduced in Qt 5.11.

See also boundingRect().

func (*QFontMetricsF) InFont

func (this *QFontMetricsF) InFont(arg0 qtcore.QChar_ITF) bool

Returns true if character ch is a valid character in the font; otherwise returns false.

func (*QFontMetricsF) InFontUcs4

func (this *QFontMetricsF) InFontUcs4(ucs4 uint) bool

Returns true if the character ucs4 encoded in UCS-4/UTF-32 is a valid character in the font; otherwise returns false.

func (*QFontMetricsF) Leading

func (this *QFontMetricsF) Leading() float64

Returns the leading of the font.

This is the natural inter-line spacing.

See also height() and lineSpacing().

func (*QFontMetricsF) LeftBearing

func (this *QFontMetricsF) LeftBearing(arg0 qtcore.QChar_ITF) float64

Returns the left bearing of character ch in the font.

The left bearing is the right-ward distance of the left-most pixel of the character from the logical origin of the character. This value is negative if the pixels of the character extend to the left of the logical origin.

See width() for a graphical description of this metric.

See also rightBearing(), minLeftBearing(), and width().

func (*QFontMetricsF) LineSpacing

func (this *QFontMetricsF) LineSpacing() float64

Returns the distance from one base line to the next.

This value is always equal to leading()+height().

See also height() and leading().

func (*QFontMetricsF) LineWidth

func (this *QFontMetricsF) LineWidth() float64

Returns the width of the underline and strikeout lines, adjusted for the point size of the font.

See also underlinePos(), overlinePos(), and strikeOutPos().

func (*QFontMetricsF) MaxWidth

func (this *QFontMetricsF) MaxWidth() float64

Returns the width of the widest character in the font.

func (*QFontMetricsF) MinLeftBearing

func (this *QFontMetricsF) MinLeftBearing() float64

Returns the minimum left bearing of the font.

This is the smallest leftBearing(char) of all characters in the font.

Note that this function can be very slow if the font is large.

See also minRightBearing() and leftBearing().

func (*QFontMetricsF) MinRightBearing

func (this *QFontMetricsF) MinRightBearing() float64

Returns the minimum right bearing of the font.

This is the smallest rightBearing(char) of all characters in the font.

Note that this function can be very slow if the font is large.

See also minLeftBearing() and rightBearing().

func (*QFontMetricsF) NewForInherit

func (*QFontMetricsF) NewForInherit(arg0 QFont_ITF) *QFontMetricsF

func (*QFontMetricsF) NewForInherit1

func (*QFontMetricsF) NewForInherit1(arg0 QFont_ITF, pd QPaintDevice_ITF) *QFontMetricsF

func (*QFontMetricsF) NewForInherit2

func (*QFontMetricsF) NewForInherit2(arg0 QFontMetrics_ITF) *QFontMetricsF

func (*QFontMetricsF) NewFromPointer

func (*QFontMetricsF) NewFromPointer(cthis unsafe.Pointer) *QFontMetricsF

func (*QFontMetricsF) Operator_equal

func (this *QFontMetricsF) Operator_equal(arg0 QFontMetricsF_ITF) *QFontMetricsF

func (*QFontMetricsF) Operator_equal1

func (this *QFontMetricsF) Operator_equal1(arg0 QFontMetrics_ITF) *QFontMetricsF

func (*QFontMetricsF) Operator_equal2

func (this *QFontMetricsF) Operator_equal2(other unsafe.Pointer) *QFontMetricsF

func (*QFontMetricsF) Operator_equal_equal

func (this *QFontMetricsF) Operator_equal_equal(other QFontMetricsF_ITF) bool

func (*QFontMetricsF) Operator_not_equal

func (this *QFontMetricsF) Operator_not_equal(other QFontMetricsF_ITF) bool

func (*QFontMetricsF) OverlinePos

func (this *QFontMetricsF) OverlinePos() float64

Returns the distance from the base line to where an overline should be drawn.

See also underlinePos(), strikeOutPos(), and lineWidth().

func (*QFontMetricsF) QFontMetricsF_PTR

func (ptr *QFontMetricsF) QFontMetricsF_PTR() *QFontMetricsF

func (*QFontMetricsF) RightBearing

func (this *QFontMetricsF) RightBearing(arg0 qtcore.QChar_ITF) float64

Returns the right bearing of character ch in the font.

The right bearing is the left-ward distance of the right-most pixel of the character from the logical origin of a subsequent character. This value is negative if the pixels of the character extend to the right of the width() of the character.

See width() for a graphical description of this metric.

See also leftBearing(), minRightBearing(), and width().

func (*QFontMetricsF) SetCthis

func (this *QFontMetricsF) SetCthis(cthis unsafe.Pointer)

func (*QFontMetricsF) Size

func (this *QFontMetricsF) Size(flags int, str string, tabstops int, tabarray unsafe.Pointer) *qtcore.QSizeF

Returns the size in pixels of text.

The flags argument is the bitwise OR of the following flags:

Qt::TextSingleLine ignores newline characters. Qt::TextExpandTabs expands tabs (see below) Qt::TextShowMnemonic interprets "&x" as x; i.e., underlined. Qt::TextWordWrap breaks the text to fit the rectangle.

If Qt::TextExpandTabs is set in flags, then: if tabArray is non-null, it specifies a 0-terminated sequence of pixel-positions for tabs; otherwise if tabStops is non-zero, it is used as the tab spacing (in pixels).

Newline characters are processed as linebreaks.

Despite the different actual character heights, the heights of the bounding rectangles of "Yes" and "yes" are the same.

See also boundingRect().

func (*QFontMetricsF) Sizep

func (this *QFontMetricsF) Sizep(flags int, str string) *qtcore.QSizeF

Returns the size in pixels of text.

The flags argument is the bitwise OR of the following flags:

Qt::TextSingleLine ignores newline characters. Qt::TextExpandTabs expands tabs (see below) Qt::TextShowMnemonic interprets "&x" as x; i.e., underlined. Qt::TextWordWrap breaks the text to fit the rectangle.

If Qt::TextExpandTabs is set in flags, then: if tabArray is non-null, it specifies a 0-terminated sequence of pixel-positions for tabs; otherwise if tabStops is non-zero, it is used as the tab spacing (in pixels).

Newline characters are processed as linebreaks.

Despite the different actual character heights, the heights of the bounding rectangles of "Yes" and "yes" are the same.

See also boundingRect().

func (*QFontMetricsF) Sizep1

func (this *QFontMetricsF) Sizep1(flags int, str string, tabstops int) *qtcore.QSizeF

Returns the size in pixels of text.

The flags argument is the bitwise OR of the following flags:

Qt::TextSingleLine ignores newline characters. Qt::TextExpandTabs expands tabs (see below) Qt::TextShowMnemonic interprets "&x" as x; i.e., underlined. Qt::TextWordWrap breaks the text to fit the rectangle.

If Qt::TextExpandTabs is set in flags, then: if tabArray is non-null, it specifies a 0-terminated sequence of pixel-positions for tabs; otherwise if tabStops is non-zero, it is used as the tab spacing (in pixels).

Newline characters are processed as linebreaks.

Despite the different actual character heights, the heights of the bounding rectangles of "Yes" and "yes" are the same.

See also boundingRect().

func (*QFontMetricsF) StrikeOutPos

func (this *QFontMetricsF) StrikeOutPos() float64

Returns the distance from the base line to where the strikeout line should be drawn.

See also underlinePos(), overlinePos(), and lineWidth().

func (*QFontMetricsF) Swap

func (this *QFontMetricsF) Swap(other QFontMetricsF_ITF)

Swaps this font metrics instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QFontMetricsF) TightBoundingRect

func (this *QFontMetricsF) TightBoundingRect(text string) *qtcore.QRectF

Returns a tight bounding rectangle around the characters in the string specified by text. The bounding rectangle always covers at least the set of pixels the text would cover if drawn at (0, 0).

Note that the bounding rectangle may extend to the left of (0, 0), e.g. for italicized fonts, and that the width of the returned rectangle might be different than what the width() method returns.

If you want to know the advance width of the string (to lay out a set of strings next to each other), use horizontalAdvance() instead.

Newline characters are processed as normal characters, not as linebreaks.

Warning: Calling this method is very slow on Windows.

This function was introduced in Qt 4.3.

See also width(), height(), and boundingRect().

func (*QFontMetricsF) UnderlinePos

func (this *QFontMetricsF) UnderlinePos() float64

Returns the distance from the base line to where an underscore should be drawn.

See also overlinePos(), strikeOutPos(), and lineWidth().

func (*QFontMetricsF) Width

func (this *QFontMetricsF) Width(string string) float64

func (*QFontMetricsF) Width1

func (this *QFontMetricsF) Width1(arg0 qtcore.QChar_ITF) float64

func (*QFontMetricsF) XHeight

func (this *QFontMetricsF) XHeight() float64

Returns the 'x' height of the font. This is often but not always the same as the height of the character 'x'.

type QFontMetricsF_ITF

type QFontMetricsF_ITF interface {
	QFontMetricsF_PTR() *QFontMetricsF
}

type QFontMetrics_ITF

type QFontMetrics_ITF interface {
	QFontMetrics_PTR() *QFontMetrics
}

type QFont_ITF

type QFont_ITF interface {
	QFont_PTR() *QFont
}

type QFont__Capitalization

type QFont__Capitalization = int

Rendering option for text this font applies to.

This enum was introduced or modified in Qt 4.4.

const QFont__AllLowercase QFont__Capitalization = 2

This alters the text to be rendered in all lowercase type.

const QFont__AllUppercase QFont__Capitalization = 1

This alters the text to be rendered in all uppercase type.

const QFont__Capitalize QFont__Capitalization = 4

This alters the text to be rendered with the first character of each word as an uppercase character.

const QFont__MixedCase QFont__Capitalization = 0

This is the normal text rendering option where no capitalization change is applied.

const QFont__SmallCaps QFont__Capitalization = 3

This alters the text to be rendered in small-caps type.

type QFont__HintingPreference

type QFont__HintingPreference = int

This enum describes the different levels of hinting that can be applied to glyphs to improve legibility on displays where it might be warranted by the density of pixels.

Please note that this enum only describes a preference, as the full range of hinting levels are not supported on all of Qt's supported platforms. The following table details the effect of a given hinting preference on a selected set of target platforms.

PreferDefaultHintingPreferNoHintingPreferVerticalHintingPreferFullHinting

Windows Vista (w/o Platform Update) and earlierFull hintingFull hintingFull hintingFull hinting Windows 7 and Windows Vista (w/Platform Update) and DirectWrite enabled in QtFull hintingVertical hintingVertical hintingFull hinting FreeTypeOperating System settingNo hintingVertical hinting (light)Full hinting Cocoa on macOSNo hintingNo hintingNo hintingNo hinting

Note: Please be aware that altering the hinting preference on Windows is available through the DirectWrite font engine. This is available on Windows Vista after installing the platform update, and on Windows 7. In order to use this extension, configure Qt using -directwrite. The target application will then depend on the availability of DirectWrite on the target system.

This enum was introduced or modified in Qt 4.8.

const QFont__PreferDefaultHinting QFont__HintingPreference = 0

Use the default hinting level for the target platform.

const QFont__PreferFullHinting QFont__HintingPreference = 3

If possible, render text with hinting in both horizontal and vertical directions. The text will be altered to optimize legibility on the target device, but since the metrics will depend on the target size of the text, the positions of glyphs, line breaks, and other typographical detail will not scale, meaning that a text layout may look different on devices with different pixel densities.

const QFont__PreferNoHinting QFont__HintingPreference = 1

If possible, render text without hinting the outlines of the glyphs. The text layout will be typographically accurate and scalable, using the same metrics as are used e.g. when printing.

const QFont__PreferVerticalHinting QFont__HintingPreference = 2

If possible, render text with no horizontal hinting, but align glyphs to the pixel grid in the vertical direction. The text will appear crisper on displays where the density is too low to give an accurate rendering of the glyphs. But since the horizontal metrics of the glyphs are unhinted, the text's layout will be scalable to higher density devices (such as printers) without impacting details such as line breaks.

type QFont__ResolveProperties

type QFont__ResolveProperties = int
const QFont__AllPropertiesResolved QFont__ResolveProperties = 131071
const QFont__CapitalizationResolved QFont__ResolveProperties = 4096
const QFont__FamilyResolved QFont__ResolveProperties = 1
const QFont__FixedPitchResolved QFont__ResolveProperties = 512
const QFont__HintingPreferenceResolved QFont__ResolveProperties = 32768
const QFont__KerningResolved QFont__ResolveProperties = 2048
const QFont__LetterSpacingResolved QFont__ResolveProperties = 8192
const QFont__OverlineResolved QFont__ResolveProperties = 128
const QFont__SizeResolved QFont__ResolveProperties = 2
const QFont__StretchResolved QFont__ResolveProperties = 1024
const QFont__StrikeOutResolved QFont__ResolveProperties = 256
const QFont__StyleHintResolved QFont__ResolveProperties = 4
const QFont__StyleNameResolved QFont__ResolveProperties = 65536
const QFont__StyleResolved QFont__ResolveProperties = 32
const QFont__StyleStrategyResolved QFont__ResolveProperties = 8
const QFont__UnderlineResolved QFont__ResolveProperties = 64
const QFont__WeightResolved QFont__ResolveProperties = 16
const QFont__WordSpacingResolved QFont__ResolveProperties = 16384

type QFont__SpacingType

type QFont__SpacingType = int

This enum was introduced or modified in Qt 4.4.

const QFont__AbsoluteSpacing QFont__SpacingType = 1

A positive value increases the letter spacing by the corresponding pixels; a negative value decreases the spacing.

const QFont__PercentageSpacing QFont__SpacingType = 0

type QFont__Stretch

type QFont__Stretch = int

Predefined stretch values that follow the CSS naming convention. The higher the value, the more stretched the text is.

See also setStretch() and stretch().

const QFont__AnyStretch QFont__Stretch = 0
const QFont__Condensed QFont__Stretch = 75
const QFont__Expanded QFont__Stretch = 125
const QFont__ExtraCondensed QFont__Stretch = 62
const QFont__ExtraExpanded QFont__Stretch = 150
const QFont__SemiCondensed QFont__Stretch = 87
const QFont__SemiExpanded QFont__Stretch = 112
const QFont__UltraCondensed QFont__Stretch = 50
const QFont__UltraExpanded QFont__Stretch = 200
const QFont__Unstretched QFont__Stretch = 100

type QFont__Style

type QFont__Style = int

This enum describes the different styles of glyphs that are used to display text.

See also Weight.

const QFont__StyleItalic QFont__Style = 1

Italic glyphs that are specifically designed for the purpose of representing italicized text.

const QFont__StyleNormal QFont__Style = 0

Normal glyphs used in unstyled text.

const QFont__StyleOblique QFont__Style = 2

Glyphs with an italic appearance that are typically based on the unstyled glyphs, but are not fine-tuned for the purpose of representing italicized text.

type QFont__StyleHint

type QFont__StyleHint = int

Style hints are used by the font matching algorithm to find an appropriate default family if a selected font family is not available.

QFont::SansSerifHelveticathe font matcher prefer sans serif fonts. QFont::SerifTimesthe font matcher prefers serif fonts. QFont::TypeWriterCourierthe font matcher prefers fixed pitch fonts. QFont::DecorativeOldEnglishis a synonym for OldEnglish.

const QFont__AnyStyle QFont__StyleHint = 5

leaves the font matching algorithm to choose the family. This is the default.

const QFont__Courier QFont__StyleHint = 2

a synonym for TypeWriter.

const QFont__Cursive QFont__StyleHint = 6

the font matcher prefers fonts that map to the CSS generic font-family 'cursive'.

const QFont__Decorative QFont__StyleHint = 3
const QFont__Fantasy QFont__StyleHint = 8

the font matcher prefers fonts that map to the CSS generic font-family 'fantasy'.

const QFont__Helvetica QFont__StyleHint = 0

is a synonym for SansSerif.

const QFont__Monospace QFont__StyleHint = 7

the font matcher prefers fonts that map to the CSS generic font-family 'monospace'.

const QFont__OldEnglish QFont__StyleHint = 3

the font matcher prefers decorative fonts.

const QFont__SansSerif QFont__StyleHint = 0
const QFont__Serif QFont__StyleHint = 1
const QFont__System QFont__StyleHint = 4

the font matcher prefers system fonts.

const QFont__Times QFont__StyleHint = 1

is a synonym for Serif.

const QFont__TypeWriter QFont__StyleHint = 2

type QFont__StyleStrategy

type QFont__StyleStrategy = int

The style strategy tells the font matching algorithm what type of fonts should be used to find an appropriate default family.

The following strategies are available:

Any of these may be OR-ed with one of these flags:

const QFont__ForceIntegerMetrics QFont__StyleStrategy = 1024
const QFont__ForceOutline QFont__StyleStrategy = 16
const QFont__NoAntialias QFont__StyleStrategy = 256
const QFont__NoFontMerging QFont__StyleStrategy = 32768
const QFont__NoSubpixelAntialias QFont__StyleStrategy = 2048
const QFont__OpenGLCompatible QFont__StyleStrategy = 512
const QFont__PreferAntialias QFont__StyleStrategy = 128
const QFont__PreferBitmap QFont__StyleStrategy = 2
const QFont__PreferDefault QFont__StyleStrategy = 1
const QFont__PreferDevice QFont__StyleStrategy = 4
const QFont__PreferMatch QFont__StyleStrategy = 32
const QFont__PreferNoShaping QFont__StyleStrategy = 4096
const QFont__PreferOutline QFont__StyleStrategy = 8
const QFont__PreferQuality QFont__StyleStrategy = 64

type QFont__Weight

type QFont__Weight = int

Qt uses a weighting scale from 0 to 99 similar to, but not the same as, the scales used in Windows or CSS. A weight of 0 will be thin, whilst 99 will be extremely black.

This enum contains the predefined font weights:

const QFont__Black QFont__Weight = 87
const QFont__Bold QFont__Weight = 75
const QFont__DemiBold QFont__Weight = 63
const QFont__ExtraBold QFont__Weight = 81
const QFont__ExtraLight QFont__Weight = 12
const QFont__Light QFont__Weight = 25
const QFont__Medium QFont__Weight = 57
const QFont__Normal QFont__Weight = 50
const QFont__Thin QFont__Weight = 0

0

type QGenericPlugin

type QGenericPlugin struct {
	*qtcore.QObject
}

func NewQGenericPlugin

func NewQGenericPlugin(parent qtcore.QObject_ITF) *QGenericPlugin

func NewQGenericPluginFromPointer

func NewQGenericPluginFromPointer(cthis unsafe.Pointer) *QGenericPlugin

func NewQGenericPluginp

func NewQGenericPluginp() *QGenericPlugin

func (*QGenericPlugin) Create

func (this *QGenericPlugin) Create(name string, spec string) *qtcore.QObject

Implement this function to create a driver matching the type specified by the given key and specification parameters. Note that keys are case-insensitive.

func (*QGenericPlugin) GetCthis

func (this *QGenericPlugin) GetCthis() unsafe.Pointer

func (*QGenericPlugin) MetaObject

func (this *QGenericPlugin) MetaObject() *qtcore.QMetaObject

func (*QGenericPlugin) NewForInherit

func (*QGenericPlugin) NewForInherit(parent qtcore.QObject_ITF) *QGenericPlugin

Constructs a plugin with the given parent.

Note that this constructor is invoked automatically by the moc generated code that exports the plugin, so there is no need for calling it explicitly.

func (*QGenericPlugin) NewForInheritp

func (*QGenericPlugin) NewForInheritp() *QGenericPlugin

Constructs a plugin with the given parent.

Note that this constructor is invoked automatically by the moc generated code that exports the plugin, so there is no need for calling it explicitly.

func (*QGenericPlugin) NewFromPointer

func (*QGenericPlugin) NewFromPointer(cthis unsafe.Pointer) *QGenericPlugin

func (*QGenericPlugin) QGenericPlugin_PTR

func (ptr *QGenericPlugin) QGenericPlugin_PTR() *QGenericPlugin

func (*QGenericPlugin) SetCthis

func (this *QGenericPlugin) SetCthis(cthis unsafe.Pointer)

type QGenericPluginFactory

type QGenericPluginFactory struct {
	*qtrt.CObject
}

func NewQGenericPluginFactoryFromPointer

func NewQGenericPluginFactoryFromPointer(cthis unsafe.Pointer) *QGenericPluginFactory

func (*QGenericPluginFactory) Create

func (this *QGenericPluginFactory) Create(arg0 string, arg1 string) *qtcore.QObject

Creates the driver specified by key, using the given specification.

Note that the keys are case-insensitive.

See also keys().

func (*QGenericPluginFactory) GetCthis

func (this *QGenericPluginFactory) GetCthis() unsafe.Pointer

func (*QGenericPluginFactory) Keys

Returns the list of valid keys, i.e. the available mouse drivers.

See also create().

func (*QGenericPluginFactory) NewFromPointer

func (*QGenericPluginFactory) QGenericPluginFactory_PTR

func (ptr *QGenericPluginFactory) QGenericPluginFactory_PTR() *QGenericPluginFactory

func (*QGenericPluginFactory) SetCthis

func (this *QGenericPluginFactory) SetCthis(cthis unsafe.Pointer)

type QGenericPluginFactory_ITF

type QGenericPluginFactory_ITF interface {
	QGenericPluginFactory_PTR() *QGenericPluginFactory
}

type QGenericPlugin_ITF

type QGenericPlugin_ITF interface {
	qtcore.QObject_ITF
	QGenericPlugin_PTR() *QGenericPlugin
}

type QGlyphRun

type QGlyphRun struct {
	*qtrt.CObject
}

func NewQGlyphRun

func NewQGlyphRun() *QGlyphRun

func NewQGlyphRunFromPointer

func NewQGlyphRunFromPointer(cthis unsafe.Pointer) *QGlyphRun

func (*QGlyphRun) BoundingRect

func (this *QGlyphRun) BoundingRect() *qtcore.QRectF

Returns the smallest rectangle that contains all glyphs in this QGlyphRun. If a bounding rect has been set using setBoundingRect(), then this will be returned. Otherwise the bounding rect will be calculated based on the font metrics of the glyphs in the glyph run.

This function was introduced in Qt 5.0.

See also setBoundingRect().

func (*QGlyphRun) Clear

func (this *QGlyphRun) Clear()

Clears all data in the QGlyphRun object.

func (*QGlyphRun) Flags

func (this *QGlyphRun) Flags() int

Returns the flags set for this QGlyphRun.

This function was introduced in Qt 5.0.

See also setFlags(), setFlag(), and setFlag().

func (*QGlyphRun) GetCthis

func (this *QGlyphRun) GetCthis() unsafe.Pointer

func (*QGlyphRun) GlyphRunFlagItemName

func (this *QGlyphRun) GlyphRunFlagItemName(val int) string

func (*QGlyphRun) IsEmpty

func (this *QGlyphRun) IsEmpty() bool

Returns true if the QGlyphRun does not contain any glyphs.

This function was introduced in Qt 5.0.

func (*QGlyphRun) IsRightToLeft

func (this *QGlyphRun) IsRightToLeft() bool

Returns true if this QGlyphRun contains glyphs that are painted from the right to the left.

This function was introduced in Qt 5.0.

See also setRightToLeft() and flags().

func (*QGlyphRun) NewForInherit

func (*QGlyphRun) NewForInherit() *QGlyphRun

Constructs an empty QGlyphRun object.

func (*QGlyphRun) NewFromPointer

func (*QGlyphRun) NewFromPointer(cthis unsafe.Pointer) *QGlyphRun

func (*QGlyphRun) Operator_equal

func (this *QGlyphRun) Operator_equal(other unsafe.Pointer) *QGlyphRun

func (*QGlyphRun) Operator_equal1

func (this *QGlyphRun) Operator_equal1(other QGlyphRun_ITF) *QGlyphRun

func (*QGlyphRun) Operator_equal_equal

func (this *QGlyphRun) Operator_equal_equal(other QGlyphRun_ITF) bool

func (*QGlyphRun) Operator_not_equal

func (this *QGlyphRun) Operator_not_equal(other QGlyphRun_ITF) bool

func (*QGlyphRun) Overline

func (this *QGlyphRun) Overline() bool

Returns true if this QGlyphRun should be painted with an overline decoration.

See also setOverline() and flags().

func (*QGlyphRun) QGlyphRun_PTR

func (ptr *QGlyphRun) QGlyphRun_PTR() *QGlyphRun

func (*QGlyphRun) RawFont

func (this *QGlyphRun) RawFont() *QRawFont

Returns the font selected for this QGlyphRun object.

See also setRawFont().

func (*QGlyphRun) SetBoundingRect

func (this *QGlyphRun) SetBoundingRect(boundingRect qtcore.QRectF_ITF)

Sets the bounding rect of the glyphs in this QGlyphRun to be boundingRect. This rectangle will be returned by boundingRect() unless it is empty, in which case the bounding rectangle of the glyphs in the glyph run will be returned instead.

Note: Unless you are implementing text shaping, you should not have to use this function. It is used specifically when the QGlyphRun should represent an area which is smaller than the area of the glyphs it contains. This could happen e.g. if the glyph run is retrieved by calling QTextLayout::glyphRuns() and the specified range only includes part of a ligature (where two or more characters are combined to a single glyph.) When this is the case, the bounding rect should only include the appropriate part of the ligature glyph, based on a calculation of the average width of the characters in the ligature.

In order to support such a case (an example is selections which should be drawn with a different color than the main text color), it is necessary to clip the painting mechanism to the rectangle returned from boundingRect() to avoid drawing the entire ligature glyph.

This function was introduced in Qt 5.0.

See also boundingRect().

func (*QGlyphRun) SetCthis

func (this *QGlyphRun) SetCthis(cthis unsafe.Pointer)

func (*QGlyphRun) SetFlag

func (this *QGlyphRun) SetFlag(flag int, enabled bool)

If enabled is true, then flag is enabled; otherwise, it is disabled.

This function was introduced in Qt 5.0.

See also flags() and setFlags().

func (*QGlyphRun) SetFlagp

func (this *QGlyphRun) SetFlagp(flag int)

If enabled is true, then flag is enabled; otherwise, it is disabled.

This function was introduced in Qt 5.0.

See also flags() and setFlags().

func (*QGlyphRun) SetFlags

func (this *QGlyphRun) SetFlags(flags int)

Sets the flags of this QGlyphRun to flags.

This function was introduced in Qt 5.0.

See also setFlag() and flags().

func (*QGlyphRun) SetOverline

func (this *QGlyphRun) SetOverline(overline bool)

Indicates that this QGlyphRun should be painted with an overline decoration if overline is true. Otherwise the QGlyphRun should be painted with no overline decoration.

See also overline(), setFlag(), and setFlags().

func (*QGlyphRun) SetRawData

func (this *QGlyphRun) SetRawData(glyphIndexArray unsafe.Pointer, glyphPositionArray qtcore.QPointF_ITF, size int)

Sets the glyph indexes and positions of this QGlyphRun to use the first size elements in the arrays glyphIndexArray and glyphPositionArray. The data is not copied. The caller must guarantee that the arrays are not deleted as long as this QGlyphRun and any copies of it exists.

See also setGlyphIndexes() and setPositions().

func (*QGlyphRun) SetRawFont

func (this *QGlyphRun) SetRawFont(rawFont QRawFont_ITF)

Sets the font in which to look up the glyph indexes to the rawFont specified.

See also rawFont() and setGlyphIndexes().

func (*QGlyphRun) SetRightToLeft

func (this *QGlyphRun) SetRightToLeft(on bool)

Indicates that this QGlyphRun contains glyphs that should be ordered from the right to left if rightToLeft is true. Otherwise the order of the glyphs is assumed to be left to right.

This function was introduced in Qt 5.0.

See also isRightToLeft(), setFlag(), and setFlags().

func (*QGlyphRun) SetStrikeOut

func (this *QGlyphRun) SetStrikeOut(strikeOut bool)

Indicates that this QGlyphRun should be painted with an strike out decoration if strikeOut is true. Otherwise the QGlyphRun should be painted with no strike out decoration.

See also strikeOut(), setFlag(), and setFlags().

func (*QGlyphRun) SetUnderline

func (this *QGlyphRun) SetUnderline(underline bool)

Indicates that this QGlyphRun should be painted with an underline decoration if underline is true. Otherwise the QGlyphRun should be painted with no underline decoration.

See also underline(), setFlag(), and setFlags().

func (*QGlyphRun) StrikeOut

func (this *QGlyphRun) StrikeOut() bool

Returns true if this QGlyphRun should be painted with a strike out decoration.

See also setStrikeOut() and flags().

func (*QGlyphRun) Swap

func (this *QGlyphRun) Swap(other QGlyphRun_ITF)

Swaps this glyph run instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QGlyphRun) Underline

func (this *QGlyphRun) Underline() bool

Returns true if this QGlyphRun should be painted with an underline decoration.

See also setUnderline() and flags().

type QGlyphRunList

type QGlyphRunList struct {
	*qtrt.CObject
}

body block begin

func (*QGlyphRunList) Append0

func (this *QGlyphRunList) Append0()

void append(const T &)

func (*QGlyphRunList) Append1

func (this *QGlyphRunList) Append1()

void append(const QList<T> &)

func (*QGlyphRunList) At0

func (this *QGlyphRunList) At0() *QGlyphRun

const T & at(int)

func (*QGlyphRunList) Back0

func (this *QGlyphRunList) Back0() *QGlyphRun

T & back()

func (*QGlyphRunList) Back1

func (this *QGlyphRunList) Back1() *QGlyphRun

const T & back()

func (*QGlyphRunList) Begin0

func (this *QGlyphRunList) Begin0()

QList::iterator begin()

func (*QGlyphRunList) Begin1

func (this *QGlyphRunList) Begin1()

QList::const_iterator begin()

func (*QGlyphRunList) Cbegin0

func (this *QGlyphRunList) Cbegin0()

QList::const_iterator cbegin()

func (*QGlyphRunList) Cend0

func (this *QGlyphRunList) Cend0()

QList::const_iterator cend()

func (*QGlyphRunList) Clear0

func (this *QGlyphRunList) Clear0()

void clear()

func (*QGlyphRunList) ConstBegin0

func (this *QGlyphRunList) ConstBegin0()

QList::const_iterator constBegin()

func (*QGlyphRunList) ConstEnd0

func (this *QGlyphRunList) ConstEnd0()

QList::const_iterator constEnd()

func (*QGlyphRunList) ConstFirst0

func (this *QGlyphRunList) ConstFirst0() *QGlyphRun

const T & constFirst()

func (*QGlyphRunList) ConstLast0

func (this *QGlyphRunList) ConstLast0() *QGlyphRun

const T & constLast()

func (*QGlyphRunList) Contains0

func (this *QGlyphRunList) Contains0() bool

bool contains(const T &)

func (*QGlyphRunList) Contains_impl0

func (this *QGlyphRunList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QGlyphRunList) Contains_impl1

func (this *QGlyphRunList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QGlyphRunList) Count0

func (this *QGlyphRunList) Count0() int

int count(const T &)

func (*QGlyphRunList) Count1

func (this *QGlyphRunList) Count1() int

int count()

func (*QGlyphRunList) Count_impl0

func (this *QGlyphRunList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QGlyphRunList) Count_impl1

func (this *QGlyphRunList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QGlyphRunList) Crbegin0

func (this *QGlyphRunList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QGlyphRunList) Crend0

func (this *QGlyphRunList) Crend0()

QList::const_reverse_iterator crend()

func (*QGlyphRunList) Dealloc0

func (this *QGlyphRunList) Dealloc0()

void dealloc(QListData::Data *)

func (*QGlyphRunList) Detach0

func (this *QGlyphRunList) Detach0()

void detach()

func (*QGlyphRunList) DetachShared0

func (this *QGlyphRunList) DetachShared0()

void detachShared()

func (*QGlyphRunList) Detach_helper0

func (this *QGlyphRunList) Detach_helper0()

void detach_helper(int)

func (*QGlyphRunList) Detach_helper1

func (this *QGlyphRunList) Detach_helper1()

void detach_helper()

func (*QGlyphRunList) Detach_helper_grow0

func (this *QGlyphRunList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QGlyphRunList) Empty0

func (this *QGlyphRunList) Empty0() bool

bool empty()

func (*QGlyphRunList) End0

func (this *QGlyphRunList) End0()

QList::iterator end()

func (*QGlyphRunList) End1

func (this *QGlyphRunList) End1()

QList::const_iterator end()

func (*QGlyphRunList) EndsWith0

func (this *QGlyphRunList) EndsWith0() bool

bool endsWith(const T &)

func (*QGlyphRunList) Erase0

func (this *QGlyphRunList) Erase0()

QList::iterator erase(QList::iterator)

func (*QGlyphRunList) Erase1

func (this *QGlyphRunList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QGlyphRunList) First0

func (this *QGlyphRunList) First0() *QGlyphRun

T & first()

func (*QGlyphRunList) First1

func (this *QGlyphRunList) First1() *QGlyphRun

const T & first()

func (*QGlyphRunList) FromSet0

func (this *QGlyphRunList) FromSet0() *QGlyphRunList

QList<T> fromSet(const QSet<T> &)

func (*QGlyphRunList) FromStdList0

func (this *QGlyphRunList) FromStdList0() *QGlyphRunList

QList<T> fromStdList(const std::list<T> &)

func (*QGlyphRunList) FromVector0

func (this *QGlyphRunList) FromVector0() *QGlyphRunList

QList<T> fromVector(const QVector<T> &)

func (*QGlyphRunList) Front0

func (this *QGlyphRunList) Front0() *QGlyphRun

T & front()

func (*QGlyphRunList) Front1

func (this *QGlyphRunList) Front1() *QGlyphRun

const T & front()

func (*QGlyphRunList) IndexOf0

func (this *QGlyphRunList) IndexOf0() int

int indexOf(const T &, int)

func (*QGlyphRunList) Insert0

func (this *QGlyphRunList) Insert0()

void insert(int, const T &)

func (*QGlyphRunList) Insert1

func (this *QGlyphRunList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QGlyphRunList) IsDetached0

func (this *QGlyphRunList) IsDetached0() bool

bool isDetached()

func (*QGlyphRunList) IsEmpty0

func (this *QGlyphRunList) IsEmpty0() bool

bool isEmpty()

func (*QGlyphRunList) IsSharedWith0

func (this *QGlyphRunList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QGlyphRunList) IsValidIterator0

func (this *QGlyphRunList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QGlyphRunList) Last0

func (this *QGlyphRunList) Last0() *QGlyphRun

T & last()

func (*QGlyphRunList) Last1

func (this *QGlyphRunList) Last1() *QGlyphRun

const T & last()

func (*QGlyphRunList) LastIndexOf0

func (this *QGlyphRunList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QGlyphRunList) Length0

func (this *QGlyphRunList) Length0() int

int length()

func (*QGlyphRunList) Mid0

func (this *QGlyphRunList) Mid0() *QGlyphRunList

QList<T> mid(int, int)

func (*QGlyphRunList) Move0

func (this *QGlyphRunList) Move0()

void move(int, int)

func (*QGlyphRunList) Node_construct0

func (this *QGlyphRunList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QGlyphRunList) Node_copy0

func (this *QGlyphRunList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QGlyphRunList) Node_destruct0

func (this *QGlyphRunList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QGlyphRunList) Node_destruct1

func (this *QGlyphRunList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QGlyphRunList) Op_eq_impl0

func (this *QGlyphRunList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QGlyphRunList) Op_eq_impl1

func (this *QGlyphRunList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QGlyphRunList) Operator_add0

func (this *QGlyphRunList) Operator_add0() *QGlyphRunList

QList<T> operator+(const QList<T> &)

func (*QGlyphRunList) Operator_add_equal0

func (this *QGlyphRunList) Operator_add_equal0() *QGlyphRunList

QList<T> & operator+=(const QList<T> &)

func (*QGlyphRunList) Operator_add_equal1

func (this *QGlyphRunList) Operator_add_equal1() *QGlyphRunList

QList<T> & operator+=(const T &)

func (*QGlyphRunList) Operator_equal0

func (this *QGlyphRunList) Operator_equal0() *QGlyphRunList

QList<T> & operator=(const QList<T> &)

func (*QGlyphRunList) Operator_equal1

func (this *QGlyphRunList) Operator_equal1() *QGlyphRunList

QList<T> & operator=(QList<T> &&)

func (*QGlyphRunList) Operator_equal_equal0

func (this *QGlyphRunList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QGlyphRunList) Operator_get_index0

func (this *QGlyphRunList) Operator_get_index0() *QGlyphRun

const T & operator[](int)

func (*QGlyphRunList) Operator_get_index1

func (this *QGlyphRunList) Operator_get_index1() *QGlyphRun

T & operator[](int)

func (*QGlyphRunList) Operator_left_shift0

func (this *QGlyphRunList) Operator_left_shift0() *QGlyphRunList

QList<T> & operator<<(const T &)

func (*QGlyphRunList) Operator_left_shift1

func (this *QGlyphRunList) Operator_left_shift1() *QGlyphRunList

QList<T> & operator<<(const QList<T> &)

func (*QGlyphRunList) Operator_not_equal0

func (this *QGlyphRunList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QGlyphRunList) Pop_back0

func (this *QGlyphRunList) Pop_back0()

void pop_back()

func (*QGlyphRunList) Pop_front0

func (this *QGlyphRunList) Pop_front0()

void pop_front()

func (*QGlyphRunList) Prepend0

func (this *QGlyphRunList) Prepend0()

void prepend(const T &)

func (*QGlyphRunList) Push_back0

func (this *QGlyphRunList) Push_back0()

void push_back(const T &)

func (*QGlyphRunList) Push_front0

func (this *QGlyphRunList) Push_front0()

void push_front(const T &)

func (*QGlyphRunList) Rbegin0

func (this *QGlyphRunList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QGlyphRunList) Rbegin1

func (this *QGlyphRunList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QGlyphRunList) RemoveAll0

func (this *QGlyphRunList) RemoveAll0() int

int removeAll(const T &)

func (*QGlyphRunList) RemoveAt0

func (this *QGlyphRunList) RemoveAt0()

void removeAt(int)

func (*QGlyphRunList) RemoveFirst0

func (this *QGlyphRunList) RemoveFirst0()

void removeFirst()

func (*QGlyphRunList) RemoveLast0

func (this *QGlyphRunList) RemoveLast0()

void removeLast()

func (*QGlyphRunList) RemoveOne0

func (this *QGlyphRunList) RemoveOne0() bool

bool removeOne(const T &)

func (*QGlyphRunList) Rend0

func (this *QGlyphRunList) Rend0()

QList::reverse_iterator rend()

func (*QGlyphRunList) Rend1

func (this *QGlyphRunList) Rend1()

QList::const_reverse_iterator rend()

func (*QGlyphRunList) Replace0

func (this *QGlyphRunList) Replace0()

void replace(int, const T &)

func (*QGlyphRunList) Reserve0

func (this *QGlyphRunList) Reserve0()

void reserve(int)

func (*QGlyphRunList) SetSharable0

func (this *QGlyphRunList) SetSharable0()

void setSharable(bool)

func (*QGlyphRunList) Size0

func (this *QGlyphRunList) Size0() int

int size()

func (*QGlyphRunList) StartsWith0

func (this *QGlyphRunList) StartsWith0() bool

bool startsWith(const T &)

func (*QGlyphRunList) Swap0

func (this *QGlyphRunList) Swap0()

void swap(QList<T> &)

func (*QGlyphRunList) Swap1

func (this *QGlyphRunList) Swap1()

void swap(int, int)

func (*QGlyphRunList) TakeAt0

func (this *QGlyphRunList) TakeAt0() *QGlyphRun

T takeAt(int)

func (*QGlyphRunList) TakeFirst0

func (this *QGlyphRunList) TakeFirst0() *QGlyphRun

T takeFirst()

func (*QGlyphRunList) TakeLast0

func (this *QGlyphRunList) TakeLast0() *QGlyphRun

T takeLast()

func (*QGlyphRunList) ToSet0

func (this *QGlyphRunList) ToSet0()

QSet<T> toSet()

func (*QGlyphRunList) ToStdList0

func (this *QGlyphRunList) ToStdList0()

std::list<T> toStdList()

func (*QGlyphRunList) ToVector0

func (this *QGlyphRunList) ToVector0()

QVector<T> toVector()

func (*QGlyphRunList) Value0

func (this *QGlyphRunList) Value0() *QGlyphRun

T value(int)

func (*QGlyphRunList) Value1

func (this *QGlyphRunList) Value1() *QGlyphRun

T value(int, const T &)

type QGlyphRun_ITF

type QGlyphRun_ITF interface {
	QGlyphRun_PTR() *QGlyphRun
}

type QGlyphRun__GlyphRunFlag

type QGlyphRun__GlyphRunFlag = int
const QGlyphRun__Overline QGlyphRun__GlyphRunFlag = 1
const QGlyphRun__RightToLeft QGlyphRun__GlyphRunFlag = 8
const QGlyphRun__SplitLigature QGlyphRun__GlyphRunFlag = 16
const QGlyphRun__StrikeOut QGlyphRun__GlyphRunFlag = 4
const QGlyphRun__Underline QGlyphRun__GlyphRunFlag = 2

type QGradient

type QGradient struct {
	*qtrt.CObject
}

func NewQGradient

func NewQGradient() *QGradient

func NewQGradient1

func NewQGradient1(arg0 int) *QGradient

func NewQGradientFromPointer

func NewQGradientFromPointer(cthis unsafe.Pointer) *QGradient

func (*QGradient) CoordinateMode

func (this *QGradient) CoordinateMode() int

func (*QGradient) CoordinateModeItemName

func (this *QGradient) CoordinateModeItemName(val int) string

func (*QGradient) GetCthis

func (this *QGradient) GetCthis() unsafe.Pointer

func (*QGradient) InterpolationMode

func (this *QGradient) InterpolationMode() int

func (*QGradient) InterpolationModeItemName

func (this *QGradient) InterpolationModeItemName(val int) string

func (*QGradient) NewForInherit

func (*QGradient) NewForInherit() *QGradient

func (*QGradient) NewForInherit1

func (*QGradient) NewForInherit1(arg0 int) *QGradient

func (*QGradient) NewFromPointer

func (*QGradient) NewFromPointer(cthis unsafe.Pointer) *QGradient

func (*QGradient) Operator_equal_equal

func (this *QGradient) Operator_equal_equal(gradient QGradient_ITF) bool

func (*QGradient) Operator_not_equal

func (this *QGradient) Operator_not_equal(other QGradient_ITF) bool

func (*QGradient) PresetItemName

func (this *QGradient) PresetItemName(val int) string

func (*QGradient) QGradient_PTR

func (ptr *QGradient) QGradient_PTR() *QGradient

func (*QGradient) SetColorAt

func (this *QGradient) SetColorAt(pos float64, color QColor_ITF)

func (*QGradient) SetCoordinateMode

func (this *QGradient) SetCoordinateMode(mode int)

func (*QGradient) SetCthis

func (this *QGradient) SetCthis(cthis unsafe.Pointer)

func (*QGradient) SetInterpolationMode

func (this *QGradient) SetInterpolationMode(mode int)

func (*QGradient) SetSpread

func (this *QGradient) SetSpread(spread int)

func (*QGradient) Spread

func (this *QGradient) Spread() int

func (*QGradient) SpreadItemName

func (this *QGradient) SpreadItemName(val int) string

func (*QGradient) Type

func (this *QGradient) Type() int

func (*QGradient) TypeItemName

func (this *QGradient) TypeItemName(val int) string

type QGradient_ITF

type QGradient_ITF interface {
	QGradient_PTR() *QGradient
}

type QGradient__CoordinateMode

type QGradient__CoordinateMode = int
const QGradient__LogicalMode QGradient__CoordinateMode = 0
const QGradient__ObjectBoundingMode QGradient__CoordinateMode = 2
const QGradient__ObjectMode QGradient__CoordinateMode = 3
const QGradient__StretchToDeviceMode QGradient__CoordinateMode = 1

type QGradient__InterpolationMode

type QGradient__InterpolationMode = int
const QGradient__ColorInterpolation QGradient__InterpolationMode = 0
const QGradient__ComponentInterpolation QGradient__InterpolationMode = 1

type QGradient__Preset

type QGradient__Preset = int
const QGradient__AboveTheSky QGradient__Preset = 116
const QGradient__AfricanField QGradient__Preset = 131
const QGradient__AlchemistLab QGradient__Preset = 87
const QGradient__AmourAmour QGradient__Preset = 97
const QGradient__AmyCrisp QGradient__Preset = 14
const QGradient__AngelCare QGradient__Preset = 158
const QGradient__AquaGuidance QGradient__Preset = 150
const QGradient__AquaSplash QGradient__Preset = 70
const QGradient__AwesomePine QGradient__Preset = 42
const QGradient__BigMango QGradient__Preset = 95
const QGradient__BlackSea QGradient__Preset = 153
const QGradient__Blessing QGradient__Preset = 31
const QGradient__BurningSpring QGradient__Preset = 65
const QGradient__CheerfulCaramel QGradient__Preset = 122
const QGradient__ChildCare QGradient__Preset = 112
const QGradient__CleanMirror QGradient__Preset = 75
const QGradient__CloudyApple QGradient__Preset = 94
const QGradient__CloudyKnoxville QGradient__Preset = 18
const QGradient__CochitiLake QGradient__Preset = 78
const QGradient__ColdEvening QGradient__Preset = 77
const QGradient__ColorfulPeach QGradient__Preset = 126
const QGradient__ConfidentCloud QGradient__Preset = 107
const QGradient__CrystalRiver QGradient__Preset = 159
const QGradient__Crystalline QGradient__Preset = 104
const QGradient__DeepBlue QGradient__Preset = 16
const QGradient__DeepRelief QGradient__Preset = 166
const QGradient__DenseWater QGradient__Preset = 118
const QGradient__DesertHump QGradient__Preset = 82
const QGradient__DirtyBeauty QGradient__Preset = 57
const QGradient__DustyGrass QGradient__Preset = 11
const QGradient__EternalConstance QGradient__Preset = 91
const QGradient__EverlastingSky QGradient__Preset = 29
const QGradient__FabledSunset QGradient__Preset = 179
const QGradient__FarawayRiver QGradient__Preset = 86
const QGradient__FebruaryInk QGradient__Preset = 51
const QGradient__FlyHigh QGradient__Preset = 47
const QGradient__FlyingLemon QGradient__Preset = 113
const QGradient__ForestInei QGradient__Preset = 143
const QGradient__FreshMilk QGradient__Preset = 49
const QGradient__FreshOasis QGradient__Preset = 163
const QGradient__FrozenBerry QGradient__Preset = 110
const QGradient__FrozenDreams QGradient__Preset = 9
const QGradient__FrozenHeat QGradient__Preset = 177
const QGradient__FruitBlend QGradient__Preset = 137
const QGradient__GagarinView QGradient__Preset = 178
const QGradient__GentleCare QGradient__Preset = 127
const QGradient__GlassWater QGradient__Preset = 134
const QGradient__GrassShampoo QGradient__Preset = 154
const QGradient__GreatWhale QGradient__Preset = 58
const QGradient__GrownEarly QGradient__Preset = 54
const QGradient__HappyAcid QGradient__Preset = 41
const QGradient__HappyFisher QGradient__Preset = 30
const QGradient__HappyMemories QGradient__Preset = 102
const QGradient__HappyUnicorn QGradient__Preset = 129
const QGradient__HealthyWater QGradient__Preset = 96
const QGradient__HeavenPeach QGradient__Preset = 68
const QGradient__HeavyRain QGradient__Preset = 13
const QGradient__HiddenJaguar QGradient__Preset = 115
const QGradient__HighFlight QGradient__Preset = 139
const QGradient__ItmeoBranding QGradient__Preset = 35
const QGradient__JapanBlush QGradient__Preset = 92
const QGradient__JuicyCake QGradient__Preset = 146
const QGradient__JuicyPeach QGradient__Preset = 4
const QGradient__JungleDay QGradient__Preset = 83
const QGradient__KindSteel QGradient__Preset = 52
const QGradient__LadogaBottom QGradient__Preset = 33
const QGradient__LadyLips QGradient__Preset = 6
const QGradient__LandingAircraft QGradient__Preset = 155
const QGradient__LeCocktail QGradient__Preset = 108
const QGradient__LemonGate QGradient__Preset = 34
const QGradient__LightBlue QGradient__Preset = 170
const QGradient__LilyMeadow QGradient__Preset = 172
const QGradient__LoveKiss QGradient__Preset = 73
const QGradient__MagicLake QGradient__Preset = 124
const QGradient__MagicRay QGradient__Preset = 175
const QGradient__MalibuBeach QGradient__Preset = 19
const QGradient__MarbleWall QGradient__Preset = 121
const QGradient__MarsParty QGradient__Preset = 90
const QGradient__MeanFruit QGradient__Preset = 15
const QGradient__MidnightBloom QGradient__Preset = 103
const QGradient__MillenniumPine QGradient__Preset = 138
const QGradient__MindCrawl QGradient__Preset = 171
const QGradient__MixedHopes QGradient__Preset = 46
const QGradient__MoleHall QGradient__Preset = 140
const QGradient__MorningSalad QGradient__Preset = 165
const QGradient__MorpheusDen QGradient__Preset = 22
const QGradient__MountainRock QGradient__Preset = 81
const QGradient__NearMoon QGradient__Preset = 24
const QGradient__Nega QGradient__Preset = 117
const QGradient__NewLife QGradient__Preset = 20
const QGradient__NewRetrowave QGradient__Preset = 114
const QGradient__NewYork QGradient__Preset = 43
const QGradient__NightCall QGradient__Preset = 168
const QGradient__NightFade QGradient__Preset = 2
const QGradient__NightParty QGradient__Preset = 66
const QGradient__NightSky QGradient__Preset = 123
const QGradient__NorseBeauty QGradient__Preset = 149
const QGradient__NorthMiracle QGradient__Preset = 136
const QGradient__OctoberSilence QGradient__Preset = 85
const QGradient__OldHat QGradient__Preset = 37
const QGradient__OrangeJuice QGradient__Preset = 133
const QGradient__OverSun QGradient__Preset = 88
const QGradient__PaloAlto QGradient__Preset = 101
const QGradient__PartyBliss QGradient__Preset = 106
const QGradient__PassionateBed QGradient__Preset = 80
const QGradient__PerfectBlue QGradient__Preset = 180
const QGradient__PerfectWhite QGradient__Preset = 162
const QGradient__PhoenixStart QGradient__Preset = 84
const QGradient__PlumBath QGradient__Preset = 128
const QGradient__PlumPlate QGradient__Preset = 28
const QGradient__PoliteRumors QGradient__Preset = 60
const QGradient__PremiumDark QGradient__Preset = 76
const QGradient__PremiumWhite QGradient__Preset = 89
const QGradient__PurpleDivision QGradient__Preset = 69
const QGradient__RainyAshville QGradient__Preset = 8
const QGradient__RareWind QGradient__Preset = 23
const QGradient__RedSalvation QGradient__Preset = 64
const QGradient__RichMetal QGradient__Preset = 145
const QGradient__RipeMalinka QGradient__Preset = 17
const QGradient__RiskyConcrete QGradient__Preset = 98
const QGradient__RiverCity QGradient__Preset = 109
const QGradient__RoyalGarden QGradient__Preset = 144
const QGradient__SaintPetersburg QGradient__Preset = 26
const QGradient__SaltMountain QGradient__Preset = 161
const QGradient__SandStrike QGradient__Preset = 148
const QGradient__SeaLord QGradient__Preset = 152
const QGradient__SeaStrike QGradient__Preset = 167
const QGradient__Seashore QGradient__Preset = 120
const QGradient__ShadyWater QGradient__Preset = 56
const QGradient__SharpBlues QGradient__Preset = 55
const QGradient__SharpeyeEagle QGradient__Preset = 32
const QGradient__ShyRainbow QGradient__Preset = 44
const QGradient__SkyGlider QGradient__Preset = 67
const QGradient__SleeplessNight QGradient__Preset = 157
const QGradient__SmartIndigo QGradient__Preset = 147
const QGradient__SmilingRain QGradient__Preset = 93
const QGradient__SnowAgain QGradient__Preset = 50
const QGradient__SoftCherish QGradient__Preset = 63
const QGradient__SoftGrass QGradient__Preset = 53
const QGradient__SoftLipstick QGradient__Preset = 160
const QGradient__SolidStone QGradient__Preset = 132
const QGradient__SpaceShift QGradient__Preset = 142
const QGradient__SpikyNaga QGradient__Preset = 72
const QGradient__SpringWarmth QGradient__Preset = 3
const QGradient__StarWine QGradient__Preset = 38
const QGradient__StrictNovember QGradient__Preset = 164
const QGradient__StrongBliss QGradient__Preset = 48
const QGradient__StrongStick QGradient__Preset = 99
const QGradient__SugarLollipop QGradient__Preset = 173
const QGradient__SummerGames QGradient__Preset = 79
const QGradient__SunVeggie QGradient__Preset = 151
const QGradient__SunnyMorning QGradient__Preset = 7
const QGradient__SupremeSky QGradient__Preset = 169
const QGradient__SweetDessert QGradient__Preset = 174
const QGradient__SweetPeriod QGradient__Preset = 61
const QGradient__TeenNotebook QGradient__Preset = 59
const QGradient__TeenParty QGradient__Preset = 176
const QGradient__TemptingAzure QGradient__Preset = 12
const QGradient__TrueSunset QGradient__Preset = 21
const QGradient__ViciousStance QGradient__Preset = 100
const QGradient__WarmFlame QGradient__Preset = 1
const QGradient__WideMatrix QGradient__Preset = 62
const QGradient__WildApple QGradient__Preset = 25
const QGradient__WinterNeva QGradient__Preset = 10
const QGradient__WitchDance QGradient__Preset = 156
const QGradient__YoungGrass QGradient__Preset = 125
const QGradient__YoungPassion QGradient__Preset = 5
const QGradient__ZeusMiracle QGradient__Preset = 36

type QGradient__Spread

type QGradient__Spread = int
const QGradient__PadSpread QGradient__Spread = 0
const QGradient__ReflectSpread QGradient__Spread = 1
const QGradient__RepeatSpread QGradient__Spread = 2

type QGradient__Type

type QGradient__Type = int
const QGradient__ConicalGradient QGradient__Type = 2
const QGradient__LinearGradient QGradient__Type = 0
const QGradient__NoGradient QGradient__Type = 3
const QGradient__RadialGradient QGradient__Type = 1

type QGuiApplication

type QGuiApplication struct {
	*qtcore.QCoreApplication
}

func NewQGuiApplication

func NewQGuiApplication(argc int, argv []string, arg2 int) *QGuiApplication

func NewQGuiApplicationFromPointer

func NewQGuiApplicationFromPointer(cthis unsafe.Pointer) *QGuiApplication

func NewQGuiApplicationp

func NewQGuiApplicationp(argc int, argv []string) *QGuiApplication

func (*QGuiApplication) AllWindows

func (this *QGuiApplication) AllWindows() *QWindowList

Returns a list of all the windows in the application.

The list is empty if there are no windows.

See also topLevelWindows().

func (*QGuiApplication) ApplicationDisplayName

func (this *QGuiApplication) ApplicationDisplayName() string

func (*QGuiApplication) ApplicationDisplayNameChanged

func (this *QGuiApplication) ApplicationDisplayNameChanged()

func (*QGuiApplication) ApplicationState

func (this *QGuiApplication) ApplicationState() int

Returns the current state of the application.

You can react to application state changes to perform actions such as stopping/resuming CPU-intensive tasks, freeing/loading resources or saving/restoring application data.

This function was introduced in Qt 5.2.

func (*QGuiApplication) ApplicationStateChanged

func (this *QGuiApplication) ApplicationStateChanged(state int)

This signal is emitted when the state of the application changes.

This function was introduced in Qt 5.2.

See also applicationState().

func (*QGuiApplication) ChangeOverrideCursor

func (this *QGuiApplication) ChangeOverrideCursor(arg0 QCursor_ITF)

Changes the currently active application override cursor to cursor.

This function has no effect if setOverrideCursor() was not called.

See also setOverrideCursor(), overrideCursor(), restoreOverrideCursor(), and QWidget::setCursor().

func (*QGuiApplication) Clipboard

func (this *QGuiApplication) Clipboard() *QClipboard

Returns the object for interacting with the clipboard.

func (*QGuiApplication) CommitDataRequest

func (this *QGuiApplication) CommitDataRequest(sessionManager QSessionManager_ITF)

This signal deals with session management. It is emitted when the QSessionManager wants the application to commit all its data.

Usually this means saving all open files, after getting permission from the user. Furthermore you may want to provide a means by which the user can cancel the shutdown.

You should not exit the application within this signal. Instead, the session manager may or may not do this afterwards, depending on the context.

Warning: Within this signal, no user interaction is possible, unless you ask the manager for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details and example usage.

Note: You should use Qt::DirectConnection when connecting to this signal.

This function was introduced in Qt 4.2.

See also setFallbackSessionManagementEnabled(), isSessionRestored(), sessionId(), saveStateRequest(), and Session Management.

func (*QGuiApplication) DesktopFileName

func (this *QGuiApplication) DesktopFileName() string

func (*QGuiApplication) DesktopSettingsAware

func (this *QGuiApplication) DesktopSettingsAware() bool

Returns true if Qt is set to use the system's standard colors, fonts, etc.; otherwise returns false. The default is true.

See also setDesktopSettingsAware().

func (*QGuiApplication) DevicePixelRatio

func (this *QGuiApplication) DevicePixelRatio() float64

Returns the highest screen device pixel ratio found on the system. This is the ratio between physical pixels and device-independent pixels.

Use this function only when you don't know which window you are targeting. If you do know the target window, use QWindow::devicePixelRatio() instead.

See also QWindow::devicePixelRatio().

func (*QGuiApplication) Event

func (this *QGuiApplication) Event(arg0 qtcore.QEvent_ITF) bool

Reimplemented from QCoreApplication::event().

func (*QGuiApplication) Exec

func (this *QGuiApplication) Exec() int

Enters the main event loop and waits until exit() is called, and then returns the value that was set to exit() (which is 0 if exit() is called via quit()).

It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.

Generally, no user interaction can take place before calling exec().

To make your application perform idle processing, e.g., executing a special function whenever there are no pending events, use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().

We recommend that you connect clean-up code to the aboutToQuit() signal, instead of putting it in your application's main() function. This is because, on some platforms, the QApplication::exec() call may not return.

See also quitOnLastWindowClosed, quit(), exit(), processEvents(), and QCoreApplication::exec().

func (*QGuiApplication) FocusObject

func (this *QGuiApplication) FocusObject() *qtcore.QObject

Returns the QObject in currently active window that will be final receiver of events tied to focus, such as key events.

func (*QGuiApplication) FocusObjectChanged

func (this *QGuiApplication) FocusObjectChanged(focusObject qtcore.QObject_ITF)

This signal is emitted when final receiver of events tied to focus is changed. focusObject is the new receiver.

See also focusObject().

func (*QGuiApplication) FocusWindow

func (this *QGuiApplication) FocusWindow() *QWindow

Returns the QWindow that receives events tied to focus, such as key events.

func (*QGuiApplication) FocusWindowChanged

func (this *QGuiApplication) FocusWindowChanged(focusWindow QWindow_ITF)

This signal is emitted when the focused window changes. focusWindow is the new focused window.

See also focusWindow().

func (*QGuiApplication) Font

func (this *QGuiApplication) Font() *QFont

Returns the default application font.

See also setFont().

func (*QGuiApplication) FontChanged

func (this *QGuiApplication) FontChanged(font QFont_ITF)

This signal is emitted when the font of the application changes.

This function was introduced in Qt 5.11.

See also font().

func (*QGuiApplication) FontDatabaseChanged

func (this *QGuiApplication) FontDatabaseChanged()

This signal is emitted when application fonts are loaded or removed.

See also QFontDatabase::addApplicationFont(), QFontDatabase::addApplicationFontFromData(), QFontDatabase::removeAllApplicationFonts(), and QFontDatabase::removeApplicationFont().

func (*QGuiApplication) GetCthis

func (this *QGuiApplication) GetCthis() unsafe.Pointer

func (*QGuiApplication) InheritEvent

func (this *QGuiApplication) InheritEvent(f func(arg0 *qtcore.QEvent) bool)

bool event(QEvent *)

func (*QGuiApplication) InputMethod

func (this *QGuiApplication) InputMethod() *QInputMethod

returns the input method.

The input method returns properties about the state and position of the virtual keyboard. It also provides information about the position of the current focused input element.

See also QInputMethod.

func (*QGuiApplication) IsFallbackSessionManagementEnabled

func (this *QGuiApplication) IsFallbackSessionManagementEnabled() bool

Returns whether QGuiApplication will use fallback session management.

The default is true.

If this is true and the session manager allows user interaction, QGuiApplication will try to close toplevel windows after commitDataRequest() has been emitted. If a window cannot be closed, session shutdown will be canceled and the application will keep running.

Fallback session management only benefits applications that have an "are you sure you want to close this window?" feature or other logic that prevents closing a toplevel window depending on certain conditions, and that do nothing to explicitly implement session management. In applications that do implement session management using the proper session management API, fallback session management interferes and may break session management logic.

Warning: If all windows are closed due to fallback session management and quitOnLastWindowClosed() is true, the application will quit before it is explicitly instructed to quit through the platform's session management protocol. That violation of protocol may prevent the platform session manager from saving application state.

This function was introduced in Qt 5.6.

See also setFallbackSessionManagementEnabled(), QSessionManager::allowsInteraction(), saveStateRequest(), commitDataRequest(), and Session Management.

func (*QGuiApplication) IsLeftToRight

func (this *QGuiApplication) IsLeftToRight() bool

Returns true if the application's layout direction is Qt::LeftToRight; otherwise returns false.

See also layoutDirection() and isRightToLeft().

func (*QGuiApplication) IsRightToLeft

func (this *QGuiApplication) IsRightToLeft() bool

Returns true if the application's layout direction is Qt::RightToLeft; otherwise returns false.

See also layoutDirection() and isLeftToRight().

func (*QGuiApplication) IsSavingSession

func (this *QGuiApplication) IsSavingSession() bool

Returns true if the application is currently saving the session; otherwise returns false.

This is true when commitDataRequest() and saveStateRequest() are emitted, but also when the windows are closed afterwards by session management.

This function was introduced in Qt 5.0.

See also sessionId(), commitDataRequest(), and saveStateRequest().

func (*QGuiApplication) IsSessionRestored

func (this *QGuiApplication) IsSessionRestored() bool

Returns true if the application has been restored from an earlier session; otherwise returns false.

See also sessionId(), commitDataRequest(), and saveStateRequest().

func (*QGuiApplication) KeyboardModifiers

func (this *QGuiApplication) KeyboardModifiers() int

Returns the current state of the modifier keys on the keyboard. The current state is updated sychronously as the event queue is emptied of events that will spontaneously change the keyboard state (QEvent::KeyPress and QEvent::KeyRelease events).

It should be noted this may not reflect the actual keys held on the input device at the time of calling but rather the modifiers as last reported in one of the above events. If no keys are being held Qt::NoModifier is returned.

See also mouseButtons() and queryKeyboardModifiers().

func (*QGuiApplication) LastWindowClosed

func (this *QGuiApplication) LastWindowClosed()

This signal is emitted from exec() when the last visible primary window (i.e. window with no parent) is closed.

By default, QGuiApplication quits after this signal is emitted. This feature can be turned off by setting quitOnLastWindowClosed to false.

See also QWindow::close() and QWindow::isTopLevel().

func (*QGuiApplication) LayoutDirection

func (this *QGuiApplication) LayoutDirection() int

func (*QGuiApplication) LayoutDirectionChanged

func (this *QGuiApplication) LayoutDirectionChanged(direction int)

func (*QGuiApplication) MetaObject

func (this *QGuiApplication) MetaObject() *qtcore.QMetaObject

func (*QGuiApplication) ModalWindow

func (this *QGuiApplication) ModalWindow() *QWindow

Returns the most recently shown modal window. If no modal windows are visible, this function returns zero.

A modal window is a window which has its modality property set to Qt::WindowModal or Qt::ApplicationModal. A modal window must be closed before the user can continue with other parts of the program.

Modal window are organized in a stack. This function returns the modal window at the top of the stack.

See also Qt::WindowModality and QWindow::setModality().

func (*QGuiApplication) MouseButtons

func (this *QGuiApplication) MouseButtons() int

Returns the current state of the buttons on the mouse. The current state is updated synchronously as the event queue is emptied of events that will spontaneously change the mouse state (QEvent::MouseButtonPress and QEvent::MouseButtonRelease events).

It should be noted this may not reflect the actual buttons held on the input device at the time of calling but rather the mouse buttons as last reported in one of the above events. If no mouse buttons are being held Qt::NoButton is returned.

See also keyboardModifiers().

func (*QGuiApplication) NewForInherit

func (*QGuiApplication) NewForInherit(argc int, argv []string, arg2 int) *QGuiApplication

Initializes the window system and constructs an application object with argc command line arguments in argv.

Warning: The data referred to by argc and argv must stay valid for the entire lifetime of the QGuiApplication object. In addition, argc must be greater than zero and argv must contain at least one valid character string.

The global qApp pointer refers to this application object. Only one application object should be created.

This application object must be constructed before any paint devices (including pixmaps, bitmaps etc.).

Note: argc and argv might be changed as Qt removes command line arguments that it recognizes.

func (*QGuiApplication) NewForInheritp

func (*QGuiApplication) NewForInheritp(argc int, argv []string) *QGuiApplication

Initializes the window system and constructs an application object with argc command line arguments in argv.

Warning: The data referred to by argc and argv must stay valid for the entire lifetime of the QGuiApplication object. In addition, argc must be greater than zero and argv must contain at least one valid character string.

The global qApp pointer refers to this application object. Only one application object should be created.

This application object must be constructed before any paint devices (including pixmaps, bitmaps etc.).

Note: argc and argv might be changed as Qt removes command line arguments that it recognizes.

func (*QGuiApplication) NewFromPointer

func (*QGuiApplication) NewFromPointer(cthis unsafe.Pointer) *QGuiApplication

func (*QGuiApplication) Notify

func (this *QGuiApplication) Notify(arg0 qtcore.QObject_ITF, arg1 qtcore.QEvent_ITF) bool

Reimplemented from QCoreApplication::notify().

func (*QGuiApplication) OverrideCursor

func (this *QGuiApplication) OverrideCursor() *QCursor

Returns the active application override cursor.

This function returns 0 if no application cursor has been defined (i.e. the internal cursor stack is empty).

See also setOverrideCursor() and restoreOverrideCursor().

func (*QGuiApplication) Palette

func (this *QGuiApplication) Palette() *QPalette

Returns the default application palette.

See also setPalette().

func (*QGuiApplication) PaletteChanged

func (this *QGuiApplication) PaletteChanged(pal QPalette_ITF)

This signal is emitted when the palette of the application changes.

This function was introduced in Qt 5.4.

See also palette().

func (*QGuiApplication) PlatformFunction

func (this *QGuiApplication) PlatformFunction(function qtcore.QByteArray_ITF) unsafe.Pointer

Returns a function pointer from the platformplugin matching function

func (*QGuiApplication) PlatformName

func (this *QGuiApplication) PlatformName() string

func (*QGuiApplication) PrimaryScreen

func (this *QGuiApplication) PrimaryScreen() *QScreen

func (*QGuiApplication) PrimaryScreenChanged

func (this *QGuiApplication) PrimaryScreenChanged(screen QScreen_ITF)

func (*QGuiApplication) QGuiApplication_PTR

func (ptr *QGuiApplication) QGuiApplication_PTR() *QGuiApplication

func (*QGuiApplication) QueryKeyboardModifiers

func (this *QGuiApplication) QueryKeyboardModifiers() int

Queries and returns the state of the modifier keys on the keyboard. Unlike keyboardModifiers, this method returns the actual keys held on the input device at the time of calling the method.

It does not rely on the keypress events having been received by this process, which makes it possible to check the modifiers while moving a window, for instance. Note that in most cases, you should use keyboardModifiers(), which is faster and more accurate since it contains the state of the modifiers as they were when the currently processed event was received.

See also keyboardModifiers().

func (*QGuiApplication) QuitOnLastWindowClosed

func (this *QGuiApplication) QuitOnLastWindowClosed() bool

func (*QGuiApplication) RestoreOverrideCursor

func (this *QGuiApplication) RestoreOverrideCursor()

Undoes the last setOverrideCursor().

If setOverrideCursor() has been called twice, calling restoreOverrideCursor() will activate the first cursor set. Calling this function a second time restores the original widgets' cursors.

See also setOverrideCursor() and overrideCursor().

func (*QGuiApplication) SaveStateRequest

func (this *QGuiApplication) SaveStateRequest(sessionManager QSessionManager_ITF)

This signal deals with session management. It is invoked when the session manager wants the application to preserve its state for a future session.

For example, a text editor would create a temporary file that includes the current contents of its edit buffers, the location of the cursor and other aspects of the current editing session.

You should never exit the application within this signal. Instead, the session manager may or may not do this afterwards, depending on the context. Furthermore, most session managers will very likely request a saved state immediately after the application has been started. This permits the session manager to learn about the application's restart policy.

Warning: Within this signal, no user interaction is possible, unless you ask the manager for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details.

Note: You should use Qt::DirectConnection when connecting to this signal.

This function was introduced in Qt 4.2.

See also isSessionRestored(), sessionId(), commitDataRequest(), and Session Management.

func (*QGuiApplication) ScreenAdded

func (this *QGuiApplication) ScreenAdded(screen QScreen_ITF)

This signal is emitted whenever a new screen screen has been added to the system.

See also screens(), primaryScreen, and screenRemoved().

func (*QGuiApplication) ScreenAt

func (this *QGuiApplication) ScreenAt(point qtcore.QPoint_ITF) *QScreen

Returns the screen at point, or nullptr if outside of any screen.

The point is in relation to the virtualGeometry() of each set of virtual siblings. If the point maps to more than one set of virtual siblings the first match is returned.

This function was introduced in Qt 5.10.

func (*QGuiApplication) ScreenRemoved

func (this *QGuiApplication) ScreenRemoved(screen QScreen_ITF)

This signal is emitted whenever a screen is removed from the system. It provides an opportunity to manage the windows on the screen before Qt falls back to moving them to the primary screen.

This function was introduced in Qt 5.4.

See also screens(), screenAdded(), QObject::destroyed(), and QWindow::setScreen().

func (*QGuiApplication) SessionId

func (this *QGuiApplication) SessionId() string

Returns the current session's identifier.

If the application has been restored from an earlier session, this identifier is the same as it was in that previous session. The session identifier is guaranteed to be unique both for different applications and for different instances of the same application.

See also isSessionRestored(), sessionKey(), commitDataRequest(), and saveStateRequest().

func (*QGuiApplication) SessionKey

func (this *QGuiApplication) SessionKey() string

Returns the session key in the current session.

If the application has been restored from an earlier session, this key is the same as it was when the previous session ended.

The session key changes every time the session is saved. If the shutdown process is cancelled, another session key will be used when shutting down again.

See also isSessionRestored(), sessionId(), commitDataRequest(), and saveStateRequest().

func (*QGuiApplication) SetApplicationDisplayName

func (this *QGuiApplication) SetApplicationDisplayName(name string)

func (*QGuiApplication) SetCthis

func (this *QGuiApplication) SetCthis(cthis unsafe.Pointer)

func (*QGuiApplication) SetDesktopFileName

func (this *QGuiApplication) SetDesktopFileName(name string)

func (*QGuiApplication) SetDesktopSettingsAware

func (this *QGuiApplication) SetDesktopSettingsAware(on bool)

Sets whether Qt should use the system's standard colors, fonts, etc., to on. By default, this is true.

This function must be called before creating the QGuiApplication object, like this:

int main(int argc, char *argv[])
{
    QApplication::setDesktopSettingsAware(false);
    QApplication app(argc, argv);
    ...
    return app.exec();
}

See also desktopSettingsAware().

func (*QGuiApplication) SetFallbackSessionManagementEnabled

func (this *QGuiApplication) SetFallbackSessionManagementEnabled(arg0 bool)

Sets whether QGuiApplication will use fallback session management to enabled.

This function was introduced in Qt 5.6.

See also isFallbackSessionManagementEnabled().

func (*QGuiApplication) SetFont

func (this *QGuiApplication) SetFont(arg0 QFont_ITF)

Changes the default application font to font.

See also font().

func (*QGuiApplication) SetLayoutDirection

func (this *QGuiApplication) SetLayoutDirection(direction int)

func (*QGuiApplication) SetOverrideCursor

func (this *QGuiApplication) SetOverrideCursor(arg0 QCursor_ITF)

Sets the application override cursor to cursor.

Application override cursors are intended for showing the user that the application is in a special state, for example during an operation that might take some time.

This cursor will be displayed in all the application's widgets until restoreOverrideCursor() or another setOverrideCursor() is called.

Application cursors are stored on an internal stack. setOverrideCursor() pushes the cursor onto the stack, and restoreOverrideCursor() pops the active cursor off the stack. changeOverrideCursor() changes the curently active application override cursor.

Every setOverrideCursor() must eventually be followed by a corresponding restoreOverrideCursor(), otherwise the stack will never be emptied.

Example:

QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
calculateHugeMandelbrot();              // lunch time...
QApplication::restoreOverrideCursor();

See also overrideCursor(), restoreOverrideCursor(), changeOverrideCursor(), and QWidget::setCursor().

func (*QGuiApplication) SetPalette

func (this *QGuiApplication) SetPalette(pal QPalette_ITF)

Changes the default application palette to pal.

See also palette().

func (*QGuiApplication) SetQuitOnLastWindowClosed

func (this *QGuiApplication) SetQuitOnLastWindowClosed(quit bool)

func (*QGuiApplication) SetWindowIcon

func (this *QGuiApplication) SetWindowIcon(icon QIcon_ITF)

func (*QGuiApplication) StyleHints

func (this *QGuiApplication) StyleHints() *QStyleHints

Returns the application's style hints.

The style hints encapsulate a set of platform dependent properties such as double click intervals, full width selection and others.

The hints can be used to integrate tighter with the underlying platform.

See also QStyleHints.

func (*QGuiApplication) Sync

func (this *QGuiApplication) Sync()

Function that can be used to sync Qt state with the Window Systems state.

This function will first empty Qts events by calling QCoreApplication::processEvents(), then the platform plugin will sync up with the windowsystem, and finally Qts events will be delived by another call to QCoreApplication::processEvents();

This function is timeconsuming and its use is discouraged.

This function was introduced in Qt 5.2.

func (*QGuiApplication) TopLevelAt

func (this *QGuiApplication) TopLevelAt(pos qtcore.QPoint_ITF) *QWindow

Returns the top level window at the given position pos, if any.

func (*QGuiApplication) TopLevelWindows

func (this *QGuiApplication) TopLevelWindows() *QWindowList

Returns a list of the top-level windows in the application.

See also allWindows().

func (*QGuiApplication) WindowIcon

func (this *QGuiApplication) WindowIcon() *QIcon

type QGuiApplication_ITF

type QGuiApplication_ITF interface {
	qtcore.QCoreApplication_ITF
	QGuiApplication_PTR() *QGuiApplication
}

type QHelpEvent

type QHelpEvent struct {
	*qtcore.QEvent
}

func NewQHelpEvent

func NewQHelpEvent(type_ int, pos qtcore.QPoint_ITF, globalPos qtcore.QPoint_ITF) *QHelpEvent

func NewQHelpEventFromPointer

func NewQHelpEventFromPointer(cthis unsafe.Pointer) *QHelpEvent

func (*QHelpEvent) GetCthis

func (this *QHelpEvent) GetCthis() unsafe.Pointer

func (*QHelpEvent) GlobalPos

func (this *QHelpEvent) GlobalPos() *qtcore.QPoint

func (*QHelpEvent) GlobalX

func (this *QHelpEvent) GlobalX() int

func (*QHelpEvent) GlobalY

func (this *QHelpEvent) GlobalY() int

func (*QHelpEvent) NewForInherit

func (*QHelpEvent) NewForInherit(type_ int, pos qtcore.QPoint_ITF, globalPos qtcore.QPoint_ITF) *QHelpEvent

func (*QHelpEvent) NewFromPointer

func (*QHelpEvent) NewFromPointer(cthis unsafe.Pointer) *QHelpEvent

func (*QHelpEvent) Pos

func (this *QHelpEvent) Pos() *qtcore.QPoint

func (*QHelpEvent) QHelpEvent_PTR

func (ptr *QHelpEvent) QHelpEvent_PTR() *QHelpEvent

func (*QHelpEvent) SetCthis

func (this *QHelpEvent) SetCthis(cthis unsafe.Pointer)

func (*QHelpEvent) X

func (this *QHelpEvent) X() int

func (*QHelpEvent) Y

func (this *QHelpEvent) Y() int

type QHelpEvent_ITF

type QHelpEvent_ITF interface {
	qtcore.QEvent_ITF
	QHelpEvent_PTR() *QHelpEvent
}

type QHideEvent

type QHideEvent struct {
	*qtcore.QEvent
}

func NewQHideEvent

func NewQHideEvent() *QHideEvent

func NewQHideEventFromPointer

func NewQHideEventFromPointer(cthis unsafe.Pointer) *QHideEvent

func (*QHideEvent) GetCthis

func (this *QHideEvent) GetCthis() unsafe.Pointer

func (*QHideEvent) NewForInherit

func (*QHideEvent) NewForInherit() *QHideEvent

func (*QHideEvent) NewFromPointer

func (*QHideEvent) NewFromPointer(cthis unsafe.Pointer) *QHideEvent

func (*QHideEvent) QHideEvent_PTR

func (ptr *QHideEvent) QHideEvent_PTR() *QHideEvent

func (*QHideEvent) SetCthis

func (this *QHideEvent) SetCthis(cthis unsafe.Pointer)

type QHideEvent_ITF

type QHideEvent_ITF interface {
	qtcore.QEvent_ITF
	QHideEvent_PTR() *QHideEvent
}

type QHoverEvent

type QHoverEvent struct {
	*QInputEvent
}

func NewQHoverEvent

func NewQHoverEvent(type_ int, pos qtcore.QPointF_ITF, oldPos qtcore.QPointF_ITF, modifiers int) *QHoverEvent

func NewQHoverEventFromPointer

func NewQHoverEventFromPointer(cthis unsafe.Pointer) *QHoverEvent

func NewQHoverEventp

func NewQHoverEventp(type_ int, pos qtcore.QPointF_ITF, oldPos qtcore.QPointF_ITF) *QHoverEvent

func (*QHoverEvent) GetCthis

func (this *QHoverEvent) GetCthis() unsafe.Pointer

func (*QHoverEvent) NewForInherit

func (*QHoverEvent) NewForInherit(type_ int, pos qtcore.QPointF_ITF, oldPos qtcore.QPointF_ITF, modifiers int) *QHoverEvent

func (*QHoverEvent) NewForInheritp

func (*QHoverEvent) NewForInheritp(type_ int, pos qtcore.QPointF_ITF, oldPos qtcore.QPointF_ITF) *QHoverEvent

func (*QHoverEvent) NewFromPointer

func (*QHoverEvent) NewFromPointer(cthis unsafe.Pointer) *QHoverEvent

func (*QHoverEvent) OldPos

func (this *QHoverEvent) OldPos() *qtcore.QPoint

func (*QHoverEvent) OldPosF

func (this *QHoverEvent) OldPosF() *qtcore.QPointF

func (*QHoverEvent) Pos

func (this *QHoverEvent) Pos() *qtcore.QPoint

func (*QHoverEvent) PosF

func (this *QHoverEvent) PosF() *qtcore.QPointF

func (*QHoverEvent) QHoverEvent_PTR

func (ptr *QHoverEvent) QHoverEvent_PTR() *QHoverEvent

func (*QHoverEvent) SetCthis

func (this *QHoverEvent) SetCthis(cthis unsafe.Pointer)

type QHoverEvent_ITF

type QHoverEvent_ITF interface {
	QInputEvent_ITF
	QHoverEvent_PTR() *QHoverEvent
}

type QIcon

type QIcon struct {
	*qtrt.CObject
}

func NewQIcon

func NewQIcon() *QIcon

func NewQIcon1

func NewQIcon1(pixmap QPixmap_ITF) *QIcon

func NewQIcon2

func NewQIcon2(fileName string) *QIcon

func NewQIcon3

func NewQIcon3(engine QIconEngine_ITF) *QIcon

func NewQIconFromPointer

func NewQIconFromPointer(cthis unsafe.Pointer) *QIcon

func QGuiApplication_WindowIcon

func QGuiApplication_WindowIcon() *QIcon

func QIcon_FromTheme

func QIcon_FromTheme(name string) *QIcon

func QIcon_FromTheme1

func QIcon_FromTheme1(name string, fallback QIcon_ITF) *QIcon

func (*QIcon) ActualSize

func (this *QIcon) ActualSize(size qtcore.QSize_ITF, mode int, state int) *qtcore.QSize

Returns the actual size of the icon for the requested size, mode, and state. The result might be smaller than requested, but never larger. The returned size is in device-independent pixels (This is relevant for high-dpi pixmaps.)

See also pixmap() and paint().

func (*QIcon) ActualSize1

func (this *QIcon) ActualSize1(window QWindow_ITF, size qtcore.QSize_ITF, mode int, state int) *qtcore.QSize

Returns the actual size of the icon for the requested size, mode, and state. The result might be smaller than requested, but never larger. The returned size is in device-independent pixels (This is relevant for high-dpi pixmaps.)

See also pixmap() and paint().

func (*QIcon) ActualSize1p

func (this *QIcon) ActualSize1p(window QWindow_ITF, size qtcore.QSize_ITF) *qtcore.QSize

Returns the actual size of the icon for the requested size, mode, and state. The result might be smaller than requested, but never larger. The returned size is in device-independent pixels (This is relevant for high-dpi pixmaps.)

See also pixmap() and paint().

func (*QIcon) ActualSize1p1

func (this *QIcon) ActualSize1p1(window QWindow_ITF, size qtcore.QSize_ITF, mode int) *qtcore.QSize

Returns the actual size of the icon for the requested size, mode, and state. The result might be smaller than requested, but never larger. The returned size is in device-independent pixels (This is relevant for high-dpi pixmaps.)

See also pixmap() and paint().

func (*QIcon) ActualSizep

func (this *QIcon) ActualSizep(size qtcore.QSize_ITF) *qtcore.QSize

Returns the actual size of the icon for the requested size, mode, and state. The result might be smaller than requested, but never larger. The returned size is in device-independent pixels (This is relevant for high-dpi pixmaps.)

See also pixmap() and paint().

func (*QIcon) ActualSizep1

func (this *QIcon) ActualSizep1(size qtcore.QSize_ITF, mode int) *qtcore.QSize

Returns the actual size of the icon for the requested size, mode, and state. The result might be smaller than requested, but never larger. The returned size is in device-independent pixels (This is relevant for high-dpi pixmaps.)

See also pixmap() and paint().

func (*QIcon) AddFile

func (this *QIcon) AddFile(fileName string, size qtcore.QSize_ITF, mode int, state int)

Adds an image from the file with the given fileName to the icon, as a specialization for size, mode and state. The file will be loaded on demand. Note: custom icon engines are free to ignore additionally added pixmaps.

If fileName contains a relative path (e.g. the filename only) the relevant file must be found relative to the runtime working directory.

The file name can refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed images and other resource files in the application's executable.

Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.

If a high resolution version of the image exists (identified by the suffix @2x on the base name), it is automatically loaded and added with the device pixel ratio set to a value of 2. This can be disabled by setting the environment variable QT_HIGHDPI_DISABLE_2X_IMAGE_LOADING (see QImageReader).

Note: When you add a non-empty filename to a QIcon, the icon becomes non-null, even if the file doesn't exist or points to a corrupt file.

See also addPixmap() and QPixmap::devicePixelRatio().

func (*QIcon) AddFilep

func (this *QIcon) AddFilep(fileName string)

Adds an image from the file with the given fileName to the icon, as a specialization for size, mode and state. The file will be loaded on demand. Note: custom icon engines are free to ignore additionally added pixmaps.

If fileName contains a relative path (e.g. the filename only) the relevant file must be found relative to the runtime working directory.

The file name can refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed images and other resource files in the application's executable.

Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.

If a high resolution version of the image exists (identified by the suffix @2x on the base name), it is automatically loaded and added with the device pixel ratio set to a value of 2. This can be disabled by setting the environment variable QT_HIGHDPI_DISABLE_2X_IMAGE_LOADING (see QImageReader).

Note: When you add a non-empty filename to a QIcon, the icon becomes non-null, even if the file doesn't exist or points to a corrupt file.

See also addPixmap() and QPixmap::devicePixelRatio().

func (*QIcon) AddFilep1

func (this *QIcon) AddFilep1(fileName string, size qtcore.QSize_ITF)

Adds an image from the file with the given fileName to the icon, as a specialization for size, mode and state. The file will be loaded on demand. Note: custom icon engines are free to ignore additionally added pixmaps.

If fileName contains a relative path (e.g. the filename only) the relevant file must be found relative to the runtime working directory.

The file name can refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed images and other resource files in the application's executable.

Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.

If a high resolution version of the image exists (identified by the suffix @2x on the base name), it is automatically loaded and added with the device pixel ratio set to a value of 2. This can be disabled by setting the environment variable QT_HIGHDPI_DISABLE_2X_IMAGE_LOADING (see QImageReader).

Note: When you add a non-empty filename to a QIcon, the icon becomes non-null, even if the file doesn't exist or points to a corrupt file.

See also addPixmap() and QPixmap::devicePixelRatio().

func (*QIcon) AddFilep2

func (this *QIcon) AddFilep2(fileName string, size qtcore.QSize_ITF, mode int)

Adds an image from the file with the given fileName to the icon, as a specialization for size, mode and state. The file will be loaded on demand. Note: custom icon engines are free to ignore additionally added pixmaps.

If fileName contains a relative path (e.g. the filename only) the relevant file must be found relative to the runtime working directory.

The file name can refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed images and other resource files in the application's executable.

Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.

If a high resolution version of the image exists (identified by the suffix @2x on the base name), it is automatically loaded and added with the device pixel ratio set to a value of 2. This can be disabled by setting the environment variable QT_HIGHDPI_DISABLE_2X_IMAGE_LOADING (see QImageReader).

Note: When you add a non-empty filename to a QIcon, the icon becomes non-null, even if the file doesn't exist or points to a corrupt file.

See also addPixmap() and QPixmap::devicePixelRatio().

func (*QIcon) AddPixmap

func (this *QIcon) AddPixmap(pixmap QPixmap_ITF, mode int, state int)

Adds pixmap to the icon, as a specialization for mode and state.

Custom icon engines are free to ignore additionally added pixmaps.

See also addFile().

func (*QIcon) AddPixmapp

func (this *QIcon) AddPixmapp(pixmap QPixmap_ITF)

Adds pixmap to the icon, as a specialization for mode and state.

Custom icon engines are free to ignore additionally added pixmaps.

See also addFile().

func (*QIcon) AddPixmapp1

func (this *QIcon) AddPixmapp1(pixmap QPixmap_ITF, mode int)

Adds pixmap to the icon, as a specialization for mode and state.

Custom icon engines are free to ignore additionally added pixmaps.

See also addFile().

func (*QIcon) AvailableSizes

func (this *QIcon) AvailableSizes(mode int, state int) *qtcore.QSizeList

Returns a list of available icon sizes for the specified mode and state.

This function was introduced in Qt 4.5.

func (*QIcon) AvailableSizesp

func (this *QIcon) AvailableSizesp() *qtcore.QSizeList

Returns a list of available icon sizes for the specified mode and state.

This function was introduced in Qt 4.5.

func (*QIcon) AvailableSizesp1

func (this *QIcon) AvailableSizesp1(mode int) *qtcore.QSizeList

Returns a list of available icon sizes for the specified mode and state.

This function was introduced in Qt 4.5.

func (*QIcon) CacheKey

func (this *QIcon) CacheKey() int64

Returns a number that identifies the contents of this QIcon object. Distinct QIcon objects can have the same key if they refer to the same contents.

The cacheKey() will change when the icon is altered via addPixmap() or addFile().

Cache keys are mostly useful in conjunction with caching.

This function was introduced in Qt 4.3.

See also QPixmap::cacheKey().

func (*QIcon) Detach

func (this *QIcon) Detach()

func (*QIcon) FallbackSearchPaths

func (this *QIcon) FallbackSearchPaths() *qtcore.QStringList

Returns the fallback search paths for icons.

The default value will depend on the platform.

This function was introduced in Qt 5.11.

See also setFallbackSearchPaths() and themeSearchPaths().

func (*QIcon) FallbackThemeName

func (this *QIcon) FallbackThemeName() string

Returns the name of the fallback icon theme.

On X11, if not set, the fallback icon theme depends on your desktop settings. On other platforms it is not set by default.

This function was introduced in Qt 5.12.

See also setFallbackThemeName() and themeName().

func (*QIcon) FromTheme

func (this *QIcon) FromTheme(name string) *QIcon

Returns the QIcon corresponding to name in the current icon theme.

The latest version of the freedesktop icon specification and naming specification can be obtained here:

http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html

To fetch an icon from the current icon theme:

QIcon undoicon = QIcon::fromTheme("edit-undo");

Note: By default, only X11 will support themed icons. In order to use themed icons on Mac and Windows, you will have to bundle a compliant theme in one of your themeSearchPaths() and set the appropriate themeName().

Note: Qt will make use of GTK's icon-theme.cache if present to speed up the lookup. These caches can be generated using gtk-update-icon-cache: https://developer.gnome.org/gtk3/stable/gtk-update-icon-cache.html.

Note: If an icon can't be found in the current theme, then it will be searched in fallbackSearchPaths() as an unthemed icon.

This function was introduced in Qt 4.6.

See also themeName(), setThemeName(), themeSearchPaths(), and fallbackSearchPaths().

func (*QIcon) FromTheme1

func (this *QIcon) FromTheme1(name string, fallback QIcon_ITF) *QIcon

Returns the QIcon corresponding to name in the current icon theme.

The latest version of the freedesktop icon specification and naming specification can be obtained here:

http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html

To fetch an icon from the current icon theme:

QIcon undoicon = QIcon::fromTheme("edit-undo");

Note: By default, only X11 will support themed icons. In order to use themed icons on Mac and Windows, you will have to bundle a compliant theme in one of your themeSearchPaths() and set the appropriate themeName().

Note: Qt will make use of GTK's icon-theme.cache if present to speed up the lookup. These caches can be generated using gtk-update-icon-cache: https://developer.gnome.org/gtk3/stable/gtk-update-icon-cache.html.

Note: If an icon can't be found in the current theme, then it will be searched in fallbackSearchPaths() as an unthemed icon.

This function was introduced in Qt 4.6.

See also themeName(), setThemeName(), themeSearchPaths(), and fallbackSearchPaths().

func (*QIcon) GetCthis

func (this *QIcon) GetCthis() unsafe.Pointer

func (*QIcon) HasThemeIcon

func (this *QIcon) HasThemeIcon(name string) bool

Returns true if there is an icon available for name in the current icon theme, otherwise returns false.

This function was introduced in Qt 4.6.

See also themeSearchPaths(), fromTheme(), and setThemeName().

func (*QIcon) IsDetached

func (this *QIcon) IsDetached() bool

func (*QIcon) IsMask

func (this *QIcon) IsMask() bool

Returns true if this icon has been marked as a mask image. Certain platforms render mask icons differently (for example, menu icons on macOS).

This function was introduced in Qt 5.6.

See also setIsMask().

func (*QIcon) IsNull

func (this *QIcon) IsNull() bool

Returns true if the icon is empty; otherwise returns false.

An icon is empty if it has neither a pixmap nor a filename.

Note: Even a non-null icon might not be able to create valid pixmaps, eg. if the file does not exist or cannot be read.

func (*QIcon) ModeItemName

func (this *QIcon) ModeItemName(val int) string

func (*QIcon) Name

func (this *QIcon) Name() string

Returns the name used to create the icon, if available.

Depending on the way the icon was created, it may have an associated name. This is the case for icons created with fromTheme() or icons using a QIconEngine which supports the QIconEngine::IconNameHook.

This function was introduced in Qt 4.7.

See also fromTheme() and QIconEngine.

func (*QIcon) NewForInherit

func (*QIcon) NewForInherit() *QIcon

Constructs a null icon.

func (*QIcon) NewForInherit1

func (*QIcon) NewForInherit1(pixmap QPixmap_ITF) *QIcon

Constructs a null icon.

func (*QIcon) NewForInherit2

func (*QIcon) NewForInherit2(fileName string) *QIcon

Constructs a null icon.

func (*QIcon) NewForInherit3

func (*QIcon) NewForInherit3(engine QIconEngine_ITF) *QIcon

Constructs a null icon.

func (*QIcon) NewFromPointer

func (*QIcon) NewFromPointer(cthis unsafe.Pointer) *QIcon

func (*QIcon) Operator_equal

func (this *QIcon) Operator_equal(other QIcon_ITF) *QIcon

func (*QIcon) Operator_equal1

func (this *QIcon) Operator_equal1(other unsafe.Pointer) *QIcon

func (*QIcon) Paint

func (this *QIcon) Paint(painter QPainter_ITF, rect qtcore.QRect_ITF, alignment int, mode int, state int)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Paint1

func (this *QIcon) Paint1(painter QPainter_ITF, x int, y int, w int, h int, alignment int, mode int, state int)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Paint1p

func (this *QIcon) Paint1p(painter QPainter_ITF, x int, y int, w int, h int)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Paint1p1

func (this *QIcon) Paint1p1(painter QPainter_ITF, x int, y int, w int, h int, alignment int)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Paint1p2

func (this *QIcon) Paint1p2(painter QPainter_ITF, x int, y int, w int, h int, alignment int, mode int)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Paintp

func (this *QIcon) Paintp(painter QPainter_ITF, rect qtcore.QRect_ITF)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Paintp1

func (this *QIcon) Paintp1(painter QPainter_ITF, rect qtcore.QRect_ITF, alignment int)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Paintp2

func (this *QIcon) Paintp2(painter QPainter_ITF, rect qtcore.QRect_ITF, alignment int, mode int)

Uses the painter to paint the icon with specified alignment, required mode, and state into the rectangle rect.

See also actualSize() and pixmap().

func (*QIcon) Pixmap

func (this *QIcon) Pixmap(size qtcore.QSize_ITF, mode int, state int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap1

func (this *QIcon) Pixmap1(w int, h int, mode int, state int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap1p

func (this *QIcon) Pixmap1p(w int, h int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap1p1

func (this *QIcon) Pixmap1p1(w int, h int, mode int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap2

func (this *QIcon) Pixmap2(extent int, mode int, state int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap2p

func (this *QIcon) Pixmap2p(extent int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap2p1

func (this *QIcon) Pixmap2p1(extent int, mode int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap3

func (this *QIcon) Pixmap3(window QWindow_ITF, size qtcore.QSize_ITF, mode int, state int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap3p

func (this *QIcon) Pixmap3p(window QWindow_ITF, size qtcore.QSize_ITF) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmap3p1

func (this *QIcon) Pixmap3p1(window QWindow_ITF, size qtcore.QSize_ITF, mode int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmapp

func (this *QIcon) Pixmapp(size qtcore.QSize_ITF) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) Pixmapp1

func (this *QIcon) Pixmapp1(size qtcore.QSize_ITF, mode int) *QPixmap

Returns a pixmap with the requested size, mode, and state, generating one if necessary. The pixmap might be smaller than requested, but never larger.

Setting the Qt::AA_UseHighDpiPixmaps application attribute enables this function to return pixmaps that are larger than the requested size. Such images will have a devicePixelRatio larger than 1.

See also actualSize() and paint().

func (*QIcon) QIcon_PTR

func (ptr *QIcon) QIcon_PTR() *QIcon

func (*QIcon) SetCthis

func (this *QIcon) SetCthis(cthis unsafe.Pointer)

func (*QIcon) SetFallbackSearchPaths

func (this *QIcon) SetFallbackSearchPaths(paths qtcore.QStringList_ITF)

Sets the fallback search paths for icons to paths.

Note: To add some path without replacing existing ones:

QIcon::setFallbackSearchPaths(QIcon::fallbackSearchPaths() << "my/search/path");

This function was introduced in Qt 5.11.

See also fallbackSearchPaths() and setThemeSearchPaths().

func (*QIcon) SetFallbackThemeName

func (this *QIcon) SetFallbackThemeName(name string)

Sets the fallback icon theme to name.

The name should correspond to a directory name in the themeSearchPath() containing an index.theme file describing its contents.

This function was introduced in Qt 5.12.

See also fallbackThemeName(), themeSearchPaths(), and themeName().

func (*QIcon) SetIsMask

func (this *QIcon) SetIsMask(isMask bool)

Indicate that this icon is a mask image(boolean isMask), and hence can potentially be modified based on where it's displayed.

This function was introduced in Qt 5.6.

See also isMask().

func (*QIcon) SetThemeName

func (this *QIcon) SetThemeName(path string)

Sets the current icon theme to name.

The name should correspond to a directory name in the themeSearchPath() containing an index.theme file describing its contents.

This function was introduced in Qt 4.6.

See also themeSearchPaths() and themeName().

func (*QIcon) SetThemeSearchPaths

func (this *QIcon) SetThemeSearchPaths(searchpath qtcore.QStringList_ITF)

Sets the search paths for icon themes to paths.

This function was introduced in Qt 4.6.

See also themeSearchPaths(), fromTheme(), and setThemeName().

func (*QIcon) StateItemName

func (this *QIcon) StateItemName(val int) string

func (*QIcon) Swap

func (this *QIcon) Swap(other QIcon_ITF)

Swaps icon other with this icon. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QIcon) ThemeName

func (this *QIcon) ThemeName() string

Returns the name of the current icon theme.

On X11, the current icon theme depends on your desktop settings. On other platforms it is not set by default.

This function was introduced in Qt 4.6.

See also setThemeName(), themeSearchPaths(), fromTheme(), and hasThemeIcon().

func (*QIcon) ThemeSearchPaths

func (this *QIcon) ThemeSearchPaths() *qtcore.QStringList

Returns the search paths for icon themes.

The default value will depend on the platform:

On X11, the search path will use the XDG_DATA_DIRS environment variable if available.

By default all platforms will have the resource directory :\icons as a fallback. You can use "rcc -project" to generate a resource file from your icon theme.

This function was introduced in Qt 4.6.

See also setThemeSearchPaths(), fromTheme(), and setThemeName().

type QIconDragEvent

type QIconDragEvent struct {
	*qtcore.QEvent
}

func NewQIconDragEvent

func NewQIconDragEvent() *QIconDragEvent

func NewQIconDragEventFromPointer

func NewQIconDragEventFromPointer(cthis unsafe.Pointer) *QIconDragEvent

func (*QIconDragEvent) GetCthis

func (this *QIconDragEvent) GetCthis() unsafe.Pointer

func (*QIconDragEvent) NewForInherit

func (*QIconDragEvent) NewForInherit() *QIconDragEvent

func (*QIconDragEvent) NewFromPointer

func (*QIconDragEvent) NewFromPointer(cthis unsafe.Pointer) *QIconDragEvent

func (*QIconDragEvent) QIconDragEvent_PTR

func (ptr *QIconDragEvent) QIconDragEvent_PTR() *QIconDragEvent

func (*QIconDragEvent) SetCthis

func (this *QIconDragEvent) SetCthis(cthis unsafe.Pointer)

type QIconDragEvent_ITF

type QIconDragEvent_ITF interface {
	qtcore.QEvent_ITF
	QIconDragEvent_PTR() *QIconDragEvent
}

type QIconEngine

type QIconEngine struct {
	*qtrt.CObject
}

func NewQIconEngine

func NewQIconEngine() *QIconEngine

func NewQIconEngineFromPointer

func NewQIconEngineFromPointer(cthis unsafe.Pointer) *QIconEngine

func (*QIconEngine) ActualSize

func (this *QIconEngine) ActualSize(size qtcore.QSize_ITF, mode int, state int) *qtcore.QSize

Returns the actual size of the icon the engine provides for the requested size, mode and state. The default implementation returns the given size.

func (*QIconEngine) AddFile

func (this *QIconEngine) AddFile(fileName string, size qtcore.QSize_ITF, mode int, state int)

Called by QIcon::addFile(). Adds a specialized pixmap from the file with the given fileName, size, mode and state. The default pixmap-based engine stores any supplied file names, and it loads the pixmaps on demand instead of using scaled pixmaps if the size of a pixmap matches the size of icon requested. Custom icon engines that implement scalable vector formats are free to ignores any extra files.

func (*QIconEngine) AddPixmap

func (this *QIconEngine) AddPixmap(pixmap QPixmap_ITF, mode int, state int)

Called by QIcon::addPixmap(). Adds a specialized pixmap for the given mode and state. The default pixmap-based engine stores any supplied pixmaps, and it uses them instead of scaled pixmaps if the size of a pixmap matches the size of icon requested. Custom icon engines that implement scalable vector formats are free to ignores any extra pixmaps.

func (*QIconEngine) AvailableSizes

func (this *QIconEngine) AvailableSizes(mode int, state int) *qtcore.QSizeList

Returns sizes of all images that are contained in the engine for the specific mode and state.

Note: This is a helper method and the actual work is done by the virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines.

This function was introduced in Qt 4.5.

func (*QIconEngine) AvailableSizesp

func (this *QIconEngine) AvailableSizesp() *qtcore.QSizeList

Returns sizes of all images that are contained in the engine for the specific mode and state.

Note: This is a helper method and the actual work is done by the virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines.

This function was introduced in Qt 4.5.

func (*QIconEngine) AvailableSizesp1

func (this *QIconEngine) AvailableSizesp1(mode int) *qtcore.QSizeList

Returns sizes of all images that are contained in the engine for the specific mode and state.

Note: This is a helper method and the actual work is done by the virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines.

This function was introduced in Qt 4.5.

func (*QIconEngine) Clone

func (this *QIconEngine) Clone() *QIconEngine

Reimplement this method to return a clone of this icon engine.

func (*QIconEngine) GetCthis

func (this *QIconEngine) GetCthis() unsafe.Pointer

func (*QIconEngine) IconEngineHookItemName

func (this *QIconEngine) IconEngineHookItemName(val int) string

func (*QIconEngine) IconName

func (this *QIconEngine) IconName() string

Returns the name used to create the engine, if available.

Note: This is a helper method and the actual work is done by the virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines.

This function was introduced in Qt 4.7.

func (*QIconEngine) IsNull

func (this *QIconEngine) IsNull() bool

Returns true if this icon engine represent a null QIcon.

Note: This is a helper method and the actual work is done by the virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines.

This function was introduced in Qt 5.7.

func (*QIconEngine) Key

func (this *QIconEngine) Key() string

Returns a key that identifies this icon engine.

func (*QIconEngine) NewForInherit

func (*QIconEngine) NewForInherit() *QIconEngine

Constructs the icon engine.

This function was introduced in Qt 5.6.

func (*QIconEngine) NewFromPointer

func (*QIconEngine) NewFromPointer(cthis unsafe.Pointer) *QIconEngine

func (*QIconEngine) Paint

func (this *QIconEngine) Paint(painter QPainter_ITF, rect qtcore.QRect_ITF, mode int, state int)

Uses the given painter to paint the icon with the required mode and state into the rectangle rect.

func (*QIconEngine) Pixmap

func (this *QIconEngine) Pixmap(size qtcore.QSize_ITF, mode int, state int) *QPixmap

Returns the icon as a pixmap with the required size, mode, and state. The default implementation creates a new pixmap and calls paint() to fill it.

func (*QIconEngine) QIconEngine_PTR

func (ptr *QIconEngine) QIconEngine_PTR() *QIconEngine

func (*QIconEngine) Read

func (this *QIconEngine) Read(in qtcore.QDataStream_ITF) bool

Reads icon engine contents from the QDataStream in. Returns true if the contents were read; otherwise returns false.

QIconEngine's default implementation always return false.

func (*QIconEngine) ScaledPixmap

func (this *QIconEngine) ScaledPixmap(size qtcore.QSize_ITF, mode int, state int, scale float64) *QPixmap

Returns a pixmap for the given size, mode, state and scale.

The scale argument is typically equal to the device pixel ratio of the display.

Note: This is a helper method and the actual work is done by the virtual_hook() method, hence this method depends on icon engine support and may not work with all icon engines.

Note: Some engines may cast scale to an integer.

This function was introduced in Qt 5.9.

See also ScaledPixmapArgument.

func (*QIconEngine) SetCthis

func (this *QIconEngine) SetCthis(cthis unsafe.Pointer)

func (*QIconEngine) Virtual_hook

func (this *QIconEngine) Virtual_hook(id int, data unsafe.Pointer)

Additional method to allow extending QIconEngine without adding new virtual methods (and without breaking binary compatibility). The actual action and format of data depends on id argument which is in fact a constant from IconEngineHook enum.

This function was introduced in Qt 4.5.

See also IconEngineHook.

func (*QIconEngine) Write

func (this *QIconEngine) Write(out_ qtcore.QDataStream_ITF) bool

Writes the contents of this engine to the QDataStream out. Returns true if the contents were written; otherwise returns false.

QIconEngine's default implementation always return false.

type QIconEnginePlugin

type QIconEnginePlugin struct {
	*qtcore.QObject
}

func NewQIconEnginePlugin

func NewQIconEnginePlugin(parent qtcore.QObject_ITF) *QIconEnginePlugin

func NewQIconEnginePluginFromPointer

func NewQIconEnginePluginFromPointer(cthis unsafe.Pointer) *QIconEnginePlugin

func NewQIconEnginePluginp

func NewQIconEnginePluginp() *QIconEnginePlugin

func (*QIconEnginePlugin) Create

func (this *QIconEnginePlugin) Create(filename string) *QIconEngine

Creates and returns a QIconEngine object for the icon with the given filename.

func (*QIconEnginePlugin) Createp

func (this *QIconEnginePlugin) Createp() *QIconEngine

Creates and returns a QIconEngine object for the icon with the given filename.

func (*QIconEnginePlugin) GetCthis

func (this *QIconEnginePlugin) GetCthis() unsafe.Pointer

func (*QIconEnginePlugin) MetaObject

func (this *QIconEnginePlugin) MetaObject() *qtcore.QMetaObject

func (*QIconEnginePlugin) NewForInherit

func (*QIconEnginePlugin) NewForInherit(parent qtcore.QObject_ITF) *QIconEnginePlugin

Constructs a icon engine plugin with the given parent. This is invoked automatically by the plugin loader.

func (*QIconEnginePlugin) NewForInheritp

func (*QIconEnginePlugin) NewForInheritp() *QIconEnginePlugin

Constructs a icon engine plugin with the given parent. This is invoked automatically by the plugin loader.

func (*QIconEnginePlugin) NewFromPointer

func (*QIconEnginePlugin) NewFromPointer(cthis unsafe.Pointer) *QIconEnginePlugin

func (*QIconEnginePlugin) QIconEnginePlugin_PTR

func (ptr *QIconEnginePlugin) QIconEnginePlugin_PTR() *QIconEnginePlugin

func (*QIconEnginePlugin) SetCthis

func (this *QIconEnginePlugin) SetCthis(cthis unsafe.Pointer)

type QIconEnginePlugin_ITF

type QIconEnginePlugin_ITF interface {
	qtcore.QObject_ITF
	QIconEnginePlugin_PTR() *QIconEnginePlugin
}

type QIconEngine_ITF

type QIconEngine_ITF interface {
	QIconEngine_PTR() *QIconEngine
}

type QIconEngine__IconEngineHook

type QIconEngine__IconEngineHook = int

These enum values are used for virtual_hook() to allow additional queries to icon engine without breaking binary compatibility.

This enum was introduced or modified in Qt 4.5.

See also virtual_hook().

const QIconEngine__AvailableSizesHook QIconEngine__IconEngineHook = 1

Allows to query the sizes of the contained pixmaps for pixmap-based engines. The data argument of the virtual_hook() function is a AvailableSizesArgument pointer that should be filled with icon sizes. Engines that work in terms of a scalable, vectorial format normally return an empty list.

const QIconEngine__IconNameHook QIconEngine__IconEngineHook = 2

Allows to query the name used to create the icon, for example when instantiating an icon using QIcon::fromTheme().

const QIconEngine__IsNullHook QIconEngine__IconEngineHook = 3
const QIconEngine__ScaledPixmapHook QIconEngine__IconEngineHook = 4

type QIcon_ITF

type QIcon_ITF interface {
	QIcon_PTR() *QIcon
}

type QIcon__Mode

type QIcon__Mode = int

This enum type describes the mode for which a pixmap is intended to be used. The currently defined modes are:

const QIcon__Active QIcon__Mode = 2

Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it.

const QIcon__Disabled QIcon__Mode = 1

Display the pixmap when the functionality represented by the icon is not available.

const QIcon__Normal QIcon__Mode = 0

Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available.

const QIcon__Selected QIcon__Mode = 3

Display the pixmap when the item represented by the icon is selected.

type QIcon__State

type QIcon__State = int

This enum describes the state for which a pixmap is intended to be used. The state can be:

const QIcon__Off QIcon__State = 1

Display the pixmap when the widget is in an "off" state

const QIcon__On QIcon__State = 0

Display the pixmap when the widget is in an "on" state

type QImage

type QImage struct {
	*QPaintDevice
}

func NewQImage

func NewQImage() *QImage

func NewQImage1

func NewQImage1(size qtcore.QSize_ITF, format int) *QImage

func NewQImage2

func NewQImage2(width int, height int, format int) *QImage

func NewQImage3

func NewQImage3(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

func NewQImage3p

func NewQImage3p(data unsafe.Pointer, width int, height int, format int) *QImage

func NewQImage3p1

func NewQImage3p1(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer) *QImage

func NewQImage4

func NewQImage4(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

func NewQImage4p

func NewQImage4p(data unsafe.Pointer, width int, height int, format int) *QImage

func NewQImage4p1

func NewQImage4p1(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer) *QImage

func NewQImage5

func NewQImage5(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

func NewQImage5p

func NewQImage5p(data unsafe.Pointer, width int, height int, bytesPerLine int, format int) *QImage

func NewQImage5p1

func NewQImage5p1(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer) *QImage

func NewQImage6

func NewQImage6(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

func NewQImage6p

func NewQImage6p(data unsafe.Pointer, width int, height int, bytesPerLine int, format int) *QImage

func NewQImage6p1

func NewQImage6p1(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer) *QImage

func NewQImage7

func NewQImage7(xpm []string) *QImage

func NewQImage8

func NewQImage8(fileName string, format string) *QImage

func NewQImage8p

func NewQImage8p(fileName string) *QImage

func NewQImageFromPointer

func NewQImageFromPointer(cthis unsafe.Pointer) *QImage

func QImage_FromData

func QImage_FromData(data unsafe.Pointer, size int, format string) *QImage

func QImage_FromData1

func QImage_FromData1(data qtcore.QByteArray_ITF, format string) *QImage

func (*QImage) AllGray

func (this *QImage) AllGray() bool

Returns true if all the colors in the image are shades of gray (i.e. their red, green and blue components are equal); otherwise false.

Note that this function is slow for images without color table.

See also isGrayscale().

func (*QImage) AlphaChannel

func (this *QImage) AlphaChannel() *QImage

func (*QImage) BitPlaneCount

func (this *QImage) BitPlaneCount() int

Returns the number of bit planes in the image.

The number of bit planes is the number of bits of color and transparency information for each pixel. This is different from (i.e. smaller than) the depth when the image format contains unused bits.

This function was introduced in Qt 4.7.

See also depth(), format(), and Image Formats.

func (*QImage) Bits

func (this *QImage) Bits() unsafe.Pointer

Returns a pointer to the first pixel data. This is equivalent to scanLine(0).

Note that QImage uses implicit data sharing. This function performs a deep copy of the shared pixel data, thus ensuring that this QImage is the only one using the current return value.

See also scanLine(), sizeInBytes(), and constBits().

func (*QImage) Bits1

func (this *QImage) Bits1() unsafe.Pointer

Returns a pointer to the first pixel data. This is equivalent to scanLine(0).

Note that QImage uses implicit data sharing. This function performs a deep copy of the shared pixel data, thus ensuring that this QImage is the only one using the current return value.

See also scanLine(), sizeInBytes(), and constBits().

func (*QImage) ByteCount

func (this *QImage) ByteCount() int

func (*QImage) BytesPerLine

func (this *QImage) BytesPerLine() int

Returns the number of bytes per image scanline.

This is equivalent to sizeInBytes() / height() if height() is non-zero.

See also scanLine().

func (*QImage) CacheKey

func (this *QImage) CacheKey() int64

Returns a number that identifies the contents of this QImage object. Distinct QImage objects can only have the same key if they refer to the same contents.

The key will change when the image is altered.

func (*QImage) Color

func (this *QImage) Color(i int) uint

Returns the color in the color table at index i. The first color is at index 0.

The colors in an image's color table are specified as ARGB quadruplets (QRgb). Use the qAlpha(), qRed(), qGreen(), and qBlue() functions to get the color value components.

See also setColor(), pixelIndex(), and Pixel Manipulation.

func (*QImage) ColorCount

func (this *QImage) ColorCount() int

Returns the size of the color table for the image.

Notice that colorCount() returns 0 for 32-bpp images because these images do not use color tables, but instead encode pixel values as ARGB quadruplets.

This function was introduced in Qt 4.6.

See also setColorCount() and Image Information.

func (*QImage) ConstBits

func (this *QImage) ConstBits() unsafe.Pointer

Returns a pointer to the first pixel data.

Note that QImage uses implicit data sharing, but this function does not perform a deep copy of the shared pixel data, because the returned data is const.

This function was introduced in Qt 4.7.

See also bits() and constScanLine().

func (*QImage) ConstScanLine

func (this *QImage) ConstScanLine(arg0 int) unsafe.Pointer

Returns a pointer to the pixel data at the scanline with index i. The first scanline is at index 0.

The scanline data is aligned on a 32-bit boundary.

Note that QImage uses implicit data sharing, but this function does not perform a deep copy of the shared pixel data, because the returned data is const.

This function was introduced in Qt 4.7.

See also scanLine() and constBits().

func (*QImage) ConvertToFormat

func (this *QImage) ConvertToFormat(f int, flags int) *QImage

func (*QImage) ConvertToFormat1

func (this *QImage) ConvertToFormat1(f int, flags int) *QImage

func (*QImage) ConvertToFormat1p

func (this *QImage) ConvertToFormat1p(f int) *QImage

func (*QImage) ConvertToFormat_helper

func (this *QImage) ConvertToFormat_helper(format int, flags int) *QImage

func (*QImage) ConvertToFormat_inplace

func (this *QImage) ConvertToFormat_inplace(format int, flags int) bool

func (*QImage) ConvertToFormatp

func (this *QImage) ConvertToFormatp(f int) *QImage

func (*QImage) Copy

func (this *QImage) Copy(rect qtcore.QRect_ITF) *QImage

Returns a sub-area of the image as a new image.

The returned image is copied from the position (rectangle.x(), rectangle.y()) in this image, and will always have the size of the given rectangle.

In areas beyond this image, pixels are set to 0. For 32-bit RGB images, this means black; for 32-bit ARGB images, this means transparent black; for 8-bit images, this means the color with index 0 in the color table which can be anything; for 1-bit images, this means Qt::color0.

If the given rectangle is a null rectangle the entire image is copied.

See also QImage().

func (*QImage) Copy1

func (this *QImage) Copy1(x int, y int, w int, h int) *QImage

Returns a sub-area of the image as a new image.

The returned image is copied from the position (rectangle.x(), rectangle.y()) in this image, and will always have the size of the given rectangle.

In areas beyond this image, pixels are set to 0. For 32-bit RGB images, this means black; for 32-bit ARGB images, this means transparent black; for 8-bit images, this means the color with index 0 in the color table which can be anything; for 1-bit images, this means Qt::color0.

If the given rectangle is a null rectangle the entire image is copied.

See also QImage().

func (*QImage) Copyp

func (this *QImage) Copyp() *QImage

Returns a sub-area of the image as a new image.

The returned image is copied from the position (rectangle.x(), rectangle.y()) in this image, and will always have the size of the given rectangle.

In areas beyond this image, pixels are set to 0. For 32-bit RGB images, this means black; for 32-bit ARGB images, this means transparent black; for 8-bit images, this means the color with index 0 in the color table which can be anything; for 1-bit images, this means Qt::color0.

If the given rectangle is a null rectangle the entire image is copied.

See also QImage().

func (*QImage) CreateAlphaMask

func (this *QImage) CreateAlphaMask(flags int) *QImage

Builds and returns a 1-bpp mask from the alpha buffer in this image. Returns a null image if the image's format is QImage::Format_RGB32.

The flags argument is a bitwise-OR of the Qt::ImageConversionFlags, and controls the conversion process. Passing 0 for flags sets all the default options.

The returned image has little-endian bit order (i.e. the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the convertToFormat() function.

See also createHeuristicMask() and Image Transformations.

func (*QImage) CreateAlphaMaskp

func (this *QImage) CreateAlphaMaskp() *QImage

Builds and returns a 1-bpp mask from the alpha buffer in this image. Returns a null image if the image's format is QImage::Format_RGB32.

The flags argument is a bitwise-OR of the Qt::ImageConversionFlags, and controls the conversion process. Passing 0 for flags sets all the default options.

The returned image has little-endian bit order (i.e. the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the convertToFormat() function.

See also createHeuristicMask() and Image Transformations.

func (*QImage) CreateHeuristicMask

func (this *QImage) CreateHeuristicMask(clipTight bool) *QImage

Creates and returns a 1-bpp heuristic mask for this image.

The function works by selecting a color from one of the corners, then chipping away pixels of that color starting at all the edges. The four corners vote for which color is to be masked away. In case of a draw (this generally means that this function is not applicable to the image), the result is arbitrary.

The returned image has little-endian bit order (i.e. the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the convertToFormat() function.

If clipTight is true (the default) the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.

Note that this function disregards the alpha buffer.

See also createAlphaMask() and Image Transformations.

func (*QImage) CreateHeuristicMaskp

func (this *QImage) CreateHeuristicMaskp() *QImage

Creates and returns a 1-bpp heuristic mask for this image.

The function works by selecting a color from one of the corners, then chipping away pixels of that color starting at all the edges. The four corners vote for which color is to be masked away. In case of a draw (this generally means that this function is not applicable to the image), the result is arbitrary.

The returned image has little-endian bit order (i.e. the image's format is QImage::Format_MonoLSB), which you can convert to big-endian (QImage::Format_Mono) using the convertToFormat() function.

If clipTight is true (the default) the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.

Note that this function disregards the alpha buffer.

See also createAlphaMask() and Image Transformations.

func (*QImage) CreateMaskFromColor

func (this *QImage) CreateMaskFromColor(color uint, mode int) *QImage

Creates and returns a mask for this image based on the given color value. If the mode is MaskInColor (the default value), all pixels matching color will be opaque pixels in the mask. If mode is MaskOutColor, all pixels matching the given color will be transparent.

See also createAlphaMask() and createHeuristicMask().

func (*QImage) CreateMaskFromColorp

func (this *QImage) CreateMaskFromColorp(color uint) *QImage

Creates and returns a mask for this image based on the given color value. If the mode is MaskInColor (the default value), all pixels matching color will be opaque pixels in the mask. If mode is MaskOutColor, all pixels matching the given color will be transparent.

See also createAlphaMask() and createHeuristicMask().

func (*QImage) Depth

func (this *QImage) Depth() int

Returns the depth of the image.

The image depth is the number of bits used to store a single pixel, also called bits per pixel (bpp).

The supported depths are 1, 8, 16, 24 and 32.

See also bitPlaneCount(), convertToFormat(), Image Formats, and Image Information.

func (*QImage) Detach

func (this *QImage) Detach()

func (*QImage) DevType

func (this *QImage) DevType() int

func (*QImage) DevicePixelRatio

func (this *QImage) DevicePixelRatio() float64

Returns the device pixel ratio for the image. This is the ratio between device pixels and device independent pixels.

Use this function when calculating layout geometry based on the image size: QSize layoutSize = image.size() / image.devicePixelRatio()

The default value is 1.0.

See also setDevicePixelRatio() and QImageReader.

func (*QImage) DotsPerMeterX

func (this *QImage) DotsPerMeterX() int

Returns the number of pixels that fit horizontally in a physical meter. Together with dotsPerMeterY(), this number defines the intended scale and aspect ratio of the image.

See also setDotsPerMeterX() and Image Information.

func (*QImage) DotsPerMeterY

func (this *QImage) DotsPerMeterY() int

Returns the number of pixels that fit vertically in a physical meter. Together with dotsPerMeterX(), this number defines the intended scale and aspect ratio of the image.

See also setDotsPerMeterY() and Image Information.

func (*QImage) Fill

func (this *QImage) Fill(pixel uint)

Fills the entire image with the given pixelValue.

If the depth of this image is 1, only the lowest bit is used. If you say fill(0), fill(2), etc., the image is filled with 0s. If you say fill(1), fill(3), etc., the image is filled with 1s. If the depth is 8, the lowest 8 bits are used and if the depth is 16 the lowest 16 bits are used.

Note: QImage::pixel() returns the color of the pixel at the given coordinates while QColor::pixel() returns the pixel value of the underlying window system (essentially an index value), so normally you will want to use QImage::pixel() to use a color from an existing image or QColor::rgb() to use a specific color.

See also depth() and Image Transformations.

func (*QImage) Fill1

func (this *QImage) Fill1(color QColor_ITF)

Fills the entire image with the given pixelValue.

If the depth of this image is 1, only the lowest bit is used. If you say fill(0), fill(2), etc., the image is filled with 0s. If you say fill(1), fill(3), etc., the image is filled with 1s. If the depth is 8, the lowest 8 bits are used and if the depth is 16 the lowest 16 bits are used.

Note: QImage::pixel() returns the color of the pixel at the given coordinates while QColor::pixel() returns the pixel value of the underlying window system (essentially an index value), so normally you will want to use QImage::pixel() to use a color from an existing image or QColor::rgb() to use a specific color.

See also depth() and Image Transformations.

func (*QImage) Fill2

func (this *QImage) Fill2(color int)

Fills the entire image with the given pixelValue.

If the depth of this image is 1, only the lowest bit is used. If you say fill(0), fill(2), etc., the image is filled with 0s. If you say fill(1), fill(3), etc., the image is filled with 1s. If the depth is 8, the lowest 8 bits are used and if the depth is 16 the lowest 16 bits are used.

Note: QImage::pixel() returns the color of the pixel at the given coordinates while QColor::pixel() returns the pixel value of the underlying window system (essentially an index value), so normally you will want to use QImage::pixel() to use a color from an existing image or QColor::rgb() to use a specific color.

See also depth() and Image Transformations.

func (*QImage) Format

func (this *QImage) Format() int

Returns the format of the image.

See also Image Formats.

func (*QImage) FormatItemName

func (this *QImage) FormatItemName(val int) string

func (*QImage) FromData

func (this *QImage) FromData(data unsafe.Pointer, size int, format string) *QImage

Constructs a QImage from the first size bytes of the given binary data. The loader attempts to read the image using the specified format. If format is not specified (which is the default), the loader probes the data for a header to guess the file format.

If format is specified, it must be one of the values returned by QImageReader::supportedImageFormats().

If the loading of the image fails, the image returned will be a null image.

See also load(), save(), and Reading and Writing Image Files.

func (*QImage) FromData1

func (this *QImage) FromData1(data qtcore.QByteArray_ITF, format string) *QImage

Constructs a QImage from the first size bytes of the given binary data. The loader attempts to read the image using the specified format. If format is not specified (which is the default), the loader probes the data for a header to guess the file format.

If format is specified, it must be one of the values returned by QImageReader::supportedImageFormats().

If the loading of the image fails, the image returned will be a null image.

See also load(), save(), and Reading and Writing Image Files.

func (*QImage) FromData1p

func (this *QImage) FromData1p(data qtcore.QByteArray_ITF) *QImage

Constructs a QImage from the first size bytes of the given binary data. The loader attempts to read the image using the specified format. If format is not specified (which is the default), the loader probes the data for a header to guess the file format.

If format is specified, it must be one of the values returned by QImageReader::supportedImageFormats().

If the loading of the image fails, the image returned will be a null image.

See also load(), save(), and Reading and Writing Image Files.

func (*QImage) FromDatap

func (this *QImage) FromDatap(data unsafe.Pointer, size int) *QImage

Constructs a QImage from the first size bytes of the given binary data. The loader attempts to read the image using the specified format. If format is not specified (which is the default), the loader probes the data for a header to guess the file format.

If format is specified, it must be one of the values returned by QImageReader::supportedImageFormats().

If the loading of the image fails, the image returned will be a null image.

See also load(), save(), and Reading and Writing Image Files.

func (*QImage) GetCthis

func (this *QImage) GetCthis() unsafe.Pointer

func (*QImage) HasAlphaChannel

func (this *QImage) HasAlphaChannel() bool

Returns true if the image has a format that respects the alpha channel, otherwise returns false.

See also Image Information.

func (*QImage) Height

func (this *QImage) Height() int

Returns the height of the image.

See also Image Information.

func (*QImage) InheritConvertToFormat_helper

func (this *QImage) InheritConvertToFormat_helper(f func(format int, flags int) unsafe.Pointer)

QImage convertToFormat_helper(QImage::Format, Qt::ImageConversionFlags)

func (*QImage) InheritConvertToFormat_inplace

func (this *QImage) InheritConvertToFormat_inplace(f func(format int, flags int) bool)

bool convertToFormat_inplace(QImage::Format, Qt::ImageConversionFlags)

func (*QImage) InheritMetric

func (this *QImage) InheritMetric(f func(metric int) int)

int metric(QPaintDevice::PaintDeviceMetric)

func (*QImage) InheritMirrored_helper

func (this *QImage) InheritMirrored_helper(f func(horizontal bool, vertical bool) unsafe.Pointer)

QImage mirrored_helper(bool, bool)

func (*QImage) InheritMirrored_inplace

func (this *QImage) InheritMirrored_inplace(f func(horizontal bool, vertical bool))

void mirrored_inplace(bool, bool)

func (*QImage) InheritRgbSwapped_helper

func (this *QImage) InheritRgbSwapped_helper(f func() unsafe.Pointer)

QImage rgbSwapped_helper()

func (*QImage) InheritRgbSwapped_inplace

func (this *QImage) InheritRgbSwapped_inplace(f func())

void rgbSwapped_inplace()

func (*QImage) InheritSmoothScaled

func (this *QImage) InheritSmoothScaled(f func(w int, h int) unsafe.Pointer)

QImage smoothScaled(int, int)

func (*QImage) InvertModeItemName

func (this *QImage) InvertModeItemName(val int) string

func (*QImage) InvertPixels

func (this *QImage) InvertPixels(arg0 int)

Inverts all pixel values in the image.

The given invert mode only have a meaning when the image's depth is 32. The default mode is InvertRgb, which leaves the alpha channel unchanged. If the mode is InvertRgba, the alpha bits are also inverted.

Inverting an 8-bit image means to replace all pixels using color index i with a pixel using color index 255 minus i. The same is the case for a 1-bit image. Note that the color table is not changed.

If the image has a premultiplied alpha channel, the image is first converted to an unpremultiplied image format to be inverted and then converted back.

See also Image Transformations.

func (*QImage) InvertPixelsp

func (this *QImage) InvertPixelsp()

Inverts all pixel values in the image.

The given invert mode only have a meaning when the image's depth is 32. The default mode is InvertRgb, which leaves the alpha channel unchanged. If the mode is InvertRgba, the alpha bits are also inverted.

Inverting an 8-bit image means to replace all pixels using color index i with a pixel using color index 255 minus i. The same is the case for a 1-bit image. Note that the color table is not changed.

If the image has a premultiplied alpha channel, the image is first converted to an unpremultiplied image format to be inverted and then converted back.

See also Image Transformations.

func (*QImage) IsDetached

func (this *QImage) IsDetached() bool

func (*QImage) IsGrayscale

func (this *QImage) IsGrayscale() bool

For 32-bit images, this function is equivalent to allGray().

For color indexed images, this function returns true if color(i) is QRgb(i, i, i) for all indexes of the color table; otherwise returns false.

See also allGray() and Image Formats.

func (*QImage) IsNull

func (this *QImage) IsNull() bool

Returns true if it is a null image, otherwise returns false.

A null image has all parameters set to zero and no allocated data.

func (*QImage) Load

func (this *QImage) Load(device qtcore.QIODevice_ITF, format string) bool

Loads an image from the file with the given fileName. Returns true if the image was successfully loaded; otherwise invalidates the image and returns false.

The loader attempts to read the image using the specified format, e.g., PNG or JPG. If format is not specified (which is the default), it is auto-detected based on the file's suffix and header. For details, see QImageReader::setAutoDetectImageFormat().

The file name can either refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed images and other resource files in the application's executable.

See also Reading and Writing Image Files.

func (*QImage) Load1

func (this *QImage) Load1(fileName string, format string) bool

Loads an image from the file with the given fileName. Returns true if the image was successfully loaded; otherwise invalidates the image and returns false.

The loader attempts to read the image using the specified format, e.g., PNG or JPG. If format is not specified (which is the default), it is auto-detected based on the file's suffix and header. For details, see QImageReader::setAutoDetectImageFormat().

The file name can either refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed images and other resource files in the application's executable.

See also Reading and Writing Image Files.

func (*QImage) Load1p

func (this *QImage) Load1p(fileName string) bool

Loads an image from the file with the given fileName. Returns true if the image was successfully loaded; otherwise invalidates the image and returns false.

The loader attempts to read the image using the specified format, e.g., PNG or JPG. If format is not specified (which is the default), it is auto-detected based on the file's suffix and header. For details, see QImageReader::setAutoDetectImageFormat().

The file name can either refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed images and other resource files in the application's executable.

See also Reading and Writing Image Files.

func (*QImage) LoadFromData

func (this *QImage) LoadFromData(buf unsafe.Pointer, len_ int, format string) bool

Loads an image from the first len bytes of the given binary data. Returns true if the image was successfully loaded; otherwise invalidates the image and returns false.

The loader attempts to read the image using the specified format, e.g., PNG or JPG. If format is not specified (which is the default), the loader probes the file for a header to guess the file format.

See also Reading and Writing Image Files.

func (*QImage) LoadFromData1

func (this *QImage) LoadFromData1(data qtcore.QByteArray_ITF, aformat string) bool

Loads an image from the first len bytes of the given binary data. Returns true if the image was successfully loaded; otherwise invalidates the image and returns false.

The loader attempts to read the image using the specified format, e.g., PNG or JPG. If format is not specified (which is the default), the loader probes the file for a header to guess the file format.

See also Reading and Writing Image Files.

func (*QImage) LoadFromData1p

func (this *QImage) LoadFromData1p(data qtcore.QByteArray_ITF) bool

Loads an image from the first len bytes of the given binary data. Returns true if the image was successfully loaded; otherwise invalidates the image and returns false.

The loader attempts to read the image using the specified format, e.g., PNG or JPG. If format is not specified (which is the default), the loader probes the file for a header to guess the file format.

See also Reading and Writing Image Files.

func (*QImage) LoadFromDatap

func (this *QImage) LoadFromDatap(buf unsafe.Pointer, len_ int) bool

Loads an image from the first len bytes of the given binary data. Returns true if the image was successfully loaded; otherwise invalidates the image and returns false.

The loader attempts to read the image using the specified format, e.g., PNG or JPG. If format is not specified (which is the default), the loader probes the file for a header to guess the file format.

See also Reading and Writing Image Files.

func (*QImage) Metric

func (this *QImage) Metric(metric int) int

func (*QImage) Mirrored

func (this *QImage) Mirrored(horizontally bool, vertically bool) *QImage

func (*QImage) Mirrored1

func (this *QImage) Mirrored1(horizontally bool, vertically bool) unsafe.Pointer

func (*QImage) Mirrored1p

func (this *QImage) Mirrored1p() unsafe.Pointer

func (*QImage) Mirrored1p1

func (this *QImage) Mirrored1p1(horizontally bool) unsafe.Pointer

func (*QImage) Mirrored_helper

func (this *QImage) Mirrored_helper(horizontal bool, vertical bool) *QImage

func (*QImage) Mirrored_inplace

func (this *QImage) Mirrored_inplace(horizontal bool, vertical bool)

func (*QImage) Mirroredp

func (this *QImage) Mirroredp() *QImage

func (*QImage) Mirroredp1

func (this *QImage) Mirroredp1(horizontally bool) *QImage

func (*QImage) NewForInherit

func (*QImage) NewForInherit() *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit1

func (*QImage) NewForInherit1(size qtcore.QSize_ITF, format int) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit2

func (*QImage) NewForInherit2(width int, height int, format int) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit3

func (*QImage) NewForInherit3(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit3p

func (*QImage) NewForInherit3p(data unsafe.Pointer, width int, height int, format int) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit3p1

func (*QImage) NewForInherit3p1(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit4

func (*QImage) NewForInherit4(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit4p

func (*QImage) NewForInherit4p(data unsafe.Pointer, width int, height int, format int) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit4p1

func (*QImage) NewForInherit4p1(data unsafe.Pointer, width int, height int, format int, cleanupFunction unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit5

func (*QImage) NewForInherit5(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit5p

func (*QImage) NewForInherit5p(data unsafe.Pointer, width int, height int, bytesPerLine int, format int) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit5p1

func (*QImage) NewForInherit5p1(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit6

func (*QImage) NewForInherit6(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer, cleanupInfo unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit6p

func (*QImage) NewForInherit6p(data unsafe.Pointer, width int, height int, bytesPerLine int, format int) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit6p1

func (*QImage) NewForInherit6p1(data unsafe.Pointer, width int, height int, bytesPerLine int, format int, cleanupFunction unsafe.Pointer) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit7

func (*QImage) NewForInherit7(xpm []string) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit8

func (*QImage) NewForInherit8(fileName string, format string) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewForInherit8p

func (*QImage) NewForInherit8p(fileName string) *QImage

Constructs a null image.

See also isNull().

func (*QImage) NewFromPointer

func (*QImage) NewFromPointer(cthis unsafe.Pointer) *QImage

func (*QImage) Offset

func (this *QImage) Offset() *qtcore.QPoint

Returns the number of pixels by which the image is intended to be offset by when positioning relative to other images.

See also setOffset() and Image Information.

func (*QImage) Operator_equal

func (this *QImage) Operator_equal(arg0 QImage_ITF) *QImage

func (*QImage) Operator_equal1

func (this *QImage) Operator_equal1(other unsafe.Pointer) *QImage

func (*QImage) Operator_equal_equal

func (this *QImage) Operator_equal_equal(arg0 QImage_ITF) bool

func (*QImage) Operator_not_equal

func (this *QImage) Operator_not_equal(arg0 QImage_ITF) bool

func (*QImage) PaintEngine

func (this *QImage) PaintEngine() *QPaintEngine

func (*QImage) Pixel

func (this *QImage) Pixel(x int, y int) uint

Returns the color of the pixel at the given position.

If the position is not valid, the results are undefined.

Warning: This function is expensive when used for massive pixel manipulations. Use constBits() or constScanLine() when many pixels needs to be read.

See also setPixel(), valid(), constBits(), constScanLine(), and Pixel Manipulation.

func (*QImage) Pixel1

func (this *QImage) Pixel1(pt qtcore.QPoint_ITF) uint

Returns the color of the pixel at the given position.

If the position is not valid, the results are undefined.

Warning: This function is expensive when used for massive pixel manipulations. Use constBits() or constScanLine() when many pixels needs to be read.

See also setPixel(), valid(), constBits(), constScanLine(), and Pixel Manipulation.

func (*QImage) PixelColor

func (this *QImage) PixelColor(x int, y int) *QColor

Returns the color of the pixel at the given position as a QColor.

If the position is not valid, an invalid QColor is returned.

Warning: This function is expensive when used for massive pixel manipulations. Use constBits() or constScanLine() when many pixels needs to be read.

This function was introduced in Qt 5.6.

See also setPixelColor(), setPixel(), valid(), constBits(), constScanLine(), and Pixel Manipulation.

func (*QImage) PixelColor1

func (this *QImage) PixelColor1(pt qtcore.QPoint_ITF) *QColor

Returns the color of the pixel at the given position as a QColor.

If the position is not valid, an invalid QColor is returned.

Warning: This function is expensive when used for massive pixel manipulations. Use constBits() or constScanLine() when many pixels needs to be read.

This function was introduced in Qt 5.6.

See also setPixelColor(), setPixel(), valid(), constBits(), constScanLine(), and Pixel Manipulation.

func (*QImage) PixelFormat

func (this *QImage) PixelFormat() *QPixelFormat

Returns the QImage::Format as a QPixelFormat

func (*QImage) PixelIndex

func (this *QImage) PixelIndex(x int, y int) int

Returns the pixel index at the given position.

If position is not valid, or if the image is not a paletted image (depth() > 8), the results are undefined.

See also valid(), depth(), and Pixel Manipulation.

func (*QImage) PixelIndex1

func (this *QImage) PixelIndex1(pt qtcore.QPoint_ITF) int

Returns the pixel index at the given position.

If position is not valid, or if the image is not a paletted image (depth() > 8), the results are undefined.

See also valid(), depth(), and Pixel Manipulation.

func (*QImage) QImage_PTR

func (ptr *QImage) QImage_PTR() *QImage

func (*QImage) Rect

func (this *QImage) Rect() *qtcore.QRect

Returns the enclosing rectangle (0, 0, width(), height()) of the image.

See also Image Information.

func (*QImage) ReinterpretAsFormat

func (this *QImage) ReinterpretAsFormat(f int) bool

Changes the format of the image to format without changing the data. Only works between formats of the same depth.

Returns true if successful.

This function can be used to change images with alpha-channels to their corresponding opaque formats if the data is known to be opaque-only, or to change the format of a given image buffer before overwriting it with new data.

Warning: The function does not check if the image data is valid in the new format and will still return true if the depths are compatible. Operations on an image with invalid data are undefined.

Warning: If the image is not detached, this will cause the data to be copied.

This function was introduced in Qt 5.9.

See also hasAlphaChannel() and convertToFormat().

func (*QImage) RgbSwapped

func (this *QImage) RgbSwapped() *QImage

func (*QImage) RgbSwapped1

func (this *QImage) RgbSwapped1() unsafe.Pointer

func (*QImage) RgbSwapped_helper

func (this *QImage) RgbSwapped_helper() *QImage

func (*QImage) RgbSwapped_inplace

func (this *QImage) RgbSwapped_inplace()

func (*QImage) Save

func (this *QImage) Save(fileName string, format string, quality int) bool

Saves the image to the file with the given fileName, using the given image file format and quality factor. If format is 0, QImage will attempt to guess the format by looking at fileName's suffix.

The quality factor must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings.

Returns true if the image was successfully saved; otherwise returns false.

See also Reading and Writing Image Files.

func (*QImage) Save1

func (this *QImage) Save1(device qtcore.QIODevice_ITF, format string, quality int) bool

Saves the image to the file with the given fileName, using the given image file format and quality factor. If format is 0, QImage will attempt to guess the format by looking at fileName's suffix.

The quality factor must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings.

Returns true if the image was successfully saved; otherwise returns false.

See also Reading and Writing Image Files.

func (*QImage) Save1p

func (this *QImage) Save1p(device qtcore.QIODevice_ITF) bool

Saves the image to the file with the given fileName, using the given image file format and quality factor. If format is 0, QImage will attempt to guess the format by looking at fileName's suffix.

The quality factor must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings.

Returns true if the image was successfully saved; otherwise returns false.

See also Reading and Writing Image Files.

func (*QImage) Save1p1

func (this *QImage) Save1p1(device qtcore.QIODevice_ITF, format string) bool

Saves the image to the file with the given fileName, using the given image file format and quality factor. If format is 0, QImage will attempt to guess the format by looking at fileName's suffix.

The quality factor must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings.

Returns true if the image was successfully saved; otherwise returns false.

See also Reading and Writing Image Files.

func (*QImage) Savep

func (this *QImage) Savep(fileName string) bool

Saves the image to the file with the given fileName, using the given image file format and quality factor. If format is 0, QImage will attempt to guess the format by looking at fileName's suffix.

The quality factor must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings.

Returns true if the image was successfully saved; otherwise returns false.

See also Reading and Writing Image Files.

func (*QImage) Savep1

func (this *QImage) Savep1(fileName string, format string) bool

Saves the image to the file with the given fileName, using the given image file format and quality factor. If format is 0, QImage will attempt to guess the format by looking at fileName's suffix.

The quality factor must be in the range 0 to 100 or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 (the default) to use the default settings.

Returns true if the image was successfully saved; otherwise returns false.

See also Reading and Writing Image Files.

func (*QImage) Scaled

func (this *QImage) Scaled(w int, h int, aspectMode int, mode int) *QImage

Returns a copy of the image scaled to a rectangle defined by the given size according to the given aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the image is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null image.

See also isNull() and Image Transformations.

func (*QImage) Scaled1

func (this *QImage) Scaled1(s qtcore.QSize_ITF, aspectMode int, mode int) *QImage

Returns a copy of the image scaled to a rectangle defined by the given size according to the given aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the image is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null image.

See also isNull() and Image Transformations.

func (*QImage) Scaled1p

func (this *QImage) Scaled1p(s qtcore.QSize_ITF) *QImage

Returns a copy of the image scaled to a rectangle defined by the given size according to the given aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the image is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null image.

See also isNull() and Image Transformations.

func (*QImage) Scaled1p1

func (this *QImage) Scaled1p1(s qtcore.QSize_ITF, aspectMode int) *QImage

Returns a copy of the image scaled to a rectangle defined by the given size according to the given aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the image is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null image.

See also isNull() and Image Transformations.

func (*QImage) ScaledToHeight

func (this *QImage) ScaledToHeight(h int, mode int) *QImage

Returns a scaled copy of the image. The returned image is scaled to the given height using the specified transformation mode.

This function automatically calculates the width of the image so that the ratio of the image is preserved.

If the given height is 0 or negative, a null image is returned.

See also Image Transformations.

func (*QImage) ScaledToHeightp

func (this *QImage) ScaledToHeightp(h int) *QImage

Returns a scaled copy of the image. The returned image is scaled to the given height using the specified transformation mode.

This function automatically calculates the width of the image so that the ratio of the image is preserved.

If the given height is 0 or negative, a null image is returned.

See also Image Transformations.

func (*QImage) ScaledToWidth

func (this *QImage) ScaledToWidth(w int, mode int) *QImage

Returns a scaled copy of the image. The returned image is scaled to the given width using the specified transformation mode.

This function automatically calculates the height of the image so that its aspect ratio is preserved.

If the given width is 0 or negative, a null image is returned.

See also Image Transformations.

func (*QImage) ScaledToWidthp

func (this *QImage) ScaledToWidthp(w int) *QImage

Returns a scaled copy of the image. The returned image is scaled to the given width using the specified transformation mode.

This function automatically calculates the height of the image so that its aspect ratio is preserved.

If the given width is 0 or negative, a null image is returned.

See also Image Transformations.

func (*QImage) Scaledp

func (this *QImage) Scaledp(w int, h int) *QImage

Returns a copy of the image scaled to a rectangle defined by the given size according to the given aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the image is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null image.

See also isNull() and Image Transformations.

func (*QImage) Scaledp1

func (this *QImage) Scaledp1(w int, h int, aspectMode int) *QImage

Returns a copy of the image scaled to a rectangle defined by the given size according to the given aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the image is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the image is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the image is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null image.

See also isNull() and Image Transformations.

func (*QImage) ScanLine

func (this *QImage) ScanLine(arg0 int) unsafe.Pointer

Returns a pointer to the pixel data at the scanline with index i. The first scanline is at index 0.

The scanline data is aligned on a 32-bit boundary.

Warning: If you are accessing 32-bpp image data, cast the returned pointer to QRgb* (QRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the uchar* pointer directly, because the pixel format depends on the byte order on the underlying platform. Use qRed(), qGreen(), qBlue(), and qAlpha() to access the pixels.

See also bytesPerLine(), bits(), Pixel Manipulation, and constScanLine().

func (*QImage) ScanLine1

func (this *QImage) ScanLine1(arg0 int) unsafe.Pointer

Returns a pointer to the pixel data at the scanline with index i. The first scanline is at index 0.

The scanline data is aligned on a 32-bit boundary.

Warning: If you are accessing 32-bpp image data, cast the returned pointer to QRgb* (QRgb has a 32-bit size) and use it to read/write the pixel value. You cannot use the uchar* pointer directly, because the pixel format depends on the byte order on the underlying platform. Use qRed(), qGreen(), qBlue(), and qAlpha() to access the pixels.

See also bytesPerLine(), bits(), Pixel Manipulation, and constScanLine().

func (*QImage) SetAlphaChannel

func (this *QImage) SetAlphaChannel(alphaChannel QImage_ITF)

func (*QImage) SetColor

func (this *QImage) SetColor(i int, c uint)

Sets the color at the given index in the color table, to the given to colorValue. The color value is an ARGB quadruplet.

If index is outside the current size of the color table, it is expanded with setColorCount().

See also color(), colorCount(), setColorTable(), and Pixel Manipulation.

func (*QImage) SetColorCount

func (this *QImage) SetColorCount(arg0 int)

Resizes the color table to contain colorCount entries.

If the color table is expanded, all the extra colors will be set to transparent (i.e qRgba(0, 0, 0, 0)).

When the image is used, the color table must be large enough to have entries for all the pixel/index values present in the image, otherwise the results are undefined.

This function was introduced in Qt 4.6.

See also colorCount(), colorTable(), setColor(), and Image Transformations.

func (*QImage) SetCthis

func (this *QImage) SetCthis(cthis unsafe.Pointer)

func (*QImage) SetDevicePixelRatio

func (this *QImage) SetDevicePixelRatio(scaleFactor float64)

Sets the device pixel ratio for the image. This is the ratio between image pixels and device-independent pixels.

The default scaleFactor is 1.0. Setting it to something else has two effects:

QPainters that are opened on the image will be scaled. For example, painting on a 200x200 image if with a ratio of 2.0 will result in effective (device-independent) painting bounds of 100x100.

Code paths in Qt that calculate layout geometry based on the image size will take the ratio into account: QSize layoutSize = image.size() / image.devicePixelRatio() The net effect of this is that the image is displayed as high-DPI image rather than a large image (see Drawing High Resolution Versions of Pixmaps and Images).

See also devicePixelRatio().

func (*QImage) SetDotsPerMeterX

func (this *QImage) SetDotsPerMeterX(arg0 int)

Sets the number of pixels that fit horizontally in a physical meter, to x.

Together with dotsPerMeterY(), this number defines the intended scale and aspect ratio of the image, and determines the scale at which QPainter will draw graphics on the image. It does not change the scale or aspect ratio of the image when it is rendered on other paint devices.

See also dotsPerMeterX() and Image Information.

func (*QImage) SetDotsPerMeterY

func (this *QImage) SetDotsPerMeterY(arg0 int)

Sets the number of pixels that fit vertically in a physical meter, to y.

Together with dotsPerMeterX(), this number defines the intended scale and aspect ratio of the image, and determines the scale at which QPainter will draw graphics on the image. It does not change the scale or aspect ratio of the image when it is rendered on other paint devices.

See also dotsPerMeterY() and Image Information.

func (*QImage) SetOffset

func (this *QImage) SetOffset(arg0 qtcore.QPoint_ITF)

Sets the number of pixels by which the image is intended to be offset by when positioning relative to other images, to offset.

See also offset() and Image Information.

func (*QImage) SetPixel

func (this *QImage) SetPixel(x int, y int, index_or_rgb uint)

Sets the pixel index or color at the given position to index_or_rgb.

If the image's format is either monochrome or paletted, the given index_or_rgb value must be an index in the image's color table, otherwise the parameter must be a QRgb value.

If position is not a valid coordinate pair in the image, or if index_or_rgb >= colorCount() in the case of monochrome and paletted images, the result is undefined.

Warning: This function is expensive due to the call of the internal detach() function called within; if performance is a concern, we recommend the use of scanLine() or bits() to access pixel data directly.

See also pixel() and Pixel Manipulation.

func (*QImage) SetPixel1

func (this *QImage) SetPixel1(pt qtcore.QPoint_ITF, index_or_rgb uint)

Sets the pixel index or color at the given position to index_or_rgb.

If the image's format is either monochrome or paletted, the given index_or_rgb value must be an index in the image's color table, otherwise the parameter must be a QRgb value.

If position is not a valid coordinate pair in the image, or if index_or_rgb >= colorCount() in the case of monochrome and paletted images, the result is undefined.

Warning: This function is expensive due to the call of the internal detach() function called within; if performance is a concern, we recommend the use of scanLine() or bits() to access pixel data directly.

See also pixel() and Pixel Manipulation.

func (*QImage) SetPixelColor

func (this *QImage) SetPixelColor(x int, y int, c QColor_ITF)

Sets the color at the given position to color.

If position is not a valid coordinate pair in the image, or the image's format is either monochrome or paletted, the result is undefined.

Warning: This function is expensive due to the call of the internal detach() function called within; if performance is a concern, we recommend the use of scanLine() or bits() to access pixel data directly.

This function was introduced in Qt 5.6.

See also pixelColor(), pixel(), bits(), scanLine(), and Pixel Manipulation.

func (*QImage) SetPixelColor1

func (this *QImage) SetPixelColor1(pt qtcore.QPoint_ITF, c QColor_ITF)

Sets the color at the given position to color.

If position is not a valid coordinate pair in the image, or the image's format is either monochrome or paletted, the result is undefined.

Warning: This function is expensive due to the call of the internal detach() function called within; if performance is a concern, we recommend the use of scanLine() or bits() to access pixel data directly.

This function was introduced in Qt 5.6.

See also pixelColor(), pixel(), bits(), scanLine(), and Pixel Manipulation.

func (*QImage) SetText

func (this *QImage) SetText(key string, value string)

Sets the image text to the given text and associate it with the given key.

If you just want to store a single text block (i.e., a "comment" or just a description), you can either pass an empty key, or use a generic key like "Description".

The image text is embedded into the image data when you call save() or QImageWriter::write().

Not all image formats support embedded text. You can find out if a specific image or format supports embedding text by using QImageWriter::supportsOption(). We give an example:

QImageWriter writer;
writer.setFormat("png");
if (writer.supportsOption(QImageIOHandler::Description))
    qDebug() << "Png supports embedded text";

You can use QImageWriter::supportedImageFormats() to find out which image formats are available to you.

See also text() and textKeys().

func (*QImage) Size

func (this *QImage) Size() *qtcore.QSize

Returns the size of the image, i.e. its width() and height().

See also Image Information.

func (*QImage) SizeInBytes

func (this *QImage) SizeInBytes() int64

Returns the image data size in bytes.

This function was introduced in Qt 5.10.

See also byteCount(), bytesPerLine(), bits(), and Image Information.

func (*QImage) SmoothScaled

func (this *QImage) SmoothScaled(w int, h int) *QImage

Returns a smoothly scaled copy of the image. The returned image has a size of width w by height h pixels.

func (*QImage) Swap

func (this *QImage) Swap(other QImage_ITF)

Swaps image other with this image. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QImage) Text

func (this *QImage) Text(key string) string

Returns the image text associated with the given key. If the specified key is an empty string, the whole image text is returned, with each key-text pair separated by a newline.

See also setText() and textKeys().

func (*QImage) TextKeys

func (this *QImage) TextKeys() *qtcore.QStringList

Returns the text keys for this image.

You can use these keys with text() to list the image text for a certain key.

See also text().

func (*QImage) Textp

func (this *QImage) Textp() string

Returns the image text associated with the given key. If the specified key is an empty string, the whole image text is returned, with each key-text pair separated by a newline.

See also setText() and textKeys().

func (*QImage) ToImageFormat

func (this *QImage) ToImageFormat(format QPixelFormat_ITF) int

Converts format into a QImage::Format

func (*QImage) ToPixelFormat

func (this *QImage) ToPixelFormat(format int) *QPixelFormat

Converts format into a QPixelFormat

func (*QImage) Transformed

func (this *QImage) Transformed(matrix QMatrix_ITF, mode int) *QImage

Returns a copy of the image that is transformed using the given transformation matrix and transformation mode.

The returned image will normally have the same {Image Formats}{format} as the original image. However, a complex transformation may result in an image where not all pixels are covered by the transformed pixels of the original image. In such cases, those background pixels will be assigned a transparent color value, and the transformed image will be given a format with an alpha channel, even if the orginal image did not have that.

The transformation matrix is internally adjusted to compensate for unwanted translation; i.e. the image produced is the smallest image that contains all the transformed points of the original image. Use the trueMatrix() function to retrieve the actual matrix used for transforming an image.

See also trueMatrix() and Image Transformations.

func (*QImage) Transformed1

func (this *QImage) Transformed1(matrix QTransform_ITF, mode int) *QImage

Returns a copy of the image that is transformed using the given transformation matrix and transformation mode.

The returned image will normally have the same {Image Formats}{format} as the original image. However, a complex transformation may result in an image where not all pixels are covered by the transformed pixels of the original image. In such cases, those background pixels will be assigned a transparent color value, and the transformed image will be given a format with an alpha channel, even if the orginal image did not have that.

The transformation matrix is internally adjusted to compensate for unwanted translation; i.e. the image produced is the smallest image that contains all the transformed points of the original image. Use the trueMatrix() function to retrieve the actual matrix used for transforming an image.

See also trueMatrix() and Image Transformations.

func (*QImage) Transformed1p

func (this *QImage) Transformed1p(matrix QTransform_ITF) *QImage

Returns a copy of the image that is transformed using the given transformation matrix and transformation mode.

The returned image will normally have the same {Image Formats}{format} as the original image. However, a complex transformation may result in an image where not all pixels are covered by the transformed pixels of the original image. In such cases, those background pixels will be assigned a transparent color value, and the transformed image will be given a format with an alpha channel, even if the orginal image did not have that.

The transformation matrix is internally adjusted to compensate for unwanted translation; i.e. the image produced is the smallest image that contains all the transformed points of the original image. Use the trueMatrix() function to retrieve the actual matrix used for transforming an image.

See also trueMatrix() and Image Transformations.

func (*QImage) Transformedp

func (this *QImage) Transformedp(matrix QMatrix_ITF) *QImage

Returns a copy of the image that is transformed using the given transformation matrix and transformation mode.

The returned image will normally have the same {Image Formats}{format} as the original image. However, a complex transformation may result in an image where not all pixels are covered by the transformed pixels of the original image. In such cases, those background pixels will be assigned a transparent color value, and the transformed image will be given a format with an alpha channel, even if the orginal image did not have that.

The transformation matrix is internally adjusted to compensate for unwanted translation; i.e. the image produced is the smallest image that contains all the transformed points of the original image. Use the trueMatrix() function to retrieve the actual matrix used for transforming an image.

See also trueMatrix() and Image Transformations.

func (*QImage) TrueMatrix

func (this *QImage) TrueMatrix(arg0 QMatrix_ITF, w int, h int) *QMatrix

Returns the actual matrix used for transforming an image with the given width, height and matrix.

When transforming an image using the transformed() function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e. transformed() returns the smallest image containing all transformed points of the original image. This function returns the modified matrix, which maps points correctly from the original image into the new image.

See also transformed() and Image Transformations.

func (*QImage) TrueMatrix1

func (this *QImage) TrueMatrix1(arg0 QTransform_ITF, w int, h int) *QTransform

Returns the actual matrix used for transforming an image with the given width, height and matrix.

When transforming an image using the transformed() function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e. transformed() returns the smallest image containing all transformed points of the original image. This function returns the modified matrix, which maps points correctly from the original image into the new image.

See also transformed() and Image Transformations.

func (*QImage) Valid

func (this *QImage) Valid(x int, y int) bool

Returns true if pos is a valid coordinate pair within the image; otherwise returns false.

See also rect() and QRect::contains().

func (*QImage) Valid1

func (this *QImage) Valid1(pt qtcore.QPoint_ITF) bool

Returns true if pos is a valid coordinate pair within the image; otherwise returns false.

See also rect() and QRect::contains().

func (*QImage) Width

func (this *QImage) Width() int

Returns the width of the image.

See also Image Information.

type QImageIOHandler

type QImageIOHandler struct {
	*qtrt.CObject
}

func NewQImageIOHandler

func NewQImageIOHandler() *QImageIOHandler

func NewQImageIOHandlerFromPointer

func NewQImageIOHandlerFromPointer(cthis unsafe.Pointer) *QImageIOHandler

func (*QImageIOHandler) CanRead

func (this *QImageIOHandler) CanRead() bool

Returns true if an image can be read from the device (i.e., the image format is supported, the device can be read from and the initial header information suggests that the image can be read); otherwise returns false.

When reimplementing canRead(), make sure that the I/O device (device()) is left in its original state (e.g., by using peek() rather than read()).

See also read() and QIODevice::peek().

func (*QImageIOHandler) CurrentImageNumber

func (this *QImageIOHandler) CurrentImageNumber() int

For image formats that support animation, this function returns the sequence number of the current image in the animation. If this function is called before any image is read(), -1 is returned. The number of the first image in the sequence is 0.

If the image format does not support animation, 0 is returned.

See also read().

func (*QImageIOHandler) CurrentImageRect

func (this *QImageIOHandler) CurrentImageRect() *qtcore.QRect

Returns the rect of the current image. If no rect is defined for the image, and empty QRect() is returned.

This function is useful for animations, where only parts of the frame may be updated at a time.

func (*QImageIOHandler) Device

func (this *QImageIOHandler) Device() *qtcore.QIODevice

Returns the device currently assigned to the QImageIOHandler. If not device has been assigned, 0 is returned.

See also setDevice().

func (*QImageIOHandler) Format

func (this *QImageIOHandler) Format() *qtcore.QByteArray

Returns the format that is currently assigned to QImageIOHandler. If no format has been assigned, an empty string is returned.

See also setFormat().

func (*QImageIOHandler) GetCthis

func (this *QImageIOHandler) GetCthis() unsafe.Pointer

func (*QImageIOHandler) ImageCount

func (this *QImageIOHandler) ImageCount() int

For image formats that support animation, this function returns the number of images in the animation. If the image format does not support animation, or if it is unable to determine the number of images, 0 is returned.

The default implementation returns 1 if canRead() returns true; otherwise 0 is returned.

func (*QImageIOHandler) ImageOptionItemName

func (this *QImageIOHandler) ImageOptionItemName(val int) string

func (*QImageIOHandler) JumpToImage

func (this *QImageIOHandler) JumpToImage(imageNumber int) bool

For image formats that support animation, this function jumps to the image whose sequence number is imageNumber. The next call to read() will attempt to read this image.

The default implementation does nothing, and returns false.

func (*QImageIOHandler) JumpToNextImage

func (this *QImageIOHandler) JumpToNextImage() bool

For image formats that support animation, this function jumps to the next image.

The default implementation does nothing, and returns false.

func (*QImageIOHandler) LoopCount

func (this *QImageIOHandler) LoopCount() int

For image formats that support animation, this function returns the number of times the animation should loop. If the image format does not support animation, 0 is returned.

func (*QImageIOHandler) Name

func (this *QImageIOHandler) Name() *qtcore.QByteArray

func (*QImageIOHandler) NewForInherit

func (*QImageIOHandler) NewForInherit() *QImageIOHandler

Constructs a QImageIOHandler object.

func (*QImageIOHandler) NewFromPointer

func (*QImageIOHandler) NewFromPointer(cthis unsafe.Pointer) *QImageIOHandler

func (*QImageIOHandler) NextImageDelay

func (this *QImageIOHandler) NextImageDelay() int

For image formats that support animation, this function returns the number of milliseconds to wait until reading the next image. If the image format does not support animation, 0 is returned.

func (*QImageIOHandler) Option

func (this *QImageIOHandler) Option(option int) *qtcore.QVariant

Returns the value assigned to option as a QVariant. The type of the value depends on the option. For example, option(Size) returns a QSize variant.

See also setOption() and supportsOption().

func (*QImageIOHandler) QImageIOHandler_PTR

func (ptr *QImageIOHandler) QImageIOHandler_PTR() *QImageIOHandler

func (*QImageIOHandler) Read

func (this *QImageIOHandler) Read(image QImage_ITF) bool

Read an image from the device, and stores it in image. Returns true if the image is successfully read; otherwise returns false.

For image formats that support incremental loading, and for animation formats, the image handler can assume that image points to the previous frame.

See also canRead().

func (*QImageIOHandler) SetCthis

func (this *QImageIOHandler) SetCthis(cthis unsafe.Pointer)

func (*QImageIOHandler) SetDevice

func (this *QImageIOHandler) SetDevice(device qtcore.QIODevice_ITF)

Sets the device of the QImageIOHandler to device. The image handler will use this device when reading and writing images.

The device can only be set once and must be set before calling canRead(), read(), write(), etc. If you need to read multiple files, construct multiple instances of the appropriate QImageIOHandler subclass.

See also device().

func (*QImageIOHandler) SetFormat

func (this *QImageIOHandler) SetFormat(format qtcore.QByteArray_ITF)

Sets the format of the QImageIOHandler to format. The format is most useful for handlers that support multiple image formats.

See also format().

func (*QImageIOHandler) SetFormat1

func (this *QImageIOHandler) SetFormat1(format qtcore.QByteArray_ITF)

Sets the format of the QImageIOHandler to format. The format is most useful for handlers that support multiple image formats.

See also format().

func (*QImageIOHandler) SetOption

func (this *QImageIOHandler) SetOption(option int, value qtcore.QVariant_ITF)

Sets the option option with the value value.

See also option() and ImageOption.

func (*QImageIOHandler) SupportsOption

func (this *QImageIOHandler) SupportsOption(option int) bool

Returns true if the QImageIOHandler supports the option option; otherwise returns false. For example, if the QImageIOHandler supports the Size option, supportsOption(Size) must return true.

See also setOption() and option().

func (*QImageIOHandler) TransformationItemName

func (this *QImageIOHandler) TransformationItemName(val int) string

func (*QImageIOHandler) Write

func (this *QImageIOHandler) Write(image QImage_ITF) bool

Writes the image image to the assigned device. Returns true on success; otherwise returns false.

The default implementation does nothing, and simply returns false.

type QImageIOHandler_ITF

type QImageIOHandler_ITF interface {
	QImageIOHandler_PTR() *QImageIOHandler
}

type QImageIOHandler__ImageOption

type QImageIOHandler__ImageOption = int

This enum describes the different options supported by QImageIOHandler. Some options are used to query an image for properties, and others are used to toggle the way in which an image should be written.

const QImageIOHandler__Animation QImageIOHandler__ImageOption = 12
const QImageIOHandler__BackgroundColor QImageIOHandler__ImageOption = 13
const QImageIOHandler__ClipRect QImageIOHandler__ImageOption = 1

The clip rect, or ROI (Region Of Interest). A handler that supports this option is expected to only read the provided QRect area from the original image in read(), before any other transformation is applied.

const QImageIOHandler__CompressionRatio QImageIOHandler__ImageOption = 5

The compression ratio of the image data. A handler that supports this option is expected to set its compression rate depending on the value of this option (an int) when writing.

const QImageIOHandler__Description QImageIOHandler__ImageOption = 2

The image description. Some image formats, such as GIF and PNG, allow embedding of text or comments into the image data (e.g., for storing copyright information). It's common that the text is stored in key-value pairs, but some formats store all text in one continuous block. QImageIOHandler returns the text as one QString, where keys and values are separated by a ':', and keys-value pairs are separated by two newlines (\n\n). For example, "Title: Sunset\n\nAuthor: Jim Smith\nSarah Jones\n\n". Formats that store text in a single block can use "Description" as the key.

const QImageIOHandler__Endianness QImageIOHandler__ImageOption = 11
const QImageIOHandler__Gamma QImageIOHandler__ImageOption = 6

The gamma level of the image. A handler that supports this option is expected to set the image gamma level depending on the value of this option (a float) when writing.

const QImageIOHandler__ImageFormat QImageIOHandler__ImageOption = 14
const QImageIOHandler__ImageTransformation QImageIOHandler__ImageOption = 18
const QImageIOHandler__IncrementalReading QImageIOHandler__ImageOption = 10
const QImageIOHandler__Name QImageIOHandler__ImageOption = 8

The name of the image. A handler that supports this option is expected to read the name from the image metadata and return this as a QString, or when writing an image it is expected to store the name in the image metadata.

const QImageIOHandler__OptimizedWrite QImageIOHandler__ImageOption = 16
const QImageIOHandler__ProgressiveScanWrite QImageIOHandler__ImageOption = 17
const QImageIOHandler__Quality QImageIOHandler__ImageOption = 7

The quality level of the image. A handler that supports this option is expected to set the image quality level depending on the value of this option (an int) when writing.

const QImageIOHandler__ScaledClipRect QImageIOHandler__ImageOption = 3

The scaled clip rect (or ROI, Region Of Interest) of the image. A handler that supports this option is expected to apply the provided clip rect (a QRect), after applying any scaling (ScaleSize) or regular clipping (ClipRect). If the handler does not support this option, QImageReader will apply the scaled clip rect after the image has been read.

const QImageIOHandler__ScaledSize QImageIOHandler__ImageOption = 4

The scaled size of the image. A handler that supports this option is expected to scale the image to the provided size (a QSize), after applying any clip rect transformation (ClipRect). If the handler does not support this option, QImageReader will perform the scaling after the image has been read.

const QImageIOHandler__Size QImageIOHandler__ImageOption = 0

The original size of an image. A handler that supports this option is expected to read the size of the image from the image metadata, and return this size from option() as a QSize.

const QImageIOHandler__SubType QImageIOHandler__ImageOption = 9

The subtype of the image. A handler that supports this option can use the subtype value to help when reading and writing images. For example, a PPM handler may have a subtype value of "ppm" or "ppmraw".

const QImageIOHandler__SupportedSubTypes QImageIOHandler__ImageOption = 15
const QImageIOHandler__TransformedByDefault QImageIOHandler__ImageOption = 19

type QImageIOHandler__Transformation

type QImageIOHandler__Transformation = int
const QImageIOHandler__TransformationFlip QImageIOHandler__Transformation = 2
const QImageIOHandler__TransformationFlipAndRotate90 QImageIOHandler__Transformation = 6
const QImageIOHandler__TransformationMirror QImageIOHandler__Transformation = 1
const QImageIOHandler__TransformationMirrorAndRotate90 QImageIOHandler__Transformation = 5
const QImageIOHandler__TransformationNone QImageIOHandler__Transformation = 0
const QImageIOHandler__TransformationRotate180 QImageIOHandler__Transformation = 3
const QImageIOHandler__TransformationRotate270 QImageIOHandler__Transformation = 7
const QImageIOHandler__TransformationRotate90 QImageIOHandler__Transformation = 4

type QImageIOPlugin

type QImageIOPlugin struct {
	*qtcore.QObject
}

func NewQImageIOPlugin

func NewQImageIOPlugin(parent qtcore.QObject_ITF) *QImageIOPlugin

func NewQImageIOPluginFromPointer

func NewQImageIOPluginFromPointer(cthis unsafe.Pointer) *QImageIOPlugin

func NewQImageIOPluginp

func NewQImageIOPluginp() *QImageIOPlugin

func (*QImageIOPlugin) Capabilities

func (this *QImageIOPlugin) Capabilities(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) int

func (*QImageIOPlugin) CapabilityItemName

func (this *QImageIOPlugin) CapabilityItemName(val int) string

func (*QImageIOPlugin) Create

func (*QImageIOPlugin) Createp

func (this *QImageIOPlugin) Createp(device qtcore.QIODevice_ITF) *QImageIOHandler

func (*QImageIOPlugin) GetCthis

func (this *QImageIOPlugin) GetCthis() unsafe.Pointer

func (*QImageIOPlugin) MetaObject

func (this *QImageIOPlugin) MetaObject() *qtcore.QMetaObject

func (*QImageIOPlugin) NewForInherit

func (*QImageIOPlugin) NewForInherit(parent qtcore.QObject_ITF) *QImageIOPlugin

func (*QImageIOPlugin) NewForInheritp

func (*QImageIOPlugin) NewForInheritp() *QImageIOPlugin

func (*QImageIOPlugin) NewFromPointer

func (*QImageIOPlugin) NewFromPointer(cthis unsafe.Pointer) *QImageIOPlugin

func (*QImageIOPlugin) QImageIOPlugin_PTR

func (ptr *QImageIOPlugin) QImageIOPlugin_PTR() *QImageIOPlugin

func (*QImageIOPlugin) SetCthis

func (this *QImageIOPlugin) SetCthis(cthis unsafe.Pointer)

type QImageIOPlugin_ITF

type QImageIOPlugin_ITF interface {
	qtcore.QObject_ITF
	QImageIOPlugin_PTR() *QImageIOPlugin
}

type QImageIOPlugin__Capability

type QImageIOPlugin__Capability = int
const QImageIOPlugin__CanRead QImageIOPlugin__Capability = 1
const QImageIOPlugin__CanReadIncremental QImageIOPlugin__Capability = 4
const QImageIOPlugin__CanWrite QImageIOPlugin__Capability = 2

type QImageReader

type QImageReader struct {
	*qtrt.CObject
}

func NewQImageReader

func NewQImageReader() *QImageReader

func NewQImageReader1

func NewQImageReader1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) *QImageReader

func NewQImageReader1p

func NewQImageReader1p(device qtcore.QIODevice_ITF) *QImageReader

func NewQImageReader2

func NewQImageReader2(fileName string, format qtcore.QByteArray_ITF) *QImageReader

func NewQImageReader2p

func NewQImageReader2p(fileName string) *QImageReader

func NewQImageReaderFromPointer

func NewQImageReaderFromPointer(cthis unsafe.Pointer) *QImageReader

func (*QImageReader) AutoDetectImageFormat

func (this *QImageReader) AutoDetectImageFormat() bool

Returns true if image format autodetection is enabled on this image reader; otherwise returns false. By default, autodetection is enabled.

See also setAutoDetectImageFormat().

func (*QImageReader) AutoTransform

func (this *QImageReader) AutoTransform() bool

Returns true if the image handler will apply transformation metadata on read().

This function was introduced in Qt 5.5.

See also setAutoTransform(), transformation(), and read().

func (*QImageReader) BackgroundColor

func (this *QImageReader) BackgroundColor() *QColor

Returns the background color that's used when reading an image. If the image format does not support setting the background color an invalid color is returned.

This function was introduced in Qt 4.1.

See also setBackgroundColor() and read().

func (*QImageReader) CanRead

func (this *QImageReader) CanRead() bool

Returns true if an image can be read for the device (i.e., the image format is supported, and the device seems to contain valid data); otherwise returns false.

canRead() is a lightweight function that only does a quick test to see if the image data is valid. read() may still return false after canRead() returns true, if the image data is corrupt.

Note: A QMimeDatabase lookup is normally a better approach than this function for identifying potentially non-image files or data.

For images that support animation, canRead() returns false when all frames have been read.

See also read(), supportedImageFormats(), and QMimeDatabase.

func (*QImageReader) ClipRect

func (this *QImageReader) ClipRect() *qtcore.QRect

Returns the clip rect (also known as the ROI, or Region Of Interest) of the image. If no clip rect has been set, an invalid QRect is returned.

See also setClipRect().

func (*QImageReader) CurrentImageNumber

func (this *QImageReader) CurrentImageNumber() int

For image formats that support animation, this function returns the sequence number of the current frame. If the image format doesn't support animation, 0 is returned.

This function returns -1 if an error occurred.

See also supportsAnimation(), QImageIOHandler::currentImageNumber(), and canRead().

func (*QImageReader) CurrentImageRect

func (this *QImageReader) CurrentImageRect() *qtcore.QRect

For image formats that support animation, this function returns the rect for the current frame. Otherwise, a null rect is returned.

See also supportsAnimation() and QImageIOHandler::currentImageRect().

func (*QImageReader) DecideFormatFromContent

func (this *QImageReader) DecideFormatFromContent() bool

Returns whether the image reader should decide which plugin to use only based on the contents of the datastream rather than on the file extension.

See also setDecideFormatFromContent().

func (*QImageReader) Device

func (this *QImageReader) Device() *qtcore.QIODevice

Returns the device currently assigned to QImageReader, or 0 if no device has been assigned.

See also setDevice().

func (*QImageReader) Error

func (this *QImageReader) Error() int

Returns the type of error that occurred last.

See also ImageReaderError and errorString().

func (*QImageReader) ErrorString

func (this *QImageReader) ErrorString() string

Returns a human readable description of the last error that occurred.

See also error().

func (*QImageReader) FileName

func (this *QImageReader) FileName() string

If the currently assigned device is a QFile, or if setFileName() has been called, this function returns the name of the file QImageReader reads from. Otherwise (i.e., if no device has been assigned or the device is not a QFile), an empty QString is returned.

See also setFileName() and setDevice().

func (*QImageReader) Format

func (this *QImageReader) Format() *qtcore.QByteArray

Returns the format QImageReader uses for reading images.

You can call this function after assigning a device to the reader to determine the format of the device. For example:

QImageReader reader("image.png");
// reader.format() == "png"

If the reader cannot read any image from the device (e.g., there is no image there, or the image has already been read), or if the format is unsupported, this function returns an empty QByteArray().

See also setFormat() and supportedImageFormats().

func (*QImageReader) Gamma

func (this *QImageReader) Gamma() float32

Returns the gamma level of the decoded image. If setGamma() has been called and gamma correction is supported it will return the gamma set. If gamma level is not supported by the image format, 0.0 is returned.

This function was introduced in Qt 5.6.

See also setGamma().

func (*QImageReader) GetCthis

func (this *QImageReader) GetCthis() unsafe.Pointer

func (*QImageReader) ImageCount

func (this *QImageReader) ImageCount() int

For image formats that support animation, this function returns the total number of images in the animation. If the format does not support animation, 0 is returned.

This function returns -1 if an error occurred.

See also supportsAnimation(), QImageIOHandler::imageCount(), and canRead().

func (*QImageReader) ImageFormat

func (this *QImageReader) ImageFormat() int

Returns the format of the image, without actually reading the image contents. The format describes the image format QImageReader::read() returns, not the format of the actual image.

If the image format does not support this feature, this function returns an invalid format.

This function was introduced in Qt 4.5.

See also QImageIOHandler::ImageOption, QImageIOHandler::option(), and QImageIOHandler::supportsOption().

func (*QImageReader) ImageFormat1

func (this *QImageReader) ImageFormat1(fileName string) *qtcore.QByteArray

Returns the format of the image, without actually reading the image contents. The format describes the image format QImageReader::read() returns, not the format of the actual image.

If the image format does not support this feature, this function returns an invalid format.

This function was introduced in Qt 4.5.

See also QImageIOHandler::ImageOption, QImageIOHandler::option(), and QImageIOHandler::supportsOption().

func (*QImageReader) ImageFormat2

func (this *QImageReader) ImageFormat2(device qtcore.QIODevice_ITF) *qtcore.QByteArray

Returns the format of the image, without actually reading the image contents. The format describes the image format QImageReader::read() returns, not the format of the actual image.

If the image format does not support this feature, this function returns an invalid format.

This function was introduced in Qt 4.5.

See also QImageIOHandler::ImageOption, QImageIOHandler::option(), and QImageIOHandler::supportsOption().

func (*QImageReader) ImageReaderErrorItemName

func (this *QImageReader) ImageReaderErrorItemName(val int) string

func (*QImageReader) JumpToImage

func (this *QImageReader) JumpToImage(imageNumber int) bool

For image formats that support animation, this function skips to the image whose sequence number is imageNumber, returning true if successful or false if the corresponding image cannot be found.

The next call to read() will attempt to read this image.

See also jumpToNextImage() and QImageIOHandler::jumpToImage().

func (*QImageReader) JumpToNextImage

func (this *QImageReader) JumpToNextImage() bool

For image formats that support animation, this function steps over the current image, returning true if successful or false if there is no following image in the animation.

The default implementation calls read(), then discards the resulting image, but the image handler may have a more efficient way of implementing this operation.

See also jumpToImage() and QImageIOHandler::jumpToNextImage().

func (*QImageReader) LoopCount

func (this *QImageReader) LoopCount() int

For image formats that support animation, this function returns the number of times the animation should loop. If this function returns -1, it can either mean the animation should loop forever, or that an error occurred. If an error occurred, canRead() will return false.

See also supportsAnimation(), QImageIOHandler::loopCount(), and canRead().

func (*QImageReader) NewForInherit

func (*QImageReader) NewForInherit() *QImageReader

Constructs an empty QImageReader object. Before reading an image, call setDevice() or setFileName().

func (*QImageReader) NewForInherit1

func (*QImageReader) NewForInherit1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) *QImageReader

Constructs an empty QImageReader object. Before reading an image, call setDevice() or setFileName().

func (*QImageReader) NewForInherit1p

func (*QImageReader) NewForInherit1p(device qtcore.QIODevice_ITF) *QImageReader

Constructs an empty QImageReader object. Before reading an image, call setDevice() or setFileName().

func (*QImageReader) NewForInherit2

func (*QImageReader) NewForInherit2(fileName string, format qtcore.QByteArray_ITF) *QImageReader

Constructs an empty QImageReader object. Before reading an image, call setDevice() or setFileName().

func (*QImageReader) NewForInherit2p

func (*QImageReader) NewForInherit2p(fileName string) *QImageReader

Constructs an empty QImageReader object. Before reading an image, call setDevice() or setFileName().

func (*QImageReader) NewFromPointer

func (*QImageReader) NewFromPointer(cthis unsafe.Pointer) *QImageReader

func (*QImageReader) NextImageDelay

func (this *QImageReader) NextImageDelay() int

For image formats that support animation, this function returns the number of milliseconds to wait until displaying the next frame in the animation. If the image format doesn't support animation, 0 is returned.

This function returns -1 if an error occurred.

See also supportsAnimation(), QImageIOHandler::nextImageDelay(), and canRead().

func (*QImageReader) QImageReader_PTR

func (ptr *QImageReader) QImageReader_PTR() *QImageReader

func (*QImageReader) Quality

func (this *QImageReader) Quality() int

Returns the quality setting of the image format.

This function was introduced in Qt 4.2.

See also setQuality().

func (*QImageReader) Read

func (this *QImageReader) Read() *QImage

Reads an image from the device. On success, the image that was read is returned; otherwise, a null QImage is returned. You can then call error() to find the type of error that occurred, or errorString() to get a human readable description of the error.

For image formats that support animation, calling read() repeatedly will return the next frame. When all frames have been read, a null image will be returned.

See also canRead(), supportedImageFormats(), supportsAnimation(), and QMovie.

func (*QImageReader) Read1

func (this *QImageReader) Read1(image QImage_ITF) bool

Reads an image from the device. On success, the image that was read is returned; otherwise, a null QImage is returned. You can then call error() to find the type of error that occurred, or errorString() to get a human readable description of the error.

For image formats that support animation, calling read() repeatedly will return the next frame. When all frames have been read, a null image will be returned.

See also canRead(), supportedImageFormats(), supportsAnimation(), and QMovie.

func (*QImageReader) ScaledClipRect

func (this *QImageReader) ScaledClipRect() *qtcore.QRect

Returns the scaled clip rect of the image.

See also setScaledClipRect().

func (*QImageReader) ScaledSize

func (this *QImageReader) ScaledSize() *qtcore.QSize

Returns the scaled size of the image.

See also setScaledSize().

func (*QImageReader) SetAutoDetectImageFormat

func (this *QImageReader) SetAutoDetectImageFormat(enabled bool)

If enabled is true, image format autodetection is enabled; otherwise, it is disabled. By default, autodetection is enabled.

QImageReader uses an extensive approach to detecting the image format; firstly, if you pass a file name to QImageReader, it will attempt to detect the file extension if the given file name does not point to an existing file, by appending supported default extensions to the given file name, one at a time. It then uses the following approach to detect the image format:

Image plugins are queried first, based on either the optional format string, or the file name suffix (if the source device is a file). No content detection is done at this stage. QImageReader will choose the first plugin that supports reading for this format. If no plugin supports the image format, Qt's built-in handlers are checked based on either the optional format string, or the file name suffix. If no capable plugins or built-in handlers are found, each plugin is tested by inspecting the content of the data stream. If no plugins could detect the image format based on data contents, each built-in image handler is tested by inspecting the contents. Finally, if all above approaches fail, QImageReader will report failure when trying to read the image.

By disabling image format autodetection, QImageReader will only query the plugins and built-in handlers based on the format string (i.e., no file name extensions are tested).

See also autoDetectImageFormat(), QImageIOHandler::canRead(), and QImageIOPlugin::capabilities().

func (*QImageReader) SetAutoTransform

func (this *QImageReader) SetAutoTransform(enabled bool)

Determines that images returned by read() should have transformation metadata automatically applied if enabled is true.

This function was introduced in Qt 5.5.

See also autoTransform(), transformation(), and read().

func (*QImageReader) SetBackgroundColor

func (this *QImageReader) SetBackgroundColor(color QColor_ITF)

Sets the background color to color. Image formats that support this operation are expected to initialize the background to color before reading an image.

This function was introduced in Qt 4.1.

See also backgroundColor() and read().

func (*QImageReader) SetClipRect

func (this *QImageReader) SetClipRect(rect qtcore.QRect_ITF)

Sets the image clip rect (also known as the ROI, or Region Of Interest) to rect. The coordinates of rect are relative to the untransformed image size, as returned by size().

See also clipRect(), setScaledSize(), and setScaledClipRect().

func (*QImageReader) SetCthis

func (this *QImageReader) SetCthis(cthis unsafe.Pointer)

func (*QImageReader) SetDecideFormatFromContent

func (this *QImageReader) SetDecideFormatFromContent(ignored bool)

If ignored is set to true, then the image reader will ignore specified formats or file extensions and decide which plugin to use only based on the contents in the datastream.

Setting this flag means that all image plugins gets loaded. Each plugin will read the first bytes in the image data and decide if the plugin is compatible or not.

This also disables auto detecting the image format.

See also decideFormatFromContent().

func (*QImageReader) SetDevice

func (this *QImageReader) SetDevice(device qtcore.QIODevice_ITF)

Sets QImageReader's device to device. If a device has already been set, the old device is removed from QImageReader and is otherwise left unchanged.

If the device is not already open, QImageReader will attempt to open the device in QIODevice::ReadOnly mode by calling open(). Note that this does not work for certain devices, such as QProcess, QTcpSocket and QUdpSocket, where more logic is required to open the device.

See also device() and setFileName().

func (*QImageReader) SetFileName

func (this *QImageReader) SetFileName(fileName string)

Sets the file name of QImageReader to fileName. Internally, QImageReader will create a QFile object and open it in QIODevice::ReadOnly mode, and use this when reading images.

If fileName does not include a file extension (e.g., .png or .bmp), QImageReader will cycle through all supported extensions until it finds a matching file.

See also fileName(), setDevice(), and supportedImageFormats().

func (*QImageReader) SetFormat

func (this *QImageReader) SetFormat(format qtcore.QByteArray_ITF)

Sets the format QImageReader will use when reading images, to format. format is a case insensitive text string. Example:

QImageReader reader;
reader.setFormat("png"); // same as reader.setFormat("PNG");

You can call supportedImageFormats() for the full list of formats QImageReader supports.

See also format().

func (*QImageReader) SetGamma

func (this *QImageReader) SetGamma(gamma float32)

This is an image format specific function that forces images with gamma information to be gamma corrected to gamma. For image formats that do not support gamma correction, this value is ignored.

To gamma correct to a standard PC color-space, set gamma to 1/2.2.

This function was introduced in Qt 5.6.

See also gamma().

func (*QImageReader) SetQuality

func (this *QImageReader) SetQuality(quality int)

Sets the quality setting of the image format to quality.

Some image formats, in particular lossy ones, entail a tradeoff between a) visual quality of the resulting image, and b) decoding execution time. This function sets the level of that tradeoff for image formats that support it.

In case of scaled image reading, the quality setting may also influence the tradeoff level between visual quality and execution speed of the scaling algorithm.

The value range of quality depends on the image format. For example, the "jpeg" format supports a quality range from 0 (low visual quality) to 100 (high visual quality).

This function was introduced in Qt 4.2.

See also quality() and setScaledSize().

func (*QImageReader) SetScaledClipRect

func (this *QImageReader) SetScaledClipRect(rect qtcore.QRect_ITF)

Sets the scaled clip rect to rect. The scaled clip rect is the clip rect (also known as ROI, or Region Of Interest) that is applied after the image has been scaled.

See also scaledClipRect() and setScaledSize().

func (*QImageReader) SetScaledSize

func (this *QImageReader) SetScaledSize(size qtcore.QSize_ITF)

Sets the scaled size of the image to size. The scaling is performed after the initial clip rect, but before the scaled clip rect is applied. The algorithm used for scaling depends on the image format. By default (i.e., if the image format does not support scaling), QImageReader will use QImage::scale() with Qt::SmoothScaling.

See also scaledSize(), setClipRect(), and setScaledClipRect().

func (*QImageReader) Size

func (this *QImageReader) Size() *qtcore.QSize

Returns the size of the image, without actually reading the image contents.

If the image format does not support this feature, this function returns an invalid size. Qt's built-in image handlers all support this feature, but custom image format plugins are not required to do so.

See also QImageIOHandler::ImageOption, QImageIOHandler::option(), and QImageIOHandler::supportsOption().

func (*QImageReader) SubType

func (this *QImageReader) SubType() *qtcore.QByteArray

Returns the subtype of the image.

This function was introduced in Qt 5.4.

func (*QImageReader) SupportsAnimation

func (this *QImageReader) SupportsAnimation() bool

Returns true if the image format supports animation; otherwise, false is returned.

This function was introduced in Qt 4.1.

See also QMovie::supportedFormats().

func (*QImageReader) SupportsOption

func (this *QImageReader) SupportsOption(option int) bool

Returns true if the reader supports option; otherwise returns false.

Different image formats support different options. Call this function to determine whether a certain option is supported by the current format. For example, the PNG format allows you to embed text into the image's metadata (see text()), and the BMP format allows you to determine the image's size without loading the whole image into memory (see size()).

QImageReader reader(":/image.png");
if (reader.supportsOption(QImageIOHandler::Size))
    qDebug() << "Size:" << reader.size();

This function was introduced in Qt 4.2.

See also QImageWriter::supportsOption().

func (*QImageReader) Text

func (this *QImageReader) Text(key string) string

Returns the image text associated with key.

Support for this option is implemented through QImageIOHandler::Description.

This function was introduced in Qt 4.1.

See also textKeys() and QImageWriter::setText().

func (*QImageReader) TextKeys

func (this *QImageReader) TextKeys() *qtcore.QStringList

Returns the text keys for this image. You can use these keys with text() to list the image text for a certain key.

Support for this option is implemented through QImageIOHandler::Description.

This function was introduced in Qt 4.1.

See also text(), QImageWriter::setText(), and QImage::textKeys().

func (*QImageReader) Transformation

func (this *QImageReader) Transformation() int

Returns the transformation metadata of the image, including image orientation. If the format does not support transformation metadata QImageIOHandler::Transformation_None is returned.

This function was introduced in Qt 5.5.

See also setAutoTransform() and autoTransform().

type QImageReader_ITF

type QImageReader_ITF interface {
	QImageReader_PTR() *QImageReader
}

type QImageReader__ImageReaderError

type QImageReader__ImageReaderError = int

This enum describes the different types of errors that can occur when reading images with QImageReader.

const QImageReader__DeviceError QImageReader__ImageReaderError = 2

QImageReader encountered a device error when reading the image. You can consult your particular device for more details on what went wrong.

const QImageReader__FileNotFoundError QImageReader__ImageReaderError = 1

QImageReader was used with a file name, but not file was found with that name. This can also happen if the file name contained no extension, and the file with the correct extension is not supported by Qt.

const QImageReader__InvalidDataError QImageReader__ImageReaderError = 4

The image data was invalid, and QImageReader was unable to read an image from it. The can happen if the image file is damaged.

const QImageReader__UnknownError QImageReader__ImageReaderError = 0

An unknown error occurred. If you get this value after calling read(), it is most likely caused by a bug in QImageReader.

const QImageReader__UnsupportedFormatError QImageReader__ImageReaderError = 3

Qt does not support the requested image format.

type QImageWriter

type QImageWriter struct {
	*qtrt.CObject
}

func NewQImageWriter

func NewQImageWriter() *QImageWriter

func NewQImageWriter1

func NewQImageWriter1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) *QImageWriter

func NewQImageWriter2

func NewQImageWriter2(fileName string, format qtcore.QByteArray_ITF) *QImageWriter

func NewQImageWriter2p

func NewQImageWriter2p(fileName string) *QImageWriter

func NewQImageWriterFromPointer

func NewQImageWriterFromPointer(cthis unsafe.Pointer) *QImageWriter

func (*QImageWriter) CanWrite

func (this *QImageWriter) CanWrite() bool

Returns true if QImageWriter can write the image; i.e., the image format is supported and the assigned device is open for reading.

See also write(), setDevice(), and setFormat().

func (*QImageWriter) Compression

func (this *QImageWriter) Compression() int

Returns the compression of the image.

See also setCompression().

func (*QImageWriter) Description

func (this *QImageWriter) Description() string

func (*QImageWriter) Device

func (this *QImageWriter) Device() *qtcore.QIODevice

Returns the device currently assigned to QImageWriter, or 0 if no device has been assigned.

See also setDevice().

func (*QImageWriter) Error

func (this *QImageWriter) Error() int

Returns the type of error that last occurred.

See also ImageWriterError and errorString().

func (*QImageWriter) ErrorString

func (this *QImageWriter) ErrorString() string

Returns a human readable description of the last error that occurred.

See also error().

func (*QImageWriter) FileName

func (this *QImageWriter) FileName() string

If the currently assigned device is a QFile, or if setFileName() has been called, this function returns the name of the file QImageWriter writes to. Otherwise (i.e., if no device has been assigned or the device is not a QFile), an empty QString is returned.

See also setFileName() and setDevice().

func (*QImageWriter) Format

func (this *QImageWriter) Format() *qtcore.QByteArray

Returns the format QImageWriter uses for writing images.

See also setFormat().

func (*QImageWriter) Gamma

func (this *QImageWriter) Gamma() float32

Returns the gamma level of the image.

See also setGamma().

func (*QImageWriter) GetCthis

func (this *QImageWriter) GetCthis() unsafe.Pointer

func (*QImageWriter) ImageWriterErrorItemName

func (this *QImageWriter) ImageWriterErrorItemName(val int) string

func (*QImageWriter) NewForInherit

func (*QImageWriter) NewForInherit() *QImageWriter

Constructs an empty QImageWriter object. Before writing, you must call setFormat() to set an image format, then setDevice() or setFileName().

func (*QImageWriter) NewForInherit1

func (*QImageWriter) NewForInherit1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) *QImageWriter

Constructs an empty QImageWriter object. Before writing, you must call setFormat() to set an image format, then setDevice() or setFileName().

func (*QImageWriter) NewForInherit2

func (*QImageWriter) NewForInherit2(fileName string, format qtcore.QByteArray_ITF) *QImageWriter

Constructs an empty QImageWriter object. Before writing, you must call setFormat() to set an image format, then setDevice() or setFileName().

func (*QImageWriter) NewForInherit2p

func (*QImageWriter) NewForInherit2p(fileName string) *QImageWriter

Constructs an empty QImageWriter object. Before writing, you must call setFormat() to set an image format, then setDevice() or setFileName().

func (*QImageWriter) NewFromPointer

func (*QImageWriter) NewFromPointer(cthis unsafe.Pointer) *QImageWriter

func (*QImageWriter) OptimizedWrite

func (this *QImageWriter) OptimizedWrite() bool

Returns whether optimization has been turned on for writing the image.

This function was introduced in Qt 5.5.

See also setOptimizedWrite().

func (*QImageWriter) ProgressiveScanWrite

func (this *QImageWriter) ProgressiveScanWrite() bool

Returns whether the image should be written as a progressive image.

This function was introduced in Qt 5.5.

See also setProgressiveScanWrite().

func (*QImageWriter) QImageWriter_PTR

func (ptr *QImageWriter) QImageWriter_PTR() *QImageWriter

func (*QImageWriter) Quality

func (this *QImageWriter) Quality() int

Returns the quality setting of the image format.

See also setQuality().

func (*QImageWriter) SetCompression

func (this *QImageWriter) SetCompression(compression int)

This is an image format specific function that set the compression of an image. For image formats that do not support setting the compression, this value is ignored.

The value range of compression depends on the image format. For example, the "tiff" format supports two values, 0(no compression) and 1(LZW-compression).

See also compression().

func (*QImageWriter) SetCthis

func (this *QImageWriter) SetCthis(cthis unsafe.Pointer)

func (*QImageWriter) SetDescription

func (this *QImageWriter) SetDescription(description string)

func (*QImageWriter) SetDevice

func (this *QImageWriter) SetDevice(device qtcore.QIODevice_ITF)

Sets QImageWriter's device to device. If a device has already been set, the old device is removed from QImageWriter and is otherwise left unchanged.

If the device is not already open, QImageWriter will attempt to open the device in QIODevice::WriteOnly mode by calling open(). Note that this does not work for certain devices, such as QProcess, QTcpSocket and QUdpSocket, where more logic is required to open the device.

See also device() and setFileName().

func (*QImageWriter) SetFileName

func (this *QImageWriter) SetFileName(fileName string)

Sets the file name of QImageWriter to fileName. Internally, QImageWriter will create a QFile and open it in QIODevice::WriteOnly mode, and use this file when writing images.

See also fileName() and setDevice().

func (*QImageWriter) SetFormat

func (this *QImageWriter) SetFormat(format qtcore.QByteArray_ITF)

Sets the format QImageWriter will use when writing images, to format. format is a case insensitive text string. Example:

QImageWriter writer;
writer.setFormat("png"); // same as writer.setFormat("PNG");

You can call supportedImageFormats() for the full list of formats QImageWriter supports.

See also format().

func (*QImageWriter) SetGamma

func (this *QImageWriter) SetGamma(gamma float32)

This is an image format specific function that sets the gamma level of the image to gamma. For image formats that do not support setting the gamma level, this value is ignored.

The value range of gamma depends on the image format. For example, the "png" format supports a gamma range from 0.0 to 1.0.

See also gamma() and quality().

func (*QImageWriter) SetOptimizedWrite

func (this *QImageWriter) SetOptimizedWrite(optimize bool)

This is an image format-specific function which sets the optimize flags when writing images. For image formats that do not support setting an optimize flag, this value is ignored.

The default is false.

This function was introduced in Qt 5.5.

See also optimizedWrite().

func (*QImageWriter) SetProgressiveScanWrite

func (this *QImageWriter) SetProgressiveScanWrite(progressive bool)

This is an image format-specific function which turns on progressive scanning when writing images. For image formats that do not support setting a progressive scan flag, this value is ignored.

The default is false.

This function was introduced in Qt 5.5.

See also progressiveScanWrite().

func (*QImageWriter) SetQuality

func (this *QImageWriter) SetQuality(quality int)

Sets the quality setting of the image format to quality.

Some image formats, in particular lossy ones, entail a tradeoff between a) visual quality of the resulting image, and b) encoding execution time and compression level. This function sets the level of that tradeoff for image formats that support it. For other formats, this value is ignored.

The value range of quality depends on the image format. For example, the "jpeg" format supports a quality range from 0 (low visual quality, high compression) to 100 (high visual quality, low compression).

See also quality().

func (*QImageWriter) SetSubType

func (this *QImageWriter) SetSubType(type_ qtcore.QByteArray_ITF)

This is an image format specific function that sets the subtype of the image to type. Subtype can be used by a handler to determine which format it should use while saving the image.

For example, saving an image in DDS format with A8R8G8R8 subtype:

QImageWriter writer("some/image.dds");
if (writer.supportsOption(QImageIOHandler::SubType))
    writer.setSubType("A8R8G8B8");
writer.write(image);

This function was introduced in Qt 5.4.

See also subType().

func (*QImageWriter) SetText

func (this *QImageWriter) SetText(key string, text string)

Sets the image text associated with the key key to text. This is useful for storing copyright information or other information about the image. Example:

QImage image("some/image.jpeg");
QImageWriter writer("images/outimage.png", "png");
writer.setText("Author", "John Smith");
writer.write(image);

If you want to store a single block of data (e.g., a comment), you can pass an empty key, or use a generic key like "Description".

The key and text will be embedded into the image data after calling write().

Support for this option is implemented through QImageIOHandler::Description.

This function was introduced in Qt 4.1.

See also QImage::setText() and QImageReader::text().

func (*QImageWriter) SetTransformation

func (this *QImageWriter) SetTransformation(orientation int)

Sets the image transformations metadata including orientation to transform.

If transformation metadata is not supported by the image format, the transform is applied before writing.

This function was introduced in Qt 5.5.

See also transformation() and write().

func (*QImageWriter) SubType

func (this *QImageWriter) SubType() *qtcore.QByteArray

Returns the subtype of the image.

This function was introduced in Qt 5.4.

See also setSubType().

func (*QImageWriter) SupportsOption

func (this *QImageWriter) SupportsOption(option int) bool

Returns true if the writer supports option; otherwise returns false.

Different image formats support different options. Call this function to determine whether a certain option is supported by the current format. For example, the PNG format allows you to embed text into the image's metadata (see text()).

QImageWriter writer(fileName);
if (writer.supportsOption(QImageIOHandler::Description))
    writer.setText("Author", "John Smith");

Options can be tested after the writer has been associated with a format.

This function was introduced in Qt 4.2.

See also QImageReader::supportsOption() and setFormat().

func (*QImageWriter) Transformation

func (this *QImageWriter) Transformation() int

Returns the transformation and orientation the image has been set to written with.

This function was introduced in Qt 5.5.

See also setTransformation().

func (*QImageWriter) Write

func (this *QImageWriter) Write(image QImage_ITF) bool

Writes the image image to the assigned device or file name. Returns true on success; otherwise returns false. If the operation fails, you can call error() to find the type of error that occurred, or errorString() to get a human readable description of the error.

See also canWrite(), error(), and errorString().

type QImageWriter_ITF

type QImageWriter_ITF interface {
	QImageWriter_PTR() *QImageWriter
}

type QImageWriter__ImageWriterError

type QImageWriter__ImageWriterError = int

This enum describes errors that can occur when writing images with QImageWriter.

const QImageWriter__DeviceError QImageWriter__ImageWriterError = 1

QImageWriter encountered a device error when writing the image data. Consult your device for more details on what went wrong.

const QImageWriter__InvalidImageError QImageWriter__ImageWriterError = 3

An attempt was made to write an invalid QImage. An example of an invalid image would be a null QImage.

const QImageWriter__UnknownError QImageWriter__ImageWriterError = 0

An unknown error occurred. If you get this value after calling write(), it is most likely caused by a bug in QImageWriter.

const QImageWriter__UnsupportedFormatError QImageWriter__ImageWriterError = 2

Qt does not support the requested image format.

type QImage_ITF

type QImage_ITF interface {
	QPaintDevice_ITF
	QImage_PTR() *QImage
}

type QImage__Format

type QImage__Format = int

The following image formats are available in Qt. See the notes after the table.

Note: Avoid most rendering directly to most of these formats using QPainter. Rendering is best optimized to the Format_RGB32 and Format_ARGB32_Premultiplied formats, and secondarily for rendering to the Format_RGB16, Format_RGBX8888, Format_RGBA8888_Premultiplied, Format_RGBX64 and Format_RGBA64_Premultiplied formats

See also format() and convertToFormat().

const QImage__Format_A2BGR30_Premultiplied QImage__Format = 20
const QImage__Format_A2RGB30_Premultiplied QImage__Format = 22
const QImage__Format_ARGB32 QImage__Format = 5
const QImage__Format_ARGB32_Premultiplied QImage__Format = 6
const QImage__Format_ARGB4444_Premultiplied QImage__Format = 15
const QImage__Format_ARGB6666_Premultiplied QImage__Format = 10
const QImage__Format_ARGB8555_Premultiplied QImage__Format = 12
const QImage__Format_ARGB8565_Premultiplied QImage__Format = 8
const QImage__Format_Alpha8 QImage__Format = 23
const QImage__Format_BGR30 QImage__Format = 19
const QImage__Format_Grayscale8 QImage__Format = 24
const QImage__Format_Indexed8 QImage__Format = 3
const QImage__Format_Invalid QImage__Format = 0

The image is invalid.

const QImage__Format_Mono QImage__Format = 1
const QImage__Format_MonoLSB QImage__Format = 2
const QImage__Format_RGB16 QImage__Format = 7
const QImage__Format_RGB30 QImage__Format = 21
const QImage__Format_RGB32 QImage__Format = 4
const QImage__Format_RGB444 QImage__Format = 14
const QImage__Format_RGB555 QImage__Format = 11
const QImage__Format_RGB666 QImage__Format = 9
const QImage__Format_RGB888 QImage__Format = 13
const QImage__Format_RGBA64 QImage__Format = 26
const QImage__Format_RGBA64_Premultiplied QImage__Format = 27
const QImage__Format_RGBA8888 QImage__Format = 17
const QImage__Format_RGBA8888_Premultiplied QImage__Format = 18
const QImage__Format_RGBX64 QImage__Format = 25
const QImage__Format_RGBX8888 QImage__Format = 16
const QImage__NImageFormats QImage__Format = 28

type QImage__InvertMode

type QImage__InvertMode = int

This enum type is used to describe how pixel values should be inverted in the invertPixels() function.

See also invertPixels().

const QImage__InvertRgb QImage__InvertMode = 0

Invert only the RGB values and leave the alpha channel unchanged.

const QImage__InvertRgba QImage__InvertMode = 1

Invert all channels, including the alpha channel.

type QInputEvent

type QInputEvent struct {
	*qtcore.QEvent
}

func NewQInputEvent

func NewQInputEvent(type_ int, modifiers int) *QInputEvent

func NewQInputEventFromPointer

func NewQInputEventFromPointer(cthis unsafe.Pointer) *QInputEvent

func NewQInputEventp

func NewQInputEventp(type_ int) *QInputEvent

func (*QInputEvent) GetCthis

func (this *QInputEvent) GetCthis() unsafe.Pointer

func (*QInputEvent) Modifiers

func (this *QInputEvent) Modifiers() int

func (*QInputEvent) NewForInherit

func (*QInputEvent) NewForInherit(type_ int, modifiers int) *QInputEvent

func (*QInputEvent) NewForInheritp

func (*QInputEvent) NewForInheritp(type_ int) *QInputEvent

func (*QInputEvent) NewFromPointer

func (*QInputEvent) NewFromPointer(cthis unsafe.Pointer) *QInputEvent

func (*QInputEvent) QInputEvent_PTR

func (ptr *QInputEvent) QInputEvent_PTR() *QInputEvent

func (*QInputEvent) SetCthis

func (this *QInputEvent) SetCthis(cthis unsafe.Pointer)

func (*QInputEvent) SetModifiers

func (this *QInputEvent) SetModifiers(amodifiers int)

func (*QInputEvent) SetTimestamp

func (this *QInputEvent) SetTimestamp(atimestamp uint)

func (*QInputEvent) Timestamp

func (this *QInputEvent) Timestamp() uint

type QInputEvent_ITF

type QInputEvent_ITF interface {
	qtcore.QEvent_ITF
	QInputEvent_PTR() *QInputEvent
}

type QInputMethod

type QInputMethod struct {
	*qtcore.QObject
}

func NewQInputMethodFromPointer

func NewQInputMethodFromPointer(cthis unsafe.Pointer) *QInputMethod

func QGuiApplication_InputMethod

func QGuiApplication_InputMethod() *QInputMethod

func (*QInputMethod) ActionItemName

func (this *QInputMethod) ActionItemName(val int) string

func (*QInputMethod) AnchorRectangle

func (this *QInputMethod) AnchorRectangle() *qtcore.QRectF

func (*QInputMethod) AnchorRectangleChanged

func (this *QInputMethod) AnchorRectangleChanged()

func (*QInputMethod) AnimatingChanged

func (this *QInputMethod) AnimatingChanged()

func (*QInputMethod) Commit

func (this *QInputMethod) Commit()

Commits the word user is currently composing to the editor. The function is mostly needed by the input methods with text prediction features and by the methods where the script used for typing characters is different from the script that actually gets appended to the editor. Any kind of action that interrupts the text composing needs to flush the composing state by calling the commit() function, for example when the cursor is moved elsewhere.

func (*QInputMethod) CursorRectangle

func (this *QInputMethod) CursorRectangle() *qtcore.QRectF

func (*QInputMethod) CursorRectangleChanged

func (this *QInputMethod) CursorRectangleChanged()

func (*QInputMethod) GetCthis

func (this *QInputMethod) GetCthis() unsafe.Pointer

func (*QInputMethod) Hide

func (this *QInputMethod) Hide()

Requests virtual keyboard to close.

Normally applications should not need to call this function, keyboard should automatically close when the text editor loses focus, for example when the parent view is closed.

func (*QInputMethod) InputDirection

func (this *QInputMethod) InputDirection() int

func (*QInputMethod) InputDirectionChanged

func (this *QInputMethod) InputDirectionChanged(newDirection int)

func (*QInputMethod) InputItemClipRectangle

func (this *QInputMethod) InputItemClipRectangle() *qtcore.QRectF

func (*QInputMethod) InputItemClipRectangleChanged

func (this *QInputMethod) InputItemClipRectangleChanged()

func (*QInputMethod) InputItemRectangle

func (this *QInputMethod) InputItemRectangle() *qtcore.QRectF

Returns the input item's geometry in input item coordinates.

This function was introduced in Qt 5.1.

See also setInputItemRectangle().

func (*QInputMethod) InputItemTransform

func (this *QInputMethod) InputItemTransform() *QTransform

Returns the transformation from input item coordinates to the window coordinates.

See also setInputItemTransform().

func (*QInputMethod) InvokeAction

func (this *QInputMethod) InvokeAction(a int, cursorPosition int)

Called by the input item when the word currently being composed is tapped by the user, as indicated by the action a and the given cursorPosition. Input methods often use this information to offer more word suggestions to the user.

func (*QInputMethod) IsAnimating

func (this *QInputMethod) IsAnimating() bool

func (*QInputMethod) IsVisible

func (this *QInputMethod) IsVisible() bool

func (*QInputMethod) KeyboardRectangle

func (this *QInputMethod) KeyboardRectangle() *qtcore.QRectF

func (*QInputMethod) KeyboardRectangleChanged

func (this *QInputMethod) KeyboardRectangleChanged()

func (*QInputMethod) Locale

func (this *QInputMethod) Locale() *qtcore.QLocale

func (*QInputMethod) LocaleChanged

func (this *QInputMethod) LocaleChanged()

func (*QInputMethod) MetaObject

func (this *QInputMethod) MetaObject() *qtcore.QMetaObject

func (*QInputMethod) NewFromPointer

func (*QInputMethod) NewFromPointer(cthis unsafe.Pointer) *QInputMethod

func (*QInputMethod) QInputMethod_PTR

func (ptr *QInputMethod) QInputMethod_PTR() *QInputMethod

func (*QInputMethod) QueryFocusObject

func (this *QInputMethod) QueryFocusObject(query int, argument qtcore.QVariant_ITF) *qtcore.QVariant

Send query to the current focus object with parameters argument and return the result.

func (*QInputMethod) Reset

func (this *QInputMethod) Reset()

Resets the input method state. For example, a text editor normally calls this method before inserting a text to make widget ready to accept a text.

Input method resets automatically when the focused editor changes.

func (*QInputMethod) SetCthis

func (this *QInputMethod) SetCthis(cthis unsafe.Pointer)

func (*QInputMethod) SetInputItemRectangle

func (this *QInputMethod) SetInputItemRectangle(rect qtcore.QRectF_ITF)

Sets the input item's geometry to be rect, in input item coordinates. This needs to be updated by the focused window like QQuickCanvas whenever item is moved inside the scene, or focus is changed.

This function was introduced in Qt 5.1.

See also inputItemRectangle().

func (*QInputMethod) SetInputItemTransform

func (this *QInputMethod) SetInputItemTransform(transform QTransform_ITF)

Sets the transformation from input item coordinates to window coordinates to be transform. Item transform needs to be updated by the focused window like QQuickCanvas whenever item is moved inside the scene.

See also inputItemTransform().

func (*QInputMethod) SetVisible

func (this *QInputMethod) SetVisible(visible bool)

Controls the keyboard visibility. Equivalent to calling show() (if visible is true) or hide() (if visible is false).

See also isVisible(), show(), and hide().

func (*QInputMethod) Show

func (this *QInputMethod) Show()

Requests virtual keyboard to open. If the platform doesn't provide virtual keyboard the visibility remains false.

Normally applications should not need to call this function, keyboard should automatically open when the text editor gains focus.

func (*QInputMethod) Update

func (this *QInputMethod) Update(queries int)

Called by the input item to inform the platform input methods when there has been state changes in editor's input method query attributes. When calling the function queries parameter has to be used to tell what has changes, which input method can use to make queries for attributes it's interested with QInputMethodQueryEvent.

In particular calling update whenever the cursor position changes is important as that often causes other query attributes like surrounding text and text selection to change as well. The attributes that often change together with cursor position have been grouped in Qt::ImQueryInput value for convenience.

func (*QInputMethod) VisibleChanged

func (this *QInputMethod) VisibleChanged()

type QInputMethodEvent

type QInputMethodEvent struct {
	*qtcore.QEvent
}

func NewQInputMethodEvent

func NewQInputMethodEvent() *QInputMethodEvent

func NewQInputMethodEventFromPointer

func NewQInputMethodEventFromPointer(cthis unsafe.Pointer) *QInputMethodEvent

func (*QInputMethodEvent) AttributeTypeItemName

func (this *QInputMethodEvent) AttributeTypeItemName(val int) string

func (*QInputMethodEvent) CommitString

func (this *QInputMethodEvent) CommitString() string

func (*QInputMethodEvent) GetCthis

func (this *QInputMethodEvent) GetCthis() unsafe.Pointer

func (*QInputMethodEvent) NewForInherit

func (*QInputMethodEvent) NewForInherit() *QInputMethodEvent

func (*QInputMethodEvent) NewFromPointer

func (*QInputMethodEvent) NewFromPointer(cthis unsafe.Pointer) *QInputMethodEvent

func (*QInputMethodEvent) PreeditString

func (this *QInputMethodEvent) PreeditString() string

func (*QInputMethodEvent) QInputMethodEvent_PTR

func (ptr *QInputMethodEvent) QInputMethodEvent_PTR() *QInputMethodEvent

func (*QInputMethodEvent) ReplacementLength

func (this *QInputMethodEvent) ReplacementLength() int

func (*QInputMethodEvent) ReplacementStart

func (this *QInputMethodEvent) ReplacementStart() int

func (*QInputMethodEvent) SetCommitString

func (this *QInputMethodEvent) SetCommitString(commitString string, replaceFrom int, replaceLength int)

func (*QInputMethodEvent) SetCommitStringp

func (this *QInputMethodEvent) SetCommitStringp(commitString string)

func (*QInputMethodEvent) SetCommitStringp1

func (this *QInputMethodEvent) SetCommitStringp1(commitString string, replaceFrom int)

func (*QInputMethodEvent) SetCthis

func (this *QInputMethodEvent) SetCthis(cthis unsafe.Pointer)

type QInputMethodEvent_ITF

type QInputMethodEvent_ITF interface {
	qtcore.QEvent_ITF
	QInputMethodEvent_PTR() *QInputMethodEvent
}

type QInputMethodEvent__AttributeType

type QInputMethodEvent__AttributeType = int
const QInputMethodEvent__Cursor QInputMethodEvent__AttributeType = 1
const QInputMethodEvent__Language QInputMethodEvent__AttributeType = 2
const QInputMethodEvent__Ruby QInputMethodEvent__AttributeType = 3
const QInputMethodEvent__Selection QInputMethodEvent__AttributeType = 4
const QInputMethodEvent__TextFormat QInputMethodEvent__AttributeType = 0

type QInputMethodQueryEvent

type QInputMethodQueryEvent struct {
	*qtcore.QEvent
}

func NewQInputMethodQueryEvent

func NewQInputMethodQueryEvent(queries int) *QInputMethodQueryEvent

func NewQInputMethodQueryEventFromPointer

func NewQInputMethodQueryEventFromPointer(cthis unsafe.Pointer) *QInputMethodQueryEvent

func (*QInputMethodQueryEvent) GetCthis

func (this *QInputMethodQueryEvent) GetCthis() unsafe.Pointer

func (*QInputMethodQueryEvent) NewForInherit

func (*QInputMethodQueryEvent) NewForInherit(queries int) *QInputMethodQueryEvent

func (*QInputMethodQueryEvent) NewFromPointer

func (*QInputMethodQueryEvent) QInputMethodQueryEvent_PTR

func (ptr *QInputMethodQueryEvent) QInputMethodQueryEvent_PTR() *QInputMethodQueryEvent

func (*QInputMethodQueryEvent) Queries

func (this *QInputMethodQueryEvent) Queries() int

func (*QInputMethodQueryEvent) SetCthis

func (this *QInputMethodQueryEvent) SetCthis(cthis unsafe.Pointer)

func (*QInputMethodQueryEvent) SetValue

func (this *QInputMethodQueryEvent) SetValue(query int, value qtcore.QVariant_ITF)

func (*QInputMethodQueryEvent) Value

func (this *QInputMethodQueryEvent) Value(query int) *qtcore.QVariant

type QInputMethodQueryEvent_ITF

type QInputMethodQueryEvent_ITF interface {
	qtcore.QEvent_ITF
	QInputMethodQueryEvent_PTR() *QInputMethodQueryEvent
}

type QInputMethod_ITF

type QInputMethod_ITF interface {
	qtcore.QObject_ITF
	QInputMethod_PTR() *QInputMethod
}

type QInputMethod__Action

type QInputMethod__Action = int

Indicates the kind of action performed by the user.

See also invokeAction().

const QInputMethod__Click QInputMethod__Action = 0

A normal click/tap

const QInputMethod__ContextMenu QInputMethod__Action = 1

A context menu click/tap (e.g. right-button or tap-and-hold)

type QIntValidator

type QIntValidator struct {
	*QValidator
}

func NewQIntValidator

func NewQIntValidator(parent qtcore.QObject_ITF) *QIntValidator

func NewQIntValidator1

func NewQIntValidator1(bottom int, top int, parent qtcore.QObject_ITF) *QIntValidator

func NewQIntValidator1p

func NewQIntValidator1p(bottom int, top int) *QIntValidator

func NewQIntValidatorFromPointer

func NewQIntValidatorFromPointer(cthis unsafe.Pointer) *QIntValidator

func NewQIntValidatorp

func NewQIntValidatorp() *QIntValidator

func (*QIntValidator) Bottom

func (this *QIntValidator) Bottom() int

func (*QIntValidator) BottomChanged

func (this *QIntValidator) BottomChanged(bottom int)

func (*QIntValidator) Fixup

func (this *QIntValidator) Fixup(input string)

This function attempts to change input to be valid according to this validator's rules. It need not result in a valid string: callers of this function must re-test afterwards; the default does nothing.

Reimplementations of this function can change input even if they do not produce a valid string. For example, an ISBN validator might want to delete every character except digits and "-", even if the result is still not a valid ISBN; a surname validator might want to remove whitespace from the start and end of the string, even if the resulting string is not in the list of accepted surnames.

func (*QIntValidator) GetCthis

func (this *QIntValidator) GetCthis() unsafe.Pointer

func (*QIntValidator) MetaObject

func (this *QIntValidator) MetaObject() *qtcore.QMetaObject

func (*QIntValidator) NewForInherit

func (*QIntValidator) NewForInherit(parent qtcore.QObject_ITF) *QIntValidator

func (*QIntValidator) NewForInherit1

func (*QIntValidator) NewForInherit1(bottom int, top int, parent qtcore.QObject_ITF) *QIntValidator

func (*QIntValidator) NewForInherit1p

func (*QIntValidator) NewForInherit1p(bottom int, top int) *QIntValidator

func (*QIntValidator) NewForInheritp

func (*QIntValidator) NewForInheritp() *QIntValidator

func (*QIntValidator) NewFromPointer

func (*QIntValidator) NewFromPointer(cthis unsafe.Pointer) *QIntValidator

func (*QIntValidator) QIntValidator_PTR

func (ptr *QIntValidator) QIntValidator_PTR() *QIntValidator

func (*QIntValidator) SetBottom

func (this *QIntValidator) SetBottom(arg0 int)

func (*QIntValidator) SetCthis

func (this *QIntValidator) SetCthis(cthis unsafe.Pointer)

func (*QIntValidator) SetRange

func (this *QIntValidator) SetRange(bottom int, top int)

func (*QIntValidator) SetTop

func (this *QIntValidator) SetTop(arg0 int)

func (*QIntValidator) Top

func (this *QIntValidator) Top() int

func (*QIntValidator) TopChanged

func (this *QIntValidator) TopChanged(top int)

func (*QIntValidator) Validate

func (this *QIntValidator) Validate(arg0 string, arg1 int) int

This virtual function returns Invalid if input is invalid according to this validator's rules, Intermediate if it is likely that a little more editing will make the input acceptable (e.g. the user types "4" into a widget which accepts integers between 10 and 99), and Acceptable if the input is valid.

The function can change both input and pos (the cursor position) if required.

type QIntValidator_ITF

type QIntValidator_ITF interface {
	QValidator_ITF
	QIntValidator_PTR() *QIntValidator
}

type QKeyEvent

type QKeyEvent struct {
	*QInputEvent
}

func NewQKeyEvent

func NewQKeyEvent(type_ int, key int, modifiers int, text string, autorep bool, count uint16) *QKeyEvent

func NewQKeyEvent1

func NewQKeyEvent1(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool, count uint16) *QKeyEvent

func NewQKeyEvent1p

func NewQKeyEvent1p(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint) *QKeyEvent

func NewQKeyEvent1p1

func NewQKeyEvent1p1(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string) *QKeyEvent

func NewQKeyEvent1p2

func NewQKeyEvent1p2(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool) *QKeyEvent

func NewQKeyEventFromPointer

func NewQKeyEventFromPointer(cthis unsafe.Pointer) *QKeyEvent

func NewQKeyEventp

func NewQKeyEventp(type_ int, key int, modifiers int) *QKeyEvent

func NewQKeyEventp1

func NewQKeyEventp1(type_ int, key int, modifiers int, text string) *QKeyEvent

func NewQKeyEventp2

func NewQKeyEventp2(type_ int, key int, modifiers int, text string, autorep bool) *QKeyEvent

func (*QKeyEvent) Count

func (this *QKeyEvent) Count() int

func (*QKeyEvent) GetCthis

func (this *QKeyEvent) GetCthis() unsafe.Pointer

func (*QKeyEvent) IsAutoRepeat

func (this *QKeyEvent) IsAutoRepeat() bool

func (*QKeyEvent) Key

func (this *QKeyEvent) Key() int

func (*QKeyEvent) Matches

func (this *QKeyEvent) Matches(key int) bool

func (*QKeyEvent) Modifiers

func (this *QKeyEvent) Modifiers() int

func (*QKeyEvent) NativeModifiers

func (this *QKeyEvent) NativeModifiers() uint

func (*QKeyEvent) NativeScanCode

func (this *QKeyEvent) NativeScanCode() uint

func (*QKeyEvent) NativeVirtualKey

func (this *QKeyEvent) NativeVirtualKey() uint

func (*QKeyEvent) NewForInherit

func (*QKeyEvent) NewForInherit(type_ int, key int, modifiers int, text string, autorep bool, count uint16) *QKeyEvent

func (*QKeyEvent) NewForInherit1

func (*QKeyEvent) NewForInherit1(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool, count uint16) *QKeyEvent

func (*QKeyEvent) NewForInherit1p

func (*QKeyEvent) NewForInherit1p(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint) *QKeyEvent

func (*QKeyEvent) NewForInherit1p1

func (*QKeyEvent) NewForInherit1p1(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string) *QKeyEvent

func (*QKeyEvent) NewForInherit1p2

func (*QKeyEvent) NewForInherit1p2(type_ int, key int, modifiers int, nativeScanCode uint, nativeVirtualKey uint, nativeModifiers uint, text string, autorep bool) *QKeyEvent

func (*QKeyEvent) NewForInheritp

func (*QKeyEvent) NewForInheritp(type_ int, key int, modifiers int) *QKeyEvent

func (*QKeyEvent) NewForInheritp1

func (*QKeyEvent) NewForInheritp1(type_ int, key int, modifiers int, text string) *QKeyEvent

func (*QKeyEvent) NewForInheritp2

func (*QKeyEvent) NewForInheritp2(type_ int, key int, modifiers int, text string, autorep bool) *QKeyEvent

func (*QKeyEvent) NewFromPointer

func (*QKeyEvent) NewFromPointer(cthis unsafe.Pointer) *QKeyEvent

func (*QKeyEvent) QKeyEvent_PTR

func (ptr *QKeyEvent) QKeyEvent_PTR() *QKeyEvent

func (*QKeyEvent) SetCthis

func (this *QKeyEvent) SetCthis(cthis unsafe.Pointer)

func (*QKeyEvent) Text

func (this *QKeyEvent) Text() string

type QKeyEvent_ITF

type QKeyEvent_ITF interface {
	QInputEvent_ITF
	QKeyEvent_PTR() *QKeyEvent
}

type QKeySequence

type QKeySequence struct {
	*qtrt.CObject
}

func NewQKeySequence

func NewQKeySequence() *QKeySequence

func NewQKeySequence1

func NewQKeySequence1(key string, format int) *QKeySequence

func NewQKeySequence1p

func NewQKeySequence1p(key string) *QKeySequence

func NewQKeySequence2

func NewQKeySequence2(k1 int, k2 int, k3 int, k4 int) *QKeySequence

func NewQKeySequence2p

func NewQKeySequence2p(k1 int) *QKeySequence

func NewQKeySequence2p1

func NewQKeySequence2p1(k1 int, k2 int) *QKeySequence

func NewQKeySequence2p2

func NewQKeySequence2p2(k1 int, k2 int, k3 int) *QKeySequence

func NewQKeySequence3

func NewQKeySequence3(key int) *QKeySequence

func NewQKeySequenceFromPointer

func NewQKeySequenceFromPointer(cthis unsafe.Pointer) *QKeySequence

func QKeySequence_FromString

func QKeySequence_FromString(str string, format int) *QKeySequence

func QKeySequence_Mnemonic

func QKeySequence_Mnemonic(text string) *QKeySequence

func (*QKeySequence) Count

func (this *QKeySequence) Count() int

Returns the number of keys in the key sequence. The maximum is 4.

func (*QKeySequence) FromString

func (this *QKeySequence) FromString(str string, format int) *QKeySequence

Return a QKeySequence from the string str based on format.

This function was introduced in Qt 4.1.

See also toString().

func (*QKeySequence) FromStringp

func (this *QKeySequence) FromStringp(str string) *QKeySequence

Return a QKeySequence from the string str based on format.

This function was introduced in Qt 4.1.

See also toString().

func (*QKeySequence) GetCthis

func (this *QKeySequence) GetCthis() unsafe.Pointer

func (*QKeySequence) IsDetached

func (this *QKeySequence) IsDetached() bool

func (*QKeySequence) IsEmpty

func (this *QKeySequence) IsEmpty() bool

Returns true if the key sequence is empty; otherwise returns false.

func (*QKeySequence) Matches

func (this *QKeySequence) Matches(seq QKeySequence_ITF) int

Matches the sequence with seq. Returns ExactMatch if successful, PartialMatch if seq matches incompletely, and NoMatch if the sequences have nothing in common. Returns NoMatch if seq is shorter.

func (*QKeySequence) Mnemonic

func (this *QKeySequence) Mnemonic(text string) *QKeySequence

Returns the shortcut key sequence for the mnemonic in text, or an empty key sequence if no mnemonics are found.

For example, mnemonic("E&xit") returns Qt::ALT+Qt::Key_X, mnemonic("&Quit") returns ALT+Key_Q, and mnemonic("Quit") returns an empty QKeySequence.

We provide a list of common mnemonics in English. At the time of writing, Microsoft and Open Group do not appear to have issued equivalent recommendations for other languages.

func (*QKeySequence) NewForInherit

func (*QKeySequence) NewForInherit() *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewForInherit1

func (*QKeySequence) NewForInherit1(key string, format int) *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewForInherit1p

func (*QKeySequence) NewForInherit1p(key string) *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewForInherit2

func (*QKeySequence) NewForInherit2(k1 int, k2 int, k3 int, k4 int) *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewForInherit2p

func (*QKeySequence) NewForInherit2p(k1 int) *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewForInherit2p1

func (*QKeySequence) NewForInherit2p1(k1 int, k2 int) *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewForInherit2p2

func (*QKeySequence) NewForInherit2p2(k1 int, k2 int, k3 int) *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewForInherit3

func (*QKeySequence) NewForInherit3(key int) *QKeySequence

Constructs an empty key sequence.

func (*QKeySequence) NewFromPointer

func (*QKeySequence) NewFromPointer(cthis unsafe.Pointer) *QKeySequence

func (*QKeySequence) Operator_equal

func (this *QKeySequence) Operator_equal(other QKeySequence_ITF) *QKeySequence

func (*QKeySequence) Operator_equal1

func (this *QKeySequence) Operator_equal1(other unsafe.Pointer) *QKeySequence

func (*QKeySequence) Operator_equal_equal

func (this *QKeySequence) Operator_equal_equal(other QKeySequence_ITF) bool

func (*QKeySequence) Operator_get_index

func (this *QKeySequence) Operator_get_index(i uint) int

func (*QKeySequence) Operator_greater_than

func (this *QKeySequence) Operator_greater_than(other QKeySequence_ITF) bool

func (*QKeySequence) Operator_greater_than_equal

func (this *QKeySequence) Operator_greater_than_equal(other QKeySequence_ITF) bool

func (*QKeySequence) Operator_less_than

func (this *QKeySequence) Operator_less_than(ks QKeySequence_ITF) bool

func (*QKeySequence) Operator_less_than_equal

func (this *QKeySequence) Operator_less_than_equal(other QKeySequence_ITF) bool

func (*QKeySequence) Operator_not_equal

func (this *QKeySequence) Operator_not_equal(other QKeySequence_ITF) bool

func (*QKeySequence) QKeySequence_PTR

func (ptr *QKeySequence) QKeySequence_PTR() *QKeySequence

func (*QKeySequence) SequenceFormatItemName

func (this *QKeySequence) SequenceFormatItemName(val int) string

func (*QKeySequence) SequenceMatchItemName

func (this *QKeySequence) SequenceMatchItemName(val int) string

func (*QKeySequence) SetCthis

func (this *QKeySequence) SetCthis(cthis unsafe.Pointer)

func (*QKeySequence) StandardKeyItemName

func (this *QKeySequence) StandardKeyItemName(val int) string

func (*QKeySequence) Swap

func (this *QKeySequence) Swap(other QKeySequence_ITF)

Swaps key sequence other with this key sequence. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QKeySequence) ToString

func (this *QKeySequence) ToString(format int) string

Return a string representation of the key sequence, based on format.

For example, the value Qt::CTRL+Qt::Key_O results in "Ctrl+O". If the key sequence has multiple key codes, each is separated by commas in the string returned, such as "Alt+X, Ctrl+Y, Z". The strings, "Ctrl", "Shift", etc. are translated using QObject::tr() in the "QShortcut" context.

If the key sequence has no keys, an empty string is returned.

On macOS, the string returned resembles the sequence that is shown in the menu bar if format is QKeySequence::NativeText; otherwise, the string uses the "portable" format, suitable for writing to a file.

This function was introduced in Qt 4.1.

See also fromString().

func (*QKeySequence) ToStringp

func (this *QKeySequence) ToStringp() string

Return a string representation of the key sequence, based on format.

For example, the value Qt::CTRL+Qt::Key_O results in "Ctrl+O". If the key sequence has multiple key codes, each is separated by commas in the string returned, such as "Alt+X, Ctrl+Y, Z". The strings, "Ctrl", "Shift", etc. are translated using QObject::tr() in the "QShortcut" context.

If the key sequence has no keys, an empty string is returned.

On macOS, the string returned resembles the sequence that is shown in the menu bar if format is QKeySequence::NativeText; otherwise, the string uses the "portable" format, suitable for writing to a file.

This function was introduced in Qt 4.1.

See also fromString().

type QKeySequenceList

type QKeySequenceList struct {
	*qtrt.CObject
}

body block begin

func (*QKeySequenceList) Append0

func (this *QKeySequenceList) Append0()

void append(const T &)

func (*QKeySequenceList) Append1

func (this *QKeySequenceList) Append1()

void append(const QList<T> &)

func (*QKeySequenceList) At0

func (this *QKeySequenceList) At0() *QKeySequence

const T & at(int)

func (*QKeySequenceList) Back0

func (this *QKeySequenceList) Back0() *QKeySequence

T & back()

func (*QKeySequenceList) Back1

func (this *QKeySequenceList) Back1() *QKeySequence

const T & back()

func (*QKeySequenceList) Begin0

func (this *QKeySequenceList) Begin0()

QList::iterator begin()

func (*QKeySequenceList) Begin1

func (this *QKeySequenceList) Begin1()

QList::const_iterator begin()

func (*QKeySequenceList) Cbegin0

func (this *QKeySequenceList) Cbegin0()

QList::const_iterator cbegin()

func (*QKeySequenceList) Cend0

func (this *QKeySequenceList) Cend0()

QList::const_iterator cend()

func (*QKeySequenceList) Clear0

func (this *QKeySequenceList) Clear0()

void clear()

func (*QKeySequenceList) ConstBegin0

func (this *QKeySequenceList) ConstBegin0()

QList::const_iterator constBegin()

func (*QKeySequenceList) ConstEnd0

func (this *QKeySequenceList) ConstEnd0()

QList::const_iterator constEnd()

func (*QKeySequenceList) ConstFirst0

func (this *QKeySequenceList) ConstFirst0() *QKeySequence

const T & constFirst()

func (*QKeySequenceList) ConstLast0

func (this *QKeySequenceList) ConstLast0() *QKeySequence

const T & constLast()

func (*QKeySequenceList) Contains0

func (this *QKeySequenceList) Contains0() bool

bool contains(const T &)

func (*QKeySequenceList) Contains_impl0

func (this *QKeySequenceList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QKeySequenceList) Contains_impl1

func (this *QKeySequenceList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QKeySequenceList) Count0

func (this *QKeySequenceList) Count0() int

int count(const T &)

func (*QKeySequenceList) Count1

func (this *QKeySequenceList) Count1() int

int count()

func (*QKeySequenceList) Count_impl0

func (this *QKeySequenceList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QKeySequenceList) Count_impl1

func (this *QKeySequenceList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QKeySequenceList) Crbegin0

func (this *QKeySequenceList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QKeySequenceList) Crend0

func (this *QKeySequenceList) Crend0()

QList::const_reverse_iterator crend()

func (*QKeySequenceList) Dealloc0

func (this *QKeySequenceList) Dealloc0()

void dealloc(QListData::Data *)

func (*QKeySequenceList) Detach0

func (this *QKeySequenceList) Detach0()

void detach()

func (*QKeySequenceList) DetachShared0

func (this *QKeySequenceList) DetachShared0()

void detachShared()

func (*QKeySequenceList) Detach_helper0

func (this *QKeySequenceList) Detach_helper0()

void detach_helper(int)

func (*QKeySequenceList) Detach_helper1

func (this *QKeySequenceList) Detach_helper1()

void detach_helper()

func (*QKeySequenceList) Detach_helper_grow0

func (this *QKeySequenceList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QKeySequenceList) Empty0

func (this *QKeySequenceList) Empty0() bool

bool empty()

func (*QKeySequenceList) End0

func (this *QKeySequenceList) End0()

QList::iterator end()

func (*QKeySequenceList) End1

func (this *QKeySequenceList) End1()

QList::const_iterator end()

func (*QKeySequenceList) EndsWith0

func (this *QKeySequenceList) EndsWith0() bool

bool endsWith(const T &)

func (*QKeySequenceList) Erase0

func (this *QKeySequenceList) Erase0()

QList::iterator erase(QList::iterator)

func (*QKeySequenceList) Erase1

func (this *QKeySequenceList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QKeySequenceList) First0

func (this *QKeySequenceList) First0() *QKeySequence

T & first()

func (*QKeySequenceList) First1

func (this *QKeySequenceList) First1() *QKeySequence

const T & first()

func (*QKeySequenceList) FromSet0

func (this *QKeySequenceList) FromSet0() *QKeySequenceList

QList<T> fromSet(const QSet<T> &)

func (*QKeySequenceList) FromStdList0

func (this *QKeySequenceList) FromStdList0() *QKeySequenceList

QList<T> fromStdList(const std::list<T> &)

func (*QKeySequenceList) FromVector0

func (this *QKeySequenceList) FromVector0() *QKeySequenceList

QList<T> fromVector(const QVector<T> &)

func (*QKeySequenceList) Front0

func (this *QKeySequenceList) Front0() *QKeySequence

T & front()

func (*QKeySequenceList) Front1

func (this *QKeySequenceList) Front1() *QKeySequence

const T & front()

func (*QKeySequenceList) IndexOf0

func (this *QKeySequenceList) IndexOf0() int

int indexOf(const T &, int)

func (*QKeySequenceList) Insert0

func (this *QKeySequenceList) Insert0()

void insert(int, const T &)

func (*QKeySequenceList) Insert1

func (this *QKeySequenceList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QKeySequenceList) IsDetached0

func (this *QKeySequenceList) IsDetached0() bool

bool isDetached()

func (*QKeySequenceList) IsEmpty0

func (this *QKeySequenceList) IsEmpty0() bool

bool isEmpty()

func (*QKeySequenceList) IsSharedWith0

func (this *QKeySequenceList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QKeySequenceList) IsValidIterator0

func (this *QKeySequenceList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QKeySequenceList) Last0

func (this *QKeySequenceList) Last0() *QKeySequence

T & last()

func (*QKeySequenceList) Last1

func (this *QKeySequenceList) Last1() *QKeySequence

const T & last()

func (*QKeySequenceList) LastIndexOf0

func (this *QKeySequenceList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QKeySequenceList) Length0

func (this *QKeySequenceList) Length0() int

int length()

func (*QKeySequenceList) Mid0

func (this *QKeySequenceList) Mid0() *QKeySequenceList

QList<T> mid(int, int)

func (*QKeySequenceList) Move0

func (this *QKeySequenceList) Move0()

void move(int, int)

func (*QKeySequenceList) Node_construct0

func (this *QKeySequenceList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QKeySequenceList) Node_copy0

func (this *QKeySequenceList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QKeySequenceList) Node_destruct0

func (this *QKeySequenceList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QKeySequenceList) Node_destruct1

func (this *QKeySequenceList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QKeySequenceList) Op_eq_impl0

func (this *QKeySequenceList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QKeySequenceList) Op_eq_impl1

func (this *QKeySequenceList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QKeySequenceList) Operator_add0

func (this *QKeySequenceList) Operator_add0() *QKeySequenceList

QList<T> operator+(const QList<T> &)

func (*QKeySequenceList) Operator_add_equal0

func (this *QKeySequenceList) Operator_add_equal0() *QKeySequenceList

QList<T> & operator+=(const QList<T> &)

func (*QKeySequenceList) Operator_add_equal1

func (this *QKeySequenceList) Operator_add_equal1() *QKeySequenceList

QList<T> & operator+=(const T &)

func (*QKeySequenceList) Operator_equal0

func (this *QKeySequenceList) Operator_equal0() *QKeySequenceList

QList<T> & operator=(const QList<T> &)

func (*QKeySequenceList) Operator_equal1

func (this *QKeySequenceList) Operator_equal1() *QKeySequenceList

QList<T> & operator=(QList<T> &&)

func (*QKeySequenceList) Operator_equal_equal0

func (this *QKeySequenceList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QKeySequenceList) Operator_get_index0

func (this *QKeySequenceList) Operator_get_index0() *QKeySequence

const T & operator[](int)

func (*QKeySequenceList) Operator_get_index1

func (this *QKeySequenceList) Operator_get_index1() *QKeySequence

T & operator[](int)

func (*QKeySequenceList) Operator_left_shift0

func (this *QKeySequenceList) Operator_left_shift0() *QKeySequenceList

QList<T> & operator<<(const T &)

func (*QKeySequenceList) Operator_left_shift1

func (this *QKeySequenceList) Operator_left_shift1() *QKeySequenceList

QList<T> & operator<<(const QList<T> &)

func (*QKeySequenceList) Operator_not_equal0

func (this *QKeySequenceList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QKeySequenceList) Pop_back0

func (this *QKeySequenceList) Pop_back0()

void pop_back()

func (*QKeySequenceList) Pop_front0

func (this *QKeySequenceList) Pop_front0()

void pop_front()

func (*QKeySequenceList) Prepend0

func (this *QKeySequenceList) Prepend0()

void prepend(const T &)

func (*QKeySequenceList) Push_back0

func (this *QKeySequenceList) Push_back0()

void push_back(const T &)

func (*QKeySequenceList) Push_front0

func (this *QKeySequenceList) Push_front0()

void push_front(const T &)

func (*QKeySequenceList) Rbegin0

func (this *QKeySequenceList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QKeySequenceList) Rbegin1

func (this *QKeySequenceList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QKeySequenceList) RemoveAll0

func (this *QKeySequenceList) RemoveAll0() int

int removeAll(const T &)

func (*QKeySequenceList) RemoveAt0

func (this *QKeySequenceList) RemoveAt0()

void removeAt(int)

func (*QKeySequenceList) RemoveFirst0

func (this *QKeySequenceList) RemoveFirst0()

void removeFirst()

func (*QKeySequenceList) RemoveLast0

func (this *QKeySequenceList) RemoveLast0()

void removeLast()

func (*QKeySequenceList) RemoveOne0

func (this *QKeySequenceList) RemoveOne0() bool

bool removeOne(const T &)

func (*QKeySequenceList) Rend0

func (this *QKeySequenceList) Rend0()

QList::reverse_iterator rend()

func (*QKeySequenceList) Rend1

func (this *QKeySequenceList) Rend1()

QList::const_reverse_iterator rend()

func (*QKeySequenceList) Replace0

func (this *QKeySequenceList) Replace0()

void replace(int, const T &)

func (*QKeySequenceList) Reserve0

func (this *QKeySequenceList) Reserve0()

void reserve(int)

func (*QKeySequenceList) SetSharable0

func (this *QKeySequenceList) SetSharable0()

void setSharable(bool)

func (*QKeySequenceList) Size0

func (this *QKeySequenceList) Size0() int

int size()

func (*QKeySequenceList) StartsWith0

func (this *QKeySequenceList) StartsWith0() bool

bool startsWith(const T &)

func (*QKeySequenceList) Swap0

func (this *QKeySequenceList) Swap0()

void swap(QList<T> &)

func (*QKeySequenceList) Swap1

func (this *QKeySequenceList) Swap1()

void swap(int, int)

func (*QKeySequenceList) TakeAt0

func (this *QKeySequenceList) TakeAt0() *QKeySequence

T takeAt(int)

func (*QKeySequenceList) TakeFirst0

func (this *QKeySequenceList) TakeFirst0() *QKeySequence

T takeFirst()

func (*QKeySequenceList) TakeLast0

func (this *QKeySequenceList) TakeLast0() *QKeySequence

T takeLast()

func (*QKeySequenceList) ToSet0

func (this *QKeySequenceList) ToSet0()

QSet<T> toSet()

func (*QKeySequenceList) ToStdList0

func (this *QKeySequenceList) ToStdList0()

std::list<T> toStdList()

func (*QKeySequenceList) ToVector0

func (this *QKeySequenceList) ToVector0()

QVector<T> toVector()

func (*QKeySequenceList) Value0

func (this *QKeySequenceList) Value0() *QKeySequence

T value(int)

func (*QKeySequenceList) Value1

func (this *QKeySequenceList) Value1() *QKeySequence

T value(int, const T &)

type QKeySequence_ITF

type QKeySequence_ITF interface {
	QKeySequence_PTR() *QKeySequence
}

type QKeySequence__SequenceFormat

type QKeySequence__SequenceFormat = int
const QKeySequence__NativeText QKeySequence__SequenceFormat = 0

The key sequence as a platform specific string. This means that it will be shown translated and on the Mac it will resemble a key sequence from the menu bar. This enum is best used when you want to display the string to the user.

const QKeySequence__PortableText QKeySequence__SequenceFormat = 1

type QKeySequence__SequenceMatch

type QKeySequence__SequenceMatch = int
const QKeySequence__ExactMatch QKeySequence__SequenceMatch = 2

The key sequences are the same.

const QKeySequence__NoMatch QKeySequence__SequenceMatch = 0

The key sequences are different; not even partially matching.

const QKeySequence__PartialMatch QKeySequence__SequenceMatch = 1

The key sequences match partially, but are not the same.

type QKeySequence__StandardKey

type QKeySequence__StandardKey = int

This enum represent standard key bindings. They can be used to assign platform dependent keyboard shortcuts to a QAction.

Note that the key bindings are platform dependent. The currently bound shortcuts can be queried using keyBindings().

This enum was introduced or modified in Qt 4.2.

const QKeySequence__AddTab QKeySequence__StandardKey = 19
const QKeySequence__Back QKeySequence__StandardKey = 13
const QKeySequence__Backspace QKeySequence__StandardKey = 69
const QKeySequence__Bold QKeySequence__StandardKey = 27
const QKeySequence__Cancel QKeySequence__StandardKey = 70
const QKeySequence__Close QKeySequence__StandardKey = 4

Close document/tab.

const QKeySequence__Copy QKeySequence__StandardKey = 9

Copy.

const QKeySequence__Cut QKeySequence__StandardKey = 8

Cut.

const QKeySequence__Delete QKeySequence__StandardKey = 7

Delete.

const QKeySequence__DeleteCompleteLine QKeySequence__StandardKey = 68
const QKeySequence__DeleteEndOfLine QKeySequence__StandardKey = 60
const QKeySequence__DeleteEndOfWord QKeySequence__StandardKey = 59
const QKeySequence__DeleteStartOfWord QKeySequence__StandardKey = 58
const QKeySequence__Deselect QKeySequence__StandardKey = 67
const QKeySequence__Find QKeySequence__StandardKey = 22
const QKeySequence__FindNext QKeySequence__StandardKey = 23
const QKeySequence__FindPrevious QKeySequence__StandardKey = 24
const QKeySequence__Forward QKeySequence__StandardKey = 14
const QKeySequence__FullScreen QKeySequence__StandardKey = 66
const QKeySequence__HelpContents QKeySequence__StandardKey = 1

Open help contents.

const QKeySequence__InsertLineSeparator QKeySequence__StandardKey = 62
const QKeySequence__InsertParagraphSeparator QKeySequence__StandardKey = 61
const QKeySequence__Italic QKeySequence__StandardKey = 28
const QKeySequence__MoveToEndOfBlock QKeySequence__StandardKey = 41
const QKeySequence__MoveToEndOfDocument QKeySequence__StandardKey = 43
const QKeySequence__MoveToEndOfLine QKeySequence__StandardKey = 39
const QKeySequence__MoveToNextChar QKeySequence__StandardKey = 30
const QKeySequence__MoveToNextLine QKeySequence__StandardKey = 34
const QKeySequence__MoveToNextPage QKeySequence__StandardKey = 36
const QKeySequence__MoveToNextWord QKeySequence__StandardKey = 32
const QKeySequence__MoveToPreviousChar QKeySequence__StandardKey = 31
const QKeySequence__MoveToPreviousLine QKeySequence__StandardKey = 35
const QKeySequence__MoveToPreviousPage QKeySequence__StandardKey = 37
const QKeySequence__MoveToPreviousWord QKeySequence__StandardKey = 33
const QKeySequence__MoveToStartOfBlock QKeySequence__StandardKey = 40
const QKeySequence__MoveToStartOfDocument QKeySequence__StandardKey = 42
const QKeySequence__MoveToStartOfLine QKeySequence__StandardKey = 38
const QKeySequence__New QKeySequence__StandardKey = 6

Create new document.

const QKeySequence__NextChild QKeySequence__StandardKey = 20
const QKeySequence__Open QKeySequence__StandardKey = 3

Open document.

const QKeySequence__Paste QKeySequence__StandardKey = 10
const QKeySequence__Preferences QKeySequence__StandardKey = 64
const QKeySequence__PreviousChild QKeySequence__StandardKey = 21
const QKeySequence__Print QKeySequence__StandardKey = 18
const QKeySequence__Quit QKeySequence__StandardKey = 65
const QKeySequence__Redo QKeySequence__StandardKey = 12
const QKeySequence__Refresh QKeySequence__StandardKey = 15
const QKeySequence__Replace QKeySequence__StandardKey = 25
const QKeySequence__Save QKeySequence__StandardKey = 5

Save document.

const QKeySequence__SaveAs QKeySequence__StandardKey = 63
const QKeySequence__SelectAll QKeySequence__StandardKey = 26
const QKeySequence__SelectEndOfBlock QKeySequence__StandardKey = 55
const QKeySequence__SelectEndOfDocument QKeySequence__StandardKey = 57
const QKeySequence__SelectEndOfLine QKeySequence__StandardKey = 53
const QKeySequence__SelectNextChar QKeySequence__StandardKey = 44
const QKeySequence__SelectNextLine QKeySequence__StandardKey = 48
const QKeySequence__SelectNextPage QKeySequence__StandardKey = 50
const QKeySequence__SelectNextWord QKeySequence__StandardKey = 46
const QKeySequence__SelectPreviousChar QKeySequence__StandardKey = 45
const QKeySequence__SelectPreviousLine QKeySequence__StandardKey = 49
const QKeySequence__SelectPreviousPage QKeySequence__StandardKey = 51
const QKeySequence__SelectPreviousWord QKeySequence__StandardKey = 47
const QKeySequence__SelectStartOfBlock QKeySequence__StandardKey = 54
const QKeySequence__SelectStartOfDocument QKeySequence__StandardKey = 56
const QKeySequence__SelectStartOfLine QKeySequence__StandardKey = 52
const QKeySequence__Underline QKeySequence__StandardKey = 29
const QKeySequence__Undo QKeySequence__StandardKey = 11
const QKeySequence__UnknownKey QKeySequence__StandardKey = 0

Unbound key.

const QKeySequence__WhatsThis QKeySequence__StandardKey = 2

Activate "what's this".

const QKeySequence__ZoomIn QKeySequence__StandardKey = 16
const QKeySequence__ZoomOut QKeySequence__StandardKey = 17

type QLinearGradient

type QLinearGradient struct {
	*QGradient
}

func NewQLinearGradient

func NewQLinearGradient() *QLinearGradient

func NewQLinearGradient1

func NewQLinearGradient1(start qtcore.QPointF_ITF, finalStop qtcore.QPointF_ITF) *QLinearGradient

func NewQLinearGradient2

func NewQLinearGradient2(xStart float64, yStart float64, xFinalStop float64, yFinalStop float64) *QLinearGradient

func NewQLinearGradientFromPointer

func NewQLinearGradientFromPointer(cthis unsafe.Pointer) *QLinearGradient

func (*QLinearGradient) FinalStop

func (this *QLinearGradient) FinalStop() *qtcore.QPointF

func (*QLinearGradient) GetCthis

func (this *QLinearGradient) GetCthis() unsafe.Pointer

func (*QLinearGradient) NewForInherit

func (*QLinearGradient) NewForInherit() *QLinearGradient

func (*QLinearGradient) NewForInherit1

func (*QLinearGradient) NewForInherit1(start qtcore.QPointF_ITF, finalStop qtcore.QPointF_ITF) *QLinearGradient

func (*QLinearGradient) NewForInherit2

func (*QLinearGradient) NewForInherit2(xStart float64, yStart float64, xFinalStop float64, yFinalStop float64) *QLinearGradient

func (*QLinearGradient) NewFromPointer

func (*QLinearGradient) NewFromPointer(cthis unsafe.Pointer) *QLinearGradient

func (*QLinearGradient) QLinearGradient_PTR

func (ptr *QLinearGradient) QLinearGradient_PTR() *QLinearGradient

func (*QLinearGradient) SetCthis

func (this *QLinearGradient) SetCthis(cthis unsafe.Pointer)

func (*QLinearGradient) SetFinalStop

func (this *QLinearGradient) SetFinalStop(stop qtcore.QPointF_ITF)

func (*QLinearGradient) SetFinalStop1

func (this *QLinearGradient) SetFinalStop1(x float64, y float64)

func (*QLinearGradient) SetStart

func (this *QLinearGradient) SetStart(start qtcore.QPointF_ITF)

func (*QLinearGradient) SetStart1

func (this *QLinearGradient) SetStart1(x float64, y float64)

func (*QLinearGradient) Start

func (this *QLinearGradient) Start() *qtcore.QPointF

type QLinearGradient_ITF

type QLinearGradient_ITF interface {
	QGradient_ITF
	QLinearGradient_PTR() *QLinearGradient
}

type QMatrix

type QMatrix struct {
	*qtrt.CObject
}

func NewQMatrix

func NewQMatrix(arg0 int) *QMatrix

func NewQMatrix1

func NewQMatrix1() *QMatrix

func NewQMatrix2

func NewQMatrix2(m11 float64, m12 float64, m21 float64, m22 float64, dx float64, dy float64) *QMatrix

func NewQMatrixFromPointer

func NewQMatrixFromPointer(cthis unsafe.Pointer) *QMatrix

func QImage_TrueMatrix

func QImage_TrueMatrix(arg0 QMatrix_ITF, w int, h int) *QMatrix

func QPixmap_TrueMatrix

func QPixmap_TrueMatrix(m QMatrix_ITF, w int, h int) *QMatrix

func (*QMatrix) Determinant

func (this *QMatrix) Determinant() float64

Returns the matrix's determinant.

This function was introduced in Qt 4.6.

func (*QMatrix) Dx

func (this *QMatrix) Dx() float64

Returns the horizontal translation factor.

See also translate() and Basic Matrix Operations.

func (*QMatrix) Dy

func (this *QMatrix) Dy() float64

Returns the vertical translation factor.

See also translate() and Basic Matrix Operations.

func (*QMatrix) GetCthis

func (this *QMatrix) GetCthis() unsafe.Pointer

func (*QMatrix) Inverted

func (this *QMatrix) Inverted(invertible *bool) *QMatrix

Returns an inverted copy of this matrix.

If the matrix is singular (not invertible), the returned matrix is the identity matrix. If invertible is valid (i.e. not 0), its value is set to true if the matrix is invertible, otherwise it is set to false.

See also isInvertible().

func (*QMatrix) Invertedp

func (this *QMatrix) Invertedp() *QMatrix

Returns an inverted copy of this matrix.

If the matrix is singular (not invertible), the returned matrix is the identity matrix. If invertible is valid (i.e. not 0), its value is set to true if the matrix is invertible, otherwise it is set to false.

See also isInvertible().

func (*QMatrix) IsIdentity

func (this *QMatrix) IsIdentity() bool

Returns true if the matrix is the identity matrix, otherwise returns false.

See also reset().

func (*QMatrix) IsInvertible

func (this *QMatrix) IsInvertible() bool

Returns true if the matrix is invertible, otherwise returns false.

See also inverted().

func (*QMatrix) M11

func (this *QMatrix) M11() float64

Returns the horizontal scaling factor.

See also scale() and Basic Matrix Operations.

func (*QMatrix) M12

func (this *QMatrix) M12() float64

Returns the vertical shearing factor.

See also shear() and Basic Matrix Operations.

func (*QMatrix) M21

func (this *QMatrix) M21() float64

Returns the horizontal shearing factor.

See also shear() and Basic Matrix Operations.

func (*QMatrix) M22

func (this *QMatrix) M22() float64

Returns the vertical scaling factor.

See also scale() and Basic Matrix Operations.

func (*QMatrix) Map

func (this *QMatrix) Map(x int, y int, tx unsafe.Pointer, ty unsafe.Pointer)

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map1

func (this *QMatrix) Map1(x float64, y float64, tx unsafe.Pointer, ty unsafe.Pointer)

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map2

func (this *QMatrix) Map2(p qtcore.QPoint_ITF) *qtcore.QPoint

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map3

func (this *QMatrix) Map3(p qtcore.QPointF_ITF) *qtcore.QPointF

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map4

func (this *QMatrix) Map4(l qtcore.QLine_ITF) *qtcore.QLine

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map5

func (this *QMatrix) Map5(l qtcore.QLineF_ITF) *qtcore.QLineF

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map6

func (this *QMatrix) Map6(a QPolygonF_ITF) *QPolygonF

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map7

func (this *QMatrix) Map7(a QPolygon_ITF) *QPolygon

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map8

func (this *QMatrix) Map8(r QRegion_ITF) *QRegion

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) Map9

func (this *QMatrix) Map9(p QPainterPath_ITF) *QPainterPath

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QMatrix) MapRect

func (this *QMatrix) MapRect(arg0 qtcore.QRect_ITF) *qtcore.QRect

Creates and returns a QRectF object that is a copy of the given rectangle, mapped into the coordinate system defined by this matrix.

The rectangle's coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

If rotation or shearing has been specified, this function returns the bounding rectangle. To retrieve the exact region the given rectangle maps to, use the mapToPolygon() function instead.

See also mapToPolygon() and Basic Matrix Operations.

func (*QMatrix) MapRect1

func (this *QMatrix) MapRect1(arg0 qtcore.QRectF_ITF) *qtcore.QRectF

Creates and returns a QRectF object that is a copy of the given rectangle, mapped into the coordinate system defined by this matrix.

The rectangle's coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

If rotation or shearing has been specified, this function returns the bounding rectangle. To retrieve the exact region the given rectangle maps to, use the mapToPolygon() function instead.

See also mapToPolygon() and Basic Matrix Operations.

func (*QMatrix) MapToPolygon

func (this *QMatrix) MapToPolygon(r qtcore.QRect_ITF) *QPolygon

Creates and returns a QPolygon representation of the given rectangle, mapped into the coordinate system defined by this matrix.

The rectangle's coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy

Polygons and rectangles behave slightly differently when transformed (due to integer rounding), so matrix.map(QPolygon(rectangle)) is not always the same as matrix.mapToPolygon(rectangle).

See also mapRect() and Basic Matrix Operations.

func (*QMatrix) NewForInherit

func (*QMatrix) NewForInherit(arg0 int) *QMatrix

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale), which are set to 1.

See also reset().

func (*QMatrix) NewForInherit1

func (*QMatrix) NewForInherit1() *QMatrix

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale), which are set to 1.

See also reset().

func (*QMatrix) NewForInherit2

func (*QMatrix) NewForInherit2(m11 float64, m12 float64, m21 float64, m22 float64, dx float64, dy float64) *QMatrix

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale), which are set to 1.

See also reset().

func (*QMatrix) NewFromPointer

func (*QMatrix) NewFromPointer(cthis unsafe.Pointer) *QMatrix

func (*QMatrix) Operator_equal

func (this *QMatrix) Operator_equal(other unsafe.Pointer) *QMatrix

func (*QMatrix) Operator_equal1

func (this *QMatrix) Operator_equal1(arg0 QMatrix_ITF) *QMatrix

func (*QMatrix) Operator_equal_equal

func (this *QMatrix) Operator_equal_equal(arg0 QMatrix_ITF) bool

func (*QMatrix) Operator_mul

func (this *QMatrix) Operator_mul(o QMatrix_ITF) *QMatrix

func (*QMatrix) Operator_mul_equal

func (this *QMatrix) Operator_mul_equal(arg0 QMatrix_ITF) *QMatrix

func (*QMatrix) Operator_not_equal

func (this *QMatrix) Operator_not_equal(arg0 QMatrix_ITF) bool

func (*QMatrix) QMatrix_PTR

func (ptr *QMatrix) QMatrix_PTR() *QMatrix

func (*QMatrix) Reset

func (this *QMatrix) Reset()

Resets the matrix to an identity matrix, i.e. all elements are set to zero, except m11 and m22 (specifying the scale) which are set to 1.

See also QMatrix(), isIdentity(), and Basic Matrix Operations.

func (*QMatrix) Rotate

func (this *QMatrix) Rotate(a float64) *QMatrix

Rotates the coordinate system the given degrees counterclockwise.

Note that if you apply a QMatrix to a point defined in widget coordinates, the direction of the rotation will be clockwise because the y-axis points downwards.

Returns a reference to the matrix.

See also setMatrix().

func (*QMatrix) Scale

func (this *QMatrix) Scale(sx float64, sy float64) *QMatrix

Scales the coordinate system by sx horizontally and sy vertically, and returns a reference to the matrix.

See also setMatrix().

func (*QMatrix) SetCthis

func (this *QMatrix) SetCthis(cthis unsafe.Pointer)

func (*QMatrix) SetMatrix

func (this *QMatrix) SetMatrix(m11 float64, m12 float64, m21 float64, m22 float64, dx float64, dy float64)

Sets the matrix elements to the specified values, m11, m12, m21, m22, dx and dy.

Note that this function replaces the previous values. QMatrix provide the translate(), rotate(), scale() and shear() convenience functions to manipulate the various matrix elements based on the currently defined coordinate system.

See also QMatrix().

func (*QMatrix) Shear

func (this *QMatrix) Shear(sh float64, sv float64) *QMatrix

Shears the coordinate system by sh horizontally and sv vertically, and returns a reference to the matrix.

See also setMatrix().

func (*QMatrix) Translate

func (this *QMatrix) Translate(dx float64, dy float64) *QMatrix

Moves the coordinate system dx along the x axis and dy along the y axis, and returns a reference to the matrix.

See also setMatrix().

type QMatrix4x4

type QMatrix4x4 struct {
	*qtrt.CObject
}

func NewQMatrix4x4

func NewQMatrix4x4() *QMatrix4x4

func NewQMatrix4x41

func NewQMatrix4x41(arg0 int) *QMatrix4x4

func NewQMatrix4x42

func NewQMatrix4x42(values unsafe.Pointer) *QMatrix4x4

func NewQMatrix4x43

func NewQMatrix4x43(m11 float32, m12 float32, m13 float32, m14 float32, m21 float32, m22 float32, m23 float32, m24 float32, m31 float32, m32 float32, m33 float32, m34 float32, m41 float32, m42 float32, m43 float32, m44 float32) *QMatrix4x4

func NewQMatrix4x44

func NewQMatrix4x44(values unsafe.Pointer, cols int, rows int) *QMatrix4x4

func NewQMatrix4x45

func NewQMatrix4x45(transform QTransform_ITF) *QMatrix4x4

func NewQMatrix4x46

func NewQMatrix4x46(matrix QMatrix_ITF) *QMatrix4x4

func NewQMatrix4x4FromPointer

func NewQMatrix4x4FromPointer(cthis unsafe.Pointer) *QMatrix4x4

func (*QMatrix4x4) Column

func (this *QMatrix4x4) Column(index int) *QVector4D

Returns the elements of column index as a 4D vector.

See also setColumn() and row().

func (*QMatrix4x4) ConstData

func (this *QMatrix4x4) ConstData() unsafe.Pointer

Returns a constant pointer to the raw data of this matrix. This raw data is stored in column-major format.

See also data().

func (*QMatrix4x4) CopyDataTo

func (this *QMatrix4x4) CopyDataTo(values unsafe.Pointer)

Retrieves the 16 items in this matrix and copies them to values in row-major order.

func (*QMatrix4x4) Data

func (this *QMatrix4x4) Data() unsafe.Pointer

Returns a pointer to the raw data of this matrix.

See also constData() and optimize().

func (*QMatrix4x4) Data1

func (this *QMatrix4x4) Data1() unsafe.Pointer

Returns a pointer to the raw data of this matrix.

See also constData() and optimize().

func (*QMatrix4x4) Determinant

func (this *QMatrix4x4) Determinant() float64

Returns the determinant of this matrix.

func (*QMatrix4x4) Fill

func (this *QMatrix4x4) Fill(value float32)

Fills all elements of this matrx with value.

func (*QMatrix4x4) FlipCoordinates

func (this *QMatrix4x4) FlipCoordinates()

func (*QMatrix4x4) Frustum

func (this *QMatrix4x4) Frustum(left float32, right float32, bottom float32, top float32, nearPlane float32, farPlane float32)

Multiplies this matrix by another that applies a perspective frustum projection for a window with lower-left corner (left, bottom), upper-right corner (right, top), and the specified nearPlane and farPlane clipping planes.

See also ortho() and perspective().

func (*QMatrix4x4) GetCthis

func (this *QMatrix4x4) GetCthis() unsafe.Pointer

func (*QMatrix4x4) Inverted

func (this *QMatrix4x4) Inverted(invertible *bool) *QMatrix4x4

Returns the inverse of this matrix. Returns the identity if this matrix cannot be inverted; i.e. determinant() is zero. If invertible is not null, then true will be written to that location if the matrix can be inverted; false otherwise.

If the matrix is recognized as the identity or an orthonormal matrix, then this function will quickly invert the matrix using optimized routines.

See also determinant() and normalMatrix().

func (*QMatrix4x4) Invertedp

func (this *QMatrix4x4) Invertedp() *QMatrix4x4

Returns the inverse of this matrix. Returns the identity if this matrix cannot be inverted; i.e. determinant() is zero. If invertible is not null, then true will be written to that location if the matrix can be inverted; false otherwise.

If the matrix is recognized as the identity or an orthonormal matrix, then this function will quickly invert the matrix using optimized routines.

See also determinant() and normalMatrix().

func (*QMatrix4x4) IsAffine

func (this *QMatrix4x4) IsAffine() bool

Returns true if this matrix is affine matrix; false otherwise.

An affine matrix is a 4x4 matrix with row 3 equal to (0, 0, 0, 1), e.g. no projective coefficients.

This function was introduced in Qt 5.5.

See also isIdentity().

func (*QMatrix4x4) IsIdentity

func (this *QMatrix4x4) IsIdentity() bool

Returns true if this matrix is the identity; false otherwise.

See also setToIdentity().

func (*QMatrix4x4) ItemName

func (this *QMatrix4x4) ItemName(val int) string

func (*QMatrix4x4) LookAt

func (this *QMatrix4x4) LookAt(eye QVector3D_ITF, center QVector3D_ITF, up QVector3D_ITF)

Multiplies this matrix by a viewing matrix derived from an eye point. The center value indicates the center of the view that the eye is looking at. The up value indicates which direction should be considered up with respect to the eye.

Note: The up vector must not be parallel to the line of sight from eye to center.

func (*QMatrix4x4) Map

func (this *QMatrix4x4) Map(point qtcore.QPoint_ITF) *qtcore.QPoint

Maps point by multiplying this matrix by point.

See also mapRect().

func (*QMatrix4x4) Map1

func (this *QMatrix4x4) Map1(point qtcore.QPointF_ITF) *qtcore.QPointF

Maps point by multiplying this matrix by point.

See also mapRect().

func (*QMatrix4x4) Map2

func (this *QMatrix4x4) Map2(point QVector3D_ITF) *QVector3D

Maps point by multiplying this matrix by point.

See also mapRect().

func (*QMatrix4x4) Map3

func (this *QMatrix4x4) Map3(point QVector4D_ITF) *QVector4D

Maps point by multiplying this matrix by point.

See also mapRect().

func (*QMatrix4x4) MapRect

func (this *QMatrix4x4) MapRect(rect qtcore.QRect_ITF) *qtcore.QRect

Maps rect by multiplying this matrix by the corners of rect and then forming a new rectangle from the results. The returned rectangle will be an ordinary 2D rectangle with sides parallel to the horizontal and vertical axes.

See also map().

func (*QMatrix4x4) MapRect1

func (this *QMatrix4x4) MapRect1(rect qtcore.QRectF_ITF) *qtcore.QRectF

Maps rect by multiplying this matrix by the corners of rect and then forming a new rectangle from the results. The returned rectangle will be an ordinary 2D rectangle with sides parallel to the horizontal and vertical axes.

See also map().

func (*QMatrix4x4) MapVector

func (this *QMatrix4x4) MapVector(vector QVector3D_ITF) *QVector3D

Maps vector by multiplying the top 3x3 portion of this matrix by vector. The translation and projection components of this matrix are ignored.

See also map().

func (*QMatrix4x4) NewForInherit

func (*QMatrix4x4) NewForInherit() *QMatrix4x4

Constructs an identity matrix.

func (*QMatrix4x4) NewForInherit1

func (*QMatrix4x4) NewForInherit1(arg0 int) *QMatrix4x4

Constructs an identity matrix.

func (*QMatrix4x4) NewForInherit2

func (*QMatrix4x4) NewForInherit2(values unsafe.Pointer) *QMatrix4x4

Constructs an identity matrix.

func (*QMatrix4x4) NewForInherit3

func (*QMatrix4x4) NewForInherit3(m11 float32, m12 float32, m13 float32, m14 float32, m21 float32, m22 float32, m23 float32, m24 float32, m31 float32, m32 float32, m33 float32, m34 float32, m41 float32, m42 float32, m43 float32, m44 float32) *QMatrix4x4

Constructs an identity matrix.

func (*QMatrix4x4) NewForInherit4

func (*QMatrix4x4) NewForInherit4(values unsafe.Pointer, cols int, rows int) *QMatrix4x4

Constructs an identity matrix.

func (*QMatrix4x4) NewForInherit5

func (*QMatrix4x4) NewForInherit5(transform QTransform_ITF) *QMatrix4x4

Constructs an identity matrix.

func (*QMatrix4x4) NewForInherit6

func (*QMatrix4x4) NewForInherit6(matrix QMatrix_ITF) *QMatrix4x4

Constructs an identity matrix.

func (*QMatrix4x4) NewFromPointer

func (*QMatrix4x4) NewFromPointer(cthis unsafe.Pointer) *QMatrix4x4

func (*QMatrix4x4) Operator_add_equal

func (this *QMatrix4x4) Operator_add_equal(other QMatrix4x4_ITF) *QMatrix4x4

func (*QMatrix4x4) Operator_div_equal

func (this *QMatrix4x4) Operator_div_equal(divisor float32) *QMatrix4x4

func (*QMatrix4x4) Operator_equal_equal

func (this *QMatrix4x4) Operator_equal_equal(other QMatrix4x4_ITF) bool

func (*QMatrix4x4) Operator_fncall

func (this *QMatrix4x4) Operator_fncall(row int, column int) float32

func (*QMatrix4x4) Operator_fncall1

func (this *QMatrix4x4) Operator_fncall1(row int, column int) float32

func (*QMatrix4x4) Operator_minus_equal

func (this *QMatrix4x4) Operator_minus_equal(other QMatrix4x4_ITF) *QMatrix4x4

func (*QMatrix4x4) Operator_mul_equal

func (this *QMatrix4x4) Operator_mul_equal(other QMatrix4x4_ITF) *QMatrix4x4

func (*QMatrix4x4) Operator_mul_equal1

func (this *QMatrix4x4) Operator_mul_equal1(factor float32) *QMatrix4x4

func (*QMatrix4x4) Operator_not_equal

func (this *QMatrix4x4) Operator_not_equal(other QMatrix4x4_ITF) bool

func (*QMatrix4x4) Optimize

func (this *QMatrix4x4) Optimize()

Optimize the usage of this matrix from its current elements.

Some operations such as translate(), scale(), and rotate() can be performed more efficiently if the matrix being modified is already known to be the identity, a previous translate(), a previous scale(), etc.

Normally the QMatrix4x4 class keeps track of this special type internally as operations are performed. However, if the matrix is modified directly with {QLoggingCategory::operator()}{operator()()} or data(), then QMatrix4x4 will lose track of the special type and will revert to the safest but least efficient operations thereafter.

By calling optimize() after directly modifying the matrix, the programmer can force QMatrix4x4 to recover the special type if the elements appear to conform to one of the known optimized types.

See also operator()(), data(), and translate().

func (*QMatrix4x4) Ortho

func (this *QMatrix4x4) Ortho(rect qtcore.QRect_ITF)

Multiplies this matrix by another that applies an orthographic projection for a window with lower-left corner (left, bottom), upper-right corner (right, top), and the specified nearPlane and farPlane clipping planes.

See also frustum() and perspective().

func (*QMatrix4x4) Ortho1

func (this *QMatrix4x4) Ortho1(rect qtcore.QRectF_ITF)

Multiplies this matrix by another that applies an orthographic projection for a window with lower-left corner (left, bottom), upper-right corner (right, top), and the specified nearPlane and farPlane clipping planes.

See also frustum() and perspective().

func (*QMatrix4x4) Ortho2

func (this *QMatrix4x4) Ortho2(left float32, right float32, bottom float32, top float32, nearPlane float32, farPlane float32)

Multiplies this matrix by another that applies an orthographic projection for a window with lower-left corner (left, bottom), upper-right corner (right, top), and the specified nearPlane and farPlane clipping planes.

See also frustum() and perspective().

func (*QMatrix4x4) Perspective

func (this *QMatrix4x4) Perspective(verticalAngle float32, aspectRatio float32, nearPlane float32, farPlane float32)

Multiplies this matrix by another that applies a perspective projection. The vertical field of view will be verticalAngle degrees within a window with a given aspectRatio that determines the horizontal field of view. The projection will have the specified nearPlane and farPlane clipping planes which are the distances from the viewer to the corresponding planes.

See also ortho() and frustum().

func (*QMatrix4x4) QMatrix4x4_PTR

func (ptr *QMatrix4x4) QMatrix4x4_PTR() *QMatrix4x4

func (*QMatrix4x4) Rotate

func (this *QMatrix4x4) Rotate(angle float32, vector QVector3D_ITF)

Multiples this matrix by another that rotates coordinates through angle degrees about vector.

See also scale() and translate().

func (*QMatrix4x4) Rotate1

func (this *QMatrix4x4) Rotate1(angle float32, x float32, y float32, z float32)

Multiples this matrix by another that rotates coordinates through angle degrees about vector.

See also scale() and translate().

func (*QMatrix4x4) Rotate1p

func (this *QMatrix4x4) Rotate1p(angle float32, x float32, y float32)

Multiples this matrix by another that rotates coordinates through angle degrees about vector.

See also scale() and translate().

func (*QMatrix4x4) Rotate2

func (this *QMatrix4x4) Rotate2(quaternion QQuaternion_ITF)

Multiples this matrix by another that rotates coordinates through angle degrees about vector.

See also scale() and translate().

func (*QMatrix4x4) Row

func (this *QMatrix4x4) Row(index int) *QVector4D

Returns the elements of row index as a 4D vector.

See also setRow() and column().

func (*QMatrix4x4) Scale

func (this *QMatrix4x4) Scale(vector QVector3D_ITF)

Multiplies this matrix by another that scales coordinates by the components of vector.

See also translate() and rotate().

func (*QMatrix4x4) Scale1

func (this *QMatrix4x4) Scale1(x float32, y float32)

Multiplies this matrix by another that scales coordinates by the components of vector.

See also translate() and rotate().

func (*QMatrix4x4) Scale2

func (this *QMatrix4x4) Scale2(x float32, y float32, z float32)

Multiplies this matrix by another that scales coordinates by the components of vector.

See also translate() and rotate().

func (*QMatrix4x4) Scale3

func (this *QMatrix4x4) Scale3(factor float32)

Multiplies this matrix by another that scales coordinates by the components of vector.

See also translate() and rotate().

func (*QMatrix4x4) SetColumn

func (this *QMatrix4x4) SetColumn(index int, value QVector4D_ITF)

Sets the elements of column index to the components of value.

See also column() and setRow().

func (*QMatrix4x4) SetCthis

func (this *QMatrix4x4) SetCthis(cthis unsafe.Pointer)

func (*QMatrix4x4) SetRow

func (this *QMatrix4x4) SetRow(index int, value QVector4D_ITF)

Sets the elements of row index to the components of value.

See also row() and setColumn().

func (*QMatrix4x4) SetToIdentity

func (this *QMatrix4x4) SetToIdentity()

Sets this matrix to the identity.

See also isIdentity().

func (*QMatrix4x4) ToAffine

func (this *QMatrix4x4) ToAffine() *QMatrix

Returns the conventional Qt 2D affine transformation matrix that corresponds to this matrix. It is assumed that this matrix only contains 2D affine transformation elements.

See also toTransform().

func (*QMatrix4x4) ToTransform

func (this *QMatrix4x4) ToTransform() *QTransform

Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.

The returned QTransform is formed by simply dropping the third row and third column of the QMatrix4x4. This is suitable for implementing orthographic projections where the z co-ordinate should be dropped rather than projected.

See also toAffine().

func (*QMatrix4x4) ToTransform1

func (this *QMatrix4x4) ToTransform1(distanceToPlane float32) *QTransform

Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.

The returned QTransform is formed by simply dropping the third row and third column of the QMatrix4x4. This is suitable for implementing orthographic projections where the z co-ordinate should be dropped rather than projected.

See also toAffine().

func (*QMatrix4x4) Translate

func (this *QMatrix4x4) Translate(vector QVector3D_ITF)

Multiplies this matrix by another that translates coordinates by the components of vector.

See also scale() and rotate().

func (*QMatrix4x4) Translate1

func (this *QMatrix4x4) Translate1(x float32, y float32)

Multiplies this matrix by another that translates coordinates by the components of vector.

See also scale() and rotate().

func (*QMatrix4x4) Translate2

func (this *QMatrix4x4) Translate2(x float32, y float32, z float32)

Multiplies this matrix by another that translates coordinates by the components of vector.

See also scale() and rotate().

func (*QMatrix4x4) Transposed

func (this *QMatrix4x4) Transposed() *QMatrix4x4

Returns this matrix, transposed about its diagonal.

func (*QMatrix4x4) Viewport

func (this *QMatrix4x4) Viewport(rect qtcore.QRectF_ITF)

Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates. That is it maps points from the cube ranging over [-1, 1] in each dimension to the viewport with it's near-lower-left corner at (left, bottom, nearPlane) and with size (width, height, farPlane - nearPlane).

This matches the transform used by the fixed function OpenGL viewport transform controlled by the functions glViewport() and glDepthRange().

func (*QMatrix4x4) Viewport1

func (this *QMatrix4x4) Viewport1(left float32, bottom float32, width float32, height float32, nearPlane float32, farPlane float32)

Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates. That is it maps points from the cube ranging over [-1, 1] in each dimension to the viewport with it's near-lower-left corner at (left, bottom, nearPlane) and with size (width, height, farPlane - nearPlane).

This matches the transform used by the fixed function OpenGL viewport transform controlled by the functions glViewport() and glDepthRange().

func (*QMatrix4x4) Viewport1p

func (this *QMatrix4x4) Viewport1p(left float32, bottom float32, width float32, height float32)

Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates. That is it maps points from the cube ranging over [-1, 1] in each dimension to the viewport with it's near-lower-left corner at (left, bottom, nearPlane) and with size (width, height, farPlane - nearPlane).

This matches the transform used by the fixed function OpenGL viewport transform controlled by the functions glViewport() and glDepthRange().

func (*QMatrix4x4) Viewport1p1

func (this *QMatrix4x4) Viewport1p1(left float32, bottom float32, width float32, height float32, nearPlane float32)

Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates. That is it maps points from the cube ranging over [-1, 1] in each dimension to the viewport with it's near-lower-left corner at (left, bottom, nearPlane) and with size (width, height, farPlane - nearPlane).

This matches the transform used by the fixed function OpenGL viewport transform controlled by the functions glViewport() and glDepthRange().

type QMatrix4x4_ITF

type QMatrix4x4_ITF interface {
	QMatrix4x4_PTR() *QMatrix4x4
}

type QMatrix4x4__

type QMatrix4x4__ = int
const QMatrix4x4__General QMatrix4x4__ = 31
const QMatrix4x4__Identity QMatrix4x4__ = 0
const QMatrix4x4__Perspective QMatrix4x4__ = 16
const QMatrix4x4__Rotation QMatrix4x4__ = 8
const QMatrix4x4__Rotation2D QMatrix4x4__ = 4
const QMatrix4x4__Scale QMatrix4x4__ = 2
const QMatrix4x4__Translation QMatrix4x4__ = 1

type QMatrix_ITF

type QMatrix_ITF interface {
	QMatrix_PTR() *QMatrix
}

type QMouseEvent

type QMouseEvent struct {
	*QInputEvent
}

func NewQMouseEvent

func NewQMouseEvent(type_ int, localPos qtcore.QPointF_ITF, button int, buttons int, modifiers int) *QMouseEvent

func NewQMouseEvent1

func NewQMouseEvent1(type_ int, localPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, button int, buttons int, modifiers int) *QMouseEvent

func NewQMouseEvent2

func NewQMouseEvent2(type_ int, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, button int, buttons int, modifiers int) *QMouseEvent

func NewQMouseEvent3

func NewQMouseEvent3(type_ int, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, button int, buttons int, modifiers int, source int) *QMouseEvent

func NewQMouseEventFromPointer

func NewQMouseEventFromPointer(cthis unsafe.Pointer) *QMouseEvent

func (*QMouseEvent) Button

func (this *QMouseEvent) Button() int

func (*QMouseEvent) Buttons

func (this *QMouseEvent) Buttons() int

func (*QMouseEvent) Flags

func (this *QMouseEvent) Flags() int

func (*QMouseEvent) GetCthis

func (this *QMouseEvent) GetCthis() unsafe.Pointer

func (*QMouseEvent) GlobalPos

func (this *QMouseEvent) GlobalPos() *qtcore.QPoint

func (*QMouseEvent) GlobalX

func (this *QMouseEvent) GlobalX() int

func (*QMouseEvent) GlobalY

func (this *QMouseEvent) GlobalY() int

func (*QMouseEvent) LocalPos

func (this *QMouseEvent) LocalPos() *qtcore.QPointF

func (*QMouseEvent) NewForInherit

func (*QMouseEvent) NewForInherit(type_ int, localPos qtcore.QPointF_ITF, button int, buttons int, modifiers int) *QMouseEvent

func (*QMouseEvent) NewForInherit1

func (*QMouseEvent) NewForInherit1(type_ int, localPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, button int, buttons int, modifiers int) *QMouseEvent

func (*QMouseEvent) NewForInherit2

func (*QMouseEvent) NewForInherit2(type_ int, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, button int, buttons int, modifiers int) *QMouseEvent

func (*QMouseEvent) NewForInherit3

func (*QMouseEvent) NewForInherit3(type_ int, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, button int, buttons int, modifiers int, source int) *QMouseEvent

func (*QMouseEvent) NewFromPointer

func (*QMouseEvent) NewFromPointer(cthis unsafe.Pointer) *QMouseEvent

func (*QMouseEvent) Pos

func (this *QMouseEvent) Pos() *qtcore.QPoint

func (*QMouseEvent) QMouseEvent_PTR

func (ptr *QMouseEvent) QMouseEvent_PTR() *QMouseEvent

func (*QMouseEvent) ScreenPos

func (this *QMouseEvent) ScreenPos() *qtcore.QPointF

func (*QMouseEvent) SetCthis

func (this *QMouseEvent) SetCthis(cthis unsafe.Pointer)

func (*QMouseEvent) SetLocalPos

func (this *QMouseEvent) SetLocalPos(localPosition qtcore.QPointF_ITF)

func (*QMouseEvent) Source

func (this *QMouseEvent) Source() int

func (*QMouseEvent) WindowPos

func (this *QMouseEvent) WindowPos() *qtcore.QPointF

func (*QMouseEvent) X

func (this *QMouseEvent) X() int

func (*QMouseEvent) Y

func (this *QMouseEvent) Y() int

type QMouseEvent_ITF

type QMouseEvent_ITF interface {
	QInputEvent_ITF
	QMouseEvent_PTR() *QMouseEvent
}

type QMoveEvent

type QMoveEvent struct {
	*qtcore.QEvent
}

func NewQMoveEvent

func NewQMoveEvent(pos qtcore.QPoint_ITF, oldPos qtcore.QPoint_ITF) *QMoveEvent

func NewQMoveEventFromPointer

func NewQMoveEventFromPointer(cthis unsafe.Pointer) *QMoveEvent

func (*QMoveEvent) GetCthis

func (this *QMoveEvent) GetCthis() unsafe.Pointer

func (*QMoveEvent) NewForInherit

func (*QMoveEvent) NewForInherit(pos qtcore.QPoint_ITF, oldPos qtcore.QPoint_ITF) *QMoveEvent

func (*QMoveEvent) NewFromPointer

func (*QMoveEvent) NewFromPointer(cthis unsafe.Pointer) *QMoveEvent

func (*QMoveEvent) OldPos

func (this *QMoveEvent) OldPos() *qtcore.QPoint

func (*QMoveEvent) Pos

func (this *QMoveEvent) Pos() *qtcore.QPoint

func (*QMoveEvent) QMoveEvent_PTR

func (ptr *QMoveEvent) QMoveEvent_PTR() *QMoveEvent

func (*QMoveEvent) SetCthis

func (this *QMoveEvent) SetCthis(cthis unsafe.Pointer)

type QMoveEvent_ITF

type QMoveEvent_ITF interface {
	qtcore.QEvent_ITF
	QMoveEvent_PTR() *QMoveEvent
}

type QMovie

type QMovie struct {
	*qtcore.QObject
}

func NewQMovie

func NewQMovie(parent qtcore.QObject_ITF) *QMovie

func NewQMovie1

func NewQMovie1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QMovie

func NewQMovie1p

func NewQMovie1p(device qtcore.QIODevice_ITF) *QMovie

func NewQMovie1p1

func NewQMovie1p1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) *QMovie

func NewQMovie2

func NewQMovie2(fileName string, format qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QMovie

func NewQMovie2p

func NewQMovie2p(fileName string) *QMovie

func NewQMovie2p1

func NewQMovie2p1(fileName string, format qtcore.QByteArray_ITF) *QMovie

func NewQMovieFromPointer

func NewQMovieFromPointer(cthis unsafe.Pointer) *QMovie

func NewQMoviep

func NewQMoviep() *QMovie

func (*QMovie) BackgroundColor

func (this *QMovie) BackgroundColor() *QColor

Returns the background color of the movie. If no background color has been assigned, an invalid QColor is returned.

See also setBackgroundColor().

func (*QMovie) CacheMode

func (this *QMovie) CacheMode() int

func (*QMovie) CacheModeItemName

func (this *QMovie) CacheModeItemName(val int) string

func (*QMovie) CurrentFrameNumber

func (this *QMovie) CurrentFrameNumber() int

Returns the sequence number of the current frame. The number of the first frame in the movie is 0.

func (*QMovie) CurrentImage

func (this *QMovie) CurrentImage() *QImage

Returns the current frame as a QImage.

See also currentPixmap() and updated().

func (*QMovie) CurrentPixmap

func (this *QMovie) CurrentPixmap() *QPixmap

Returns the current frame as a QPixmap.

See also currentImage() and updated().

func (*QMovie) Device

func (this *QMovie) Device() *qtcore.QIODevice

Returns the device QMovie reads image data from. If no device has currently been assigned, 0 is returned.

See also setDevice() and fileName().

func (*QMovie) Error

func (this *QMovie) Error(error int)

This signal is emitted by QMovie when the error error occurred during playback. QMovie will stop the movie, and enter QMovie::NotRunning state.

See also lastError() and lastErrorString().

func (*QMovie) FileName

func (this *QMovie) FileName() string

Returns the name of the file that QMovie reads image data from. If no file name has been assigned, or if the assigned device is not a file, an empty QString is returned.

See also setFileName() and device().

func (*QMovie) Finished

func (this *QMovie) Finished()

This signal is emitted when the movie has finished.

See also QMovie::stop().

func (*QMovie) Format

func (this *QMovie) Format() *qtcore.QByteArray

Returns the format that QMovie uses when decoding image data. If no format has been assigned, an empty QByteArray() is returned.

See also setFormat().

func (*QMovie) FrameChanged

func (this *QMovie) FrameChanged(frameNumber int)

This signal is emitted when the frame number has changed to frameNumber. You can call currentImage() or currentPixmap() to get a copy of the frame.

This function was introduced in Qt 4.1.

func (*QMovie) FrameCount

func (this *QMovie) FrameCount() int

Returns the number of frames in the movie.

Certain animation formats do not support this feature, in which case 0 is returned.

func (*QMovie) FrameRect

func (this *QMovie) FrameRect() *qtcore.QRect

Returns the rect of the last frame. If no frame has yet been updated, an invalid QRect is returned.

See also currentImage() and currentPixmap().

func (*QMovie) GetCthis

func (this *QMovie) GetCthis() unsafe.Pointer

func (*QMovie) IsValid

func (this *QMovie) IsValid() bool

Returns true if the movie is valid (e.g., the image data is readable and the image format is supported); otherwise returns false.

For information about why the movie is not valid, see lastError().

func (*QMovie) JumpToFrame

func (this *QMovie) JumpToFrame(frameNumber int) bool

Jumps to frame number frameNumber. Returns true on success; otherwise returns false.

func (*QMovie) JumpToNextFrame

func (this *QMovie) JumpToNextFrame() bool

Jumps to the next frame. Returns true on success; otherwise returns false.

func (*QMovie) LastError

func (this *QMovie) LastError() int

Returns the most recent error that occurred while attempting to read image data.

See also lastErrorString().

func (*QMovie) LastErrorString

func (this *QMovie) LastErrorString() string

Returns a human-readable representation of the most recent error that occurred while attempting to read image data.

See also lastError().

func (*QMovie) LoopCount

func (this *QMovie) LoopCount() int

Returns the number of times the movie will loop before it finishes. If the movie will only play once (no looping), loopCount returns 0. If the movie loops forever, loopCount returns -1.

Note that, if the image data comes from a sequential device (e.g. a socket), QMovie can only loop the movie if the cacheMode is set to QMovie::CacheAll.

func (*QMovie) MetaObject

func (this *QMovie) MetaObject() *qtcore.QMetaObject

func (*QMovie) MovieStateItemName

func (this *QMovie) MovieStateItemName(val int) string

func (*QMovie) NewForInherit

func (*QMovie) NewForInherit(parent qtcore.QObject_ITF) *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewForInherit1

func (*QMovie) NewForInherit1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewForInherit1p

func (*QMovie) NewForInherit1p(device qtcore.QIODevice_ITF) *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewForInherit1p1

func (*QMovie) NewForInherit1p1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewForInherit2

func (*QMovie) NewForInherit2(fileName string, format qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewForInherit2p

func (*QMovie) NewForInherit2p(fileName string) *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewForInherit2p1

func (*QMovie) NewForInherit2p1(fileName string, format qtcore.QByteArray_ITF) *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewForInheritp

func (*QMovie) NewForInheritp() *QMovie

Constructs a QMovie object, passing the parent object to QObject's constructor.

See also setFileName(), setDevice(), and setFormat().

func (*QMovie) NewFromPointer

func (*QMovie) NewFromPointer(cthis unsafe.Pointer) *QMovie

func (*QMovie) NextFrameDelay

func (this *QMovie) NextFrameDelay() int

Returns the number of milliseconds QMovie will wait before updating the next frame in the animation.

func (*QMovie) QMovie_PTR

func (ptr *QMovie) QMovie_PTR() *QMovie

func (*QMovie) Resized

func (this *QMovie) Resized(size qtcore.QSize_ITF)

This signal is emitted when the current frame has been resized to size. This effect is sometimes used in animations as an alternative to replacing the frame. You can call currentImage() or currentPixmap() to get a copy of the updated frame.

func (*QMovie) ScaledSize

func (this *QMovie) ScaledSize() *qtcore.QSize

Returns the scaled size of frames.

This function was introduced in Qt 4.1.

See also setScaledSize() and QImageReader::scaledSize().

func (*QMovie) SetBackgroundColor

func (this *QMovie) SetBackgroundColor(color QColor_ITF)

For image formats that support it, this function sets the background color to color.

See also backgroundColor().

func (*QMovie) SetCacheMode

func (this *QMovie) SetCacheMode(mode int)

func (*QMovie) SetCthis

func (this *QMovie) SetCthis(cthis unsafe.Pointer)

func (*QMovie) SetDevice

func (this *QMovie) SetDevice(device qtcore.QIODevice_ITF)

Sets the current device to device. QMovie will read image data from this device when the movie is running.

See also device() and setFormat().

func (*QMovie) SetFileName

func (this *QMovie) SetFileName(fileName string)

Sets the name of the file that QMovie reads image data from, to fileName.

See also fileName(), setDevice(), and setFormat().

func (*QMovie) SetFormat

func (this *QMovie) SetFormat(format qtcore.QByteArray_ITF)

Sets the format that QMovie will use when decoding image data, to format. By default, QMovie will attempt to guess the format of the image data.

You can call supportedFormats() for the full list of formats QMovie supports.

See also format() and QImageReader::supportedImageFormats().

func (*QMovie) SetPaused

func (this *QMovie) SetPaused(paused bool)

If paused is true, QMovie will enter Paused state and emit stateChanged(Paused); otherwise it will enter Running state and emit stateChanged(Running).

See also state().

func (*QMovie) SetScaledSize

func (this *QMovie) SetScaledSize(size qtcore.QSize_ITF)

Sets the scaled frame size to size.

This function was introduced in Qt 4.1.

See also scaledSize() and QImageReader::setScaledSize().

func (*QMovie) SetSpeed

func (this *QMovie) SetSpeed(percentSpeed int)

func (*QMovie) Speed

func (this *QMovie) Speed() int

func (*QMovie) Start

func (this *QMovie) Start()

Starts the movie. QMovie will enter Running state, and start emitting updated() and resized() as the movie progresses.

If QMovie is in the Paused state, this function is equivalent to calling setPaused(false). If QMovie is already in the Running state, this function does nothing.

See also stop() and setPaused().

func (*QMovie) Started

func (this *QMovie) Started()

This signal is emitted after QMovie::start() has been called, and QMovie has entered QMovie::Running state.

func (*QMovie) State

func (this *QMovie) State() int

Returns the current state of QMovie.

See also MovieState and stateChanged().

func (*QMovie) StateChanged

func (this *QMovie) StateChanged(state int)

This signal is emitted every time the state of the movie changes. The new state is specified by state.

See also QMovie::state().

func (*QMovie) Stop

func (this *QMovie) Stop()

Stops the movie. QMovie enters NotRunning state, and stops emitting updated() and resized(). If start() is called again, the movie will restart from the beginning.

If QMovie is already in the NotRunning state, this function does nothing.

See also start() and setPaused().

func (*QMovie) Updated

func (this *QMovie) Updated(rect qtcore.QRect_ITF)

This signal is emitted when the rect rect in the current frame has been updated. You can call currentImage() or currentPixmap() to get a copy of the updated frame.

type QMovie_ITF

type QMovie_ITF interface {
	qtcore.QObject_ITF
	QMovie_PTR() *QMovie
}

type QMovie__CacheMode

type QMovie__CacheMode = int

This enum describes the different cache modes of QMovie.

const QMovie__CacheAll QMovie__CacheMode = 1

All frames are cached.

const QMovie__CacheNone QMovie__CacheMode = 0

No frames are cached (the default).

type QMovie__MovieState

type QMovie__MovieState = int

This enum describes the different states of QMovie.

const QMovie__NotRunning QMovie__MovieState = 0

The movie is not running. This is QMovie's initial state, and the state it enters after stop() has been called or the movie is finished.

const QMovie__Paused QMovie__MovieState = 1

The movie is paused, and QMovie stops emitting updated() or resized(). This state is entered after calling pause() or setPaused(true). The current frame number it kept, and the movie will continue with the next frame when unpause() or setPaused(false) is called.

const QMovie__Running QMovie__MovieState = 2

The movie is running.

type QNativeGestureEvent

type QNativeGestureEvent struct {
	*QInputEvent
}

func NewQNativeGestureEvent

func NewQNativeGestureEvent(type_ int, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, value float64, sequenceId uint, intArgument uint64) *QNativeGestureEvent

func NewQNativeGestureEvent1

func NewQNativeGestureEvent1(type_ int, dev QTouchDevice_ITF, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, value float64, sequenceId uint, intArgument uint64) *QNativeGestureEvent

func NewQNativeGestureEventFromPointer

func NewQNativeGestureEventFromPointer(cthis unsafe.Pointer) *QNativeGestureEvent

func (*QNativeGestureEvent) Device

func (this *QNativeGestureEvent) Device() *QTouchDevice

func (*QNativeGestureEvent) GestureType

func (this *QNativeGestureEvent) GestureType() int

func (*QNativeGestureEvent) GetCthis

func (this *QNativeGestureEvent) GetCthis() unsafe.Pointer

func (*QNativeGestureEvent) GlobalPos

func (this *QNativeGestureEvent) GlobalPos() *qtcore.QPoint

func (*QNativeGestureEvent) LocalPos

func (this *QNativeGestureEvent) LocalPos() *qtcore.QPointF

func (*QNativeGestureEvent) NewForInherit

func (*QNativeGestureEvent) NewForInherit(type_ int, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, value float64, sequenceId uint, intArgument uint64) *QNativeGestureEvent

func (*QNativeGestureEvent) NewForInherit1

func (*QNativeGestureEvent) NewForInherit1(type_ int, dev QTouchDevice_ITF, localPos qtcore.QPointF_ITF, windowPos qtcore.QPointF_ITF, screenPos qtcore.QPointF_ITF, value float64, sequenceId uint, intArgument uint64) *QNativeGestureEvent

func (*QNativeGestureEvent) NewFromPointer

func (*QNativeGestureEvent) NewFromPointer(cthis unsafe.Pointer) *QNativeGestureEvent

func (*QNativeGestureEvent) Pos

func (this *QNativeGestureEvent) Pos() *qtcore.QPoint

func (*QNativeGestureEvent) QNativeGestureEvent_PTR

func (ptr *QNativeGestureEvent) QNativeGestureEvent_PTR() *QNativeGestureEvent

func (*QNativeGestureEvent) ScreenPos

func (this *QNativeGestureEvent) ScreenPos() *qtcore.QPointF

func (*QNativeGestureEvent) SetCthis

func (this *QNativeGestureEvent) SetCthis(cthis unsafe.Pointer)

func (*QNativeGestureEvent) Value

func (this *QNativeGestureEvent) Value() float64

func (*QNativeGestureEvent) WindowPos

func (this *QNativeGestureEvent) WindowPos() *qtcore.QPointF

type QNativeGestureEvent_ITF

type QNativeGestureEvent_ITF interface {
	QInputEvent_ITF
	QNativeGestureEvent_PTR() *QNativeGestureEvent
}

type QOffscreenSurface

type QOffscreenSurface struct {
	*qtcore.QObject
	*QSurface
}

func NewQOffscreenSurface

func NewQOffscreenSurface(screen QScreen_ITF, parent qtcore.QObject_ITF) *QOffscreenSurface

func NewQOffscreenSurface1

func NewQOffscreenSurface1(screen QScreen_ITF) *QOffscreenSurface

func NewQOffscreenSurface1p

func NewQOffscreenSurface1p() *QOffscreenSurface

func NewQOffscreenSurfaceFromPointer

func NewQOffscreenSurfaceFromPointer(cthis unsafe.Pointer) *QOffscreenSurface

func (*QOffscreenSurface) Create

func (this *QOffscreenSurface) Create()

Allocates the platform resources associated with the offscreen surface.

It is at this point that the surface format set using setFormat() gets resolved into an actual native surface.

Call destroy() to free the platform resources if necessary.

Note: Some platforms require this function to be called on the main (GUI) thread.

See also destroy().

func (*QOffscreenSurface) Destroy

func (this *QOffscreenSurface) Destroy()

Releases the native platform resources associated with this offscreen surface.

See also create().

func (*QOffscreenSurface) Format

func (this *QOffscreenSurface) Format() *QSurfaceFormat

Reimplemented from QSurface::format().

Returns the actual format of this offscreen surface.

After the offscreen surface has been created, this function will return the actual surface format of the surface. It might differ from the requested format if the requested format could not be fulfilled by the platform.

See also setFormat(), create(), and requestedFormat().

func (*QOffscreenSurface) GetCthis

func (this *QOffscreenSurface) GetCthis() unsafe.Pointer

func (*QOffscreenSurface) IsValid

func (this *QOffscreenSurface) IsValid() bool

Returns true if this offscreen surface is valid; otherwise returns false.

The offscreen surface is valid if the platform resources have been successfuly allocated.

See also create().

func (*QOffscreenSurface) MetaObject

func (this *QOffscreenSurface) MetaObject() *qtcore.QMetaObject

func (*QOffscreenSurface) NativeHandle

func (this *QOffscreenSurface) NativeHandle() unsafe.Pointer

Returns an optional native handle to which the offscreen surface is connected.

This function was introduced in Qt 5.9.

See also setNativeHandle().

func (*QOffscreenSurface) NewForInherit

func (*QOffscreenSurface) NewForInherit(screen QScreen_ITF, parent qtcore.QObject_ITF) *QOffscreenSurface

Creates an offscreen surface for the targetScreen with the given parent.

The underlying platform surface is not created until create() is called.

This function was introduced in Qt 5.10.

See also setScreen() and create().

func (*QOffscreenSurface) NewForInherit1

func (*QOffscreenSurface) NewForInherit1(screen QScreen_ITF) *QOffscreenSurface

Creates an offscreen surface for the targetScreen with the given parent.

The underlying platform surface is not created until create() is called.

This function was introduced in Qt 5.10.

See also setScreen() and create().

func (*QOffscreenSurface) NewForInherit1p

func (*QOffscreenSurface) NewForInherit1p() *QOffscreenSurface

Creates an offscreen surface for the targetScreen with the given parent.

The underlying platform surface is not created until create() is called.

This function was introduced in Qt 5.10.

See also setScreen() and create().

func (*QOffscreenSurface) NewFromPointer

func (*QOffscreenSurface) NewFromPointer(cthis unsafe.Pointer) *QOffscreenSurface

func (*QOffscreenSurface) QOffscreenSurface_PTR

func (ptr *QOffscreenSurface) QOffscreenSurface_PTR() *QOffscreenSurface

func (*QOffscreenSurface) RequestedFormat

func (this *QOffscreenSurface) RequestedFormat() *QSurfaceFormat

Returns the requested surfaceformat of this offscreen surface.

If the requested format was not supported by the platform implementation, the requestedFormat will differ from the actual offscreen surface format.

This is the value set with setFormat().

See also setFormat() and format().

func (*QOffscreenSurface) Screen

func (this *QOffscreenSurface) Screen() *QScreen

Returns the screen to which the offscreen surface is connected.

See also setScreen().

func (*QOffscreenSurface) ScreenChanged

func (this *QOffscreenSurface) ScreenChanged(screen QScreen_ITF)

This signal is emitted when an offscreen surface's screen changes, either by being set explicitly with setScreen(), or automatically when the window's screen is removed.

func (*QOffscreenSurface) SetCthis

func (this *QOffscreenSurface) SetCthis(cthis unsafe.Pointer)

func (*QOffscreenSurface) SetFormat

func (this *QOffscreenSurface) SetFormat(format QSurfaceFormat_ITF)

Sets the offscreen surface format.

The surface format will be resolved in the create() function. Calling this function after create() will not re-resolve the surface format of the native surface.

See also format(), create(), and destroy().

func (*QOffscreenSurface) SetNativeHandle

func (this *QOffscreenSurface) SetNativeHandle(handle unsafe.Pointer)

Sets the native handle to which the offscreen surface is connected to handle.

The native handle will be resolved in the create() function. Calling this function after create() will not re-create a native surface.

Note: The interpretation of the native handle is platform specific. Only some platforms will support adopting native handles of offscreen surfaces and platforms that do not implement this support will ignore the handle.

This function was introduced in Qt 5.9.

See also nativeHandle().

func (*QOffscreenSurface) SetScreen

func (this *QOffscreenSurface) SetScreen(screen QScreen_ITF)

Sets the screen to which the offscreen surface is connected.

If the offscreen surface has been created, it will be recreated on the newScreen.

See also screen().

func (*QOffscreenSurface) Size

func (this *QOffscreenSurface) Size() *qtcore.QSize

Reimplemented from QSurface::size().

Returns the size of the offscreen surface.

func (*QOffscreenSurface) SurfaceType

func (this *QOffscreenSurface) SurfaceType() int

Reimplemented from QSurface::surfaceType().

Returns the surface type of the offscreen surface.

The surface type of an offscreen surface is always QSurface::OpenGLSurface.

type QOffscreenSurface_ITF

type QOffscreenSurface_ITF interface {
	qtcore.QObject_ITF
	QSurface_ITF
	QOffscreenSurface_PTR() *QOffscreenSurface
}

type QOpenGLDebugMessage_ITF

type QOpenGLDebugMessage_ITF interface {
	QOpenGLDebugMessage_PTR() qtrt.CObjectITF
}

type QOpenGLPixelTransferOptions_ITF

type QOpenGLPixelTransferOptions_ITF interface {
	QOpenGLPixelTransferOptions_PTR() qtrt.CObjectITF
}

type QPageLayout

type QPageLayout struct {
	*qtrt.CObject
}

func NewQPageLayout

func NewQPageLayout() *QPageLayout

func NewQPageLayout1

func NewQPageLayout1(pageSize QPageSize_ITF, orientation int, margins qtcore.QMarginsF_ITF, units int, minMargins qtcore.QMarginsF_ITF) *QPageLayout

func NewQPageLayout1p

func NewQPageLayout1p(pageSize QPageSize_ITF, orientation int, margins qtcore.QMarginsF_ITF) *QPageLayout

func NewQPageLayout1p1

func NewQPageLayout1p1(pageSize QPageSize_ITF, orientation int, margins qtcore.QMarginsF_ITF, units int) *QPageLayout

func NewQPageLayoutFromPointer

func NewQPageLayoutFromPointer(cthis unsafe.Pointer) *QPageLayout

func (*QPageLayout) FullRect

func (this *QPageLayout) FullRect() *qtcore.QRectF

Returns the full page rectangle in the current layout units.

The page rectangle takes into account the page size and page orientation, but not the page margins.

See also paintRect() and units().

func (*QPageLayout) FullRect1

func (this *QPageLayout) FullRect1(units int) *qtcore.QRectF

Returns the full page rectangle in the current layout units.

The page rectangle takes into account the page size and page orientation, but not the page margins.

See also paintRect() and units().

func (*QPageLayout) FullRectPixels

func (this *QPageLayout) FullRectPixels(resolution int) *qtcore.QRect

Returns the full page rectangle in device pixels for the given resolution.

The page rectangle takes into account the page size and page orientation, but not the page margins.

See also paintRect().

func (*QPageLayout) FullRectPoints

func (this *QPageLayout) FullRectPoints() *qtcore.QRect

Returns the full page rectangle in Postscript Points (1/72 of an inch).

The page rectangle takes into account the page size and page orientation, but not the page margins.

See also paintRect().

func (*QPageLayout) GetCthis

func (this *QPageLayout) GetCthis() unsafe.Pointer

func (*QPageLayout) IsEquivalentTo

func (this *QPageLayout) IsEquivalentTo(other QPageLayout_ITF) bool

Returns true if this page layout is equivalent to the other page layout, i.e. if the page has the same size, margins and orientation.

func (*QPageLayout) IsValid

func (this *QPageLayout) IsValid() bool

Returns true if this page layout is valid.

func (*QPageLayout) Margins

func (this *QPageLayout) Margins() *qtcore.QMarginsF

Returns the margins of the page layout using the currently set units.

See also setMargins() and units().

func (*QPageLayout) Margins1

func (this *QPageLayout) Margins1(units int) *qtcore.QMarginsF

Returns the margins of the page layout using the currently set units.

See also setMargins() and units().

func (*QPageLayout) MarginsPixels

func (this *QPageLayout) MarginsPixels(resolution int) *qtcore.QMargins

Returns the margins of the page layout in device pixels for the given resolution.

See also setMargins().

func (*QPageLayout) MarginsPoints

func (this *QPageLayout) MarginsPoints() *qtcore.QMargins

Returns the margins of the page layout in Postscript Points (1/72 of an inch).

See also setMargins() and margins().

func (*QPageLayout) MaximumMargins

func (this *QPageLayout) MaximumMargins() *qtcore.QMarginsF

Returns the maximum margins that would be applied if the page layout was in StandardMode.

The maximum margins allowed are calculated as the full size of the page minus the minimum margins set. For example, if the page width is 100 points and the minimum right margin is 10 points, then the maximum left margin will be 90 points.

See also setMinimumMargins() and minimumMargins().

func (*QPageLayout) MinimumMargins

func (this *QPageLayout) MinimumMargins() *qtcore.QMarginsF

Returns the minimum margins of the page layout.

See also setMinimumMargins() and maximumMargins().

func (*QPageLayout) Mode

func (this *QPageLayout) Mode() int

Returns the page layout mode.

See also setMode().

func (*QPageLayout) ModeItemName

func (this *QPageLayout) ModeItemName(val int) string

func (*QPageLayout) NewForInherit

func (*QPageLayout) NewForInherit() *QPageLayout

Creates an invalid QPageLayout.

func (*QPageLayout) NewForInherit1

func (*QPageLayout) NewForInherit1(pageSize QPageSize_ITF, orientation int, margins qtcore.QMarginsF_ITF, units int, minMargins qtcore.QMarginsF_ITF) *QPageLayout

Creates an invalid QPageLayout.

func (*QPageLayout) NewForInherit1p

func (*QPageLayout) NewForInherit1p(pageSize QPageSize_ITF, orientation int, margins qtcore.QMarginsF_ITF) *QPageLayout

Creates an invalid QPageLayout.

func (*QPageLayout) NewForInherit1p1

func (*QPageLayout) NewForInherit1p1(pageSize QPageSize_ITF, orientation int, margins qtcore.QMarginsF_ITF, units int) *QPageLayout

Creates an invalid QPageLayout.

func (*QPageLayout) NewFromPointer

func (*QPageLayout) NewFromPointer(cthis unsafe.Pointer) *QPageLayout

func (*QPageLayout) Operator_equal

func (this *QPageLayout) Operator_equal(other unsafe.Pointer) *QPageLayout

func (*QPageLayout) Operator_equal1

func (this *QPageLayout) Operator_equal1(other QPageLayout_ITF) *QPageLayout

func (*QPageLayout) Orientation

func (this *QPageLayout) Orientation() int

Returns the page orientation of the page layout.

See also setOrientation().

func (*QPageLayout) OrientationItemName

func (this *QPageLayout) OrientationItemName(val int) string

func (*QPageLayout) PageSize

func (this *QPageLayout) PageSize() *QPageSize

Returns the page size of the page layout.

Note that the QPageSize is always defined in a Portrait orientation. To obtain a size that takes the set orientation into account you must use fullRect().

See also setPageSize().

func (*QPageLayout) PaintRect

func (this *QPageLayout) PaintRect() *qtcore.QRectF

Returns the page rectangle in the current layout units.

The paintable rectangle takes into account the page size, orientation and margins.

If the FullPageMode mode is set then the fullRect() is returned and the margins must be manually managed.

func (*QPageLayout) PaintRect1

func (this *QPageLayout) PaintRect1(units int) *qtcore.QRectF

Returns the page rectangle in the current layout units.

The paintable rectangle takes into account the page size, orientation and margins.

If the FullPageMode mode is set then the fullRect() is returned and the margins must be manually managed.

func (*QPageLayout) PaintRectPixels

func (this *QPageLayout) PaintRectPixels(resolution int) *qtcore.QRect

Returns the paintable rectangle in rounded device pixels for the given resolution.

The paintable rectangle takes into account the page size, orientation and margins.

If the FullPageMode mode is set then the fullRect() is returned and the margins must be manually managed.

func (*QPageLayout) PaintRectPoints

func (this *QPageLayout) PaintRectPoints() *qtcore.QRect

Returns the paintable rectangle in rounded Postscript Points (1/72 of an inch).

The paintable rectangle takes into account the page size, orientation and margins.

If the FullPageMode mode is set then the fullRect() is returned and the margins must be manually managed.

func (*QPageLayout) QPageLayout_PTR

func (ptr *QPageLayout) QPageLayout_PTR() *QPageLayout

func (*QPageLayout) SetBottomMargin

func (this *QPageLayout) SetBottomMargin(bottomMargin float64) bool

Sets the bottom page margin of the page layout to bottomMargin. Returns true if the margin was successfully set.

The units used are those currently defined for the layout. To use different units call setUnits() first.

If in the default StandardMode then the new margin must fall between the minimum margin set and the maximum margin allowed by the page size, otherwise the margin will not be set.

If in FullPageMode then any margin values will be accepted.

See also setMargins() and margins().

func (*QPageLayout) SetCthis

func (this *QPageLayout) SetCthis(cthis unsafe.Pointer)

func (*QPageLayout) SetLeftMargin

func (this *QPageLayout) SetLeftMargin(leftMargin float64) bool

Sets the left page margin of the page layout to leftMargin. Returns true if the margin was successfully set.

The units used are those currently defined for the layout. To use different units call setUnits() first.

If in the default StandardMode then the new margin must fall between the minimum margin set and the maximum margin allowed by the page size, otherwise the margin will not be set.

If in FullPageMode then any margin values will be accepted.

See also setMargins() and margins().

func (*QPageLayout) SetMargins

func (this *QPageLayout) SetMargins(margins qtcore.QMarginsF_ITF) bool

Sets the page margins of the page layout to margins Returns true if the margins were successfully set.

The units used are those currently defined for the layout. To use different units then call setUnits() first.

If in the default StandardMode then all the new margins must fall between the minimum margins set and the maximum margins allowed by the page size, otherwise the margins will not be set.

If in FullPageMode then any margin values will be accepted.

See also margins() and units().

func (*QPageLayout) SetMinimumMargins

func (this *QPageLayout) SetMinimumMargins(minMargins qtcore.QMarginsF_ITF)

Sets the minimum page margins of the page layout to minMargins.

It is not recommended to override the default values set for a page size as this may be the minimum printable area for a physical print device.

If the StandardMode mode is set then the existing margins will be clamped to the new minMargins and the maximum allowed by the page size. If the FullPageMode is set then the existing margins will be unchanged.

See also minimumMargins() and setMargins().

func (*QPageLayout) SetMode

func (this *QPageLayout) SetMode(mode int)

Sets a page layout mode to mode.

See also mode().

func (*QPageLayout) SetOrientation

func (this *QPageLayout) SetOrientation(orientation int)

Sets the page orientation of the page layout to orientation.

Changing the orientation does not affect the current margins or the minimum margins.

See also orientation().

func (*QPageLayout) SetPageSize

func (this *QPageLayout) SetPageSize(pageSize QPageSize_ITF, minMargins qtcore.QMarginsF_ITF)

Sets the page size of the page layout to pageSize.

Optionally define the minimum allowed margins minMargins, e.g. the minimum margins able to be printed by a physical print device, otherwise the minimum margins will default to 0.

If StandardMode is set then the existing margins will be clamped to the new minimum margins and the maximum margins allowed by the page size. If FullPageMode is set then the existing margins will be unchanged.

See also pageSize().

func (*QPageLayout) SetPageSizep

func (this *QPageLayout) SetPageSizep(pageSize QPageSize_ITF)

Sets the page size of the page layout to pageSize.

Optionally define the minimum allowed margins minMargins, e.g. the minimum margins able to be printed by a physical print device, otherwise the minimum margins will default to 0.

If StandardMode is set then the existing margins will be clamped to the new minimum margins and the maximum margins allowed by the page size. If FullPageMode is set then the existing margins will be unchanged.

See also pageSize().

func (*QPageLayout) SetRightMargin

func (this *QPageLayout) SetRightMargin(rightMargin float64) bool

Sets the right page margin of the page layout to rightMargin. Returns true if the margin was successfully set.

The units used are those currently defined for the layout. To use different units call setUnits() first.

If in the default StandardMode then the new margin must fall between the minimum margin set and the maximum margin allowed by the page size, otherwise the margin will not be set.

If in FullPageMode then any margin values will be accepted.

See also setMargins() and margins().

func (*QPageLayout) SetTopMargin

func (this *QPageLayout) SetTopMargin(topMargin float64) bool

Sets the top page margin of the page layout to topMargin. Returns true if the margin was successfully set.

The units used are those currently defined for the layout. To use different units call setUnits() first.

If in the default StandardMode then the new margin must fall between the minimum margin set and the maximum margin allowed by the page size, otherwise the margin will not be set.

If in FullPageMode then any margin values will be accepted.

See also setMargins() and margins().

func (*QPageLayout) SetUnits

func (this *QPageLayout) SetUnits(units int)

Sets the units used to define the page layout.

See also units().

func (*QPageLayout) Swap

func (this *QPageLayout) Swap(other QPageLayout_ITF)

Swaps this page layout with other. This function is very fast and never fails.

func (*QPageLayout) UnitItemName

func (this *QPageLayout) UnitItemName(val int) string

func (*QPageLayout) Units

func (this *QPageLayout) Units() int

Returns the units the page layout is currently defined in.

See also setUnits().

type QPageLayout_ITF

type QPageLayout_ITF interface {
	QPageLayout_PTR() *QPageLayout
}

type QPageLayout__Mode

type QPageLayout__Mode = int

Defines the page layout mode

const QPageLayout__FullPageMode QPageLayout__Mode = 1

Paint Rect excludes margins, margins can be any value and must be managed manually.

const QPageLayout__StandardMode QPageLayout__Mode = 0

Paint Rect includes margins, margins must fall between the minimum and maximum.

type QPageLayout__Orientation

type QPageLayout__Orientation = int

This enum type defines the page orientation

Note that some standard page sizes are defined with a width larger than their height, hence the orientation is defined relative to the standard page size and not using the relative page dimensions.

const QPageLayout__Landscape QPageLayout__Orientation = 1
const QPageLayout__Portrait QPageLayout__Orientation = 0

The page size is used in its default orientation

type QPageLayout__Unit

type QPageLayout__Unit = int

This enum type is used to specify the measurement unit for page layout and margins.

const QPageLayout__Cicero QPageLayout__Unit = 5
const QPageLayout__Didot QPageLayout__Unit = 4
const QPageLayout__Inch QPageLayout__Unit = 2
const QPageLayout__Millimeter QPageLayout__Unit = 0
const QPageLayout__Pica QPageLayout__Unit = 3
const QPageLayout__Point QPageLayout__Unit = 1

type QPageSize

type QPageSize struct {
	*qtrt.CObject
}

func NewQPageSize

func NewQPageSize() *QPageSize

func NewQPageSize1

func NewQPageSize1(pageSizeId int) *QPageSize

func NewQPageSize2

func NewQPageSize2(pointSize qtcore.QSize_ITF, name string, matchPolicy int) *QPageSize

func NewQPageSize2p

func NewQPageSize2p(pointSize qtcore.QSize_ITF) *QPageSize

func NewQPageSize2p1

func NewQPageSize2p1(pointSize qtcore.QSize_ITF, name string) *QPageSize

func NewQPageSize3

func NewQPageSize3(size qtcore.QSizeF_ITF, units int, name string, matchPolicy int) *QPageSize

func NewQPageSize3p

func NewQPageSize3p(size qtcore.QSizeF_ITF, units int) *QPageSize

func NewQPageSize3p1

func NewQPageSize3p1(size qtcore.QSizeF_ITF, units int, name string) *QPageSize

func NewQPageSizeFromPointer

func NewQPageSizeFromPointer(cthis unsafe.Pointer) *QPageSize

func (*QPageSize) DefinitionSize

func (this *QPageSize) DefinitionSize() *qtcore.QSizeF

Returns the definition size of the page size.

For a standard page size this will be the size as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.

For a custom page size this will be the original size used to create the page size object.

If the QPageSize is invalid then the QSizeF will be invalid.

See also definitionUnits().

func (*QPageSize) DefinitionSize1

func (this *QPageSize) DefinitionSize1(pageSizeId int) *qtcore.QSizeF

Returns the definition size of the page size.

For a standard page size this will be the size as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.

For a custom page size this will be the original size used to create the page size object.

If the QPageSize is invalid then the QSizeF will be invalid.

See also definitionUnits().

func (*QPageSize) DefinitionUnits

func (this *QPageSize) DefinitionUnits() int

Returns the definition units of the page size.

For a standard page size this will be the units as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.

For a custom page size this will be the original units used to create the page size object.

If the QPageSize is invalid then the QPageSize::Unit will be invalid.

See also definitionSize().

func (*QPageSize) DefinitionUnits1

func (this *QPageSize) DefinitionUnits1(pageSizeId int) int

Returns the definition units of the page size.

For a standard page size this will be the units as defined in the relevant standard, i.e. ISO A4 will be defined in millimeters while ANSI Letter will be defined in inches.

For a custom page size this will be the original units used to create the page size object.

If the QPageSize is invalid then the QPageSize::Unit will be invalid.

See also definitionSize().

func (*QPageSize) GetCthis

func (this *QPageSize) GetCthis() unsafe.Pointer

func (*QPageSize) Id

func (this *QPageSize) Id() int

Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.

If the QPageSize is invalid then the ID will be QPageSize::Custom.

func (*QPageSize) Id1

func (this *QPageSize) Id1(pointSize qtcore.QSize_ITF, matchPolicy int) int

Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.

If the QPageSize is invalid then the ID will be QPageSize::Custom.

func (*QPageSize) Id1p

func (this *QPageSize) Id1p(pointSize qtcore.QSize_ITF) int

Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.

If the QPageSize is invalid then the ID will be QPageSize::Custom.

func (*QPageSize) Id2

func (this *QPageSize) Id2(size qtcore.QSizeF_ITF, units int, matchPolicy int) int

Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.

If the QPageSize is invalid then the ID will be QPageSize::Custom.

func (*QPageSize) Id2p

func (this *QPageSize) Id2p(size qtcore.QSizeF_ITF, units int) int

Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.

If the QPageSize is invalid then the ID will be QPageSize::Custom.

func (*QPageSize) Id3

func (this *QPageSize) Id3(windowsId int) int

Returns the standard QPageSize::PageSizeId of the page, or QPageSize::Custom.

If the QPageSize is invalid then the ID will be QPageSize::Custom.

func (*QPageSize) IsEquivalentTo

func (this *QPageSize) IsEquivalentTo(other QPageSize_ITF) bool

Returns true if this page is equivalent to the other page, i.e. if the page has the same size regardless of other attributes like name.

func (*QPageSize) IsValid

func (this *QPageSize) IsValid() bool

Returns true if this page size is valid.

The page size may be invalid if created with an invalid PageSizeId, or a negative or invalid QSize or QSizeF, or the null constructor.

func (*QPageSize) Key

func (this *QPageSize) Key() string

Returns the unique key of the page size.

By default this is the PPD standard mediaOption keyword for the page size, or the PPD custom format key. If the QPageSize instance was obtained from a print device then this will be the key provided by the print device and may differ from the standard key.

If the QPageSize is invalid then the key will be an empty string.

This key should never be shown to end users, it is an internal key only. For a human-readable name use name().

See also name().

func (*QPageSize) Key1

func (this *QPageSize) Key1(pageSizeId int) string

Returns the unique key of the page size.

By default this is the PPD standard mediaOption keyword for the page size, or the PPD custom format key. If the QPageSize instance was obtained from a print device then this will be the key provided by the print device and may differ from the standard key.

If the QPageSize is invalid then the key will be an empty string.

This key should never be shown to end users, it is an internal key only. For a human-readable name use name().

See also name().

func (*QPageSize) Name

func (this *QPageSize) Name() string

Returns a localized human-readable name for the page size.

If the QPageSize instance was obtained from a print device then the name used is that provided by the print device. Note that a print device may not support the current default locale language.

If the QPageSize is invalid then the name will be an empty string.

func (*QPageSize) Name1

func (this *QPageSize) Name1(pageSizeId int) string

Returns a localized human-readable name for the page size.

If the QPageSize instance was obtained from a print device then the name used is that provided by the print device. Note that a print device may not support the current default locale language.

If the QPageSize is invalid then the name will be an empty string.

func (*QPageSize) NewForInherit

func (*QPageSize) NewForInherit() *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewForInherit1

func (*QPageSize) NewForInherit1(pageSizeId int) *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewForInherit2

func (*QPageSize) NewForInherit2(pointSize qtcore.QSize_ITF, name string, matchPolicy int) *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewForInherit2p

func (*QPageSize) NewForInherit2p(pointSize qtcore.QSize_ITF) *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewForInherit2p1

func (*QPageSize) NewForInherit2p1(pointSize qtcore.QSize_ITF, name string) *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewForInherit3

func (*QPageSize) NewForInherit3(size qtcore.QSizeF_ITF, units int, name string, matchPolicy int) *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewForInherit3p

func (*QPageSize) NewForInherit3p(size qtcore.QSizeF_ITF, units int) *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewForInherit3p1

func (*QPageSize) NewForInherit3p1(size qtcore.QSizeF_ITF, units int, name string) *QPageSize

Creates a null QPageSize.

func (*QPageSize) NewFromPointer

func (*QPageSize) NewFromPointer(cthis unsafe.Pointer) *QPageSize

func (*QPageSize) Operator_equal

func (this *QPageSize) Operator_equal(other unsafe.Pointer) *QPageSize

func (*QPageSize) Operator_equal1

func (this *QPageSize) Operator_equal1(other QPageSize_ITF) *QPageSize

func (*QPageSize) PageSizeIdItemName

func (this *QPageSize) PageSizeIdItemName(val int) string

func (*QPageSize) QPageSize_PTR

func (ptr *QPageSize) QPageSize_PTR() *QPageSize

func (*QPageSize) Rect

func (this *QPageSize) Rect(units int) *qtcore.QRectF

Returns the page rectangle in the required units.

If the QPageSize is invalid then the QRect will be invalid.

func (*QPageSize) RectPixels

func (this *QPageSize) RectPixels(resolution int) *qtcore.QRect

Returns the page rectangle in Device Pixels at the given resolution.

If the QPageSize is invalid then the QRect will be invalid.

func (*QPageSize) RectPoints

func (this *QPageSize) RectPoints() *qtcore.QRect

Returns the page rectangle in Postscript Points (1/72 of an inch).

If the QPageSize is invalid then the QRect will be invalid.

func (*QPageSize) SetCthis

func (this *QPageSize) SetCthis(cthis unsafe.Pointer)

func (*QPageSize) Size

func (this *QPageSize) Size(units int) *qtcore.QSizeF

Returns the size of the page in the required units.

If the QPageSize is invalid then the QSizeF will be invalid.

func (*QPageSize) Size1

func (this *QPageSize) Size1(pageSizeId int, units int) *qtcore.QSizeF

Returns the size of the page in the required units.

If the QPageSize is invalid then the QSizeF will be invalid.

func (*QPageSize) SizeMatchPolicyItemName

func (this *QPageSize) SizeMatchPolicyItemName(val int) string

func (*QPageSize) SizePixels

func (this *QPageSize) SizePixels(resolution int) *qtcore.QSize

Returns the size of the page in Device Pixels at the given resolution.

If the QPageSize is invalid then the QSize will be invalid.

func (*QPageSize) SizePixels1

func (this *QPageSize) SizePixels1(pageSizeId int, resolution int) *qtcore.QSize

Returns the size of the page in Device Pixels at the given resolution.

If the QPageSize is invalid then the QSize will be invalid.

func (*QPageSize) SizePoints

func (this *QPageSize) SizePoints() *qtcore.QSize

Returns the size of the page in Postscript Points (1/72 of an inch).

If the QPageSize is invalid then the QSize will be invalid.

func (*QPageSize) SizePoints1

func (this *QPageSize) SizePoints1(pageSizeId int) *qtcore.QSize

Returns the size of the page in Postscript Points (1/72 of an inch).

If the QPageSize is invalid then the QSize will be invalid.

func (*QPageSize) Swap

func (this *QPageSize) Swap(other QPageSize_ITF)

Swaps this QPageSize with other. This function is very fast and never fails.

func (*QPageSize) UnitItemName

func (this *QPageSize) UnitItemName(val int) string

func (*QPageSize) WindowsId

func (this *QPageSize) WindowsId() int

Returns the Windows DMPAPER enum value for the page size.

Not all valid PPD page sizes have a Windows equivalent, in which case 0 will be returned.

If the QPageSize is invalid then the Windows ID will be 0.

See also id().

func (*QPageSize) WindowsId1

func (this *QPageSize) WindowsId1(pageSizeId int) int

Returns the Windows DMPAPER enum value for the page size.

Not all valid PPD page sizes have a Windows equivalent, in which case 0 will be returned.

If the QPageSize is invalid then the Windows ID will be 0.

See also id().

type QPageSize_ITF

type QPageSize_ITF interface {
	QPageSize_PTR() *QPageSize
}

type QPageSize__PageSizeId

type QPageSize__PageSizeId = int

This enum type lists the available page sizes as defined in the Postscript PPD standard. These values are duplicated in QPagedPaintDevice and QPrinter.

The defined sizes are:

QPageSize::AnsiALetter= Letter QPageSize::AnsiBLedger= Ledger QPageSize::EnvelopeDLDLE= DLE

Due to historic reasons QPageSize::Executive is not the same as the standard Postscript and Windows Executive size, use QPageSize::ExecutiveStandard instead.

The Postscript standard size QPageSize::Folio is different to the Windows DMPAPER_FOLIO size, use the Postscript standard size QPageSize::FanFoldGermanLegal if needed.

const QPageSize__A0 QPageSize__PageSizeId = 5
const QPageSize__A1 QPageSize__PageSizeId = 6
const QPageSize__A10 QPageSize__PageSizeId = 31
const QPageSize__A2 QPageSize__PageSizeId = 7
const QPageSize__A3 QPageSize__PageSizeId = 8
const QPageSize__A3Extra QPageSize__PageSizeId = 32
const QPageSize__A4 QPageSize__PageSizeId = 0
const QPageSize__A4Extra QPageSize__PageSizeId = 33
const QPageSize__A4Plus QPageSize__PageSizeId = 34
const QPageSize__A4Small QPageSize__PageSizeId = 35
const QPageSize__A5 QPageSize__PageSizeId = 9
const QPageSize__A5Extra QPageSize__PageSizeId = 36
const QPageSize__A6 QPageSize__PageSizeId = 10
const QPageSize__A7 QPageSize__PageSizeId = 11
const QPageSize__A8 QPageSize__PageSizeId = 12
const QPageSize__A9 QPageSize__PageSizeId = 13
const QPageSize__AnsiA QPageSize__PageSizeId = 2
const QPageSize__AnsiB QPageSize__PageSizeId = 28
const QPageSize__AnsiC QPageSize__PageSizeId = 49
const QPageSize__AnsiD QPageSize__PageSizeId = 50
const QPageSize__AnsiE QPageSize__PageSizeId = 51
const QPageSize__ArchA QPageSize__PageSizeId = 57
const QPageSize__ArchB QPageSize__PageSizeId = 58
const QPageSize__ArchC QPageSize__PageSizeId = 59
const QPageSize__ArchD QPageSize__PageSizeId = 60
const QPageSize__ArchE QPageSize__PageSizeId = 61
const QPageSize__B0 QPageSize__PageSizeId = 14
const QPageSize__B1 QPageSize__PageSizeId = 15
const QPageSize__B10 QPageSize__PageSizeId = 16
const QPageSize__B2 QPageSize__PageSizeId = 17
const QPageSize__B3 QPageSize__PageSizeId = 18
const QPageSize__B4 QPageSize__PageSizeId = 19
const QPageSize__B5 QPageSize__PageSizeId = 1
const QPageSize__B5Extra QPageSize__PageSizeId = 37
const QPageSize__B6 QPageSize__PageSizeId = 20
const QPageSize__B7 QPageSize__PageSizeId = 21
const QPageSize__B8 QPageSize__PageSizeId = 22
const QPageSize__B9 QPageSize__PageSizeId = 23
const QPageSize__C5E QPageSize__PageSizeId = 24
const QPageSize__Comm10E QPageSize__PageSizeId = 25
const QPageSize__Custom QPageSize__PageSizeId = 30
const QPageSize__DLE QPageSize__PageSizeId = 26
const QPageSize__DoublePostcard QPageSize__PageSizeId = 78
const QPageSize__Envelope10 QPageSize__PageSizeId = 25
const QPageSize__Envelope11 QPageSize__PageSizeId = 97
const QPageSize__Envelope12 QPageSize__PageSizeId = 98
const QPageSize__Envelope14 QPageSize__PageSizeId = 99
const QPageSize__Envelope9 QPageSize__PageSizeId = 96
const QPageSize__EnvelopeB4 QPageSize__PageSizeId = 85
const QPageSize__EnvelopeB5 QPageSize__PageSizeId = 86
const QPageSize__EnvelopeB6 QPageSize__PageSizeId = 87
const QPageSize__EnvelopeC0 QPageSize__PageSizeId = 88
const QPageSize__EnvelopeC1 QPageSize__PageSizeId = 89
const QPageSize__EnvelopeC2 QPageSize__PageSizeId = 90
const QPageSize__EnvelopeC3 QPageSize__PageSizeId = 91
const QPageSize__EnvelopeC4 QPageSize__PageSizeId = 92
const QPageSize__EnvelopeC5 QPageSize__PageSizeId = 24
const QPageSize__EnvelopeC6 QPageSize__PageSizeId = 93
const QPageSize__EnvelopeC65 QPageSize__PageSizeId = 94
const QPageSize__EnvelopeC7 QPageSize__PageSizeId = 95
const QPageSize__EnvelopeChou3 QPageSize__PageSizeId = 102
const QPageSize__EnvelopeChou4 QPageSize__PageSizeId = 103
const QPageSize__EnvelopeDL QPageSize__PageSizeId = 26
const QPageSize__EnvelopeInvite QPageSize__PageSizeId = 104
const QPageSize__EnvelopeItalian QPageSize__PageSizeId = 105
const QPageSize__EnvelopeKaku2 QPageSize__PageSizeId = 106
const QPageSize__EnvelopeKaku3 QPageSize__PageSizeId = 107
const QPageSize__EnvelopeMonarch QPageSize__PageSizeId = 100
const QPageSize__EnvelopePersonal QPageSize__PageSizeId = 101
const QPageSize__EnvelopePrc1 QPageSize__PageSizeId = 108
const QPageSize__EnvelopePrc10 QPageSize__PageSizeId = 117
const QPageSize__EnvelopePrc2 QPageSize__PageSizeId = 109
const QPageSize__EnvelopePrc3 QPageSize__PageSizeId = 110
const QPageSize__EnvelopePrc4 QPageSize__PageSizeId = 111
const QPageSize__EnvelopePrc5 QPageSize__PageSizeId = 112
const QPageSize__EnvelopePrc6 QPageSize__PageSizeId = 113
const QPageSize__EnvelopePrc7 QPageSize__PageSizeId = 114
const QPageSize__EnvelopePrc8 QPageSize__PageSizeId = 115
const QPageSize__EnvelopePrc9 QPageSize__PageSizeId = 116
const QPageSize__EnvelopeYou4 QPageSize__PageSizeId = 118
const QPageSize__Executive QPageSize__PageSizeId = 4
const QPageSize__ExecutiveStandard QPageSize__PageSizeId = 71
const QPageSize__FanFoldGerman QPageSize__PageSizeId = 83
const QPageSize__FanFoldGermanLegal QPageSize__PageSizeId = 84
const QPageSize__FanFoldUS QPageSize__PageSizeId = 82
const QPageSize__Folio QPageSize__PageSizeId = 27
const QPageSize__Imperial10x11 QPageSize__PageSizeId = 66
const QPageSize__Imperial10x13 QPageSize__PageSizeId = 67
const QPageSize__Imperial10x14 QPageSize__PageSizeId = 68
const QPageSize__Imperial12x11 QPageSize__PageSizeId = 69
const QPageSize__Imperial15x11 QPageSize__PageSizeId = 70
const QPageSize__Imperial7x9 QPageSize__PageSizeId = 62
const QPageSize__Imperial8x10 QPageSize__PageSizeId = 63
const QPageSize__Imperial9x11 QPageSize__PageSizeId = 64
const QPageSize__Imperial9x12 QPageSize__PageSizeId = 65
const QPageSize__JisB0 QPageSize__PageSizeId = 38
const QPageSize__JisB1 QPageSize__PageSizeId = 39
const QPageSize__JisB10 QPageSize__PageSizeId = 48
const QPageSize__JisB2 QPageSize__PageSizeId = 40
const QPageSize__JisB3 QPageSize__PageSizeId = 41
const QPageSize__JisB4 QPageSize__PageSizeId = 42
const QPageSize__JisB5 QPageSize__PageSizeId = 43
const QPageSize__JisB6 QPageSize__PageSizeId = 44
const QPageSize__JisB7 QPageSize__PageSizeId = 45
const QPageSize__JisB8 QPageSize__PageSizeId = 46
const QPageSize__JisB9 QPageSize__PageSizeId = 47
const QPageSize__LastPageSize QPageSize__PageSizeId = 118
const QPageSize__Ledger QPageSize__PageSizeId = 28
const QPageSize__Legal QPageSize__PageSizeId = 3
const QPageSize__LegalExtra QPageSize__PageSizeId = 52
const QPageSize__Letter QPageSize__PageSizeId = 2
const QPageSize__LetterExtra QPageSize__PageSizeId = 53
const QPageSize__LetterPlus QPageSize__PageSizeId = 54
const QPageSize__LetterSmall QPageSize__PageSizeId = 55
const QPageSize__NPageSize QPageSize__PageSizeId = 118
const QPageSize__NPaperSize QPageSize__PageSizeId = 118
const QPageSize__Note QPageSize__PageSizeId = 72
const QPageSize__Postcard QPageSize__PageSizeId = 77
const QPageSize__Prc16K QPageSize__PageSizeId = 79
const QPageSize__Prc32K QPageSize__PageSizeId = 80
const QPageSize__Prc32KBig QPageSize__PageSizeId = 81
const QPageSize__Quarto QPageSize__PageSizeId = 73
const QPageSize__Statement QPageSize__PageSizeId = 74
const QPageSize__SuperA QPageSize__PageSizeId = 75
const QPageSize__SuperB QPageSize__PageSizeId = 76
const QPageSize__Tabloid QPageSize__PageSizeId = 29
const QPageSize__TabloidExtra QPageSize__PageSizeId = 56

type QPageSize__SizeMatchPolicy

type QPageSize__SizeMatchPolicy = int
const QPageSize__ExactMatch QPageSize__SizeMatchPolicy = 2

Only match to a standard page size if the sizes match exactly.

const QPageSize__FuzzyMatch QPageSize__SizeMatchPolicy = 0

Match to a standard page size if within the margin of tolerance.

const QPageSize__FuzzyOrientationMatch QPageSize__SizeMatchPolicy = 1

Match to a standard page size if within the margin of tolerance regardless of orientation.

type QPageSize__Unit

type QPageSize__Unit = int

This enum type is used to specify the measurement unit for page sizes.

const QPageSize__Cicero QPageSize__Unit = 5
const QPageSize__Didot QPageSize__Unit = 4
const QPageSize__Inch QPageSize__Unit = 2
const QPageSize__Millimeter QPageSize__Unit = 0
const QPageSize__Pica QPageSize__Unit = 3
const QPageSize__Point QPageSize__Unit = 1

type QPagedPaintDevice

type QPagedPaintDevice struct {
	*QPaintDevice
}

func NewQPagedPaintDevice

func NewQPagedPaintDevice() *QPagedPaintDevice

func NewQPagedPaintDeviceFromPointer

func NewQPagedPaintDeviceFromPointer(cthis unsafe.Pointer) *QPagedPaintDevice

func (*QPagedPaintDevice) DevicePageLayout

func (this *QPagedPaintDevice) DevicePageLayout() *QPageLayout

func (*QPagedPaintDevice) DevicePageLayout1

func (this *QPagedPaintDevice) DevicePageLayout1() *QPageLayout

func (*QPagedPaintDevice) GetCthis

func (this *QPagedPaintDevice) GetCthis() unsafe.Pointer

func (*QPagedPaintDevice) InheritDevicePageLayout

func (this *QPagedPaintDevice) InheritDevicePageLayout(f func() unsafe.Pointer)

QPageLayout devicePageLayout()

func (*QPagedPaintDevice) Margins

func (this *QPagedPaintDevice) Margins() unsafe.Pointer

Returns the current margins of the paint device. The default is 0.

Margins are specified in millimeters.

See also setMargins().

func (*QPagedPaintDevice) NewForInherit

func (*QPagedPaintDevice) NewForInherit() *QPagedPaintDevice

func (*QPagedPaintDevice) NewFromPointer

func (*QPagedPaintDevice) NewFromPointer(cthis unsafe.Pointer) *QPagedPaintDevice

func (*QPagedPaintDevice) NewPage

func (this *QPagedPaintDevice) NewPage() bool

Starts a new page. Returns true on success.

func (*QPagedPaintDevice) PageLayout

func (this *QPagedPaintDevice) PageLayout() *QPageLayout

Returns the current page layout. Use this method to access the current QPageSize, QPageLayout::Orientation, QMarginsF, fullRect() and paintRect().

Note that you cannot use the setters on the returned object, you must either call the individual QPagedPaintDevice setters or use setPageLayout().

This function was introduced in Qt 5.3.

See also setPageLayout(), setPageSize(), setPageOrientation(), and setPageMargins().

func (*QPagedPaintDevice) PageSize

func (this *QPagedPaintDevice) PageSize() int

Returns the currently used page size.

See also setPageSize().

func (*QPagedPaintDevice) PageSizeItemName

func (this *QPagedPaintDevice) PageSizeItemName(val int) string

func (*QPagedPaintDevice) PageSizeMM

func (this *QPagedPaintDevice) PageSizeMM() *qtcore.QSizeF

Returns the page size in millimeters.

See also setPageSizeMM().

func (*QPagedPaintDevice) PdfVersionItemName

func (this *QPagedPaintDevice) PdfVersionItemName(val int) string

func (*QPagedPaintDevice) QPagedPaintDevice_PTR

func (ptr *QPagedPaintDevice) QPagedPaintDevice_PTR() *QPagedPaintDevice

func (*QPagedPaintDevice) SetCthis

func (this *QPagedPaintDevice) SetCthis(cthis unsafe.Pointer)

func (*QPagedPaintDevice) SetPageLayout

func (this *QPagedPaintDevice) SetPageLayout(pageLayout QPageLayout_ITF) bool

Sets the page layout to newPageLayout.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page layout to a new page. You should not call any painting methods between a call to setPageLayout() and newPage() as the wrong paint metrics may be used.

Returns true if the page layout was successfully set to newPageLayout.

This function was introduced in Qt 5.3.

See also pageLayout().

func (*QPagedPaintDevice) SetPageMargins

func (this *QPagedPaintDevice) SetPageMargins(margins qtcore.QMarginsF_ITF) bool

Set the page margins in the current page layout units.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new margins to a new page. You should not call any painting methods between a call to setPageMargins() and newPage() as the wrong paint metrics may be used.

To get the current page margins use pageLayout().pageMargins().

Returns true if the page margins were successfully set to margins.

This function was introduced in Qt 5.3.

See also pageLayout().

func (*QPagedPaintDevice) SetPageMargins1

func (this *QPagedPaintDevice) SetPageMargins1(margins qtcore.QMarginsF_ITF, units int) bool

Set the page margins in the current page layout units.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new margins to a new page. You should not call any painting methods between a call to setPageMargins() and newPage() as the wrong paint metrics may be used.

To get the current page margins use pageLayout().pageMargins().

Returns true if the page margins were successfully set to margins.

This function was introduced in Qt 5.3.

See also pageLayout().

func (*QPagedPaintDevice) SetPageOrientation

func (this *QPagedPaintDevice) SetPageOrientation(orientation int) bool

Sets the page orientation.

The page orientation is used to define the orientation of the page size when obtaining the page rect.

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new orientation to a new page. You should not call any painting methods between a call to setPageOrientation() and newPage() as the wrong paint metrics may be used.

To get the current QPageLayout::Orientation use pageLayout().pageOrientation().

Returns true if the page orientation was successfully set to orientation.

This function was introduced in Qt 5.3.

See also pageLayout().

func (*QPagedPaintDevice) SetPageSize

func (this *QPagedPaintDevice) SetPageSize(pageSize QPageSize_ITF) bool

Sets the page size to pageSize.

To get the current QPageSize use pageLayout().pageSize().

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page size to a new page. You should not call any painting methods between a call to setPageSize() and newPage() as the wrong paint metrics may be used.

Returns true if the page size was successfully set to pageSize.

This function was introduced in Qt 5.3.

See also pageSize() and pageLayout().

func (*QPagedPaintDevice) SetPageSize1

func (this *QPagedPaintDevice) SetPageSize1(size int)

Sets the page size to pageSize.

To get the current QPageSize use pageLayout().pageSize().

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page size to a new page. You should not call any painting methods between a call to setPageSize() and newPage() as the wrong paint metrics may be used.

Returns true if the page size was successfully set to pageSize.

This function was introduced in Qt 5.3.

See also pageSize() and pageLayout().

func (*QPagedPaintDevice) SetPageSizeMM

func (this *QPagedPaintDevice) SetPageSizeMM(size qtcore.QSizeF_ITF)

Sets the page size to size. size is specified in millimeters.

If the size matches a standard QPagedPaintDevice::PageSize then that page size will be used, otherwise QPagedPaintDevice::Custom will be set.

See also pageSizeMM().

type QPagedPaintDevice_ITF

type QPagedPaintDevice_ITF interface {
	QPaintDevice_ITF
	QPagedPaintDevice_PTR() *QPagedPaintDevice
}

type QPagedPaintDevice__PageSize

type QPagedPaintDevice__PageSize = int

This enum type lists the available page sizes as defined in the Postscript PPD standard. These values are duplicated in QPageSize and QPrinter.

The defined sizes are:

QPagedPaintDevice::AnsiALetter= Letter QPagedPaintDevice::AnsiBLedger= Ledger QPagedPaintDevice::EnvelopeDLDLE= DLE

Due to historic reasons QPageSize::Executive is not the same as the standard Postscript and Windows Executive size, use QPageSize::ExecutiveStandard instead.

The Postscript standard size QPageSize::Folio is different to the Windows DMPAPER_FOLIO size, use the Postscript standard size QPageSize::FanFoldGermanLegal if needed.

const QPagedPaintDevice__A0 QPagedPaintDevice__PageSize = 5
const QPagedPaintDevice__A1 QPagedPaintDevice__PageSize = 6
const QPagedPaintDevice__A10 QPagedPaintDevice__PageSize = 31
const QPagedPaintDevice__A2 QPagedPaintDevice__PageSize = 7
const QPagedPaintDevice__A3 QPagedPaintDevice__PageSize = 8
const QPagedPaintDevice__A3Extra QPagedPaintDevice__PageSize = 32
const QPagedPaintDevice__A4 QPagedPaintDevice__PageSize = 0
const QPagedPaintDevice__A4Extra QPagedPaintDevice__PageSize = 33
const QPagedPaintDevice__A4Plus QPagedPaintDevice__PageSize = 34
const QPagedPaintDevice__A4Small QPagedPaintDevice__PageSize = 35
const QPagedPaintDevice__A5 QPagedPaintDevice__PageSize = 9
const QPagedPaintDevice__A5Extra QPagedPaintDevice__PageSize = 36
const QPagedPaintDevice__A6 QPagedPaintDevice__PageSize = 10
const QPagedPaintDevice__A7 QPagedPaintDevice__PageSize = 11
const QPagedPaintDevice__A8 QPagedPaintDevice__PageSize = 12
const QPagedPaintDevice__A9 QPagedPaintDevice__PageSize = 13
const QPagedPaintDevice__AnsiA QPagedPaintDevice__PageSize = 2
const QPagedPaintDevice__AnsiB QPagedPaintDevice__PageSize = 28
const QPagedPaintDevice__AnsiC QPagedPaintDevice__PageSize = 49
const QPagedPaintDevice__AnsiD QPagedPaintDevice__PageSize = 50
const QPagedPaintDevice__AnsiE QPagedPaintDevice__PageSize = 51
const QPagedPaintDevice__ArchA QPagedPaintDevice__PageSize = 57
const QPagedPaintDevice__ArchB QPagedPaintDevice__PageSize = 58
const QPagedPaintDevice__ArchC QPagedPaintDevice__PageSize = 59
const QPagedPaintDevice__ArchD QPagedPaintDevice__PageSize = 60
const QPagedPaintDevice__ArchE QPagedPaintDevice__PageSize = 61
const QPagedPaintDevice__B0 QPagedPaintDevice__PageSize = 14
const QPagedPaintDevice__B1 QPagedPaintDevice__PageSize = 15
const QPagedPaintDevice__B10 QPagedPaintDevice__PageSize = 16
const QPagedPaintDevice__B2 QPagedPaintDevice__PageSize = 17
const QPagedPaintDevice__B3 QPagedPaintDevice__PageSize = 18
const QPagedPaintDevice__B4 QPagedPaintDevice__PageSize = 19
const QPagedPaintDevice__B5 QPagedPaintDevice__PageSize = 1
const QPagedPaintDevice__B5Extra QPagedPaintDevice__PageSize = 37
const QPagedPaintDevice__B6 QPagedPaintDevice__PageSize = 20
const QPagedPaintDevice__B7 QPagedPaintDevice__PageSize = 21
const QPagedPaintDevice__B8 QPagedPaintDevice__PageSize = 22
const QPagedPaintDevice__B9 QPagedPaintDevice__PageSize = 23
const QPagedPaintDevice__C5E QPagedPaintDevice__PageSize = 24
const QPagedPaintDevice__Comm10E QPagedPaintDevice__PageSize = 25
const QPagedPaintDevice__Custom QPagedPaintDevice__PageSize = 30
const QPagedPaintDevice__DLE QPagedPaintDevice__PageSize = 26
const QPagedPaintDevice__DoublePostcard QPagedPaintDevice__PageSize = 78
const QPagedPaintDevice__Envelope10 QPagedPaintDevice__PageSize = 25
const QPagedPaintDevice__Envelope11 QPagedPaintDevice__PageSize = 97
const QPagedPaintDevice__Envelope12 QPagedPaintDevice__PageSize = 98
const QPagedPaintDevice__Envelope14 QPagedPaintDevice__PageSize = 99
const QPagedPaintDevice__Envelope9 QPagedPaintDevice__PageSize = 96
const QPagedPaintDevice__EnvelopeB4 QPagedPaintDevice__PageSize = 85
const QPagedPaintDevice__EnvelopeB5 QPagedPaintDevice__PageSize = 86
const QPagedPaintDevice__EnvelopeB6 QPagedPaintDevice__PageSize = 87
const QPagedPaintDevice__EnvelopeC0 QPagedPaintDevice__PageSize = 88
const QPagedPaintDevice__EnvelopeC1 QPagedPaintDevice__PageSize = 89
const QPagedPaintDevice__EnvelopeC2 QPagedPaintDevice__PageSize = 90
const QPagedPaintDevice__EnvelopeC3 QPagedPaintDevice__PageSize = 91
const QPagedPaintDevice__EnvelopeC4 QPagedPaintDevice__PageSize = 92
const QPagedPaintDevice__EnvelopeC5 QPagedPaintDevice__PageSize = 24
const QPagedPaintDevice__EnvelopeC6 QPagedPaintDevice__PageSize = 93
const QPagedPaintDevice__EnvelopeC65 QPagedPaintDevice__PageSize = 94
const QPagedPaintDevice__EnvelopeC7 QPagedPaintDevice__PageSize = 95
const QPagedPaintDevice__EnvelopeChou3 QPagedPaintDevice__PageSize = 102
const QPagedPaintDevice__EnvelopeChou4 QPagedPaintDevice__PageSize = 103
const QPagedPaintDevice__EnvelopeDL QPagedPaintDevice__PageSize = 26
const QPagedPaintDevice__EnvelopeInvite QPagedPaintDevice__PageSize = 104
const QPagedPaintDevice__EnvelopeItalian QPagedPaintDevice__PageSize = 105
const QPagedPaintDevice__EnvelopeKaku2 QPagedPaintDevice__PageSize = 106
const QPagedPaintDevice__EnvelopeKaku3 QPagedPaintDevice__PageSize = 107
const QPagedPaintDevice__EnvelopeMonarch QPagedPaintDevice__PageSize = 100
const QPagedPaintDevice__EnvelopePersonal QPagedPaintDevice__PageSize = 101
const QPagedPaintDevice__EnvelopePrc1 QPagedPaintDevice__PageSize = 108
const QPagedPaintDevice__EnvelopePrc10 QPagedPaintDevice__PageSize = 117
const QPagedPaintDevice__EnvelopePrc2 QPagedPaintDevice__PageSize = 109
const QPagedPaintDevice__EnvelopePrc3 QPagedPaintDevice__PageSize = 110
const QPagedPaintDevice__EnvelopePrc4 QPagedPaintDevice__PageSize = 111
const QPagedPaintDevice__EnvelopePrc5 QPagedPaintDevice__PageSize = 112
const QPagedPaintDevice__EnvelopePrc6 QPagedPaintDevice__PageSize = 113
const QPagedPaintDevice__EnvelopePrc7 QPagedPaintDevice__PageSize = 114
const QPagedPaintDevice__EnvelopePrc8 QPagedPaintDevice__PageSize = 115
const QPagedPaintDevice__EnvelopePrc9 QPagedPaintDevice__PageSize = 116
const QPagedPaintDevice__EnvelopeYou4 QPagedPaintDevice__PageSize = 118
const QPagedPaintDevice__Executive QPagedPaintDevice__PageSize = 4
const QPagedPaintDevice__ExecutiveStandard QPagedPaintDevice__PageSize = 71
const QPagedPaintDevice__FanFoldGerman QPagedPaintDevice__PageSize = 83
const QPagedPaintDevice__FanFoldGermanLegal QPagedPaintDevice__PageSize = 84
const QPagedPaintDevice__FanFoldUS QPagedPaintDevice__PageSize = 82
const QPagedPaintDevice__Folio QPagedPaintDevice__PageSize = 27
const QPagedPaintDevice__Imperial10x11 QPagedPaintDevice__PageSize = 66
const QPagedPaintDevice__Imperial10x13 QPagedPaintDevice__PageSize = 67
const QPagedPaintDevice__Imperial10x14 QPagedPaintDevice__PageSize = 68
const QPagedPaintDevice__Imperial12x11 QPagedPaintDevice__PageSize = 69
const QPagedPaintDevice__Imperial15x11 QPagedPaintDevice__PageSize = 70
const QPagedPaintDevice__Imperial7x9 QPagedPaintDevice__PageSize = 62
const QPagedPaintDevice__Imperial8x10 QPagedPaintDevice__PageSize = 63
const QPagedPaintDevice__Imperial9x11 QPagedPaintDevice__PageSize = 64
const QPagedPaintDevice__Imperial9x12 QPagedPaintDevice__PageSize = 65
const QPagedPaintDevice__JisB0 QPagedPaintDevice__PageSize = 38
const QPagedPaintDevice__JisB1 QPagedPaintDevice__PageSize = 39
const QPagedPaintDevice__JisB10 QPagedPaintDevice__PageSize = 48
const QPagedPaintDevice__JisB2 QPagedPaintDevice__PageSize = 40
const QPagedPaintDevice__JisB3 QPagedPaintDevice__PageSize = 41
const QPagedPaintDevice__JisB4 QPagedPaintDevice__PageSize = 42
const QPagedPaintDevice__JisB5 QPagedPaintDevice__PageSize = 43
const QPagedPaintDevice__JisB6 QPagedPaintDevice__PageSize = 44
const QPagedPaintDevice__JisB7 QPagedPaintDevice__PageSize = 45
const QPagedPaintDevice__JisB8 QPagedPaintDevice__PageSize = 46
const QPagedPaintDevice__JisB9 QPagedPaintDevice__PageSize = 47
const QPagedPaintDevice__LastPageSize QPagedPaintDevice__PageSize = 118
const QPagedPaintDevice__Ledger QPagedPaintDevice__PageSize = 28
const QPagedPaintDevice__Legal QPagedPaintDevice__PageSize = 3
const QPagedPaintDevice__LegalExtra QPagedPaintDevice__PageSize = 52
const QPagedPaintDevice__Letter QPagedPaintDevice__PageSize = 2
const QPagedPaintDevice__LetterExtra QPagedPaintDevice__PageSize = 53
const QPagedPaintDevice__LetterPlus QPagedPaintDevice__PageSize = 54
const QPagedPaintDevice__LetterSmall QPagedPaintDevice__PageSize = 55
const QPagedPaintDevice__NPageSize QPagedPaintDevice__PageSize = 118
const QPagedPaintDevice__NPaperSize QPagedPaintDevice__PageSize = 118
const QPagedPaintDevice__Note QPagedPaintDevice__PageSize = 72
const QPagedPaintDevice__Postcard QPagedPaintDevice__PageSize = 77
const QPagedPaintDevice__Prc16K QPagedPaintDevice__PageSize = 79
const QPagedPaintDevice__Prc32K QPagedPaintDevice__PageSize = 80
const QPagedPaintDevice__Prc32KBig QPagedPaintDevice__PageSize = 81
const QPagedPaintDevice__Quarto QPagedPaintDevice__PageSize = 73
const QPagedPaintDevice__Statement QPagedPaintDevice__PageSize = 74
const QPagedPaintDevice__SuperA QPagedPaintDevice__PageSize = 75
const QPagedPaintDevice__SuperB QPagedPaintDevice__PageSize = 76
const QPagedPaintDevice__Tabloid QPagedPaintDevice__PageSize = 29
const QPagedPaintDevice__TabloidExtra QPagedPaintDevice__PageSize = 56

type QPagedPaintDevice__PdfVersion

type QPagedPaintDevice__PdfVersion = int

The PdfVersion enum describes the version of the PDF file that is produced by QPrinter or QPdfWriter.

const QPagedPaintDevice__PdfVersion_1_4 QPagedPaintDevice__PdfVersion = 0
const QPagedPaintDevice__PdfVersion_1_6 QPagedPaintDevice__PdfVersion = 2
const QPagedPaintDevice__PdfVersion_A1b QPagedPaintDevice__PdfVersion = 1

type QPaintDevice

type QPaintDevice struct {
	*qtrt.CObject
}

func NewQPaintDevice

func NewQPaintDevice() *QPaintDevice

func NewQPaintDevice1

func NewQPaintDevice1(arg0 QPaintDevice_ITF) *QPaintDevice

func NewQPaintDeviceFromPointer

func NewQPaintDeviceFromPointer(cthis unsafe.Pointer) *QPaintDevice

func QPainter_Redirected

func QPainter_Redirected(device QPaintDevice_ITF, offset qtcore.QPoint_ITF) *QPaintDevice

func (*QPaintDevice) ColorCount

func (this *QPaintDevice) ColorCount() int

Returns the number of different colors available for the paint device. If the number of colors available is too great to be represented by the int data type, then INT_MAX will be returned instead.

func (*QPaintDevice) Depth

func (this *QPaintDevice) Depth() int

Returns the bit depth (number of bit planes) of the paint device.

func (*QPaintDevice) DevType

func (this *QPaintDevice) DevType() int

func (*QPaintDevice) DevicePixelRatio

func (this *QPaintDevice) DevicePixelRatio() int

Returns the device pixel ratio for device.

Common values are 1 for normal-dpi displays and 2 for high-dpi "retina" displays.

func (*QPaintDevice) DevicePixelRatioF

func (this *QPaintDevice) DevicePixelRatioF() float64

Returns the device pixel ratio for the device as a floating point number.

This function was introduced in Qt 5.6.

func (*QPaintDevice) DevicePixelRatioFScale

func (this *QPaintDevice) DevicePixelRatioFScale() float64

func (*QPaintDevice) GetCthis

func (this *QPaintDevice) GetCthis() unsafe.Pointer

func (*QPaintDevice) Height

func (this *QPaintDevice) Height() int

Returns the height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget).

See also heightMM().

func (*QPaintDevice) HeightMM

func (this *QPaintDevice) HeightMM() int

Returns the height of the paint device in millimeters. Due to platform limitations it may not be possible to use this function to determine the actual physical size of a widget on the screen.

See also height().

func (*QPaintDevice) InheritInitPainter

func (this *QPaintDevice) InheritInitPainter(f func(painter *QPainter))

void initPainter(QPainter *)

func (*QPaintDevice) InheritMetric

func (this *QPaintDevice) InheritMetric(f func(metric int) int)

int metric(QPaintDevice::PaintDeviceMetric)

func (*QPaintDevice) InheritRedirected

func (this *QPaintDevice) InheritRedirected(f func(offset *qtcore.QPoint) unsafe.Pointer)

QPaintDevice * redirected(QPoint *)

func (*QPaintDevice) InheritSharedPainter

func (this *QPaintDevice) InheritSharedPainter(f func() unsafe.Pointer)

QPainter * sharedPainter()

func (*QPaintDevice) InitPainter

func (this *QPaintDevice) InitPainter(painter QPainter_ITF)

func (*QPaintDevice) LogicalDpiX

func (this *QPaintDevice) LogicalDpiX() int

Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from widthMM().

Note that if the logicalDpiX() doesn't equal the physicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.

See also logicalDpiY() and physicalDpiX().

func (*QPaintDevice) LogicalDpiY

func (this *QPaintDevice) LogicalDpiY() int

Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from heightMM().

Note that if the logicalDpiY() doesn't equal the physicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping.

See also logicalDpiX() and physicalDpiY().

func (*QPaintDevice) Metric

func (this *QPaintDevice) Metric(metric int) int

Returns the metric information for the given paint device metric.

See also PaintDeviceMetric.

func (*QPaintDevice) NewForInherit

func (*QPaintDevice) NewForInherit() *QPaintDevice

Constructs a paint device. This constructor can be invoked only from subclasses of QPaintDevice.

func (*QPaintDevice) NewForInherit1

func (*QPaintDevice) NewForInherit1(arg0 QPaintDevice_ITF) *QPaintDevice

Constructs a paint device. This constructor can be invoked only from subclasses of QPaintDevice.

func (*QPaintDevice) NewFromPointer

func (*QPaintDevice) NewFromPointer(cthis unsafe.Pointer) *QPaintDevice

func (*QPaintDevice) PaintDeviceMetricItemName

func (this *QPaintDevice) PaintDeviceMetricItemName(val int) string

func (*QPaintDevice) PaintEngine

func (this *QPaintDevice) PaintEngine() *QPaintEngine

Returns a pointer to the paint engine used for drawing on the device.

func (*QPaintDevice) PaintingActive

func (this *QPaintDevice) PaintingActive() bool

Returns true if the device is currently being painted on, i.e. someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.

See also QPainter::isActive().

func (*QPaintDevice) PhysicalDpiX

func (this *QPaintDevice) PhysicalDpiX() int

Returns the horizontal resolution of the device in dots per inch. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.

Note that if the physicalDpiX() doesn't equal the logicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.

See also physicalDpiY() and logicalDpiX().

func (*QPaintDevice) PhysicalDpiY

func (this *QPaintDevice) PhysicalDpiY() int

Returns the horizontal resolution of the device in dots per inch. For example, when printing, this resolution refers to the physical printer's resolution. The logical DPI on the other hand, refers to the resolution used by the actual paint engine.

Note that if the physicalDpiY() doesn't equal the logicalDpiY(), the corresponding QPaintEngine must handle the resolution mapping.

See also physicalDpiX() and logicalDpiY().

func (*QPaintDevice) QPaintDevice_PTR

func (ptr *QPaintDevice) QPaintDevice_PTR() *QPaintDevice

func (*QPaintDevice) Redirected

func (this *QPaintDevice) Redirected(offset qtcore.QPoint_ITF) *QPaintDevice

func (*QPaintDevice) SetCthis

func (this *QPaintDevice) SetCthis(cthis unsafe.Pointer)

func (*QPaintDevice) SharedPainter

func (this *QPaintDevice) SharedPainter() *QPainter

func (*QPaintDevice) Width

func (this *QPaintDevice) Width() int

Returns the width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget).

See also widthMM().

func (*QPaintDevice) WidthMM

func (this *QPaintDevice) WidthMM() int

Returns the width of the paint device in millimeters. Due to platform limitations it may not be possible to use this function to determine the actual physical size of a widget on the screen.

See also width().

type QPaintDeviceWindow

type QPaintDeviceWindow struct {
	*QWindow
	*QPaintDevice
}

func NewQPaintDeviceWindowFromPointer

func NewQPaintDeviceWindowFromPointer(cthis unsafe.Pointer) *QPaintDeviceWindow

func (*QPaintDeviceWindow) Event

func (this *QPaintDeviceWindow) Event(event qtcore.QEvent_ITF) bool

func (*QPaintDeviceWindow) ExposeEvent

func (this *QPaintDeviceWindow) ExposeEvent(arg0 QExposeEvent_ITF)

func (*QPaintDeviceWindow) GetCthis

func (this *QPaintDeviceWindow) GetCthis() unsafe.Pointer

func (*QPaintDeviceWindow) InheritEvent

func (this *QPaintDeviceWindow) InheritEvent(f func(event *qtcore.QEvent) bool)

bool event(QEvent *)

func (*QPaintDeviceWindow) InheritExposeEvent

func (this *QPaintDeviceWindow) InheritExposeEvent(f func(arg0 *QExposeEvent))

void exposeEvent(QExposeEvent *)

func (*QPaintDeviceWindow) InheritMetric

func (this *QPaintDeviceWindow) InheritMetric(f func(metric int) int)

int metric(QPaintDevice::PaintDeviceMetric)

func (*QPaintDeviceWindow) InheritPaintEvent

func (this *QPaintDeviceWindow) InheritPaintEvent(f func(event *QPaintEvent))

void paintEvent(QPaintEvent *)

func (*QPaintDeviceWindow) MetaObject

func (this *QPaintDeviceWindow) MetaObject() *qtcore.QMetaObject

func (*QPaintDeviceWindow) Metric

func (this *QPaintDeviceWindow) Metric(metric int) int

func (*QPaintDeviceWindow) NewFromPointer

func (*QPaintDeviceWindow) NewFromPointer(cthis unsafe.Pointer) *QPaintDeviceWindow

func (*QPaintDeviceWindow) PaintEvent

func (this *QPaintDeviceWindow) PaintEvent(event QPaintEvent_ITF)

Handles paint events passed in the event parameter.

The default implementation does nothing. Reimplement this function to perform painting. If necessary, the dirty area is retrievable from the event.

func (*QPaintDeviceWindow) QPaintDeviceWindow_PTR

func (ptr *QPaintDeviceWindow) QPaintDeviceWindow_PTR() *QPaintDeviceWindow

func (*QPaintDeviceWindow) SetCthis

func (this *QPaintDeviceWindow) SetCthis(cthis unsafe.Pointer)

func (*QPaintDeviceWindow) Update

func (this *QPaintDeviceWindow) Update(rect qtcore.QRect_ITF)

Marks the rect of the window as dirty and schedules a repaint.

Note: Subsequent calls to this function before the next paint event will get ignored, but rect is added to the region to update.

Note: For non-exposed windows the update is deferred until the window becomes exposed again.

func (*QPaintDeviceWindow) Update1

func (this *QPaintDeviceWindow) Update1(region QRegion_ITF)

Marks the rect of the window as dirty and schedules a repaint.

Note: Subsequent calls to this function before the next paint event will get ignored, but rect is added to the region to update.

Note: For non-exposed windows the update is deferred until the window becomes exposed again.

func (*QPaintDeviceWindow) Update2

func (this *QPaintDeviceWindow) Update2()

Marks the rect of the window as dirty and schedules a repaint.

Note: Subsequent calls to this function before the next paint event will get ignored, but rect is added to the region to update.

Note: For non-exposed windows the update is deferred until the window becomes exposed again.

type QPaintDeviceWindow_ITF

type QPaintDeviceWindow_ITF interface {
	QWindow_ITF
	QPaintDevice_ITF
	QPaintDeviceWindow_PTR() *QPaintDeviceWindow
}

type QPaintDevice_ITF

type QPaintDevice_ITF interface {
	QPaintDevice_PTR() *QPaintDevice
}

type QPaintDevice__PaintDeviceMetric

type QPaintDevice__PaintDeviceMetric = int

Describes the various metrics of a paint device.

See also metric() and devicePixelRatioF().

const QPaintDevice__PdmDepth QPaintDevice__PaintDeviceMetric = 6

The bit depth (number of bit planes) of the paint device. See also depth().

const QPaintDevice__PdmDevicePixelRatio QPaintDevice__PaintDeviceMetric = 11
const QPaintDevice__PdmDevicePixelRatioScaled QPaintDevice__PaintDeviceMetric = 12
const QPaintDevice__PdmDpiX QPaintDevice__PaintDeviceMetric = 7

The horizontal resolution of the device in dots per inch. See also logicalDpiX().

const QPaintDevice__PdmDpiY QPaintDevice__PaintDeviceMetric = 8

The vertical resolution of the device in dots per inch. See also logicalDpiY().

const QPaintDevice__PdmHeight QPaintDevice__PaintDeviceMetric = 2

The height of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). See also height().

const QPaintDevice__PdmHeightMM QPaintDevice__PaintDeviceMetric = 4

The height of the paint device in millimeters. See also heightMM().

const QPaintDevice__PdmNumColors QPaintDevice__PaintDeviceMetric = 5

The number of different colors available for the paint device. See also colorCount().

const QPaintDevice__PdmPhysicalDpiX QPaintDevice__PaintDeviceMetric = 9

The horizontal resolution of the device in dots per inch. See also physicalDpiX().

const QPaintDevice__PdmPhysicalDpiY QPaintDevice__PaintDeviceMetric = 10
const QPaintDevice__PdmWidth QPaintDevice__PaintDeviceMetric = 1

The width of the paint device in default coordinate system units (e.g. pixels for QPixmap and QWidget). See also width().

const QPaintDevice__PdmWidthMM QPaintDevice__PaintDeviceMetric = 3

The width of the paint device in millimeters. See also widthMM().

type QPaintEngine

type QPaintEngine struct {
	*qtrt.CObject
}

func NewQPaintEngine

func NewQPaintEngine(features int) *QPaintEngine

func NewQPaintEngineFromPointer

func NewQPaintEngineFromPointer(cthis unsafe.Pointer) *QPaintEngine

func NewQPaintEnginep

func NewQPaintEnginep() *QPaintEngine

func (*QPaintEngine) Begin

func (this *QPaintEngine) Begin(pdev QPaintDevice_ITF) bool

Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. Return true if the initialization was successful; otherwise return false.

See also end() and isActive().

func (*QPaintEngine) ClearDirty

func (this *QPaintEngine) ClearDirty(df int)

func (*QPaintEngine) CoordinateOffset

func (this *QPaintEngine) CoordinateOffset() *qtcore.QPoint

func (*QPaintEngine) DirtyFlagItemName

func (this *QPaintEngine) DirtyFlagItemName(val int) string

func (*QPaintEngine) DrawEllipse

func (this *QPaintEngine) DrawEllipse(r qtcore.QRectF_ITF)

Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.

The default implementation calls drawPolygon().

func (*QPaintEngine) DrawEllipse1

func (this *QPaintEngine) DrawEllipse1(r qtcore.QRect_ITF)

Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.

The default implementation calls drawPolygon().

func (*QPaintEngine) DrawImage

func (this *QPaintEngine) DrawImage(r qtcore.QRectF_ITF, pm QImage_ITF, sr qtcore.QRectF_ITF, flags int)

Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap.

func (*QPaintEngine) DrawImagep

func (this *QPaintEngine) DrawImagep(r qtcore.QRectF_ITF, pm QImage_ITF, sr qtcore.QRectF_ITF)

Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap.

func (*QPaintEngine) DrawLines

func (this *QPaintEngine) DrawLines(lines qtcore.QLine_ITF, lineCount int)

The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine.

func (*QPaintEngine) DrawLines1

func (this *QPaintEngine) DrawLines1(lines qtcore.QLineF_ITF, lineCount int)

The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine.

func (*QPaintEngine) DrawPath

func (this *QPaintEngine) DrawPath(path QPainterPath_ITF)

The default implementation ignores the path and does nothing.

func (*QPaintEngine) DrawPixmap

func (this *QPaintEngine) DrawPixmap(r qtcore.QRectF_ITF, pm QPixmap_ITF, sr qtcore.QRectF_ITF)

Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.

func (*QPaintEngine) DrawPoints

func (this *QPaintEngine) DrawPoints(points qtcore.QPointF_ITF, pointCount int)

Draws the first pointCount points in the buffer points

func (*QPaintEngine) DrawPoints1

func (this *QPaintEngine) DrawPoints1(points qtcore.QPoint_ITF, pointCount int)

Draws the first pointCount points in the buffer points

func (*QPaintEngine) DrawPolygon

func (this *QPaintEngine) DrawPolygon(points qtcore.QPointF_ITF, pointCount int, mode int)

Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.

Note: At least one of the drawPolygon() functions must be reimplemented.

func (*QPaintEngine) DrawPolygon1

func (this *QPaintEngine) DrawPolygon1(points qtcore.QPoint_ITF, pointCount int, mode int)

Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.

Note: At least one of the drawPolygon() functions must be reimplemented.

func (*QPaintEngine) DrawRects

func (this *QPaintEngine) DrawRects(rects qtcore.QRect_ITF, rectCount int)

Draws the first rectCount rectangles in the buffer rects. The default implementation of this function calls drawPath() or drawPolygon() depending on the feature set of the paint engine.

func (*QPaintEngine) DrawRects1

func (this *QPaintEngine) DrawRects1(rects qtcore.QRectF_ITF, rectCount int)

Draws the first rectCount rectangles in the buffer rects. The default implementation of this function calls drawPath() or drawPolygon() depending on the feature set of the paint engine.

func (*QPaintEngine) DrawTextItem

func (this *QPaintEngine) DrawTextItem(p qtcore.QPointF_ITF, textItem QTextItem_ITF)

This function draws the text item textItem at position p. The default implementation of this function converts the text to a QPainterPath and paints the resulting path.

func (*QPaintEngine) DrawTiledPixmap

func (this *QPaintEngine) DrawTiledPixmap(r qtcore.QRectF_ITF, pixmap QPixmap_ITF, s qtcore.QPointF_ITF)

Reimplement this function to draw the pixmap in the given rect, starting at the given p. The pixmap will be drawn repeatedly until the rect is filled.

func (*QPaintEngine) End

func (this *QPaintEngine) End() bool

Reimplement this function to finish painting on the current paint device. Return true if painting was finished successfully; otherwise return false.

See also begin() and isActive().

func (*QPaintEngine) Fix_neg_rect

func (this *QPaintEngine) Fix_neg_rect(x unsafe.Pointer, y unsafe.Pointer, w unsafe.Pointer, h unsafe.Pointer)

func (*QPaintEngine) GetCthis

func (this *QPaintEngine) GetCthis() unsafe.Pointer

func (*QPaintEngine) HasFeature

func (this *QPaintEngine) HasFeature(feature int) bool

Returns true if the paint engine supports the specified feature; otherwise returns false.

func (*QPaintEngine) IsActive

func (this *QPaintEngine) IsActive() bool

Returns true if the paint engine is actively drawing; otherwise returns false.

See also setActive().

func (*QPaintEngine) IsExtended

func (this *QPaintEngine) IsExtended() bool

func (*QPaintEngine) NewForInherit

func (*QPaintEngine) NewForInherit(features int) *QPaintEngine

Creates a paint engine with the featureset specified by caps.

func (*QPaintEngine) NewForInheritp

func (*QPaintEngine) NewForInheritp() *QPaintEngine

Creates a paint engine with the featureset specified by caps.

func (*QPaintEngine) NewFromPointer

func (*QPaintEngine) NewFromPointer(cthis unsafe.Pointer) *QPaintEngine

func (*QPaintEngine) PaintDevice

func (this *QPaintEngine) PaintDevice() *QPaintDevice

Returns the device that this engine is painting on, if painting is active; otherwise returns 0.

func (*QPaintEngine) PaintEngineFeatureItemName

func (this *QPaintEngine) PaintEngineFeatureItemName(val int) string

func (*QPaintEngine) Painter

func (this *QPaintEngine) Painter() *QPainter

Returns the paint engine's painter.

func (*QPaintEngine) PolygonDrawModeItemName

func (this *QPaintEngine) PolygonDrawModeItemName(val int) string

func (*QPaintEngine) QPaintEngine_PTR

func (ptr *QPaintEngine) QPaintEngine_PTR() *QPaintEngine

func (*QPaintEngine) SetActive

func (this *QPaintEngine) SetActive(newState bool)

Sets the active state of the paint engine to state.

See also isActive().

func (*QPaintEngine) SetCthis

func (this *QPaintEngine) SetCthis(cthis unsafe.Pointer)

func (*QPaintEngine) SetDirty

func (this *QPaintEngine) SetDirty(df int)

func (*QPaintEngine) SetPaintDevice

func (this *QPaintEngine) SetPaintDevice(device QPaintDevice_ITF)

func (*QPaintEngine) SetSystemClip

func (this *QPaintEngine) SetSystemClip(baseClip QRegion_ITF)

func (*QPaintEngine) SetSystemRect

func (this *QPaintEngine) SetSystemRect(rect qtcore.QRect_ITF)

func (*QPaintEngine) SyncState

func (this *QPaintEngine) SyncState()

func (*QPaintEngine) SystemClip

func (this *QPaintEngine) SystemClip() *QRegion

func (*QPaintEngine) SystemRect

func (this *QPaintEngine) SystemRect() *qtcore.QRect

func (*QPaintEngine) TestDirty

func (this *QPaintEngine) TestDirty(df int) bool

func (*QPaintEngine) Type

func (this *QPaintEngine) Type() int

Reimplement this function to return the paint engine Type.

func (*QPaintEngine) TypeItemName

func (this *QPaintEngine) TypeItemName(val int) string

func (*QPaintEngine) UpdateState

func (this *QPaintEngine) UpdateState(state QPaintEngineState_ITF)

Reimplement this function to update the state of a paint engine.

When implemented, this function is responsible for checking the paint engine's current state and update the properties that are changed. Use the QPaintEngineState::state() function to find out which properties that must be updated, then use the corresponding get function to retrieve the current values for the given properties.

See also QPaintEngineState.

type QPaintEngineState

type QPaintEngineState struct {
	*qtrt.CObject
}

func NewQPaintEngineStateFromPointer

func NewQPaintEngineStateFromPointer(cthis unsafe.Pointer) *QPaintEngineState

func (*QPaintEngineState) BackgroundBrush

func (this *QPaintEngineState) BackgroundBrush() *QBrush

func (*QPaintEngineState) BackgroundMode

func (this *QPaintEngineState) BackgroundMode() int

func (*QPaintEngineState) Brush

func (this *QPaintEngineState) Brush() *QBrush

func (*QPaintEngineState) BrushNeedsResolving

func (this *QPaintEngineState) BrushNeedsResolving() bool

func (*QPaintEngineState) BrushOrigin

func (this *QPaintEngineState) BrushOrigin() *qtcore.QPointF

func (*QPaintEngineState) ClipOperation

func (this *QPaintEngineState) ClipOperation() int

func (*QPaintEngineState) ClipPath

func (this *QPaintEngineState) ClipPath() *QPainterPath

func (*QPaintEngineState) ClipRegion

func (this *QPaintEngineState) ClipRegion() *QRegion

func (*QPaintEngineState) CompositionMode

func (this *QPaintEngineState) CompositionMode() int

func (*QPaintEngineState) Font

func (this *QPaintEngineState) Font() *QFont

func (*QPaintEngineState) GetCthis

func (this *QPaintEngineState) GetCthis() unsafe.Pointer

func (*QPaintEngineState) IsClipEnabled

func (this *QPaintEngineState) IsClipEnabled() bool

func (*QPaintEngineState) Matrix

func (this *QPaintEngineState) Matrix() *QMatrix

func (*QPaintEngineState) NewFromPointer

func (*QPaintEngineState) NewFromPointer(cthis unsafe.Pointer) *QPaintEngineState

func (*QPaintEngineState) Opacity

func (this *QPaintEngineState) Opacity() float64

func (*QPaintEngineState) Painter

func (this *QPaintEngineState) Painter() *QPainter

Returns the paint engine's painter.

func (*QPaintEngineState) Pen

func (this *QPaintEngineState) Pen() *QPen

func (*QPaintEngineState) PenNeedsResolving

func (this *QPaintEngineState) PenNeedsResolving() bool

func (*QPaintEngineState) QPaintEngineState_PTR

func (ptr *QPaintEngineState) QPaintEngineState_PTR() *QPaintEngineState

func (*QPaintEngineState) RenderHints

func (this *QPaintEngineState) RenderHints() int

func (*QPaintEngineState) SetCthis

func (this *QPaintEngineState) SetCthis(cthis unsafe.Pointer)

func (*QPaintEngineState) State

func (this *QPaintEngineState) State() int

func (*QPaintEngineState) Transform

func (this *QPaintEngineState) Transform() *QTransform

type QPaintEngineState_ITF

type QPaintEngineState_ITF interface {
	QPaintEngineState_PTR() *QPaintEngineState
}

type QPaintEngine_ITF

type QPaintEngine_ITF interface {
	QPaintEngine_PTR() *QPaintEngine
}

type QPaintEngine__DirtyFlag

type QPaintEngine__DirtyFlag = int
const QPaintEngine__AllDirty QPaintEngine__DirtyFlag = 65535
const QPaintEngine__DirtyBackground QPaintEngine__DirtyFlag = 16
const QPaintEngine__DirtyBackgroundMode QPaintEngine__DirtyFlag = 32
const QPaintEngine__DirtyBrush QPaintEngine__DirtyFlag = 2
const QPaintEngine__DirtyBrushOrigin QPaintEngine__DirtyFlag = 4
const QPaintEngine__DirtyClipEnabled QPaintEngine__DirtyFlag = 2048
const QPaintEngine__DirtyClipPath QPaintEngine__DirtyFlag = 256
const QPaintEngine__DirtyClipRegion QPaintEngine__DirtyFlag = 128
const QPaintEngine__DirtyCompositionMode QPaintEngine__DirtyFlag = 1024
const QPaintEngine__DirtyFont QPaintEngine__DirtyFlag = 8
const QPaintEngine__DirtyHints QPaintEngine__DirtyFlag = 512
const QPaintEngine__DirtyOpacity QPaintEngine__DirtyFlag = 4096
const QPaintEngine__DirtyPen QPaintEngine__DirtyFlag = 1
const QPaintEngine__DirtyTransform QPaintEngine__DirtyFlag = 64

type QPaintEngine__PaintEngineFeature

type QPaintEngine__PaintEngineFeature = int
const QPaintEngine__AllFeatures QPaintEngine__PaintEngineFeature = -1
const QPaintEngine__AlphaBlend QPaintEngine__PaintEngineFeature = 128
const QPaintEngine__Antialiasing QPaintEngine__PaintEngineFeature = 1024
const QPaintEngine__BlendModes QPaintEngine__PaintEngineFeature = 32768
const QPaintEngine__BrushStroke QPaintEngine__PaintEngineFeature = 2048
const QPaintEngine__ConicalGradientFill QPaintEngine__PaintEngineFeature = 64
const QPaintEngine__ConstantOpacity QPaintEngine__PaintEngineFeature = 4096
const QPaintEngine__LinearGradientFill QPaintEngine__PaintEngineFeature = 16
const QPaintEngine__MaskedBrush QPaintEngine__PaintEngineFeature = 8192
const QPaintEngine__ObjectBoundingModeGradients QPaintEngine__PaintEngineFeature = 65536
const QPaintEngine__PaintOutsidePaintEvent QPaintEngine__PaintEngineFeature = 536870912
const QPaintEngine__PainterPaths QPaintEngine__PaintEngineFeature = 512
const QPaintEngine__PatternBrush QPaintEngine__PaintEngineFeature = 8
const QPaintEngine__PatternTransform QPaintEngine__PaintEngineFeature = 2
const QPaintEngine__PerspectiveTransform QPaintEngine__PaintEngineFeature = 16384
const QPaintEngine__PixmapTransform QPaintEngine__PaintEngineFeature = 4
const QPaintEngine__PorterDuff QPaintEngine__PaintEngineFeature = 256
const QPaintEngine__PrimitiveTransform QPaintEngine__PaintEngineFeature = 1
const QPaintEngine__RadialGradientFill QPaintEngine__PaintEngineFeature = 32
const QPaintEngine__RasterOpModes QPaintEngine__PaintEngineFeature = 131072

type QPaintEngine__PolygonDrawMode

type QPaintEngine__PolygonDrawMode = int
const QPaintEngine__ConvexMode QPaintEngine__PolygonDrawMode = 2

The polygon is a convex polygon and can be drawn using specialized algorithms where available.

const QPaintEngine__OddEvenMode QPaintEngine__PolygonDrawMode = 0

The polygon should be drawn using OddEven fill rule.

const QPaintEngine__PolylineMode QPaintEngine__PolygonDrawMode = 3

Only the outline of the polygon should be drawn.

const QPaintEngine__WindingMode QPaintEngine__PolygonDrawMode = 1

The polygon should be drawn using Winding fill rule.

type QPaintEngine__Type

type QPaintEngine__Type = int
const QPaintEngine__Blitter QPaintEngine__Type = 16
const QPaintEngine__CoreGraphics QPaintEngine__Type = 3
const QPaintEngine__Direct2D QPaintEngine__Type = 17
const QPaintEngine__Direct3D QPaintEngine__Type = 11
const QPaintEngine__MacPrinter QPaintEngine__Type = 4
const QPaintEngine__MaxUser QPaintEngine__Type = 100
const QPaintEngine__OpenGL QPaintEngine__Type = 7
const QPaintEngine__OpenGL2 QPaintEngine__Type = 14
const QPaintEngine__OpenVG QPaintEngine__Type = 13
const QPaintEngine__PaintBuffer QPaintEngine__Type = 15
const QPaintEngine__Pdf QPaintEngine__Type = 12
const QPaintEngine__Picture QPaintEngine__Type = 8

QPicture format

const QPaintEngine__PostScript QPaintEngine__Type = 6

(No longer supported)

const QPaintEngine__QWindowSystem QPaintEngine__Type = 5

Qt for Embedded Linux

const QPaintEngine__QuickDraw QPaintEngine__Type = 2

macOS's QuickDraw

const QPaintEngine__Raster QPaintEngine__Type = 10
const QPaintEngine__SVG QPaintEngine__Type = 9

Scalable Vector Graphics XML format

const QPaintEngine__User QPaintEngine__Type = 50
const QPaintEngine__Windows QPaintEngine__Type = 1
const QPaintEngine__X11 QPaintEngine__Type = 0

type QPaintEvent

type QPaintEvent struct {
	*qtcore.QEvent
}

func NewQPaintEvent

func NewQPaintEvent(paintRegion QRegion_ITF) *QPaintEvent

func NewQPaintEvent1

func NewQPaintEvent1(paintRect qtcore.QRect_ITF) *QPaintEvent

func NewQPaintEventFromPointer

func NewQPaintEventFromPointer(cthis unsafe.Pointer) *QPaintEvent

func (*QPaintEvent) GetCthis

func (this *QPaintEvent) GetCthis() unsafe.Pointer

func (*QPaintEvent) NewForInherit

func (*QPaintEvent) NewForInherit(paintRegion QRegion_ITF) *QPaintEvent

func (*QPaintEvent) NewForInherit1

func (*QPaintEvent) NewForInherit1(paintRect qtcore.QRect_ITF) *QPaintEvent

func (*QPaintEvent) NewFromPointer

func (*QPaintEvent) NewFromPointer(cthis unsafe.Pointer) *QPaintEvent

func (*QPaintEvent) QPaintEvent_PTR

func (ptr *QPaintEvent) QPaintEvent_PTR() *QPaintEvent

func (*QPaintEvent) Rect

func (this *QPaintEvent) Rect() *qtcore.QRect

func (*QPaintEvent) Region

func (this *QPaintEvent) Region() *QRegion

func (*QPaintEvent) SetCthis

func (this *QPaintEvent) SetCthis(cthis unsafe.Pointer)

type QPaintEvent_ITF

type QPaintEvent_ITF interface {
	qtcore.QEvent_ITF
	QPaintEvent_PTR() *QPaintEvent
}

type QPainter

type QPainter struct {
	*qtrt.CObject
}

func NewQPainter

func NewQPainter() *QPainter

func NewQPainter1

func NewQPainter1(arg0 QPaintDevice_ITF) *QPainter

func NewQPainterFromPointer

func NewQPainterFromPointer(cthis unsafe.Pointer) *QPainter

func (*QPainter) Background

func (this *QPainter) Background() *QBrush

Returns the current background brush.

See also setBackground() and Settings.

func (*QPainter) BackgroundMode

func (this *QPainter) BackgroundMode() int

Returns the current background mode.

See also setBackgroundMode() and Settings.

func (*QPainter) Begin

func (this *QPainter) Begin(arg0 QPaintDevice_ITF) bool

Begins painting the paint device and returns true if successful; otherwise returns false.

Notice that all painter settings (setPen(), setBrush() etc.) are reset to default values when begin() is called.

The errors that can occur are serious problems, such as these:

painter->begin(0); // impossible - paint device cannot be 0

QPixmap image(0, 0);
painter->begin(&image); // impossible - image.isNull() == true;

painter->begin(myWidget);
painter2->begin(myWidget); // impossible - only one painter at a time

Note that most of the time, you can use one of the constructors instead of begin(), and that end() is automatically done at destruction.

Warning: A paint device can only be painted by one painter at a time.

Warning: Painting on a QImage with the format QImage::Format_Indexed8 is not supported.

See also end() and QPainter().

func (*QPainter) BeginNativePainting

func (this *QPainter) BeginNativePainting()

Flushes the painting pipeline and prepares for the user issuing commands directly to the underlying graphics context. Must be followed by a call to endNativePainting().

Note that only the states the underlying paint engine changes will be reset to their respective default states. The states we reset may change from release to release. The following states are currently reset in the OpenGL 2 engine:

blending is disabled the depth, stencil and scissor tests are disabled the active texture unit is reset to 0 the depth mask, depth function and the clear depth are reset to their default values the stencil mask, stencil operation and stencil function are reset to their default values the current color is reset to solid white

If, for example, the OpenGL polygon mode is changed by the user inside a beginNativePaint()/endNativePainting() block, it will not be reset to the default state by endNativePainting(). Here is an example that shows intermixing of painter commands and raw OpenGL commands:

QPainter painter(this);
painter.fillRect(0, 0, 128, 128, Qt::green);
painter.beginNativePainting();

glEnable(GL_SCISSOR_TEST);
glScissor(0, 0, 64, 64);

glClearColor(1, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);

glDisable(GL_SCISSOR_TEST);

painter.endNativePainting();

This function was introduced in Qt 4.6.

See also endNativePainting().

func (*QPainter) BoundingRect

func (this *QPainter) BoundingRect(rect qtcore.QRectF_ITF, flags int, text string) *qtcore.QRectF

Returns the bounding rectangle of the text as it will appear when drawn inside the given rectangle with the specified flags using the currently set font(); i.e the function tells you where the drawText() function will draw when given the same arguments.

If the text does not fit within the given rectangle using the specified flags, the function returns the required rectangle.

The flags argument is a bitwise OR of the following flags:

Qt::AlignLeft Qt::AlignRight Qt::AlignHCenter Qt::AlignTop Qt::AlignBottom Qt::AlignVCenter Qt::AlignCenter Qt::TextSingleLine Qt::TextExpandTabs Qt::TextShowMnemonic Qt::TextWordWrap Qt::TextIncludeTrailingSpaces

If several of the horizontal or several of the vertical alignment flags are set, the resulting alignment is undefined.

See also drawText(), Qt::Alignment, and Qt::TextFlag.

func (*QPainter) BoundingRect1

func (this *QPainter) BoundingRect1(rect qtcore.QRect_ITF, flags int, text string) *qtcore.QRect

Returns the bounding rectangle of the text as it will appear when drawn inside the given rectangle with the specified flags using the currently set font(); i.e the function tells you where the drawText() function will draw when given the same arguments.

If the text does not fit within the given rectangle using the specified flags, the function returns the required rectangle.

The flags argument is a bitwise OR of the following flags:

Qt::AlignLeft Qt::AlignRight Qt::AlignHCenter Qt::AlignTop Qt::AlignBottom Qt::AlignVCenter Qt::AlignCenter Qt::TextSingleLine Qt::TextExpandTabs Qt::TextShowMnemonic Qt::TextWordWrap Qt::TextIncludeTrailingSpaces

If several of the horizontal or several of the vertical alignment flags are set, the resulting alignment is undefined.

See also drawText(), Qt::Alignment, and Qt::TextFlag.

func (*QPainter) BoundingRect2

func (this *QPainter) BoundingRect2(x int, y int, w int, h int, flags int, text string) *qtcore.QRect

Returns the bounding rectangle of the text as it will appear when drawn inside the given rectangle with the specified flags using the currently set font(); i.e the function tells you where the drawText() function will draw when given the same arguments.

If the text does not fit within the given rectangle using the specified flags, the function returns the required rectangle.

The flags argument is a bitwise OR of the following flags:

Qt::AlignLeft Qt::AlignRight Qt::AlignHCenter Qt::AlignTop Qt::AlignBottom Qt::AlignVCenter Qt::AlignCenter Qt::TextSingleLine Qt::TextExpandTabs Qt::TextShowMnemonic Qt::TextWordWrap Qt::TextIncludeTrailingSpaces

If several of the horizontal or several of the vertical alignment flags are set, the resulting alignment is undefined.

See also drawText(), Qt::Alignment, and Qt::TextFlag.

func (*QPainter) BoundingRect3

func (this *QPainter) BoundingRect3(rect qtcore.QRectF_ITF, text string, o QTextOption_ITF) *qtcore.QRectF

Returns the bounding rectangle of the text as it will appear when drawn inside the given rectangle with the specified flags using the currently set font(); i.e the function tells you where the drawText() function will draw when given the same arguments.

If the text does not fit within the given rectangle using the specified flags, the function returns the required rectangle.

The flags argument is a bitwise OR of the following flags:

Qt::AlignLeft Qt::AlignRight Qt::AlignHCenter Qt::AlignTop Qt::AlignBottom Qt::AlignVCenter Qt::AlignCenter Qt::TextSingleLine Qt::TextExpandTabs Qt::TextShowMnemonic Qt::TextWordWrap Qt::TextIncludeTrailingSpaces

If several of the horizontal or several of the vertical alignment flags are set, the resulting alignment is undefined.

See also drawText(), Qt::Alignment, and Qt::TextFlag.

func (*QPainter) BoundingRect3p

func (this *QPainter) BoundingRect3p(rect qtcore.QRectF_ITF, text string) *qtcore.QRectF

Returns the bounding rectangle of the text as it will appear when drawn inside the given rectangle with the specified flags using the currently set font(); i.e the function tells you where the drawText() function will draw when given the same arguments.

If the text does not fit within the given rectangle using the specified flags, the function returns the required rectangle.

The flags argument is a bitwise OR of the following flags:

Qt::AlignLeft Qt::AlignRight Qt::AlignHCenter Qt::AlignTop Qt::AlignBottom Qt::AlignVCenter Qt::AlignCenter Qt::TextSingleLine Qt::TextExpandTabs Qt::TextShowMnemonic Qt::TextWordWrap Qt::TextIncludeTrailingSpaces

If several of the horizontal or several of the vertical alignment flags are set, the resulting alignment is undefined.

See also drawText(), Qt::Alignment, and Qt::TextFlag.

func (*QPainter) Brush

func (this *QPainter) Brush() *QBrush

Returns the painter's current brush.

See also QPainter::setBrush() and Settings.

func (*QPainter) BrushOrigin

func (this *QPainter) BrushOrigin() *qtcore.QPoint

Returns the currently set brush origin.

See also setBrushOrigin() and Settings.

func (*QPainter) ClipBoundingRect

func (this *QPainter) ClipBoundingRect() *qtcore.QRectF

Returns the bounding rectangle of the current clip if there is a clip; otherwise returns an empty rectangle. Note that the clip region is given in logical coordinates.

The bounding rectangle is not guaranteed to be tight.

This function was introduced in Qt 4.8.

See also setClipRect(), setClipPath(), and setClipRegion().

func (*QPainter) ClipPath

func (this *QPainter) ClipPath() *QPainterPath

Returns the current clip path in logical coordinates.

Warning: QPainter does not store the combined clip explicitly as this is handled by the underlying QPaintEngine, so the path is recreated on demand and transformed to the current logical coordinate system. This is potentially an expensive operation.

See also setClipPath(), clipRegion(), and setClipping().

func (*QPainter) ClipRegion

func (this *QPainter) ClipRegion() *QRegion

Returns the currently set clip region. Note that the clip region is given in logical coordinates.

Warning: QPainter does not store the combined clip explicitly as this is handled by the underlying QPaintEngine, so the path is recreated on demand and transformed to the current logical coordinate system. This is potentially an expensive operation.

See also setClipRegion(), clipPath(), and setClipping().

func (*QPainter) CombinedMatrix

func (this *QPainter) CombinedMatrix() *QMatrix

func (*QPainter) CombinedTransform

func (this *QPainter) CombinedTransform() *QTransform

Returns the transformation matrix combining the current window/viewport and world transformation.

See also setWorldTransform(), setWindow(), and setViewport().

func (*QPainter) CompositionMode

func (this *QPainter) CompositionMode() int

Returns the current composition mode.

See also CompositionMode and setCompositionMode().

func (*QPainter) CompositionModeItemName

func (this *QPainter) CompositionModeItemName(val int) string

func (*QPainter) Device

func (this *QPainter) Device() *QPaintDevice

Returns the paint device on which this painter is currently painting, or 0 if the painter is not active.

See also isActive().

func (*QPainter) DeviceMatrix

func (this *QPainter) DeviceMatrix() *QMatrix

func (*QPainter) DeviceTransform

func (this *QPainter) DeviceTransform() *QTransform

Returns the matrix that transforms from logical coordinates to device coordinates of the platform dependent paint device.

This function is only needed when using platform painting commands on the platform dependent handle (Qt::HANDLE), and the platform does not do transformations nativly.

The QPaintEngine::PaintEngineFeature enum can be queried to determine whether the platform performs the transformations or not.

See also worldTransform() and QPaintEngine::hasFeature().

func (*QPainter) DrawArc

func (this *QPainter) DrawArc(rect qtcore.QRectF_ITF, a int, alen int)

Draws the arc defined by the given rectangle, startAngle and spanAngle.

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawArc(rectangle, startAngle, spanAngle);

See also drawPie(), drawChord(), and Coordinate System.

func (*QPainter) DrawArc1

func (this *QPainter) DrawArc1(arg0 qtcore.QRect_ITF, a int, alen int)

Draws the arc defined by the given rectangle, startAngle and spanAngle.

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawArc(rectangle, startAngle, spanAngle);

See also drawPie(), drawChord(), and Coordinate System.

func (*QPainter) DrawArc2

func (this *QPainter) DrawArc2(x int, y int, w int, h int, a int, alen int)

Draws the arc defined by the given rectangle, startAngle and spanAngle.

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawArc(rectangle, startAngle, spanAngle);

See also drawPie(), drawChord(), and Coordinate System.

func (*QPainter) DrawChord

func (this *QPainter) DrawChord(rect qtcore.QRectF_ITF, a int, alen int)

Draws the chord defined by the given rectangle, startAngle and spanAngle. The chord is filled with the current brush().

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawChord(rect, startAngle, spanAngle);

See also drawArc(), drawPie(), and Coordinate System.

func (*QPainter) DrawChord1

func (this *QPainter) DrawChord1(x int, y int, w int, h int, a int, alen int)

Draws the chord defined by the given rectangle, startAngle and spanAngle. The chord is filled with the current brush().

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawChord(rect, startAngle, spanAngle);

See also drawArc(), drawPie(), and Coordinate System.

func (*QPainter) DrawChord2

func (this *QPainter) DrawChord2(arg0 qtcore.QRect_ITF, a int, alen int)

Draws the chord defined by the given rectangle, startAngle and spanAngle. The chord is filled with the current brush().

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawChord(rect, startAngle, spanAngle);

See also drawArc(), drawPie(), and Coordinate System.

func (*QPainter) DrawConvexPolygon

func (this *QPainter) DrawConvexPolygon(points qtcore.QPointF_ITF, pointCount int)

Draws the convex polygon defined by the first pointCount points in the array points using the current pen.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawConvexPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush(). If the supplied polygon is not convex, i.e. it contains at least one angle larger than 180 degrees, the results are undefined.

On some platforms (e.g. X11), the drawConvexPolygon() function can be faster than the drawPolygon() function.

See also drawPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawConvexPolygon1

func (this *QPainter) DrawConvexPolygon1(polygon QPolygonF_ITF)

Draws the convex polygon defined by the first pointCount points in the array points using the current pen.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawConvexPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush(). If the supplied polygon is not convex, i.e. it contains at least one angle larger than 180 degrees, the results are undefined.

On some platforms (e.g. X11), the drawConvexPolygon() function can be faster than the drawPolygon() function.

See also drawPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawConvexPolygon2

func (this *QPainter) DrawConvexPolygon2(points qtcore.QPoint_ITF, pointCount int)

Draws the convex polygon defined by the first pointCount points in the array points using the current pen.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawConvexPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush(). If the supplied polygon is not convex, i.e. it contains at least one angle larger than 180 degrees, the results are undefined.

On some platforms (e.g. X11), the drawConvexPolygon() function can be faster than the drawPolygon() function.

See also drawPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawConvexPolygon3

func (this *QPainter) DrawConvexPolygon3(polygon QPolygon_ITF)

Draws the convex polygon defined by the first pointCount points in the array points using the current pen.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawConvexPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush(). If the supplied polygon is not convex, i.e. it contains at least one angle larger than 180 degrees, the results are undefined.

On some platforms (e.g. X11), the drawConvexPolygon() function can be faster than the drawPolygon() function.

See also drawPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawEllipse

func (this *QPainter) DrawEllipse(r qtcore.QRectF_ITF)

Draws the ellipse defined by the given rectangle.

A filled ellipse has a size of rectangle.size(). A stroked ellipse has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawEllipse(rectangle);

See also drawPie() and Coordinate System.

func (*QPainter) DrawEllipse1

func (this *QPainter) DrawEllipse1(r qtcore.QRect_ITF)

Draws the ellipse defined by the given rectangle.

A filled ellipse has a size of rectangle.size(). A stroked ellipse has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawEllipse(rectangle);

See also drawPie() and Coordinate System.

func (*QPainter) DrawEllipse2

func (this *QPainter) DrawEllipse2(x int, y int, w int, h int)

Draws the ellipse defined by the given rectangle.

A filled ellipse has a size of rectangle.size(). A stroked ellipse has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawEllipse(rectangle);

See also drawPie() and Coordinate System.

func (*QPainter) DrawEllipse3

func (this *QPainter) DrawEllipse3(center qtcore.QPointF_ITF, rx float64, ry float64)

Draws the ellipse defined by the given rectangle.

A filled ellipse has a size of rectangle.size(). A stroked ellipse has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawEllipse(rectangle);

See also drawPie() and Coordinate System.

func (*QPainter) DrawEllipse4

func (this *QPainter) DrawEllipse4(center qtcore.QPoint_ITF, rx int, ry int)

Draws the ellipse defined by the given rectangle.

A filled ellipse has a size of rectangle.size(). A stroked ellipse has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawEllipse(rectangle);

See also drawPie() and Coordinate System.

func (*QPainter) DrawGlyphRun

func (this *QPainter) DrawGlyphRun(position qtcore.QPointF_ITF, glyphRun QGlyphRun_ITF)

Draws the glyphs represented by glyphs at position. The position gives the edge of the baseline for the string of glyphs. The glyphs will be retrieved from the font selected on glyphs and at offsets given by the positions in glyphs.

This function was introduced in Qt 4.8.

See also QGlyphRun::setRawFont(), QGlyphRun::setPositions(), and QGlyphRun::setGlyphIndexes().

func (*QPainter) DrawImage

func (this *QPainter) DrawImage(targetRect qtcore.QRectF_ITF, image QImage_ITF, sourceRect qtcore.QRectF_ITF, flags int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage1

func (this *QPainter) DrawImage1(targetRect qtcore.QRect_ITF, image QImage_ITF, sourceRect qtcore.QRect_ITF, flags int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage1p

func (this *QPainter) DrawImage1p(targetRect qtcore.QRect_ITF, image QImage_ITF, sourceRect qtcore.QRect_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage2

func (this *QPainter) DrawImage2(p qtcore.QPointF_ITF, image QImage_ITF, sr qtcore.QRectF_ITF, flags int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage2p

func (this *QPainter) DrawImage2p(p qtcore.QPointF_ITF, image QImage_ITF, sr qtcore.QRectF_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage3

func (this *QPainter) DrawImage3(p qtcore.QPoint_ITF, image QImage_ITF, sr qtcore.QRect_ITF, flags int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage3p

func (this *QPainter) DrawImage3p(p qtcore.QPoint_ITF, image QImage_ITF, sr qtcore.QRect_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage4

func (this *QPainter) DrawImage4(r qtcore.QRectF_ITF, image QImage_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage5

func (this *QPainter) DrawImage5(r qtcore.QRect_ITF, image QImage_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage6

func (this *QPainter) DrawImage6(p qtcore.QPointF_ITF, image QImage_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage7

func (this *QPainter) DrawImage7(p qtcore.QPoint_ITF, image QImage_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage8

func (this *QPainter) DrawImage8(x int, y int, image QImage_ITF, sx int, sy int, sw int, sh int, flags int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage8p

func (this *QPainter) DrawImage8p(x int, y int, image QImage_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage8p1

func (this *QPainter) DrawImage8p1(x int, y int, image QImage_ITF, sx int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage8p2

func (this *QPainter) DrawImage8p2(x int, y int, image QImage_ITF, sx int, sy int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage8p3

func (this *QPainter) DrawImage8p3(x int, y int, image QImage_ITF, sx int, sy int, sw int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImage8p4

func (this *QPainter) DrawImage8p4(x int, y int, image QImage_ITF, sx int, sy int, sw int, sh int)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawImagep

func (this *QPainter) DrawImagep(targetRect qtcore.QRectF_ITF, image QImage_ITF, sourceRect qtcore.QRectF_ITF)

Draws the rectangular portion source of the given image into the target rectangle in the paint device.

Note: The image is scaled to fit the rectangle, if both the image and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QImage::devicePixelRatio().

If the image needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to specify how you would prefer this to happen.

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QImage image(":/images/myImage.png");

QPainter painter(this);
painter.drawImage(target, image, source);

See also drawPixmap() and QImage::devicePixelRatio().

func (*QPainter) DrawLine

func (this *QPainter) DrawLine(line qtcore.QLineF_ITF)

Draws a line defined by line.

QLineF line(10.0, 80.0, 90.0, 20.0);

QPainter(this);
painter.drawLine(line);

See also drawLines(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawLine1

func (this *QPainter) DrawLine1(line qtcore.QLine_ITF)

Draws a line defined by line.

QLineF line(10.0, 80.0, 90.0, 20.0);

QPainter(this);
painter.drawLine(line);

See also drawLines(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawLine2

func (this *QPainter) DrawLine2(x1 int, y1 int, x2 int, y2 int)

Draws a line defined by line.

QLineF line(10.0, 80.0, 90.0, 20.0);

QPainter(this);
painter.drawLine(line);

See also drawLines(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawLine3

func (this *QPainter) DrawLine3(p1 qtcore.QPoint_ITF, p2 qtcore.QPoint_ITF)

Draws a line defined by line.

QLineF line(10.0, 80.0, 90.0, 20.0);

QPainter(this);
painter.drawLine(line);

See also drawLines(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawLine4

func (this *QPainter) DrawLine4(p1 qtcore.QPointF_ITF, p2 qtcore.QPointF_ITF)

Draws a line defined by line.

QLineF line(10.0, 80.0, 90.0, 20.0);

QPainter(this);
painter.drawLine(line);

See also drawLines(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawLines

func (this *QPainter) DrawLines(lines qtcore.QLineF_ITF, lineCount int)

Draws the first lineCount lines in the array lines using the current pen.

See also drawLine() and drawPolyline().

func (*QPainter) DrawLines1

func (this *QPainter) DrawLines1(pointPairs qtcore.QPointF_ITF, lineCount int)

Draws the first lineCount lines in the array lines using the current pen.

See also drawLine() and drawPolyline().

func (*QPainter) DrawLines2

func (this *QPainter) DrawLines2(lines qtcore.QLine_ITF, lineCount int)

Draws the first lineCount lines in the array lines using the current pen.

See also drawLine() and drawPolyline().

func (*QPainter) DrawLines3

func (this *QPainter) DrawLines3(pointPairs qtcore.QPoint_ITF, lineCount int)

Draws the first lineCount lines in the array lines using the current pen.

See also drawLine() and drawPolyline().

func (*QPainter) DrawPath

func (this *QPainter) DrawPath(path QPainterPath_ITF)

Draws the given painter path using the current pen for outline and the current brush for filling.

QPainterPath path;
path.moveTo(20, 80);
path.lineTo(20, 30);
path.cubicTo(80, 0, 50, 50, 80, 80);

QPainter painter(this);
painter.drawPath(path);

See also the Painter Paths example and the Vector Deformation example.

func (*QPainter) DrawPicture

func (this *QPainter) DrawPicture(p qtcore.QPointF_ITF, picture QPicture_ITF)

Replays the given picture at the given point.

The QPicture class is a paint device that records and replays QPainter commands. A picture serializes the painter commands to an IO device in a platform-independent format. Everything that can be painted on a widget or pixmap can also be stored in a picture.

This function does exactly the same as QPicture::play() when called with point = QPoint(0, 0).

QPicture picture;
QPointF point(10.0, 20.0)
picture.load("drawing.pic");

QPainter painter(this);
painter.drawPicture(0, 0, picture);

See also QPicture::play().

func (*QPainter) DrawPicture1

func (this *QPainter) DrawPicture1(x int, y int, picture QPicture_ITF)

Replays the given picture at the given point.

The QPicture class is a paint device that records and replays QPainter commands. A picture serializes the painter commands to an IO device in a platform-independent format. Everything that can be painted on a widget or pixmap can also be stored in a picture.

This function does exactly the same as QPicture::play() when called with point = QPoint(0, 0).

QPicture picture;
QPointF point(10.0, 20.0)
picture.load("drawing.pic");

QPainter painter(this);
painter.drawPicture(0, 0, picture);

See also QPicture::play().

func (*QPainter) DrawPicture2

func (this *QPainter) DrawPicture2(p qtcore.QPoint_ITF, picture QPicture_ITF)

Replays the given picture at the given point.

The QPicture class is a paint device that records and replays QPainter commands. A picture serializes the painter commands to an IO device in a platform-independent format. Everything that can be painted on a widget or pixmap can also be stored in a picture.

This function does exactly the same as QPicture::play() when called with point = QPoint(0, 0).

QPicture picture;
QPointF point(10.0, 20.0)
picture.load("drawing.pic");

QPainter painter(this);
painter.drawPicture(0, 0, picture);

See also QPicture::play().

func (*QPainter) DrawPie

func (this *QPainter) DrawPie(rect qtcore.QRectF_ITF, a int, alen int)

Draws a pie defined by the given rectangle, startAngle and spanAngle.

The pie is filled with the current brush().

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawPie(rectangle, startAngle, spanAngle);

See also drawEllipse(), drawChord(), and Coordinate System.

func (*QPainter) DrawPie1

func (this *QPainter) DrawPie1(x int, y int, w int, h int, a int, alen int)

Draws a pie defined by the given rectangle, startAngle and spanAngle.

The pie is filled with the current brush().

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawPie(rectangle, startAngle, spanAngle);

See also drawEllipse(), drawChord(), and Coordinate System.

func (*QPainter) DrawPie2

func (this *QPainter) DrawPie2(arg0 qtcore.QRect_ITF, a int, alen int)

Draws a pie defined by the given rectangle, startAngle and spanAngle.

The pie is filled with the current brush().

The startAngle and spanAngle must be specified in 1/16th of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);
int startAngle = 30 * 16;
int spanAngle = 120 * 16;

QPainter painter(this);
painter.drawPie(rectangle, startAngle, spanAngle);

See also drawEllipse(), drawChord(), and Coordinate System.

func (*QPainter) DrawPixmap

func (this *QPainter) DrawPixmap(targetRect qtcore.QRectF_ITF, pixmap QPixmap_ITF, sourceRect qtcore.QRectF_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap1

func (this *QPainter) DrawPixmap1(targetRect qtcore.QRect_ITF, pixmap QPixmap_ITF, sourceRect qtcore.QRect_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap10

func (this *QPainter) DrawPixmap10(x int, y int, w int, h int, pm QPixmap_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap2

func (this *QPainter) DrawPixmap2(x int, y int, w int, h int, pm QPixmap_ITF, sx int, sy int, sw int, sh int)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap3

func (this *QPainter) DrawPixmap3(x int, y int, pm QPixmap_ITF, sx int, sy int, sw int, sh int)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap4

func (this *QPainter) DrawPixmap4(p qtcore.QPointF_ITF, pm QPixmap_ITF, sr qtcore.QRectF_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap5

func (this *QPainter) DrawPixmap5(p qtcore.QPoint_ITF, pm QPixmap_ITF, sr qtcore.QRect_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap6

func (this *QPainter) DrawPixmap6(p qtcore.QPointF_ITF, pm QPixmap_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap7

func (this *QPainter) DrawPixmap7(p qtcore.QPoint_ITF, pm QPixmap_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap8

func (this *QPainter) DrawPixmap8(x int, y int, pm QPixmap_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPixmap9

func (this *QPainter) DrawPixmap9(r qtcore.QRect_ITF, pm QPixmap_ITF)

Draws the rectangular portion source of the given pixmap into the given target in the paint device.

Note: The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.

Note: See Drawing High Resolution Versions of Pixmaps and Images on how this is affected by QPixmap::devicePixelRatio().

QRectF target(10.0, 20.0, 80.0, 60.0);
QRectF source(0.0, 0.0, 70.0, 40.0);
QPixmap pixmap(":myPixmap.png");

QPainter(this);
painter.drawPixmap(target, pixmap, source);

If pixmap is a QBitmap it is drawn with the bits that are "set" using the pens color. If backgroundMode is Qt::OpaqueMode, the "unset" bits are drawn using the color of the background brush; if backgroundMode is Qt::TransparentMode, the "unset" bits are transparent. Drawing bitmaps with gradient or texture colors is not supported.

See also drawImage() and QPixmap::devicePixelRatio().

func (*QPainter) DrawPoint

func (this *QPainter) DrawPoint(pt qtcore.QPointF_ITF)

Draws a single point at the given position using the current pen's color.

See also Coordinate System.

func (*QPainter) DrawPoint1

func (this *QPainter) DrawPoint1(p qtcore.QPoint_ITF)

Draws a single point at the given position using the current pen's color.

See also Coordinate System.

func (*QPainter) DrawPoint2

func (this *QPainter) DrawPoint2(x int, y int)

Draws a single point at the given position using the current pen's color.

See also Coordinate System.

func (*QPainter) DrawPoints

func (this *QPainter) DrawPoints(points qtcore.QPointF_ITF, pointCount int)

Draws the first pointCount points in the array points using the current pen's color.

See also Coordinate System.

func (*QPainter) DrawPoints1

func (this *QPainter) DrawPoints1(points QPolygonF_ITF)

Draws the first pointCount points in the array points using the current pen's color.

See also Coordinate System.

func (*QPainter) DrawPoints2

func (this *QPainter) DrawPoints2(points qtcore.QPoint_ITF, pointCount int)

Draws the first pointCount points in the array points using the current pen's color.

See also Coordinate System.

func (*QPainter) DrawPoints3

func (this *QPainter) DrawPoints3(points QPolygon_ITF)

Draws the first pointCount points in the array points using the current pen's color.

See also Coordinate System.

func (*QPainter) DrawPolygon

func (this *QPainter) DrawPolygon(points qtcore.QPointF_ITF, pointCount int, fillRule int)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolygon1

func (this *QPainter) DrawPolygon1(polygon QPolygonF_ITF, fillRule int)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolygon1p

func (this *QPainter) DrawPolygon1p(polygon QPolygonF_ITF)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolygon2

func (this *QPainter) DrawPolygon2(points qtcore.QPoint_ITF, pointCount int, fillRule int)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolygon2p

func (this *QPainter) DrawPolygon2p(points qtcore.QPoint_ITF, pointCount int)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolygon3

func (this *QPainter) DrawPolygon3(polygon QPolygon_ITF, fillRule int)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolygon3p

func (this *QPainter) DrawPolygon3p(polygon QPolygon_ITF)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolygonp

func (this *QPainter) DrawPolygonp(points qtcore.QPointF_ITF, pointCount int)

Draws the polygon defined by the first pointCount points in the array points using the current pen and brush.

static const QPointF points[4] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
    QPointF(90.0, 70.0)
};

QPainter painter(this);
painter.drawPolygon(points, 4);

The first point is implicitly connected to the last point, and the polygon is filled with the current brush().

If fillRule is Qt::WindingFill, the polygon is filled using the winding fill algorithm. If fillRule is Qt::OddEvenFill, the polygon is filled using the odd-even fill algorithm. See Qt::FillRule for a more detailed description of these fill rules.

See also drawConvexPolygon(), drawPolyline(), and Coordinate System.

func (*QPainter) DrawPolyline

func (this *QPainter) DrawPolyline(points qtcore.QPointF_ITF, pointCount int)

Draws the polyline defined by the first pointCount points in points using the current pen.

Note that unlike the drawPolygon() function the last point is not connected to the first, neither is the polyline filled.

static const QPointF points[3] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
};

QPainter painter(this);
painter.drawPolyline(points, 3);

See also drawLines(), drawPolygon(), and Coordinate System.

func (*QPainter) DrawPolyline1

func (this *QPainter) DrawPolyline1(polyline QPolygonF_ITF)

Draws the polyline defined by the first pointCount points in points using the current pen.

Note that unlike the drawPolygon() function the last point is not connected to the first, neither is the polyline filled.

static const QPointF points[3] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
};

QPainter painter(this);
painter.drawPolyline(points, 3);

See also drawLines(), drawPolygon(), and Coordinate System.

func (*QPainter) DrawPolyline2

func (this *QPainter) DrawPolyline2(points qtcore.QPoint_ITF, pointCount int)

Draws the polyline defined by the first pointCount points in points using the current pen.

Note that unlike the drawPolygon() function the last point is not connected to the first, neither is the polyline filled.

static const QPointF points[3] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
};

QPainter painter(this);
painter.drawPolyline(points, 3);

See also drawLines(), drawPolygon(), and Coordinate System.

func (*QPainter) DrawPolyline3

func (this *QPainter) DrawPolyline3(polygon QPolygon_ITF)

Draws the polyline defined by the first pointCount points in points using the current pen.

Note that unlike the drawPolygon() function the last point is not connected to the first, neither is the polyline filled.

static const QPointF points[3] = {
    QPointF(10.0, 80.0),
    QPointF(20.0, 10.0),
    QPointF(80.0, 30.0),
};

QPainter painter(this);
painter.drawPolyline(points, 3);

See also drawLines(), drawPolygon(), and Coordinate System.

func (*QPainter) DrawRect

func (this *QPainter) DrawRect(rect qtcore.QRectF_ITF)

Draws the current rectangle with the current pen and brush.

A filled rectangle has a size of rectangle.size(). A stroked rectangle has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRect(rectangle);

See also drawRects(), drawPolygon(), and Coordinate System.

func (*QPainter) DrawRect1

func (this *QPainter) DrawRect1(x1 int, y1 int, w int, h int)

Draws the current rectangle with the current pen and brush.

A filled rectangle has a size of rectangle.size(). A stroked rectangle has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRect(rectangle);

See also drawRects(), drawPolygon(), and Coordinate System.

func (*QPainter) DrawRect2

func (this *QPainter) DrawRect2(rect qtcore.QRect_ITF)

Draws the current rectangle with the current pen and brush.

A filled rectangle has a size of rectangle.size(). A stroked rectangle has a size of rectangle.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRect(rectangle);

See also drawRects(), drawPolygon(), and Coordinate System.

func (*QPainter) DrawRects

func (this *QPainter) DrawRects(rects qtcore.QRectF_ITF, rectCount int)

Draws the first rectCount of the given rectangles using the current pen and brush.

See also drawRect().

func (*QPainter) DrawRects1

func (this *QPainter) DrawRects1(rects qtcore.QRect_ITF, rectCount int)

Draws the first rectCount of the given rectangles using the current pen and brush.

See also drawRect().

func (*QPainter) DrawRoundRect

func (this *QPainter) DrawRoundRect(r qtcore.QRectF_ITF, xround int, yround int)

func (*QPainter) DrawRoundRect1

func (this *QPainter) DrawRoundRect1(x int, y int, w int, h int, arg4 int, arg5 int)

func (*QPainter) DrawRoundRect1p

func (this *QPainter) DrawRoundRect1p(x int, y int, w int, h int)

func (*QPainter) DrawRoundRect1p1

func (this *QPainter) DrawRoundRect1p1(x int, y int, w int, h int, arg4 int)

func (*QPainter) DrawRoundRect2

func (this *QPainter) DrawRoundRect2(r qtcore.QRect_ITF, xround int, yround int)

func (*QPainter) DrawRoundRect2p

func (this *QPainter) DrawRoundRect2p(r qtcore.QRect_ITF)

func (*QPainter) DrawRoundRect2p1

func (this *QPainter) DrawRoundRect2p1(r qtcore.QRect_ITF, xround int)

func (*QPainter) DrawRoundRectp

func (this *QPainter) DrawRoundRectp(r qtcore.QRectF_ITF)

func (*QPainter) DrawRoundRectp1

func (this *QPainter) DrawRoundRectp1(r qtcore.QRectF_ITF, xround int)

func (*QPainter) DrawRoundedRect

func (this *QPainter) DrawRoundedRect(rect qtcore.QRectF_ITF, xRadius float64, yRadius float64, mode int)

Draws the given rectangle rect with rounded corners.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

A filled rectangle has a size of rect.size(). A stroked rectangle has a size of rect.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRoundedRect(rectangle, 20.0, 15.0);

This function was introduced in Qt 4.4.

See also drawRect() and QPen.

func (*QPainter) DrawRoundedRect1

func (this *QPainter) DrawRoundedRect1(x int, y int, w int, h int, xRadius float64, yRadius float64, mode int)

Draws the given rectangle rect with rounded corners.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

A filled rectangle has a size of rect.size(). A stroked rectangle has a size of rect.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRoundedRect(rectangle, 20.0, 15.0);

This function was introduced in Qt 4.4.

See also drawRect() and QPen.

func (*QPainter) DrawRoundedRect1p

func (this *QPainter) DrawRoundedRect1p(x int, y int, w int, h int, xRadius float64, yRadius float64)

Draws the given rectangle rect with rounded corners.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

A filled rectangle has a size of rect.size(). A stroked rectangle has a size of rect.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRoundedRect(rectangle, 20.0, 15.0);

This function was introduced in Qt 4.4.

See also drawRect() and QPen.

func (*QPainter) DrawRoundedRect2

func (this *QPainter) DrawRoundedRect2(rect qtcore.QRect_ITF, xRadius float64, yRadius float64, mode int)

Draws the given rectangle rect with rounded corners.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

A filled rectangle has a size of rect.size(). A stroked rectangle has a size of rect.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRoundedRect(rectangle, 20.0, 15.0);

This function was introduced in Qt 4.4.

See also drawRect() and QPen.

func (*QPainter) DrawRoundedRect2p

func (this *QPainter) DrawRoundedRect2p(rect qtcore.QRect_ITF, xRadius float64, yRadius float64)

Draws the given rectangle rect with rounded corners.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

A filled rectangle has a size of rect.size(). A stroked rectangle has a size of rect.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRoundedRect(rectangle, 20.0, 15.0);

This function was introduced in Qt 4.4.

See also drawRect() and QPen.

func (*QPainter) DrawRoundedRectp

func (this *QPainter) DrawRoundedRectp(rect qtcore.QRectF_ITF, xRadius float64, yRadius float64)

Draws the given rectangle rect with rounded corners.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

A filled rectangle has a size of rect.size(). A stroked rectangle has a size of rect.size() plus the pen width.

QRectF rectangle(10.0, 20.0, 80.0, 60.0);

QPainter painter(this);
painter.drawRoundedRect(rectangle, 20.0, 15.0);

This function was introduced in Qt 4.4.

See also drawRect() and QPen.

func (*QPainter) DrawStaticText

func (this *QPainter) DrawStaticText(topLeftPosition qtcore.QPointF_ITF, staticText QStaticText_ITF)

Draws the given staticText at the given topLeftPosition.

The text will be drawn using the font and the transformation set on the painter. If the font and/or transformation set on the painter are different from the ones used to initialize the layout of the QStaticText, then the layout will have to be recalculated. Use QStaticText::prepare() to initialize staticText with the font and transformation with which it will later be drawn.

If topLeftPosition is not the same as when staticText was initialized, or when it was last drawn, then there will be a slight overhead when translating the text to its new position.

Note: If the painter's transformation is not affine, then staticText will be drawn using regular calls to drawText(), losing any potential for performance improvement.

Note: The y-position is used as the top of the font.

This function was introduced in Qt 4.7.

See also QStaticText.

func (*QPainter) DrawStaticText1

func (this *QPainter) DrawStaticText1(topLeftPosition qtcore.QPoint_ITF, staticText QStaticText_ITF)

Draws the given staticText at the given topLeftPosition.

The text will be drawn using the font and the transformation set on the painter. If the font and/or transformation set on the painter are different from the ones used to initialize the layout of the QStaticText, then the layout will have to be recalculated. Use QStaticText::prepare() to initialize staticText with the font and transformation with which it will later be drawn.

If topLeftPosition is not the same as when staticText was initialized, or when it was last drawn, then there will be a slight overhead when translating the text to its new position.

Note: If the painter's transformation is not affine, then staticText will be drawn using regular calls to drawText(), losing any potential for performance improvement.

Note: The y-position is used as the top of the font.

This function was introduced in Qt 4.7.

See also QStaticText.

func (*QPainter) DrawStaticText2

func (this *QPainter) DrawStaticText2(left int, top int, staticText QStaticText_ITF)

Draws the given staticText at the given topLeftPosition.

The text will be drawn using the font and the transformation set on the painter. If the font and/or transformation set on the painter are different from the ones used to initialize the layout of the QStaticText, then the layout will have to be recalculated. Use QStaticText::prepare() to initialize staticText with the font and transformation with which it will later be drawn.

If topLeftPosition is not the same as when staticText was initialized, or when it was last drawn, then there will be a slight overhead when translating the text to its new position.

Note: If the painter's transformation is not affine, then staticText will be drawn using regular calls to drawText(), losing any potential for performance improvement.

Note: The y-position is used as the top of the font.

This function was introduced in Qt 4.7.

See also QStaticText.

func (*QPainter) DrawText

func (this *QPainter) DrawText(p qtcore.QPointF_ITF, s string)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText1

func (this *QPainter) DrawText1(p qtcore.QPoint_ITF, s string)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText2

func (this *QPainter) DrawText2(x int, y int, s string)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText3

func (this *QPainter) DrawText3(p qtcore.QPointF_ITF, str string, tf int, justificationPadding int)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText4

func (this *QPainter) DrawText4(r qtcore.QRectF_ITF, flags int, text string, br qtcore.QRectF_ITF)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText4p

func (this *QPainter) DrawText4p(r qtcore.QRectF_ITF, flags int, text string)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText5

func (this *QPainter) DrawText5(r qtcore.QRect_ITF, flags int, text string, br qtcore.QRect_ITF)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText5p

func (this *QPainter) DrawText5p(r qtcore.QRect_ITF, flags int, text string)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText6

func (this *QPainter) DrawText6(x int, y int, w int, h int, flags int, text string, br qtcore.QRect_ITF)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText6p

func (this *QPainter) DrawText6p(x int, y int, w int, h int, flags int, text string)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText7

func (this *QPainter) DrawText7(r qtcore.QRectF_ITF, text string, o QTextOption_ITF)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawText7p

func (this *QPainter) DrawText7p(r qtcore.QRectF_ITF, text string)

Draws the given text with the currently defined text direction, beginning at the given position.

This function does not handle the newline character (\n), as it cannot break text into multiple lines, and it cannot display the newline character. Use the QPainter::drawText() overload that takes a rectangle instead if you want to draw multiple lines of text with the newline character, or if you want the text to be wrapped.

By default, QPainter draws text anti-aliased.

Note: The y-position is used as the baseline of the font.

See also setFont() and setPen().

func (*QPainter) DrawTextItem

func (this *QPainter) DrawTextItem(p qtcore.QPointF_ITF, ti QTextItem_ITF)

func (*QPainter) DrawTextItem1

func (this *QPainter) DrawTextItem1(x int, y int, ti QTextItem_ITF)

func (*QPainter) DrawTextItem2

func (this *QPainter) DrawTextItem2(p qtcore.QPoint_ITF, ti QTextItem_ITF)

func (*QPainter) DrawTiledPixmap

func (this *QPainter) DrawTiledPixmap(rect qtcore.QRectF_ITF, pm QPixmap_ITF, offset qtcore.QPointF_ITF)

Draws a tiled pixmap, inside the given rectangle with its origin at the given position.

Calling drawTiledPixmap() is similar to calling drawPixmap() several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.

drawTiledPixmap() will produce the same visual tiling pattern on high-dpi displays (with devicePixelRatio > 1), compared to normal- dpi displays. Set the devicePixelRatio on the pixmap to control the tile size. For example, setting it to 2 halves the tile width and height (on both 1x and 2x displays), and produces high-resolution output on 2x displays.

The position offset is always in the painter coordinate system, indepentent of display devicePixelRatio.

See also drawPixmap().

func (*QPainter) DrawTiledPixmap1

func (this *QPainter) DrawTiledPixmap1(x int, y int, w int, h int, arg4 QPixmap_ITF, sx int, sy int)

Draws a tiled pixmap, inside the given rectangle with its origin at the given position.

Calling drawTiledPixmap() is similar to calling drawPixmap() several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.

drawTiledPixmap() will produce the same visual tiling pattern on high-dpi displays (with devicePixelRatio > 1), compared to normal- dpi displays. Set the devicePixelRatio on the pixmap to control the tile size. For example, setting it to 2 halves the tile width and height (on both 1x and 2x displays), and produces high-resolution output on 2x displays.

The position offset is always in the painter coordinate system, indepentent of display devicePixelRatio.

See also drawPixmap().

func (*QPainter) DrawTiledPixmap1p

func (this *QPainter) DrawTiledPixmap1p(x int, y int, w int, h int, arg4 QPixmap_ITF)

Draws a tiled pixmap, inside the given rectangle with its origin at the given position.

Calling drawTiledPixmap() is similar to calling drawPixmap() several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.

drawTiledPixmap() will produce the same visual tiling pattern on high-dpi displays (with devicePixelRatio > 1), compared to normal- dpi displays. Set the devicePixelRatio on the pixmap to control the tile size. For example, setting it to 2 halves the tile width and height (on both 1x and 2x displays), and produces high-resolution output on 2x displays.

The position offset is always in the painter coordinate system, indepentent of display devicePixelRatio.

See also drawPixmap().

func (*QPainter) DrawTiledPixmap1p1

func (this *QPainter) DrawTiledPixmap1p1(x int, y int, w int, h int, arg4 QPixmap_ITF, sx int)

Draws a tiled pixmap, inside the given rectangle with its origin at the given position.

Calling drawTiledPixmap() is similar to calling drawPixmap() several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.

drawTiledPixmap() will produce the same visual tiling pattern on high-dpi displays (with devicePixelRatio > 1), compared to normal- dpi displays. Set the devicePixelRatio on the pixmap to control the tile size. For example, setting it to 2 halves the tile width and height (on both 1x and 2x displays), and produces high-resolution output on 2x displays.

The position offset is always in the painter coordinate system, indepentent of display devicePixelRatio.

See also drawPixmap().

func (*QPainter) DrawTiledPixmap2

func (this *QPainter) DrawTiledPixmap2(arg0 qtcore.QRect_ITF, arg1 QPixmap_ITF, arg2 qtcore.QPoint_ITF)

Draws a tiled pixmap, inside the given rectangle with its origin at the given position.

Calling drawTiledPixmap() is similar to calling drawPixmap() several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.

drawTiledPixmap() will produce the same visual tiling pattern on high-dpi displays (with devicePixelRatio > 1), compared to normal- dpi displays. Set the devicePixelRatio on the pixmap to control the tile size. For example, setting it to 2 halves the tile width and height (on both 1x and 2x displays), and produces high-resolution output on 2x displays.

The position offset is always in the painter coordinate system, indepentent of display devicePixelRatio.

See also drawPixmap().

func (*QPainter) DrawTiledPixmap2p

func (this *QPainter) DrawTiledPixmap2p(arg0 qtcore.QRect_ITF, arg1 QPixmap_ITF)

Draws a tiled pixmap, inside the given rectangle with its origin at the given position.

Calling drawTiledPixmap() is similar to calling drawPixmap() several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.

drawTiledPixmap() will produce the same visual tiling pattern on high-dpi displays (with devicePixelRatio > 1), compared to normal- dpi displays. Set the devicePixelRatio on the pixmap to control the tile size. For example, setting it to 2 halves the tile width and height (on both 1x and 2x displays), and produces high-resolution output on 2x displays.

The position offset is always in the painter coordinate system, indepentent of display devicePixelRatio.

See also drawPixmap().

func (*QPainter) DrawTiledPixmapp

func (this *QPainter) DrawTiledPixmapp(rect qtcore.QRectF_ITF, pm QPixmap_ITF)

Draws a tiled pixmap, inside the given rectangle with its origin at the given position.

Calling drawTiledPixmap() is similar to calling drawPixmap() several times to fill (tile) an area with a pixmap, but is potentially much more efficient depending on the underlying window system.

drawTiledPixmap() will produce the same visual tiling pattern on high-dpi displays (with devicePixelRatio > 1), compared to normal- dpi displays. Set the devicePixelRatio on the pixmap to control the tile size. For example, setting it to 2 halves the tile width and height (on both 1x and 2x displays), and produces high-resolution output on 2x displays.

The position offset is always in the painter coordinate system, indepentent of display devicePixelRatio.

See also drawPixmap().

func (*QPainter) End

func (this *QPainter) End() bool

Ends painting. Any resources used while painting are released. You don't normally need to call this since it is called by the destructor.

Returns true if the painter is no longer active; otherwise returns false.

See also begin() and isActive().

func (*QPainter) EndNativePainting

func (this *QPainter) EndNativePainting()

Restores the painter after manually issuing native painting commands. Lets the painter restore any native state that it relies on before calling any other painter commands.

This function was introduced in Qt 4.6.

See also beginNativePainting().

func (*QPainter) EraseRect

func (this *QPainter) EraseRect(arg0 qtcore.QRectF_ITF)

Erases the area inside the given rectangle. Equivalent to calling

fillRect(rectangle, background()).

See also fillRect().

func (*QPainter) EraseRect1

func (this *QPainter) EraseRect1(x int, y int, w int, h int)

Erases the area inside the given rectangle. Equivalent to calling

fillRect(rectangle, background()).

See also fillRect().

func (*QPainter) EraseRect2

func (this *QPainter) EraseRect2(arg0 qtcore.QRect_ITF)

Erases the area inside the given rectangle. Equivalent to calling

fillRect(rectangle, background()).

See also fillRect().

func (*QPainter) FillPath

func (this *QPainter) FillPath(path QPainterPath_ITF, brush QBrush_ITF)

Fills the given path using the given brush. The outline is not drawn.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawPath().

func (*QPainter) FillRect

func (this *QPainter) FillRect(arg0 qtcore.QRectF_ITF, arg1 QBrush_ITF)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect1

func (this *QPainter) FillRect1(x int, y int, w int, h int, arg4 QBrush_ITF)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect10

func (this *QPainter) FillRect10(r qtcore.QRect_ITF, style int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect11

func (this *QPainter) FillRect11(r qtcore.QRectF_ITF, style int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect12

func (this *QPainter) FillRect12(x int, y int, w int, h int, preset int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect13

func (this *QPainter) FillRect13(r qtcore.QRect_ITF, preset int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect14

func (this *QPainter) FillRect14(r qtcore.QRectF_ITF, preset int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect2

func (this *QPainter) FillRect2(arg0 qtcore.QRect_ITF, arg1 QBrush_ITF)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect3

func (this *QPainter) FillRect3(arg0 qtcore.QRectF_ITF, color QColor_ITF)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect4

func (this *QPainter) FillRect4(x int, y int, w int, h int, color QColor_ITF)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect5

func (this *QPainter) FillRect5(arg0 qtcore.QRect_ITF, color QColor_ITF)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect6

func (this *QPainter) FillRect6(x int, y int, w int, h int, c int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect7

func (this *QPainter) FillRect7(r qtcore.QRect_ITF, c int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect8

func (this *QPainter) FillRect8(r qtcore.QRectF_ITF, c int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) FillRect9

func (this *QPainter) FillRect9(x int, y int, w int, h int, style int)

Fills the given rectangle with the brush specified.

Alternatively, you can specify a QColor instead of a QBrush; the QBrush constructor (taking a QColor argument) will automatically create a solid pattern brush.

See also drawRect().

func (*QPainter) Font

func (this *QPainter) Font() *QFont

Returns the currently set font used for drawing text.

See also setFont(), drawText(), and Settings.

func (*QPainter) FontInfo

func (this *QPainter) FontInfo() *QFontInfo

Returns the font info for the painter if the painter is active. Otherwise, the return value is undefined.

See also font(), isActive(), and Settings.

func (*QPainter) FontMetrics

func (this *QPainter) FontMetrics() *QFontMetrics

Returns the font metrics for the painter if the painter is active. Otherwise, the return value is undefined.

See also font(), isActive(), and Settings.

func (*QPainter) GetCthis

func (this *QPainter) GetCthis() unsafe.Pointer

func (*QPainter) HasClipping

func (this *QPainter) HasClipping() bool

Returns true if clipping has been set; otherwise returns false.

See also setClipping() and Clipping.

func (*QPainter) InitFrom

func (this *QPainter) InitFrom(device QPaintDevice_ITF)

func (*QPainter) IsActive

func (this *QPainter) IsActive() bool

Returns true if begin() has been called and end() has not yet been called; otherwise returns false.

See also begin() and QPaintDevice::paintingActive().

func (*QPainter) LayoutDirection

func (this *QPainter) LayoutDirection() int

Returns the layout direction used by the painter when drawing text.

See also QTextOption::textDirection(), setLayoutDirection(), drawText(), and Settings.

func (*QPainter) Matrix

func (this *QPainter) Matrix() *QMatrix

func (*QPainter) MatrixEnabled

func (this *QPainter) MatrixEnabled() bool

func (*QPainter) NewForInherit

func (*QPainter) NewForInherit() *QPainter

Constructs a painter.

See also begin() and end().

func (*QPainter) NewForInherit1

func (*QPainter) NewForInherit1(arg0 QPaintDevice_ITF) *QPainter

Constructs a painter.

See also begin() and end().

func (*QPainter) NewFromPointer

func (*QPainter) NewFromPointer(cthis unsafe.Pointer) *QPainter

func (*QPainter) Opacity

func (this *QPainter) Opacity() float64

Returns the opacity of the painter. The default value is 1.

This function was introduced in Qt 4.2.

See also setOpacity().

func (*QPainter) PaintEngine

func (this *QPainter) PaintEngine() *QPaintEngine

Returns the paint engine that the painter is currently operating on if the painter is active; otherwise 0.

See also isActive().

func (*QPainter) Pen

func (this *QPainter) Pen() *QPen

Returns the painter's current pen.

See also setPen() and Settings.

func (*QPainter) PixmapFragmentHintItemName

func (this *QPainter) PixmapFragmentHintItemName(val int) string

func (*QPainter) QPainter_PTR

func (ptr *QPainter) QPainter_PTR() *QPainter

func (*QPainter) Redirected

func (this *QPainter) Redirected(device QPaintDevice_ITF, offset qtcore.QPoint_ITF) *QPaintDevice

func (*QPainter) Redirectedp

func (this *QPainter) Redirectedp(device QPaintDevice_ITF) *QPaintDevice

func (*QPainter) RenderHintItemName

func (this *QPainter) RenderHintItemName(val int) string

func (*QPainter) RenderHints

func (this *QPainter) RenderHints() int

Returns a flag that specifies the rendering hints that are set for this painter.

See also setRenderHints(), testRenderHint(), and Rendering Quality.

func (*QPainter) ResetMatrix

func (this *QPainter) ResetMatrix()

func (*QPainter) ResetTransform

func (this *QPainter) ResetTransform()

Resets any transformations that were made using translate(), scale(), shear(), rotate(), setWorldTransform(), setViewport() and setWindow().

See also Coordinate Transformations.

func (*QPainter) Restore

func (this *QPainter) Restore()

Restores the current painter state (pops a saved state off the stack).

See also save().

func (*QPainter) RestoreRedirected

func (this *QPainter) RestoreRedirected(device QPaintDevice_ITF)

func (*QPainter) Rotate

func (this *QPainter) Rotate(a float64)

Rotates the coordinate system clockwise. The given angle parameter is in degrees.

See also setWorldTransform() and Coordinate Transformations.

func (*QPainter) Save

func (this *QPainter) Save()

Saves the current painter state (pushes the state onto a stack). A save() must be followed by a corresponding restore(); the end() function unwinds the stack.

See also restore().

func (*QPainter) Scale

func (this *QPainter) Scale(sx float64, sy float64)

Scales the coordinate system by (sx, sy).

See also setWorldTransform() and Coordinate Transformations.

func (*QPainter) SetBackground

func (this *QPainter) SetBackground(bg QBrush_ITF)

Sets the background brush of the painter to the given brush.

The background brush is the brush that is filled in when drawing opaque text, stippled lines and bitmaps. The background brush has no effect in transparent background mode (which is the default).

See also background(), setBackgroundMode(), and Settings.

func (*QPainter) SetBackgroundMode

func (this *QPainter) SetBackgroundMode(mode int)

Sets the background mode of the painter to the given mode

Qt::TransparentMode (the default) draws stippled lines and text without setting the background pixels. Qt::OpaqueMode fills these space with the current background color.

Note that in order to draw a bitmap or pixmap transparently, you must use QPixmap::setMask().

See also backgroundMode(), setBackground(), and Settings.

func (*QPainter) SetBrush

func (this *QPainter) SetBrush(brush QBrush_ITF)

Sets the painter's brush to the given brush.

The painter's brush defines how shapes are filled.

See also brush() and Settings.

func (*QPainter) SetBrush1

func (this *QPainter) SetBrush1(style int)

Sets the painter's brush to the given brush.

The painter's brush defines how shapes are filled.

See also brush() and Settings.

func (*QPainter) SetBrushOrigin

func (this *QPainter) SetBrushOrigin(x int, y int)

Sets the brush origin to position.

The brush origin specifies the (0, 0) coordinate of the painter's brush.

Note that while the brushOrigin() was necessary to adopt the parent's background for a widget in Qt 3, this is no longer the case since the Qt 4 painter doesn't paint the background unless you explicitly tell it to do so by setting the widget's autoFillBackground property to true.

See also brushOrigin() and Settings.

func (*QPainter) SetBrushOrigin1

func (this *QPainter) SetBrushOrigin1(arg0 qtcore.QPoint_ITF)

Sets the brush origin to position.

The brush origin specifies the (0, 0) coordinate of the painter's brush.

Note that while the brushOrigin() was necessary to adopt the parent's background for a widget in Qt 3, this is no longer the case since the Qt 4 painter doesn't paint the background unless you explicitly tell it to do so by setting the widget's autoFillBackground property to true.

See also brushOrigin() and Settings.

func (*QPainter) SetBrushOrigin2

func (this *QPainter) SetBrushOrigin2(arg0 qtcore.QPointF_ITF)

Sets the brush origin to position.

The brush origin specifies the (0, 0) coordinate of the painter's brush.

Note that while the brushOrigin() was necessary to adopt the parent's background for a widget in Qt 3, this is no longer the case since the Qt 4 painter doesn't paint the background unless you explicitly tell it to do so by setting the widget's autoFillBackground property to true.

See also brushOrigin() and Settings.

func (*QPainter) SetClipPath

func (this *QPainter) SetClipPath(path QPainterPath_ITF, op int)

Enables clipping, and sets the clip path for the painter to the given path, with the clip operation.

Note that the clip path is specified in logical (painter) coordinates.

See also clipPath(), clipRegion(), and Clipping.

func (*QPainter) SetClipPathp

func (this *QPainter) SetClipPathp(path QPainterPath_ITF)

Enables clipping, and sets the clip path for the painter to the given path, with the clip operation.

Note that the clip path is specified in logical (painter) coordinates.

See also clipPath(), clipRegion(), and Clipping.

func (*QPainter) SetClipRect

func (this *QPainter) SetClipRect(arg0 qtcore.QRectF_ITF, op int)

Enables clipping, and sets the clip region to the given rectangle using the given clip operation. The default operation is to replace the current clip rectangle.

Note that the clip rectangle is specified in logical (painter) coordinates.

See also clipRegion(), setClipping(), and Clipping.

func (*QPainter) SetClipRect1

func (this *QPainter) SetClipRect1(arg0 qtcore.QRect_ITF, op int)

Enables clipping, and sets the clip region to the given rectangle using the given clip operation. The default operation is to replace the current clip rectangle.

Note that the clip rectangle is specified in logical (painter) coordinates.

See also clipRegion(), setClipping(), and Clipping.

func (*QPainter) SetClipRect1p

func (this *QPainter) SetClipRect1p(arg0 qtcore.QRect_ITF)

Enables clipping, and sets the clip region to the given rectangle using the given clip operation. The default operation is to replace the current clip rectangle.

Note that the clip rectangle is specified in logical (painter) coordinates.

See also clipRegion(), setClipping(), and Clipping.

func (*QPainter) SetClipRect2

func (this *QPainter) SetClipRect2(x int, y int, w int, h int, op int)

Enables clipping, and sets the clip region to the given rectangle using the given clip operation. The default operation is to replace the current clip rectangle.

Note that the clip rectangle is specified in logical (painter) coordinates.

See also clipRegion(), setClipping(), and Clipping.

func (*QPainter) SetClipRect2p

func (this *QPainter) SetClipRect2p(x int, y int, w int, h int)

Enables clipping, and sets the clip region to the given rectangle using the given clip operation. The default operation is to replace the current clip rectangle.

Note that the clip rectangle is specified in logical (painter) coordinates.

See also clipRegion(), setClipping(), and Clipping.

func (*QPainter) SetClipRectp

func (this *QPainter) SetClipRectp(arg0 qtcore.QRectF_ITF)

Enables clipping, and sets the clip region to the given rectangle using the given clip operation. The default operation is to replace the current clip rectangle.

Note that the clip rectangle is specified in logical (painter) coordinates.

See also clipRegion(), setClipping(), and Clipping.

func (*QPainter) SetClipRegion

func (this *QPainter) SetClipRegion(arg0 QRegion_ITF, op int)

Sets the clip region to the given region using the specified clip operation. The default clip operation is to replace the current clip region.

Note that the clip region is given in logical coordinates.

See also clipRegion(), setClipRect(), and Clipping.

func (*QPainter) SetClipRegionp

func (this *QPainter) SetClipRegionp(arg0 QRegion_ITF)

Sets the clip region to the given region using the specified clip operation. The default clip operation is to replace the current clip region.

Note that the clip region is given in logical coordinates.

See also clipRegion(), setClipRect(), and Clipping.

func (*QPainter) SetClipping

func (this *QPainter) SetClipping(enable bool)

Enables clipping if enable is true, or disables clipping if enable is false.

See also hasClipping() and Clipping.

func (*QPainter) SetCompositionMode

func (this *QPainter) SetCompositionMode(mode int)

Sets the composition mode to the given mode.

Warning: Only a QPainter operating on a QImage fully supports all composition modes. The RasterOp modes are supported for X11 as described in compositionMode().

See also compositionMode().

func (*QPainter) SetCthis

func (this *QPainter) SetCthis(cthis unsafe.Pointer)

func (*QPainter) SetFont

func (this *QPainter) SetFont(f QFont_ITF)

Sets the painter's font to the given font.

This font is used by subsequent drawText() functions. The text color is the same as the pen color.

If you set a font that isn't available, Qt finds a close match. font() will return what you set using setFont() and fontInfo() returns the font actually being used (which may be the same).

See also font(), drawText(), and Settings.

func (*QPainter) SetLayoutDirection

func (this *QPainter) SetLayoutDirection(direction int)

Sets the layout direction used by the painter when drawing text, to the specified direction.

The default is Qt::LayoutDirectionAuto, which will implicitly determine the direction from the text drawn.

See also QTextOption::setTextDirection(), layoutDirection(), drawText(), and Settings.

func (*QPainter) SetMatrix

func (this *QPainter) SetMatrix(matrix QMatrix_ITF, combine bool)

func (*QPainter) SetMatrixEnabled

func (this *QPainter) SetMatrixEnabled(enabled bool)

func (*QPainter) SetMatrixp

func (this *QPainter) SetMatrixp(matrix QMatrix_ITF)

func (*QPainter) SetOpacity

func (this *QPainter) SetOpacity(opacity float64)

Sets the opacity of the painter to opacity. The value should be in the range 0.0 to 1.0, where 0.0 is fully transparent and 1.0 is fully opaque.

Opacity set on the painter will apply to all drawing operations individually.

This function was introduced in Qt 4.2.

See also opacity().

func (*QPainter) SetPen

func (this *QPainter) SetPen(color QColor_ITF)

Sets the painter's pen to be the given pen.

The pen defines how to draw lines and outlines, and it also defines the text color.

See also pen() and Settings.

func (*QPainter) SetPen1

func (this *QPainter) SetPen1(pen QPen_ITF)

Sets the painter's pen to be the given pen.

The pen defines how to draw lines and outlines, and it also defines the text color.

See also pen() and Settings.

func (*QPainter) SetPen2

func (this *QPainter) SetPen2(style int)

Sets the painter's pen to be the given pen.

The pen defines how to draw lines and outlines, and it also defines the text color.

See also pen() and Settings.

func (*QPainter) SetRedirected

func (this *QPainter) SetRedirected(device QPaintDevice_ITF, replacement QPaintDevice_ITF, offset qtcore.QPoint_ITF)

func (*QPainter) SetRedirectedp

func (this *QPainter) SetRedirectedp(device QPaintDevice_ITF, replacement QPaintDevice_ITF)

func (*QPainter) SetRenderHint

func (this *QPainter) SetRenderHint(hint int, on bool)

Sets the given render hint on the painter if on is true; otherwise clears the render hint.

See also setRenderHints(), renderHints(), and Rendering Quality.

func (*QPainter) SetRenderHintp

func (this *QPainter) SetRenderHintp(hint int)

Sets the given render hint on the painter if on is true; otherwise clears the render hint.

See also setRenderHints(), renderHints(), and Rendering Quality.

func (*QPainter) SetRenderHints

func (this *QPainter) SetRenderHints(hints int, on bool)

Sets the given render hints on the painter if on is true; otherwise clears the render hints.

This function was introduced in Qt 4.2.

See also setRenderHint(), renderHints(), and Rendering Quality.

func (*QPainter) SetRenderHintsp

func (this *QPainter) SetRenderHintsp(hints int)

Sets the given render hints on the painter if on is true; otherwise clears the render hints.

This function was introduced in Qt 4.2.

See also setRenderHint(), renderHints(), and Rendering Quality.

func (*QPainter) SetTransform

func (this *QPainter) SetTransform(transform QTransform_ITF, combine bool)

Sets the world transformation matrix. If combine is true, the specified transform is combined with the current matrix; otherwise it replaces the current matrix.

This function was introduced in Qt 4.3.

See also transform() and setWorldTransform().

func (*QPainter) SetTransformp

func (this *QPainter) SetTransformp(transform QTransform_ITF)

Sets the world transformation matrix. If combine is true, the specified transform is combined with the current matrix; otherwise it replaces the current matrix.

This function was introduced in Qt 4.3.

See also transform() and setWorldTransform().

func (*QPainter) SetViewTransformEnabled

func (this *QPainter) SetViewTransformEnabled(enable bool)

Enables view transformations if enable is true, or disables view transformations if enable is false.

See also viewTransformEnabled() and Window-Viewport Conversion.

func (*QPainter) SetViewport

func (this *QPainter) SetViewport(viewport qtcore.QRect_ITF)

Sets the painter's viewport rectangle to the given rectangle, and enables view transformations.

The viewport rectangle is part of the view transformation. The viewport specifies the device coordinate system. Its sister, the window(), specifies the logical coordinate system.

The default viewport rectangle is the same as the device's rectangle.

See also viewport(), viewTransformEnabled(), and Window-Viewport Conversion.

func (*QPainter) SetViewport1

func (this *QPainter) SetViewport1(x int, y int, w int, h int)

Sets the painter's viewport rectangle to the given rectangle, and enables view transformations.

The viewport rectangle is part of the view transformation. The viewport specifies the device coordinate system. Its sister, the window(), specifies the logical coordinate system.

The default viewport rectangle is the same as the device's rectangle.

See also viewport(), viewTransformEnabled(), and Window-Viewport Conversion.

func (*QPainter) SetWindow

func (this *QPainter) SetWindow(window qtcore.QRect_ITF)

Sets the painter's window to the given rectangle, and enables view transformations.

The window rectangle is part of the view transformation. The window specifies the logical coordinate system. Its sister, the viewport(), specifies the device coordinate system.

The default window rectangle is the same as the device's rectangle.

See also window(), viewTransformEnabled(), and Window-Viewport Conversion.

func (*QPainter) SetWindow1

func (this *QPainter) SetWindow1(x int, y int, w int, h int)

Sets the painter's window to the given rectangle, and enables view transformations.

The window rectangle is part of the view transformation. The window specifies the logical coordinate system. Its sister, the viewport(), specifies the device coordinate system.

The default window rectangle is the same as the device's rectangle.

See also window(), viewTransformEnabled(), and Window-Viewport Conversion.

func (*QPainter) SetWorldMatrix

func (this *QPainter) SetWorldMatrix(matrix QMatrix_ITF, combine bool)

func (*QPainter) SetWorldMatrixEnabled

func (this *QPainter) SetWorldMatrixEnabled(enabled bool)

Enables transformations if enable is true, or disables transformations if enable is false. The world transformation matrix is not changed.

This function was introduced in Qt 4.2.

See also worldMatrixEnabled(), worldTransform(), and Coordinate Transformations.

func (*QPainter) SetWorldMatrixp

func (this *QPainter) SetWorldMatrixp(matrix QMatrix_ITF)

func (*QPainter) SetWorldTransform

func (this *QPainter) SetWorldTransform(matrix QTransform_ITF, combine bool)

Sets the world transformation matrix. If combine is true, the specified matrix is combined with the current matrix; otherwise it replaces the current matrix.

See also worldTransform(), transform(), and setTransform().

func (*QPainter) SetWorldTransformp

func (this *QPainter) SetWorldTransformp(matrix QTransform_ITF)

Sets the world transformation matrix. If combine is true, the specified matrix is combined with the current matrix; otherwise it replaces the current matrix.

See also worldTransform(), transform(), and setTransform().

func (*QPainter) Shear

func (this *QPainter) Shear(sh float64, sv float64)

Shears the coordinate system by (sh, sv).

See also setWorldTransform() and Coordinate Transformations.

func (*QPainter) StrokePath

func (this *QPainter) StrokePath(path QPainterPath_ITF, pen QPen_ITF)

Draws the outline (strokes) the path path with the pen specified by pen

See also fillPath() and Drawing.

func (*QPainter) TestRenderHint

func (this *QPainter) TestRenderHint(hint int) bool

Returns true if hint is set; otherwise returns false.

This function was introduced in Qt 4.3.

See also renderHints() and setRenderHint().

func (*QPainter) Transform

func (this *QPainter) Transform() *QTransform

Alias for worldTransform(). Returns the world transformation matrix.

See also setTransform() and worldTransform().

func (*QPainter) Translate

func (this *QPainter) Translate(offset qtcore.QPointF_ITF)

Translates the coordinate system by the given offset; i.e. the given offset is added to points.

See also setWorldTransform() and Coordinate Transformations.

func (*QPainter) Translate1

func (this *QPainter) Translate1(offset qtcore.QPoint_ITF)

Translates the coordinate system by the given offset; i.e. the given offset is added to points.

See also setWorldTransform() and Coordinate Transformations.

func (*QPainter) Translate2

func (this *QPainter) Translate2(dx float64, dy float64)

Translates the coordinate system by the given offset; i.e. the given offset is added to points.

See also setWorldTransform() and Coordinate Transformations.

func (*QPainter) ViewTransformEnabled

func (this *QPainter) ViewTransformEnabled() bool

Returns true if view transformation is enabled; otherwise returns false.

See also setViewTransformEnabled() and worldTransform().

func (*QPainter) Viewport

func (this *QPainter) Viewport() *qtcore.QRect

Returns the viewport rectangle.

See also setViewport() and setViewTransformEnabled().

func (*QPainter) Window

func (this *QPainter) Window() *qtcore.QRect

Returns the window rectangle.

See also setWindow() and setViewTransformEnabled().

func (*QPainter) WorldMatrix

func (this *QPainter) WorldMatrix() *QMatrix

func (*QPainter) WorldMatrixEnabled

func (this *QPainter) WorldMatrixEnabled() bool

Returns true if world transformation is enabled; otherwise returns false.

This function was introduced in Qt 4.2.

See also setWorldMatrixEnabled(), worldTransform(), and Coordinate System.

func (*QPainter) WorldTransform

func (this *QPainter) WorldTransform() *QTransform

Returns the world transformation matrix.

See also setWorldTransform().

type QPainterPath

type QPainterPath struct {
	*qtrt.CObject
}

func NewQPainterPath

func NewQPainterPath() *QPainterPath

func NewQPainterPath1

func NewQPainterPath1(startPoint qtcore.QPointF_ITF) *QPainterPath

func NewQPainterPathFromPointer

func NewQPainterPathFromPointer(cthis unsafe.Pointer) *QPainterPath

func (*QPainterPath) AddEllipse

func (this *QPainterPath) AddEllipse(rect qtcore.QRectF_ITF)

Creates an ellipse within the specified boundingRectangle and adds it to the painter path as a closed subpath.

The ellipse is composed of a clockwise curve, starting and finishing at zero degrees (the 3 o'clock position).

QLinearGradient myGradient;
QPen myPen;
QRectF boundingRectangle;

QPainterPath myPath;
myPath.addEllipse(boundingRectangle);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also arcTo(), QPainter::drawEllipse(), and Composing a QPainterPath.

func (*QPainterPath) AddEllipse1

func (this *QPainterPath) AddEllipse1(x float64, y float64, w float64, h float64)

Creates an ellipse within the specified boundingRectangle and adds it to the painter path as a closed subpath.

The ellipse is composed of a clockwise curve, starting and finishing at zero degrees (the 3 o'clock position).

QLinearGradient myGradient;
QPen myPen;
QRectF boundingRectangle;

QPainterPath myPath;
myPath.addEllipse(boundingRectangle);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also arcTo(), QPainter::drawEllipse(), and Composing a QPainterPath.

func (*QPainterPath) AddEllipse2

func (this *QPainterPath) AddEllipse2(center qtcore.QPointF_ITF, rx float64, ry float64)

Creates an ellipse within the specified boundingRectangle and adds it to the painter path as a closed subpath.

The ellipse is composed of a clockwise curve, starting and finishing at zero degrees (the 3 o'clock position).

QLinearGradient myGradient;
QPen myPen;
QRectF boundingRectangle;

QPainterPath myPath;
myPath.addEllipse(boundingRectangle);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also arcTo(), QPainter::drawEllipse(), and Composing a QPainterPath.

func (*QPainterPath) AddPath

func (this *QPainterPath) AddPath(path QPainterPath_ITF)

Adds the given path to this path as a closed subpath.

See also connectPath() and Composing a QPainterPath.

func (*QPainterPath) AddPolygon

func (this *QPainterPath) AddPolygon(polygon QPolygonF_ITF)

Adds the given polygon to the path as an (unclosed) subpath.

Note that the current position after the polygon has been added, is the last point in polygon. To draw a line back to the first point, use the closeSubpath() function.

QLinearGradient myGradient;
QPen myPen;
QPolygonF myPolygon;

QPainterPath myPath;
myPath.addPolygon(myPolygon);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also lineTo() and Composing a QPainterPath.

func (*QPainterPath) AddRect

func (this *QPainterPath) AddRect(rect qtcore.QRectF_ITF)

Adds the given rectangle to this path as a closed subpath.

The rectangle is added as a clockwise set of lines. The painter path's current position after the rectangle has been added is at the top-left corner of the rectangle.

QLinearGradient myGradient;
QPen myPen;
QRectF myRectangle;

QPainterPath myPath;
myPath.addRect(myRectangle);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also addRegion(), lineTo(), and Composing a QPainterPath.

func (*QPainterPath) AddRect1

func (this *QPainterPath) AddRect1(x float64, y float64, w float64, h float64)

Adds the given rectangle to this path as a closed subpath.

The rectangle is added as a clockwise set of lines. The painter path's current position after the rectangle has been added is at the top-left corner of the rectangle.

QLinearGradient myGradient;
QPen myPen;
QRectF myRectangle;

QPainterPath myPath;
myPath.addRect(myRectangle);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also addRegion(), lineTo(), and Composing a QPainterPath.

func (*QPainterPath) AddRegion

func (this *QPainterPath) AddRegion(region QRegion_ITF)

Adds the given region to the path by adding each rectangle in the region as a separate closed subpath.

See also addRect() and Composing a QPainterPath.

func (*QPainterPath) AddRoundRect

func (this *QPainterPath) AddRoundRect(rect qtcore.QRectF_ITF, xRnd int, yRnd int)

func (*QPainterPath) AddRoundRect1

func (this *QPainterPath) AddRoundRect1(x float64, y float64, w float64, h float64, xRnd int, yRnd int)

func (*QPainterPath) AddRoundRect2

func (this *QPainterPath) AddRoundRect2(rect qtcore.QRectF_ITF, roundness int)

func (*QPainterPath) AddRoundRect3

func (this *QPainterPath) AddRoundRect3(x float64, y float64, w float64, h float64, roundness int)

func (*QPainterPath) AddRoundedRect

func (this *QPainterPath) AddRoundedRect(rect qtcore.QRectF_ITF, xRadius float64, yRadius float64, mode int)

Adds the given rectangle rect with rounded corners to the path.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

This function was introduced in Qt 4.4.

See also addRect().

func (*QPainterPath) AddRoundedRect1

func (this *QPainterPath) AddRoundedRect1(x float64, y float64, w float64, h float64, xRadius float64, yRadius float64, mode int)

Adds the given rectangle rect with rounded corners to the path.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

This function was introduced in Qt 4.4.

See also addRect().

func (*QPainterPath) AddRoundedRect1p

func (this *QPainterPath) AddRoundedRect1p(x float64, y float64, w float64, h float64, xRadius float64, yRadius float64)

Adds the given rectangle rect with rounded corners to the path.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

This function was introduced in Qt 4.4.

See also addRect().

func (*QPainterPath) AddRoundedRectp

func (this *QPainterPath) AddRoundedRectp(rect qtcore.QRectF_ITF, xRadius float64, yRadius float64)

Adds the given rectangle rect with rounded corners to the path.

The xRadius and yRadius arguments specify the radii of the ellipses defining the corners of the rounded rectangle. When mode is Qt::RelativeSize, xRadius and yRadius are specified in percentage of half the rectangle's width and height respectively, and should be in the range 0.0 to 100.0.

This function was introduced in Qt 4.4.

See also addRect().

func (*QPainterPath) AddText

func (this *QPainterPath) AddText(point qtcore.QPointF_ITF, f QFont_ITF, text string)

Adds the given text to this path as a set of closed subpaths created from the font supplied. The subpaths are positioned so that the left end of the text's baseline lies at the specified point.

QLinearGradient myGradient;
QPen myPen;
QFont myFont;
QPointF baseline(x, y);

QPainterPath myPath;
myPath.addText(baseline, myFont, tr("Qt"));

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also QPainter::drawText() and Composing a QPainterPath.

func (*QPainterPath) AddText1

func (this *QPainterPath) AddText1(x float64, y float64, f QFont_ITF, text string)

Adds the given text to this path as a set of closed subpaths created from the font supplied. The subpaths are positioned so that the left end of the text's baseline lies at the specified point.

QLinearGradient myGradient;
QPen myPen;
QFont myFont;
QPointF baseline(x, y);

QPainterPath myPath;
myPath.addText(baseline, myFont, tr("Qt"));

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also QPainter::drawText() and Composing a QPainterPath.

func (*QPainterPath) AngleAtPercent

func (this *QPainterPath) AngleAtPercent(t float64) float64

Returns the angle of the path tangent at the percentage t. The argument t has to be between 0 and 1.

Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

Note that similarly to the other percent methods, the percentage measurement is not linear with regards to the length if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.

func (*QPainterPath) ArcMoveTo

func (this *QPainterPath) ArcMoveTo(rect qtcore.QRectF_ITF, angle float64)

Creates a move to that lies on the arc that occupies the given rectangle at angle.

Angles are specified in degrees. Clockwise arcs can be specified using negative angles.

This function was introduced in Qt 4.2.

See also moveTo() and arcTo().

func (*QPainterPath) ArcMoveTo1

func (this *QPainterPath) ArcMoveTo1(x float64, y float64, w float64, h float64, angle float64)

Creates a move to that lies on the arc that occupies the given rectangle at angle.

Angles are specified in degrees. Clockwise arcs can be specified using negative angles.

This function was introduced in Qt 4.2.

See also moveTo() and arcTo().

func (*QPainterPath) ArcTo

func (this *QPainterPath) ArcTo(rect qtcore.QRectF_ITF, startAngle float64, arcLength float64)

Creates an arc that occupies the given rectangle, beginning at the specified startAngle and extending sweepLength degrees counter-clockwise.

Angles are specified in degrees. Clockwise arcs can be specified using negative angles.

Note that this function connects the starting point of the arc to the current position if they are not already connected. After the arc has been added, the current position is the last point in arc. To draw a line back to the first point, use the closeSubpath() function.

QLinearGradient myGradient;
QPen myPen;

QPointF center, startPoint;

QPainterPath myPath;
myPath.moveTo(center);
myPath.arcTo(boundingRect, startAngle,
             sweepLength);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also arcMoveTo(), addEllipse(), QPainter::drawArc(), QPainter::drawPie(), and Composing a QPainterPath.

func (*QPainterPath) ArcTo1

func (this *QPainterPath) ArcTo1(x float64, y float64, w float64, h float64, startAngle float64, arcLength float64)

Creates an arc that occupies the given rectangle, beginning at the specified startAngle and extending sweepLength degrees counter-clockwise.

Angles are specified in degrees. Clockwise arcs can be specified using negative angles.

Note that this function connects the starting point of the arc to the current position if they are not already connected. After the arc has been added, the current position is the last point in arc. To draw a line back to the first point, use the closeSubpath() function.

QLinearGradient myGradient;
QPen myPen;

QPointF center, startPoint;

QPainterPath myPath;
myPath.moveTo(center);
myPath.arcTo(boundingRect, startAngle,
             sweepLength);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also arcMoveTo(), addEllipse(), QPainter::drawArc(), QPainter::drawPie(), and Composing a QPainterPath.

func (*QPainterPath) BoundingRect

func (this *QPainterPath) BoundingRect() *qtcore.QRectF

Returns the bounding rectangle of this painter path as a rectangle with floating point precision.

See also controlPointRect().

func (*QPainterPath) CloseSubpath

func (this *QPainterPath) CloseSubpath()

Closes the current subpath by drawing a line to the beginning of the subpath, automatically starting a new path. The current point of the new path is (0, 0).

If the subpath does not contain any elements, this function does nothing.

See also moveTo() and Composing a QPainterPath.

func (*QPainterPath) ConnectPath

func (this *QPainterPath) ConnectPath(path QPainterPath_ITF)

Connects the given path to this path by adding a line from the last element of this path to the first element of the given path.

See also addPath() and Composing a QPainterPath.

func (*QPainterPath) Contains

func (this *QPainterPath) Contains(pt qtcore.QPointF_ITF) bool

Returns true if the given point is inside the path, otherwise returns false.

See also intersects().

func (*QPainterPath) Contains1

func (this *QPainterPath) Contains1(rect qtcore.QRectF_ITF) bool

Returns true if the given point is inside the path, otherwise returns false.

See also intersects().

func (*QPainterPath) Contains2

func (this *QPainterPath) Contains2(p QPainterPath_ITF) bool

Returns true if the given point is inside the path, otherwise returns false.

See also intersects().

func (*QPainterPath) ControlPointRect

func (this *QPainterPath) ControlPointRect() *qtcore.QRectF

Returns the rectangle containing all the points and control points in this path.

This function is significantly faster to compute than the exact boundingRect(), and the returned rectangle is always a superset of the rectangle returned by boundingRect().

See also boundingRect().

func (*QPainterPath) CubicTo

func (this *QPainterPath) CubicTo(ctrlPt1 qtcore.QPointF_ITF, ctrlPt2 qtcore.QPointF_ITF, endPt qtcore.QPointF_ITF)

Adds a cubic Bezier curve between the current position and the given endPoint using the control points specified by c1, and c2.

After the curve is added, the current position is updated to be at the end point of the curve.

QLinearGradient myGradient;
QPen myPen;

QPainterPath myPath;
myPath.cubicTo(c1, c2, endPoint);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also quadTo() and Composing a QPainterPath.

func (*QPainterPath) CubicTo1

func (this *QPainterPath) CubicTo1(ctrlPt1x float64, ctrlPt1y float64, ctrlPt2x float64, ctrlPt2y float64, endPtx float64, endPty float64)

Adds a cubic Bezier curve between the current position and the given endPoint using the control points specified by c1, and c2.

After the curve is added, the current position is updated to be at the end point of the curve.

QLinearGradient myGradient;
QPen myPen;

QPainterPath myPath;
myPath.cubicTo(c1, c2, endPoint);

QPainter painter(this);
painter.setBrush(myGradient);
painter.setPen(myPen);
painter.drawPath(myPath);

See also quadTo() and Composing a QPainterPath.

func (*QPainterPath) CurrentPosition

func (this *QPainterPath) CurrentPosition() *qtcore.QPointF

Returns the current position of the path.

func (*QPainterPath) ElementAt

func (this *QPainterPath) ElementAt(i int) int

Returns the element at the given index in the painter path.

See also ElementType, elementCount(), and isEmpty().

func (*QPainterPath) ElementCount

func (this *QPainterPath) ElementCount() int

Returns the number of path elements in the painter path.

See also ElementType, elementAt(), and isEmpty().

func (*QPainterPath) ElementTypeItemName

func (this *QPainterPath) ElementTypeItemName(val int) string

func (*QPainterPath) FillRule

func (this *QPainterPath) FillRule() int

Returns the painter path's currently set fill rule.

See also setFillRule().

func (*QPainterPath) GetCthis

func (this *QPainterPath) GetCthis() unsafe.Pointer

func (*QPainterPath) Intersected

func (this *QPainterPath) Intersected(r QPainterPath_ITF) *QPainterPath

Returns a path which is the intersection of this path's fill area and p's fill area. Bezier curves may be flattened to line segments due to numerical instability of doing bezier curve intersections.

This function was introduced in Qt 4.3.

func (*QPainterPath) Intersects

func (this *QPainterPath) Intersects(rect qtcore.QRectF_ITF) bool

Returns true if any point in the given rectangle intersects the path; otherwise returns false.

There is an intersection if any of the lines making up the rectangle crosses a part of the path or if any part of the rectangle overlaps with any area enclosed by the path. This function respects the current fillRule to determine what is considered inside the path.

See also contains().

func (*QPainterPath) Intersects1

func (this *QPainterPath) Intersects1(p QPainterPath_ITF) bool

Returns true if any point in the given rectangle intersects the path; otherwise returns false.

There is an intersection if any of the lines making up the rectangle crosses a part of the path or if any part of the rectangle overlaps with any area enclosed by the path. This function respects the current fillRule to determine what is considered inside the path.

See also contains().

func (*QPainterPath) IsEmpty

func (this *QPainterPath) IsEmpty() bool

Returns true if either there are no elements in this path, or if the only element is a MoveToElement; otherwise returns false.

See also elementCount().

func (*QPainterPath) Length

func (this *QPainterPath) Length() float64

Returns the length of the current path.

func (*QPainterPath) LineTo

func (this *QPainterPath) LineTo(p qtcore.QPointF_ITF)

Adds a straight line from the current position to the given endPoint. After the line is drawn, the current position is updated to be at the end point of the line.

See also addPolygon(), addRect(), and Composing a QPainterPath.

func (*QPainterPath) LineTo1

func (this *QPainterPath) LineTo1(x float64, y float64)

Adds a straight line from the current position to the given endPoint. After the line is drawn, the current position is updated to be at the end point of the line.

See also addPolygon(), addRect(), and Composing a QPainterPath.

func (*QPainterPath) MoveTo

func (this *QPainterPath) MoveTo(p qtcore.QPointF_ITF)

Moves the current point to the given point, implicitly starting a new subpath and closing the previous one.

See also closeSubpath() and Composing a QPainterPath.

func (*QPainterPath) MoveTo1

func (this *QPainterPath) MoveTo1(x float64, y float64)

Moves the current point to the given point, implicitly starting a new subpath and closing the previous one.

See also closeSubpath() and Composing a QPainterPath.

func (*QPainterPath) NewForInherit

func (*QPainterPath) NewForInherit() *QPainterPath

Constructs an empty QPainterPath object.

func (*QPainterPath) NewForInherit1

func (*QPainterPath) NewForInherit1(startPoint qtcore.QPointF_ITF) *QPainterPath

Constructs an empty QPainterPath object.

func (*QPainterPath) NewFromPointer

func (*QPainterPath) NewFromPointer(cthis unsafe.Pointer) *QPainterPath

func (*QPainterPath) Operator_add

func (this *QPainterPath) Operator_add(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Operator_add_equal

func (this *QPainterPath) Operator_add_equal(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Operator_and

func (this *QPainterPath) Operator_and(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Operator_and_equal

func (this *QPainterPath) Operator_and_equal(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Operator_equal

func (this *QPainterPath) Operator_equal(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Operator_equal1

func (this *QPainterPath) Operator_equal1(other unsafe.Pointer) *QPainterPath

func (*QPainterPath) Operator_equal_equal

func (this *QPainterPath) Operator_equal_equal(other QPainterPath_ITF) bool

func (*QPainterPath) Operator_minus

func (this *QPainterPath) Operator_minus(other QPainterPath_ITF) *QPainterPath

Subtracts the other path from a copy of this path, and returns the copy.

This function was introduced in Qt 4.5.

See also subtracted(), operator-=(), and operator+().

func (*QPainterPath) Operator_minus_equal

func (this *QPainterPath) Operator_minus_equal(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Operator_not_equal

func (this *QPainterPath) Operator_not_equal(other QPainterPath_ITF) bool

func (*QPainterPath) Operator_or

func (this *QPainterPath) Operator_or(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Operator_or_equal

func (this *QPainterPath) Operator_or_equal(other QPainterPath_ITF) *QPainterPath

func (*QPainterPath) PercentAtLength

func (this *QPainterPath) PercentAtLength(t float64) float64

Returns percentage of the whole path at the specified length len.

Note that similarly to other percent methods, the percentage measurement is not linear with regards to the length, if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.

func (*QPainterPath) PointAtPercent

func (this *QPainterPath) PointAtPercent(t float64) *qtcore.QPointF

Returns the point at at the percentage t of the current path. The argument t has to be between 0 and 1.

Note that similarly to other percent methods, the percentage measurement is not linear with regards to the length, if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.

func (*QPainterPath) QPainterPath_PTR

func (ptr *QPainterPath) QPainterPath_PTR() *QPainterPath

func (*QPainterPath) QuadTo

func (this *QPainterPath) QuadTo(ctrlPt qtcore.QPointF_ITF, endPt qtcore.QPointF_ITF)

Adds a quadratic Bezier curve between the current position and the given endPoint with the control point specified by c.

After the curve is added, the current point is updated to be at the end point of the curve.

See also cubicTo() and Composing a QPainterPath.

func (*QPainterPath) QuadTo1

func (this *QPainterPath) QuadTo1(ctrlPtx float64, ctrlPty float64, endPtx float64, endPty float64)

Adds a quadratic Bezier curve between the current position and the given endPoint with the control point specified by c.

After the curve is added, the current point is updated to be at the end point of the curve.

See also cubicTo() and Composing a QPainterPath.

func (*QPainterPath) SetCthis

func (this *QPainterPath) SetCthis(cthis unsafe.Pointer)

func (*QPainterPath) SetElementPositionAt

func (this *QPainterPath) SetElementPositionAt(i int, x float64, y float64)

Sets the x and y coordinate of the element at index index to x and y.

This function was introduced in Qt 4.2.

func (*QPainterPath) SetFillRule

func (this *QPainterPath) SetFillRule(fillRule int)

Sets the fill rule of the painter path to the given fillRule. Qt provides two methods for filling paths:

Qt::OddEvenFill (default)Qt::WindingFill

See also fillRule().

func (*QPainterPath) Simplified

func (this *QPainterPath) Simplified() *QPainterPath

Returns a simplified version of this path. This implies merging all subpaths that intersect, and returning a path containing no intersecting edges. Consecutive parallel lines will also be merged. The simplified path will always use the default fill rule, Qt::OddEvenFill. Bezier curves may be flattened to line segments due to numerical instability of doing bezier curve intersections.

This function was introduced in Qt 4.4.

func (*QPainterPath) SlopeAtPercent

func (this *QPainterPath) SlopeAtPercent(t float64) float64

Returns the slope of the path at the percentage t. The argument t has to be between 0 and 1.

Note that similarly to other percent methods, the percentage measurement is not linear with regards to the length, if curves are present in the path. When curves are present the percentage argument is mapped to the t parameter of the Bezier equations.

func (*QPainterPath) Subtracted

func (this *QPainterPath) Subtracted(r QPainterPath_ITF) *QPainterPath

Returns a path which is p's fill area subtracted from this path's fill area.

Set operations on paths will treat the paths as areas. Non-closed paths will be treated as implicitly closed. Bezier curves may be flattened to line segments due to numerical instability of doing bezier curve intersections.

This function was introduced in Qt 4.3.

func (*QPainterPath) SubtractedInverted

func (this *QPainterPath) SubtractedInverted(r QPainterPath_ITF) *QPainterPath

func (*QPainterPath) Swap

func (this *QPainterPath) Swap(other QPainterPath_ITF)

Swaps painter path other with this painter path. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QPainterPath) ToFillPolygon

func (this *QPainterPath) ToFillPolygon(matrix QMatrix_ITF) *QPolygonF

Converts the path into a polygon using the QTransform matrix, and returns the polygon.

The polygon is created by first converting all subpaths to polygons, then using a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule.

Note that rewinding inserts addition lines in the polygon so the outline of the fill polygon does not match the outline of the path.

See also toSubpathPolygons(), toFillPolygons(), and QPainterPath Conversion.

func (*QPainterPath) ToFillPolygon1

func (this *QPainterPath) ToFillPolygon1(matrix QTransform_ITF) *QPolygonF

Converts the path into a polygon using the QTransform matrix, and returns the polygon.

The polygon is created by first converting all subpaths to polygons, then using a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule.

Note that rewinding inserts addition lines in the polygon so the outline of the fill polygon does not match the outline of the path.

See also toSubpathPolygons(), toFillPolygons(), and QPainterPath Conversion.

func (*QPainterPath) ToFillPolygonp

func (this *QPainterPath) ToFillPolygonp() *QPolygonF

Converts the path into a polygon using the QTransform matrix, and returns the polygon.

The polygon is created by first converting all subpaths to polygons, then using a rewinding technique to make sure that overlapping subpaths can be filled using the correct fill rule.

Note that rewinding inserts addition lines in the polygon so the outline of the fill polygon does not match the outline of the path.

See also toSubpathPolygons(), toFillPolygons(), and QPainterPath Conversion.

func (*QPainterPath) ToReversed

func (this *QPainterPath) ToReversed() *QPainterPath

Creates and returns a reversed copy of the path.

It is the order of the elements that is reversed: If a QPainterPath is composed by calling the moveTo(), lineTo() and cubicTo() functions in the specified order, the reversed copy is composed by calling cubicTo(), lineTo() and moveTo().

func (*QPainterPath) Translate

func (this *QPainterPath) Translate(dx float64, dy float64)

Translates all elements in the path by (dx, dy).

This function was introduced in Qt 4.6.

See also translated().

func (*QPainterPath) Translate1

func (this *QPainterPath) Translate1(offset qtcore.QPointF_ITF)

Translates all elements in the path by (dx, dy).

This function was introduced in Qt 4.6.

See also translated().

func (*QPainterPath) Translated

func (this *QPainterPath) Translated(dx float64, dy float64) *QPainterPath

Returns a copy of the path that is translated by (dx, dy).

This function was introduced in Qt 4.6.

See also translate().

func (*QPainterPath) Translated1

func (this *QPainterPath) Translated1(offset qtcore.QPointF_ITF) *QPainterPath

Returns a copy of the path that is translated by (dx, dy).

This function was introduced in Qt 4.6.

See also translate().

func (*QPainterPath) United

func (this *QPainterPath) United(r QPainterPath_ITF) *QPainterPath

Returns a path which is the union of this path's fill area and p's fill area.

Set operations on paths will treat the paths as areas. Non-closed paths will be treated as implicitly closed. Bezier curves may be flattened to line segments due to numerical instability of doing bezier curve intersections.

This function was introduced in Qt 4.3.

See also intersected() and subtracted().

type QPainterPathStroker

type QPainterPathStroker struct {
	*qtrt.CObject
}

func NewQPainterPathStroker

func NewQPainterPathStroker() *QPainterPathStroker

func NewQPainterPathStroker1

func NewQPainterPathStroker1(pen QPen_ITF) *QPainterPathStroker

func NewQPainterPathStrokerFromPointer

func NewQPainterPathStrokerFromPointer(cthis unsafe.Pointer) *QPainterPathStroker

func (*QPainterPathStroker) CapStyle

func (this *QPainterPathStroker) CapStyle() int

func (*QPainterPathStroker) CreateStroke

func (this *QPainterPathStroker) CreateStroke(path QPainterPath_ITF) *QPainterPath

func (*QPainterPathStroker) CurveThreshold

func (this *QPainterPathStroker) CurveThreshold() float64

func (*QPainterPathStroker) DashOffset

func (this *QPainterPathStroker) DashOffset() float64

func (*QPainterPathStroker) GetCthis

func (this *QPainterPathStroker) GetCthis() unsafe.Pointer

func (*QPainterPathStroker) JoinStyle

func (this *QPainterPathStroker) JoinStyle() int

func (*QPainterPathStroker) MiterLimit

func (this *QPainterPathStroker) MiterLimit() float64

func (*QPainterPathStroker) NewForInherit

func (*QPainterPathStroker) NewForInherit() *QPainterPathStroker

func (*QPainterPathStroker) NewForInherit1

func (*QPainterPathStroker) NewForInherit1(pen QPen_ITF) *QPainterPathStroker

func (*QPainterPathStroker) NewFromPointer

func (*QPainterPathStroker) NewFromPointer(cthis unsafe.Pointer) *QPainterPathStroker

func (*QPainterPathStroker) QPainterPathStroker_PTR

func (ptr *QPainterPathStroker) QPainterPathStroker_PTR() *QPainterPathStroker

func (*QPainterPathStroker) SetCapStyle

func (this *QPainterPathStroker) SetCapStyle(style int)

func (*QPainterPathStroker) SetCthis

func (this *QPainterPathStroker) SetCthis(cthis unsafe.Pointer)

func (*QPainterPathStroker) SetCurveThreshold

func (this *QPainterPathStroker) SetCurveThreshold(threshold float64)

func (*QPainterPathStroker) SetDashOffset

func (this *QPainterPathStroker) SetDashOffset(offset float64)

func (*QPainterPathStroker) SetDashPattern

func (this *QPainterPathStroker) SetDashPattern(arg0 int)

func (*QPainterPathStroker) SetJoinStyle

func (this *QPainterPathStroker) SetJoinStyle(style int)

func (*QPainterPathStroker) SetMiterLimit

func (this *QPainterPathStroker) SetMiterLimit(length float64)

func (*QPainterPathStroker) SetWidth

func (this *QPainterPathStroker) SetWidth(width float64)

func (*QPainterPathStroker) Width

func (this *QPainterPathStroker) Width() float64

type QPainterPathStroker_ITF

type QPainterPathStroker_ITF interface {
	QPainterPathStroker_PTR() *QPainterPathStroker
}

type QPainterPath_ITF

type QPainterPath_ITF interface {
	QPainterPath_PTR() *QPainterPath
}

type QPainterPath__ElementType

type QPainterPath__ElementType = int

This enum describes the types of elements used to connect vertices in subpaths.

Note that elements added as closed subpaths using the addEllipse(), addPath(), addPolygon(), addRect(), addRegion() and addText() convenience functions, is actually added to the path as a collection of separate elements using the moveTo(), lineTo() and cubicTo() functions.

See also elementAt() and elementCount().

const QPainterPath__CurveToDataElement QPainterPath__ElementType = 3

The extra data required to describe a curve in a CurveToElement element.

const QPainterPath__CurveToElement QPainterPath__ElementType = 2

A curve. See also cubicTo() and quadTo().

const QPainterPath__LineToElement QPainterPath__ElementType = 1

A line. See also lineTo().

const QPainterPath__MoveToElement QPainterPath__ElementType = 0

A new subpath. See also moveTo().

type QPainter_ITF

type QPainter_ITF interface {
	QPainter_PTR() *QPainter
}

type QPainter__CompositionMode

type QPainter__CompositionMode = int

Defines the modes supported for digital image compositing. Composition modes are used to specify how the pixels in one image, the source, are merged with the pixel in another image, the destination.

Please note that the bitwise raster operation modes, denoted with a RasterOp prefix, are only natively supported in the X11 and raster paint engines. This means that the only way to utilize these modes on the Mac is via a QImage. The RasterOp denoted blend modes are not supported for pens and brushes with alpha components. Also, turning on the QPainter::Antialiasing render hint will effectively disable the RasterOp modes.

The most common type is SourceOver (often referred to as just alpha blending) where the source pixel is blended on top of the destination pixel in such a way that the alpha component of the source defines the translucency of the pixel.

Several composition modes require an alpha channel in the source or target images to have an effect. For optimal performance the image format Format_ARGB32_Premultiplied is preferred.

When a composition mode is set it applies to all painting operator, pens, brushes, gradients and pixmap/image drawing.

See also compositionMode(), setCompositionMode(), Composition Modes, and Image Composition Example.

const QPainter__CompositionMode_Clear QPainter__CompositionMode = 2

The pixels in the destination are cleared (set to fully transparent) independent of the source.

const QPainter__CompositionMode_ColorBurn QPainter__CompositionMode = 19
const QPainter__CompositionMode_ColorDodge QPainter__CompositionMode = 18
const QPainter__CompositionMode_Darken QPainter__CompositionMode = 16
const QPainter__CompositionMode_Destination QPainter__CompositionMode = 4

The output is the destination pixel. This means that the blending has no effect. This mode is the inverse of CompositionMode_Source.

const QPainter__CompositionMode_DestinationAtop QPainter__CompositionMode = 10
const QPainter__CompositionMode_DestinationIn QPainter__CompositionMode = 6

The output is the destination, where the alpha is reduced by that of the source. This mode is the inverse of CompositionMode_SourceIn.

const QPainter__CompositionMode_DestinationOut QPainter__CompositionMode = 8

The output is the destination, where the alpha is reduced by the inverse of the source. This mode is the inverse of CompositionMode_SourceOut.

const QPainter__CompositionMode_DestinationOver QPainter__CompositionMode = 1

The alpha of the destination is used to blend it on top of the source pixels. This mode is the inverse of CompositionMode_SourceOver.

const QPainter__CompositionMode_Difference QPainter__CompositionMode = 22
const QPainter__CompositionMode_Exclusion QPainter__CompositionMode = 23
const QPainter__CompositionMode_HardLight QPainter__CompositionMode = 20
const QPainter__CompositionMode_Lighten QPainter__CompositionMode = 17
const QPainter__CompositionMode_Multiply QPainter__CompositionMode = 13
const QPainter__CompositionMode_Overlay QPainter__CompositionMode = 15
const QPainter__CompositionMode_Plus QPainter__CompositionMode = 12
const QPainter__CompositionMode_Screen QPainter__CompositionMode = 14
const QPainter__CompositionMode_SoftLight QPainter__CompositionMode = 21
const QPainter__CompositionMode_Source QPainter__CompositionMode = 3

The output is the source pixel. (This means a basic copy operation and is identical to SourceOver when the source pixel is opaque).

const QPainter__CompositionMode_SourceAtop QPainter__CompositionMode = 9

The source pixel is blended on top of the destination, with the alpha of the source pixel reduced by the alpha of the destination pixel.

const QPainter__CompositionMode_SourceIn QPainter__CompositionMode = 5

The output is the source, where the alpha is reduced by that of the destination.

const QPainter__CompositionMode_SourceOut QPainter__CompositionMode = 7

The output is the source, where the alpha is reduced by the inverse of destination.

const QPainter__CompositionMode_SourceOver QPainter__CompositionMode = 0

This is the default mode. The alpha of the source is used to blend the pixel on top of the destination.

const QPainter__CompositionMode_Xor QPainter__CompositionMode = 11
const QPainter__RasterOp_ClearDestination QPainter__CompositionMode = 35
const QPainter__RasterOp_NotDestination QPainter__CompositionMode = 37
const QPainter__RasterOp_NotSource QPainter__CompositionMode = 30
const QPainter__RasterOp_NotSourceAndDestination QPainter__CompositionMode = 31
const QPainter__RasterOp_NotSourceAndNotDestination QPainter__CompositionMode = 27
const QPainter__RasterOp_NotSourceOrDestination QPainter__CompositionMode = 33
const QPainter__RasterOp_NotSourceOrNotDestination QPainter__CompositionMode = 28
const QPainter__RasterOp_NotSourceXorDestination QPainter__CompositionMode = 29
const QPainter__RasterOp_SetDestination QPainter__CompositionMode = 36
const QPainter__RasterOp_SourceAndDestination QPainter__CompositionMode = 25
const QPainter__RasterOp_SourceAndNotDestination QPainter__CompositionMode = 32
const QPainter__RasterOp_SourceOrDestination QPainter__CompositionMode = 24
const QPainter__RasterOp_SourceOrNotDestination QPainter__CompositionMode = 34
const QPainter__RasterOp_SourceXorDestination QPainter__CompositionMode = 26

type QPainter__PixmapFragmentHint

type QPainter__PixmapFragmentHint = int
const QPainter__OpaqueHint QPainter__PixmapFragmentHint = 1

type QPainter__RenderHint

type QPainter__RenderHint = int
const QPainter__Antialiasing QPainter__RenderHint = 1
const QPainter__HighQualityAntialiasing QPainter__RenderHint = 8
const QPainter__NonCosmeticDefaultPen QPainter__RenderHint = 16
const QPainter__Qt4CompatiblePainting QPainter__RenderHint = 32
const QPainter__SmoothPixmapTransform QPainter__RenderHint = 4
const QPainter__TextAntialiasing QPainter__RenderHint = 2

type QPalette

type QPalette struct {
	*qtrt.CObject
}

func NewQPalette

func NewQPalette() *QPalette

func NewQPalette1

func NewQPalette1(button QColor_ITF) *QPalette

func NewQPalette2

func NewQPalette2(button int) *QPalette

func NewQPalette3

func NewQPalette3(button QColor_ITF, window QColor_ITF) *QPalette

func NewQPalette4

func NewQPalette4(windowText QBrush_ITF, button QBrush_ITF, light QBrush_ITF, dark QBrush_ITF, mid QBrush_ITF, text QBrush_ITF, bright_text QBrush_ITF, base QBrush_ITF, window QBrush_ITF) *QPalette

func NewQPalette5

func NewQPalette5(windowText QColor_ITF, window QColor_ITF, light QColor_ITF, dark QColor_ITF, mid QColor_ITF, text QColor_ITF, base QColor_ITF) *QPalette

func NewQPaletteFromPointer

func NewQPaletteFromPointer(cthis unsafe.Pointer) *QPalette

func QGuiApplication_Palette

func QGuiApplication_Palette() *QPalette

func (*QPalette) AlternateBase

func (this *QPalette) AlternateBase() *QBrush

Returns the alternate base brush of the current color group.

See also ColorRole and brush().

func (*QPalette) Background

func (this *QPalette) Background() *QBrush

func (*QPalette) Base

func (this *QPalette) Base() *QBrush

Returns the base brush of the current color group.

See also ColorRole and brush().

func (*QPalette) BrightText

func (this *QPalette) BrightText() *QBrush

Returns the bright text foreground brush of the current color group.

See also ColorRole and brush().

func (*QPalette) Brush

func (this *QPalette) Brush(cg int, cr int) *QBrush

Returns the brush in the specified color group, used for the given color role.

See also color(), setBrush(), and ColorRole.

func (*QPalette) Brush1

func (this *QPalette) Brush1(cr int) *QBrush

Returns the brush in the specified color group, used for the given color role.

See also color(), setBrush(), and ColorRole.

func (*QPalette) Button

func (this *QPalette) Button() *QBrush

Returns the button brush of the current color group.

See also ColorRole and brush().

func (*QPalette) ButtonText

func (this *QPalette) ButtonText() *QBrush

Returns the button text foreground brush of the current color group.

See also ColorRole and brush().

func (*QPalette) CacheKey

func (this *QPalette) CacheKey() int64

Returns a number that identifies the contents of this QPalette object. Distinct QPalette objects can have the same key if they refer to the same contents.

The cacheKey() will change when the palette is altered.

func (*QPalette) Color

func (this *QPalette) Color(cg int, cr int) *QColor

Returns the color in the specified color group, used for the given color role.

See also brush(), setColor(), and ColorRole.

func (*QPalette) Color1

func (this *QPalette) Color1(cr int) *QColor

Returns the color in the specified color group, used for the given color role.

See also brush(), setColor(), and ColorRole.

func (*QPalette) ColorGroupItemName

func (this *QPalette) ColorGroupItemName(val int) string

func (*QPalette) ColorRoleItemName

func (this *QPalette) ColorRoleItemName(val int) string

func (*QPalette) CurrentColorGroup

func (this *QPalette) CurrentColorGroup() int

Returns the palette's current color group.

See also setCurrentColorGroup().

func (*QPalette) Dark

func (this *QPalette) Dark() *QBrush

Returns the dark brush of the current color group.

See also ColorRole and brush().

func (*QPalette) Foreground

func (this *QPalette) Foreground() *QBrush

func (*QPalette) GetCthis

func (this *QPalette) GetCthis() unsafe.Pointer

func (*QPalette) Highlight

func (this *QPalette) Highlight() *QBrush

Returns the highlight brush of the current color group.

See also ColorRole and brush().

func (*QPalette) HighlightedText

func (this *QPalette) HighlightedText() *QBrush

Returns the highlighted text brush of the current color group.

See also ColorRole and brush().

func (*QPalette) IsBrushSet

func (this *QPalette) IsBrushSet(cg int, cr int) bool

Returns true if the ColorGroup cg and ColorRole cr has been set previously on this palette; otherwise returns false.

This function was introduced in Qt 4.2.

See also setBrush().

func (*QPalette) IsCopyOf

func (this *QPalette) IsCopyOf(p QPalette_ITF) bool

Returns true if this palette and p are copies of each other, i.e. one of them was created as a copy of the other and neither was subsequently modified; otherwise returns false. This is much stricter than equality.

See also operator=() and operator==().

func (*QPalette) IsEqual

func (this *QPalette) IsEqual(cr1 int, cr2 int) bool

Returns true (usually quickly) if color group cg1 is equal to cg2; otherwise returns false.

func (*QPalette) Light

func (this *QPalette) Light() *QBrush

Returns the light brush of the current color group.

See also ColorRole and brush().

func (this *QPalette) Link() *QBrush

Returns the unvisited link text brush of the current color group.

See also ColorRole and brush().

func (*QPalette) LinkVisited

func (this *QPalette) LinkVisited() *QBrush

Returns the visited link text brush of the current color group.

See also ColorRole and brush().

func (*QPalette) Mid

func (this *QPalette) Mid() *QBrush

Returns the mid brush of the current color group.

See also ColorRole and brush().

func (*QPalette) Midlight

func (this *QPalette) Midlight() *QBrush

Returns the midlight brush of the current color group.

See also ColorRole and brush().

func (*QPalette) NewForInherit

func (*QPalette) NewForInherit() *QPalette

Constructs a palette object that uses the application's default palette.

See also QApplication::setPalette() and QApplication::palette().

func (*QPalette) NewForInherit1

func (*QPalette) NewForInherit1(button QColor_ITF) *QPalette

Constructs a palette object that uses the application's default palette.

See also QApplication::setPalette() and QApplication::palette().

func (*QPalette) NewForInherit2

func (*QPalette) NewForInherit2(button int) *QPalette

Constructs a palette object that uses the application's default palette.

See also QApplication::setPalette() and QApplication::palette().

func (*QPalette) NewForInherit3

func (*QPalette) NewForInherit3(button QColor_ITF, window QColor_ITF) *QPalette

Constructs a palette object that uses the application's default palette.

See also QApplication::setPalette() and QApplication::palette().

func (*QPalette) NewForInherit4

func (*QPalette) NewForInherit4(windowText QBrush_ITF, button QBrush_ITF, light QBrush_ITF, dark QBrush_ITF, mid QBrush_ITF, text QBrush_ITF, bright_text QBrush_ITF, base QBrush_ITF, window QBrush_ITF) *QPalette

Constructs a palette object that uses the application's default palette.

See also QApplication::setPalette() and QApplication::palette().

func (*QPalette) NewForInherit5

func (*QPalette) NewForInherit5(windowText QColor_ITF, window QColor_ITF, light QColor_ITF, dark QColor_ITF, mid QColor_ITF, text QColor_ITF, base QColor_ITF) *QPalette

Constructs a palette object that uses the application's default palette.

See also QApplication::setPalette() and QApplication::palette().

func (*QPalette) NewFromPointer

func (*QPalette) NewFromPointer(cthis unsafe.Pointer) *QPalette

func (*QPalette) Operator_equal

func (this *QPalette) Operator_equal(palette QPalette_ITF) *QPalette

func (*QPalette) Operator_equal1

func (this *QPalette) Operator_equal1(other unsafe.Pointer) *QPalette

func (*QPalette) Operator_equal_equal

func (this *QPalette) Operator_equal_equal(p QPalette_ITF) bool

func (*QPalette) Operator_not_equal

func (this *QPalette) Operator_not_equal(p QPalette_ITF) bool

func (*QPalette) PlaceholderText

func (this *QPalette) PlaceholderText() *QBrush

Returns the placeholder text brush of the current color group.

Note: Before Qt 5.12, the placeholder text color was hard-coded in the code as QPalette::text().color() where an alpha of 128 was applied. We continue to support this behavior by default, unless you set your own brush. One can get back the original placeholder color setting the special QBrush default constructor as placeholder brush.

This function was introduced in Qt 5.12.

See also ColorRole and brush().

func (*QPalette) QPalette_PTR

func (ptr *QPalette) QPalette_PTR() *QPalette

func (*QPalette) Resolve

func (this *QPalette) Resolve(arg0 QPalette_ITF) *QPalette

Returns a new QPalette that has attributes copied from other.

func (*QPalette) Resolve1

func (this *QPalette) Resolve1() uint

Returns a new QPalette that has attributes copied from other.

func (*QPalette) Resolve2

func (this *QPalette) Resolve2(mask uint)

Returns a new QPalette that has attributes copied from other.

func (*QPalette) SetBrush

func (this *QPalette) SetBrush(cr int, brush QBrush_ITF)

Sets the brush for the given color role to the specified brush for all groups in the palette.

See also brush(), setColor(), and ColorRole.

func (*QPalette) SetBrush1

func (this *QPalette) SetBrush1(cg int, cr int, brush QBrush_ITF)

Sets the brush for the given color role to the specified brush for all groups in the palette.

See also brush(), setColor(), and ColorRole.

func (*QPalette) SetColor

func (this *QPalette) SetColor(cg int, cr int, color QColor_ITF)

Sets the color in the specified color group, used for the given color role, to the specified solid color.

See also setBrush(), color(), and ColorRole.

func (*QPalette) SetColor1

func (this *QPalette) SetColor1(cr int, color QColor_ITF)

Sets the color in the specified color group, used for the given color role, to the specified solid color.

See also setBrush(), color(), and ColorRole.

func (*QPalette) SetColorGroup

func (this *QPalette) SetColorGroup(cr int, windowText QBrush_ITF, button QBrush_ITF, light QBrush_ITF, dark QBrush_ITF, mid QBrush_ITF, text QBrush_ITF, bright_text QBrush_ITF, base QBrush_ITF, window QBrush_ITF)

Sets a the group at cg. You can pass either brushes, pixmaps or plain colors for windowText, button, light, dark, mid, text, bright_text, base and window.

See also QBrush.

func (*QPalette) SetCthis

func (this *QPalette) SetCthis(cthis unsafe.Pointer)

func (*QPalette) SetCurrentColorGroup

func (this *QPalette) SetCurrentColorGroup(cg int)

Set the palette's current color group to cg.

See also currentColorGroup().

func (*QPalette) Shadow

func (this *QPalette) Shadow() *QBrush

Returns the shadow brush of the current color group.

See also ColorRole and brush().

func (*QPalette) Swap

func (this *QPalette) Swap(other QPalette_ITF)

Swaps this palette instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QPalette) Text

func (this *QPalette) Text() *QBrush

Returns the text foreground brush of the current color group.

See also ColorRole and brush().

func (*QPalette) ToolTipBase

func (this *QPalette) ToolTipBase() *QBrush

Returns the tool tip base brush of the current color group. This brush is used by QToolTip and QWhatsThis.

Note: Tool tips use the Inactive color group of QPalette, because tool tips are not active windows.

This function was introduced in Qt 4.4.

See also ColorRole and brush().

func (*QPalette) ToolTipText

func (this *QPalette) ToolTipText() *QBrush

Returns the tool tip text brush of the current color group. This brush is used by QToolTip and QWhatsThis.

Note: Tool tips use the Inactive color group of QPalette, because tool tips are not active windows.

This function was introduced in Qt 4.4.

See also ColorRole and brush().

func (*QPalette) Window

func (this *QPalette) Window() *QBrush

Returns the window (general background) brush of the current color group.

See also ColorRole and brush().

func (*QPalette) WindowText

func (this *QPalette) WindowText() *QBrush

Returns the window text (general foreground) brush of the current color group.

See also ColorRole and brush().

type QPalette_ITF

type QPalette_ITF interface {
	QPalette_PTR() *QPalette
}

type QPalette__ColorGroup

type QPalette__ColorGroup = int

QPalette::NormalActivesynonym for Active

const QPalette__Active QPalette__ColorGroup = 0
const QPalette__All QPalette__ColorGroup = 5
const QPalette__Current QPalette__ColorGroup = 4
const QPalette__Disabled QPalette__ColorGroup = 1
const QPalette__Inactive QPalette__ColorGroup = 2
const QPalette__NColorGroups QPalette__ColorGroup = 3
const QPalette__Normal QPalette__ColorGroup = 0

type QPalette__ColorRole

type QPalette__ColorRole = int

The ColorRole enum defines the different symbolic color roles used in current GUIs.

The central roles are:

QPalette::BackgroundWindowThis value is obsolete. Use Window instead. QPalette::ForegroundWindowTextThis value is obsolete. Use WindowText instead.

There are some color roles used mostly for 3D bevel and shadow effects. All of these are normally derived from Window, and used in ways that depend on that relationship. For example, buttons depend on it to make the bevels look attractive, and Motif scroll bars depend on Mid to be slightly different from Window.

Selected (marked) items have two roles:

There are two color roles related to hyperlinks:

Note that we do not use the Link and LinkVisited roles when rendering rich text in Qt, and that we recommend that you use CSS and the QTextDocument::setDefaultStyleSheet() function to alter the appearance of links. For example:

QTextBrowser browser;
QColor linkColor(Qt::red);
browser.document()->setDefaultStyleSheet(sheet);
const QPalette__AlternateBase QPalette__ColorRole = 16
const QPalette__Background QPalette__ColorRole = 10
const QPalette__Base QPalette__ColorRole = 9

Used mostly as the background color for text entry widgets, but can also be used for other painting - such as the background of combobox drop down lists and toolbar handles. It is usually white or another light color.

const QPalette__BrightText QPalette__ColorRole = 7

A text color that is very different from WindowText, and contrasts well with e.g. Dark. Typically used for text that needs to be drawn where Text or WindowText would give poor contrast, such as on pressed push buttons. Note that text colors can be used for things other than just words; text colors are usually used for text, but it's quite common to use the text color roles for lines, icons, etc.

const QPalette__Button QPalette__ColorRole = 1

The general button background color. This background can be different from Window as some styles require a different background color for buttons.

const QPalette__ButtonText QPalette__ColorRole = 8

A foreground color used with the Button color.

const QPalette__Dark QPalette__ColorRole = 4

Darker than Button.

const QPalette__Foreground QPalette__ColorRole = 0
const QPalette__Highlight QPalette__ColorRole = 12
const QPalette__HighlightedText QPalette__ColorRole = 13
const QPalette__Light QPalette__ColorRole = 2

Lighter than Button color.

const QPalette__Link QPalette__ColorRole = 14
const QPalette__LinkVisited QPalette__ColorRole = 15
const QPalette__Mid QPalette__ColorRole = 5

Between Button and Dark.

const QPalette__Midlight QPalette__ColorRole = 3

Between Button and Light.

const QPalette__NColorRoles QPalette__ColorRole = 21
const QPalette__NoRole QPalette__ColorRole = 17
const QPalette__PlaceholderText QPalette__ColorRole = 20
const QPalette__Shadow QPalette__ColorRole = 11
const QPalette__Text QPalette__ColorRole = 6

The foreground color used with Base. This is usually the same as the WindowText, in which case it must provide good contrast with Window and Base.

const QPalette__ToolTipBase QPalette__ColorRole = 18
const QPalette__ToolTipText QPalette__ColorRole = 19
const QPalette__Window QPalette__ColorRole = 10
const QPalette__WindowText QPalette__ColorRole = 0

A general foreground color.

type QPdfWriter

type QPdfWriter struct {
	*qtcore.QObject
	*QPagedPaintDevice
}

func NewQPdfWriter

func NewQPdfWriter(filename string) *QPdfWriter

func NewQPdfWriter1

func NewQPdfWriter1(device qtcore.QIODevice_ITF) *QPdfWriter

func NewQPdfWriterFromPointer

func NewQPdfWriterFromPointer(cthis unsafe.Pointer) *QPdfWriter

func (*QPdfWriter) Creator

func (this *QPdfWriter) Creator() string

Returns the creator of the document.

See also setCreator().

func (*QPdfWriter) GetCthis

func (this *QPdfWriter) GetCthis() unsafe.Pointer

func (*QPdfWriter) InheritMetric

func (this *QPdfWriter) InheritMetric(f func(id int) int)

int metric(QPaintDevice::PaintDeviceMetric)

func (*QPdfWriter) InheritPaintEngine

func (this *QPdfWriter) InheritPaintEngine(f func() unsafe.Pointer)

QPaintEngine * paintEngine()

func (*QPdfWriter) MetaObject

func (this *QPdfWriter) MetaObject() *qtcore.QMetaObject

func (*QPdfWriter) Metric

func (this *QPdfWriter) Metric(id int) int

func (*QPdfWriter) NewForInherit

func (*QPdfWriter) NewForInherit(filename string) *QPdfWriter

Constructs a PDF writer that will write the pdf to filename.

func (*QPdfWriter) NewForInherit1

func (*QPdfWriter) NewForInherit1(device qtcore.QIODevice_ITF) *QPdfWriter

Constructs a PDF writer that will write the pdf to filename.

func (*QPdfWriter) NewFromPointer

func (*QPdfWriter) NewFromPointer(cthis unsafe.Pointer) *QPdfWriter

func (*QPdfWriter) NewPage

func (this *QPdfWriter) NewPage() bool

Reimplemented from QPagedPaintDevice::newPage().

func (*QPdfWriter) PaintEngine

func (this *QPdfWriter) PaintEngine() *QPaintEngine

Reimplemented from QPaintDevice::paintEngine().

func (*QPdfWriter) PdfVersion

func (this *QPdfWriter) PdfVersion() int

Returns the PDF version for this writer. The default is PdfVersion_1_4.

This function was introduced in Qt 5.10.

See also setPdfVersion().

func (*QPdfWriter) QPdfWriter_PTR

func (ptr *QPdfWriter) QPdfWriter_PTR() *QPdfWriter

func (*QPdfWriter) Resolution

func (this *QPdfWriter) Resolution() int

Returns the resolution of the PDF in DPI.

This function was introduced in Qt 5.3.

See also setResolution().

func (*QPdfWriter) SetCreator

func (this *QPdfWriter) SetCreator(creator string)

Sets the creator of the document to creator.

See also creator().

func (*QPdfWriter) SetCthis

func (this *QPdfWriter) SetCthis(cthis unsafe.Pointer)

func (*QPdfWriter) SetPageSize

func (this *QPdfWriter) SetPageSize(size int)

Sets the PDF page size to pageSize.

To get the current QPageSize use pageLayout().pageSize().

You should call this before calling QPainter::begin(), or immediately before calling newPage() to apply the new page size to a new page. You should not call any painting methods between a call to setPageSize() and newPage() as the wrong paint metrics may be used.

Returns true if the page size was successfully set to pageSize.

This function was introduced in Qt 5.3.

See also pageLayout().

func (*QPdfWriter) SetPageSizeMM

func (this *QPdfWriter) SetPageSizeMM(size qtcore.QSizeF_ITF)

func (*QPdfWriter) SetPdfVersion

func (this *QPdfWriter) SetPdfVersion(version int)

Sets the PDF version for this writer to version.

If version is the same value as currently set then no change will be made.

This function was introduced in Qt 5.10.

See also pdfVersion().

func (*QPdfWriter) SetResolution

func (this *QPdfWriter) SetResolution(resolution int)

Sets the PDF resolution in DPI.

This setting affects the coordinate system as returned by, for example QPainter::viewport().

This function was introduced in Qt 5.3.

See also resolution().

func (*QPdfWriter) SetTitle

func (this *QPdfWriter) SetTitle(title string)

Sets the title of the document being created to title.

See also title().

func (*QPdfWriter) Title

func (this *QPdfWriter) Title() string

Returns the title of the document.

See also setTitle().

type QPdfWriter_ITF

type QPdfWriter_ITF interface {
	qtcore.QObject_ITF
	QPagedPaintDevice_ITF
	QPdfWriter_PTR() *QPdfWriter
}

type QPen

type QPen struct {
	*qtrt.CObject
}

func NewQPen

func NewQPen() *QPen

func NewQPen1

func NewQPen1(arg0 int) *QPen

func NewQPen2

func NewQPen2(color QColor_ITF) *QPen

func NewQPen3

func NewQPen3(brush QBrush_ITF, width float64, s int, c int, j int) *QPen

func NewQPen3p

func NewQPen3p(brush QBrush_ITF, width float64) *QPen

func NewQPen3p1

func NewQPen3p1(brush QBrush_ITF, width float64, s int) *QPen

func NewQPen3p2

func NewQPen3p2(brush QBrush_ITF, width float64, s int, c int) *QPen

func NewQPenFromPointer

func NewQPenFromPointer(cthis unsafe.Pointer) *QPen

func (*QPen) Brush

func (this *QPen) Brush() *QBrush

Returns the brush used to fill strokes generated with this pen.

See also setBrush().

func (*QPen) CapStyle

func (this *QPen) CapStyle() int

Returns the pen's cap style.

See also setCapStyle() and Cap Style.

func (*QPen) Color

func (this *QPen) Color() *QColor

Returns the color of this pen's brush.

See also brush() and setColor().

func (*QPen) DashOffset

func (this *QPen) DashOffset() float64

Returns the dash offset for the pen.

See also setDashOffset().

func (*QPen) GetCthis

func (this *QPen) GetCthis() unsafe.Pointer

func (*QPen) IsCosmetic

func (this *QPen) IsCosmetic() bool

Returns true if the pen is cosmetic; otherwise returns false.

Cosmetic pens are used to draw strokes that have a constant width regardless of any transformations applied to the QPainter they are used with. Drawing a shape with a cosmetic pen ensures that its outline will have the same thickness at different scale factors.

A zero width pen is cosmetic by default.

See also setCosmetic() and widthF().

func (*QPen) IsDetached

func (this *QPen) IsDetached() bool

func (*QPen) IsSolid

func (this *QPen) IsSolid() bool

Returns true if the pen has a solid fill, otherwise false.

See also style() and dashPattern().

func (*QPen) JoinStyle

func (this *QPen) JoinStyle() int

Returns the pen's join style.

See also setJoinStyle() and Join Style.

func (*QPen) MiterLimit

func (this *QPen) MiterLimit() float64

Returns the miter limit of the pen. The miter limit is only relevant when the join style is set to Qt::MiterJoin.

See also setMiterLimit() and Join Style.

func (*QPen) NewForInherit

func (*QPen) NewForInherit() *QPen

Constructs a default black solid line pen with 1 width.

func (*QPen) NewForInherit1

func (*QPen) NewForInherit1(arg0 int) *QPen

Constructs a default black solid line pen with 1 width.

func (*QPen) NewForInherit2

func (*QPen) NewForInherit2(color QColor_ITF) *QPen

Constructs a default black solid line pen with 1 width.

func (*QPen) NewForInherit3

func (*QPen) NewForInherit3(brush QBrush_ITF, width float64, s int, c int, j int) *QPen

Constructs a default black solid line pen with 1 width.

func (*QPen) NewForInherit3p

func (*QPen) NewForInherit3p(brush QBrush_ITF, width float64) *QPen

Constructs a default black solid line pen with 1 width.

func (*QPen) NewForInherit3p1

func (*QPen) NewForInherit3p1(brush QBrush_ITF, width float64, s int) *QPen

Constructs a default black solid line pen with 1 width.

func (*QPen) NewForInherit3p2

func (*QPen) NewForInherit3p2(brush QBrush_ITF, width float64, s int, c int) *QPen

Constructs a default black solid line pen with 1 width.

func (*QPen) NewFromPointer

func (*QPen) NewFromPointer(cthis unsafe.Pointer) *QPen

func (*QPen) Operator_equal

func (this *QPen) Operator_equal(pen QPen_ITF) *QPen

func (*QPen) Operator_equal1

func (this *QPen) Operator_equal1(other unsafe.Pointer) *QPen

func (*QPen) Operator_equal_equal

func (this *QPen) Operator_equal_equal(p QPen_ITF) bool

func (*QPen) Operator_not_equal

func (this *QPen) Operator_not_equal(p QPen_ITF) bool

func (*QPen) QPen_PTR

func (ptr *QPen) QPen_PTR() *QPen

func (*QPen) SetBrush

func (this *QPen) SetBrush(brush QBrush_ITF)

Sets the brush used to fill strokes generated with this pen to the given brush.

See also brush() and setColor().

func (*QPen) SetCapStyle

func (this *QPen) SetCapStyle(pcs int)

Sets the pen's cap style to the given style. The default value is Qt::SquareCap.

See also capStyle() and Cap Style.

func (*QPen) SetColor

func (this *QPen) SetColor(color QColor_ITF)

Sets the color of this pen's brush to the given color.

See also setBrush() and color().

func (*QPen) SetCosmetic

func (this *QPen) SetCosmetic(cosmetic bool)

Sets this pen to cosmetic or non-cosmetic, depending on the value of cosmetic.

See also isCosmetic().

func (*QPen) SetCthis

func (this *QPen) SetCthis(cthis unsafe.Pointer)

func (*QPen) SetDashOffset

func (this *QPen) SetDashOffset(doffset float64)

Sets the dash offset (the starting point on the dash pattern) for this pen to the offset specified. The offset is measured in terms of the units used to specify the dash pattern.

For example, a pattern where each stroke is four units long, followed by a gap of two units, will begin with the stroke when drawn as a line.However, if the dash offset is set to 4.0, any line drawn will begin with the gap. Values of the offset up to 4.0 will cause part of the stroke to be drawn first, and values of the offset between 4.0 and 6.0 will cause the line to begin with part of the gap.

Note: This implicitly converts the style of the pen to Qt::CustomDashLine.

See also dashOffset().

func (*QPen) SetJoinStyle

func (this *QPen) SetJoinStyle(pcs int)

Sets the pen's join style to the given style. The default value is Qt::BevelJoin.

See also joinStyle() and Join Style.

func (*QPen) SetMiterLimit

func (this *QPen) SetMiterLimit(limit float64)

Sets the miter limit of this pen to the given limit.

The miter limit describes how far a miter join can extend from the join point. This is used to reduce artifacts between line joins where the lines are close to parallel.

This value does only have effect when the pen style is set to Qt::MiterJoin. The value is specified in units of the pen's width, e.g. a miter limit of 5 in width 10 is 50 pixels long. The default miter limit is 2, i.e. twice the pen width in pixels.

See also miterLimit(), setJoinStyle(), and Join Style.

func (*QPen) SetStyle

func (this *QPen) SetStyle(arg0 int)

Sets the pen style to the given style.

See the Qt::PenStyle documentation for a list of the available styles. Since Qt 4.1 it is also possible to specify a custom dash pattern using the setDashPattern() function which implicitly converts the style of the pen to Qt::CustomDashLine.

Note: This function resets the dash offset to zero.

See also style() and Pen Style.

func (*QPen) SetWidth

func (this *QPen) SetWidth(width int)

Sets the pen width to the given width in pixels with integer precision.

A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the transformation set on the painter.

Setting a pen width with a negative value is not supported.

See also setWidthF() and width().

func (*QPen) SetWidthF

func (this *QPen) SetWidthF(width float64)

Sets the pen width to the given width in pixels with floating point precision.

A line width of zero indicates a cosmetic pen. This means that the pen width is always drawn one pixel wide, independent of the transformation on the painter.

Setting a pen width with a negative value is not supported.

See also setWidth() and widthF().

func (*QPen) Style

func (this *QPen) Style() int

Returns the pen style.

See also setStyle() and Pen Style.

func (*QPen) Swap

func (this *QPen) Swap(other QPen_ITF)

Swaps pen other with this pen. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QPen) Width

func (this *QPen) Width() int

Returns the pen width with integer precision.

See also setWidth() and widthF().

func (*QPen) WidthF

func (this *QPen) WidthF() float64

Returns the pen width with floating point precision.

See also setWidthF() and width().

type QPen_ITF

type QPen_ITF interface {
	QPen_PTR() *QPen
}

type QPicture

type QPicture struct {
	*QPaintDevice
}

func NewQPicture

func NewQPicture(formatVersion int) *QPicture

func NewQPictureFromPointer

func NewQPictureFromPointer(cthis unsafe.Pointer) *QPicture

func NewQPicturep

func NewQPicturep() *QPicture

func (*QPicture) BoundingRect

func (this *QPicture) BoundingRect() *qtcore.QRect

Returns the picture's bounding rectangle or an invalid rectangle if the picture contains no data.

See also setBoundingRect().

func (*QPicture) Data

func (this *QPicture) Data() string

Returns a pointer to the picture data. The pointer is only valid until the next non-const function is called on this picture. The returned pointer is 0 if the picture contains no data.

See also setData(), size(), and isNull().

func (*QPicture) Detach

func (this *QPicture) Detach()

func (*QPicture) DevType

func (this *QPicture) DevType() int

func (*QPicture) GetCthis

func (this *QPicture) GetCthis() unsafe.Pointer

func (*QPicture) InheritMetric

func (this *QPicture) InheritMetric(f func(m int) int)

int metric(QPaintDevice::PaintDeviceMetric)

func (*QPicture) InputFormatList

func (this *QPicture) InputFormatList() *qtcore.QStringList

func (*QPicture) IsDetached

func (this *QPicture) IsDetached() bool

func (*QPicture) IsNull

func (this *QPicture) IsNull() bool

Returns true if the picture contains no data; otherwise returns false.

func (*QPicture) Load

func (this *QPicture) Load(dev qtcore.QIODevice_ITF, format string) bool

Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also save().

func (*QPicture) Load1

func (this *QPicture) Load1(fileName string, format string) bool

Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also save().

func (*QPicture) Load1p

func (this *QPicture) Load1p(fileName string) bool

Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also save().

func (*QPicture) Loadp

func (this *QPicture) Loadp(dev qtcore.QIODevice_ITF) bool

Loads a picture from the file specified by fileName and returns true if successful; otherwise invalidates the picture and returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also save().

func (*QPicture) Metric

func (this *QPicture) Metric(m int) int

func (*QPicture) NewForInherit

func (*QPicture) NewForInherit(formatVersion int) *QPicture

Constructs an empty picture.

The formatVersion parameter may be used to create a QPicture that can be read by applications that are compiled with earlier versions of Qt.

Note that the default formatVersion is -1 which signifies the current release, i.e. for Qt 4.0 a formatVersion of 7 is the same as the default formatVersion of -1.

Reading pictures generated by earlier versions of Qt is not supported in Qt 4.0.

func (*QPicture) NewForInheritp

func (*QPicture) NewForInheritp() *QPicture

Constructs an empty picture.

The formatVersion parameter may be used to create a QPicture that can be read by applications that are compiled with earlier versions of Qt.

Note that the default formatVersion is -1 which signifies the current release, i.e. for Qt 4.0 a formatVersion of 7 is the same as the default formatVersion of -1.

Reading pictures generated by earlier versions of Qt is not supported in Qt 4.0.

func (*QPicture) NewFromPointer

func (*QPicture) NewFromPointer(cthis unsafe.Pointer) *QPicture

func (*QPicture) Operator_equal

func (this *QPicture) Operator_equal(p QPicture_ITF) *QPicture

func (*QPicture) Operator_equal1

func (this *QPicture) Operator_equal1(other unsafe.Pointer) *QPicture

func (*QPicture) OutputFormatList

func (this *QPicture) OutputFormatList() *qtcore.QStringList

func (*QPicture) PaintEngine

func (this *QPicture) PaintEngine() *QPaintEngine

func (*QPicture) PictureFormat

func (this *QPicture) PictureFormat(fileName string) string

func (*QPicture) Play

func (this *QPicture) Play(p QPainter_ITF) bool

Replays the picture using painter, and returns true if successful; otherwise returns false.

This function does exactly the same as QPainter::drawPicture() with (x, y) = (0, 0).

func (*QPicture) QPicture_PTR

func (ptr *QPicture) QPicture_PTR() *QPicture

func (*QPicture) Save

func (this *QPicture) Save(dev qtcore.QIODevice_ITF, format string) bool

Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also load().

func (*QPicture) Save1

func (this *QPicture) Save1(fileName string, format string) bool

Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also load().

func (*QPicture) Save1p

func (this *QPicture) Save1p(fileName string) bool

Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also load().

func (*QPicture) Savep

func (this *QPicture) Savep(dev qtcore.QIODevice_ITF) bool

Saves a picture to the file specified by fileName and returns true if successful; otherwise returns false.

Please note that the format parameter has been deprecated and will have no effect.

See also load().

func (*QPicture) SetBoundingRect

func (this *QPicture) SetBoundingRect(r qtcore.QRect_ITF)

Sets the picture's bounding rectangle to r. The automatically calculated value is overridden.

See also boundingRect().

func (*QPicture) SetCthis

func (this *QPicture) SetCthis(cthis unsafe.Pointer)

func (*QPicture) SetData

func (this *QPicture) SetData(data string, size uint)

Sets the picture data directly from data and size. This function copies the input data.

See also data() and size().

func (*QPicture) Size

func (this *QPicture) Size() uint

Returns the size of the picture data.

See also data().

func (*QPicture) Swap

func (this *QPicture) Swap(other QPicture_ITF)

Swaps picture other with this picture. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

type QPictureFormatPlugin

type QPictureFormatPlugin struct {
	*qtcore.QObject
}

func NewQPictureFormatPlugin

func NewQPictureFormatPlugin(parent qtcore.QObject_ITF) *QPictureFormatPlugin

func NewQPictureFormatPluginFromPointer

func NewQPictureFormatPluginFromPointer(cthis unsafe.Pointer) *QPictureFormatPlugin

func NewQPictureFormatPluginp

func NewQPictureFormatPluginp() *QPictureFormatPlugin

func (*QPictureFormatPlugin) GetCthis

func (this *QPictureFormatPlugin) GetCthis() unsafe.Pointer

func (*QPictureFormatPlugin) InstallIOHandler

func (this *QPictureFormatPlugin) InstallIOHandler(format string) bool

Installs a QPictureIO picture I/O handler for the picture format format. Returns true on success.

func (*QPictureFormatPlugin) LoadPicture

func (this *QPictureFormatPlugin) LoadPicture(format string, filename string, pic QPicture_ITF) bool

Loads the picture stored in the file called fileName, with the given format, into *picture. Returns true on success; otherwise returns false.

See also savePicture().

func (*QPictureFormatPlugin) MetaObject

func (this *QPictureFormatPlugin) MetaObject() *qtcore.QMetaObject

func (*QPictureFormatPlugin) NewForInherit

Constructs an picture format plugin with the given parent. This is invoked automatically by the moc generated code that exports the plugin.

func (*QPictureFormatPlugin) NewForInheritp

func (*QPictureFormatPlugin) NewForInheritp() *QPictureFormatPlugin

Constructs an picture format plugin with the given parent. This is invoked automatically by the moc generated code that exports the plugin.

func (*QPictureFormatPlugin) NewFromPointer

func (*QPictureFormatPlugin) NewFromPointer(cthis unsafe.Pointer) *QPictureFormatPlugin

func (*QPictureFormatPlugin) QPictureFormatPlugin_PTR

func (ptr *QPictureFormatPlugin) QPictureFormatPlugin_PTR() *QPictureFormatPlugin

func (*QPictureFormatPlugin) SavePicture

func (this *QPictureFormatPlugin) SavePicture(format string, filename string, pic QPicture_ITF) bool

Saves the given picture into the file called fileName, using the specified format. Returns true on success; otherwise returns false.

See also loadPicture().

func (*QPictureFormatPlugin) SetCthis

func (this *QPictureFormatPlugin) SetCthis(cthis unsafe.Pointer)

type QPictureFormatPlugin_ITF

type QPictureFormatPlugin_ITF interface {
	qtcore.QObject_ITF
	QPictureFormatPlugin_PTR() *QPictureFormatPlugin
}

type QPictureIO

type QPictureIO struct {
	*qtrt.CObject
}

func NewQPictureIO

func NewQPictureIO() *QPictureIO

func NewQPictureIO1

func NewQPictureIO1(ioDevice qtcore.QIODevice_ITF, format string) *QPictureIO

func NewQPictureIO2

func NewQPictureIO2(fileName string, format string) *QPictureIO

func NewQPictureIOFromPointer

func NewQPictureIOFromPointer(cthis unsafe.Pointer) *QPictureIO

func (*QPictureIO) Description

func (this *QPictureIO) Description() string

func (*QPictureIO) FileName

func (this *QPictureIO) FileName() string

func (*QPictureIO) Format

func (this *QPictureIO) Format() string

func (*QPictureIO) Gamma

func (this *QPictureIO) Gamma() float32

func (*QPictureIO) GetCthis

func (this *QPictureIO) GetCthis() unsafe.Pointer

func (*QPictureIO) IoDevice

func (this *QPictureIO) IoDevice() *qtcore.QIODevice

func (*QPictureIO) NewForInherit

func (*QPictureIO) NewForInherit() *QPictureIO

func (*QPictureIO) NewForInherit1

func (*QPictureIO) NewForInherit1(ioDevice qtcore.QIODevice_ITF, format string) *QPictureIO

func (*QPictureIO) NewForInherit2

func (*QPictureIO) NewForInherit2(fileName string, format string) *QPictureIO

func (*QPictureIO) NewFromPointer

func (*QPictureIO) NewFromPointer(cthis unsafe.Pointer) *QPictureIO

func (*QPictureIO) Parameters

func (this *QPictureIO) Parameters() string

func (*QPictureIO) Picture

func (this *QPictureIO) Picture() *QPicture

func (*QPictureIO) PictureFormat

func (this *QPictureIO) PictureFormat(fileName string) *qtcore.QByteArray

func (*QPictureIO) PictureFormat1

func (this *QPictureIO) PictureFormat1(arg0 qtcore.QIODevice_ITF) *qtcore.QByteArray

func (*QPictureIO) QPictureIO_PTR

func (ptr *QPictureIO) QPictureIO_PTR() *QPictureIO

func (*QPictureIO) Quality

func (this *QPictureIO) Quality() int

func (*QPictureIO) Read

func (this *QPictureIO) Read() bool

func (*QPictureIO) SetCthis

func (this *QPictureIO) SetCthis(cthis unsafe.Pointer)

func (*QPictureIO) SetDescription

func (this *QPictureIO) SetDescription(arg0 string)

func (*QPictureIO) SetFileName

func (this *QPictureIO) SetFileName(arg0 string)

func (*QPictureIO) SetFormat

func (this *QPictureIO) SetFormat(arg0 string)

func (*QPictureIO) SetGamma

func (this *QPictureIO) SetGamma(arg0 float32)

func (*QPictureIO) SetIODevice

func (this *QPictureIO) SetIODevice(arg0 qtcore.QIODevice_ITF)

func (*QPictureIO) SetParameters

func (this *QPictureIO) SetParameters(arg0 string)

func (*QPictureIO) SetPicture

func (this *QPictureIO) SetPicture(arg0 QPicture_ITF)

func (*QPictureIO) SetQuality

func (this *QPictureIO) SetQuality(arg0 int)

func (*QPictureIO) SetStatus

func (this *QPictureIO) SetStatus(arg0 int)

func (*QPictureIO) Status

func (this *QPictureIO) Status() int

func (*QPictureIO) Write

func (this *QPictureIO) Write() bool

type QPictureIO_ITF

type QPictureIO_ITF interface {
	QPictureIO_PTR() *QPictureIO
}

type QPicture_ITF

type QPicture_ITF interface {
	QPaintDevice_ITF
	QPicture_PTR() *QPicture
}

type QPixelFormat

type QPixelFormat struct {
	*qtrt.CObject
}

func NewQPixelFormat

func NewQPixelFormat() *QPixelFormat

func NewQPixelFormat1

func NewQPixelFormat1(colorModel int, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage int, alphaPosition int, premultiplied int, typeInterpretation int, byteOrder int, subEnum byte) *QPixelFormat

func NewQPixelFormat1p

func NewQPixelFormat1p(colorModel int, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage int, alphaPosition int, premultiplied int, typeInterpretation int) *QPixelFormat

func NewQPixelFormat1p1

func NewQPixelFormat1p1(colorModel int, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage int, alphaPosition int, premultiplied int, typeInterpretation int, byteOrder int) *QPixelFormat

func NewQPixelFormatFromPointer

func NewQPixelFormatFromPointer(cthis unsafe.Pointer) *QPixelFormat

func QImage_ToPixelFormat

func QImage_ToPixelFormat(format int) *QPixelFormat

func (*QPixelFormat) AlphaPosition

func (this *QPixelFormat) AlphaPosition() int

Accessor function for alphaPosition.

func (*QPixelFormat) AlphaPositionItemName

func (this *QPixelFormat) AlphaPositionItemName(val int) string

func (*QPixelFormat) AlphaPremultipliedItemName

func (this *QPixelFormat) AlphaPremultipliedItemName(val int) string

func (*QPixelFormat) AlphaSize

func (this *QPixelFormat) AlphaSize() byte

Accessor function for the alpha channel size.

func (*QPixelFormat) AlphaUsage

func (this *QPixelFormat) AlphaUsage() int

Accessor function for alphaUsage.

func (*QPixelFormat) AlphaUsageItemName

func (this *QPixelFormat) AlphaUsageItemName(val int) string

func (*QPixelFormat) BitsPerPixel

func (this *QPixelFormat) BitsPerPixel() byte

Accessor function for the bits used per pixel. This function returns the sum of the color channels + the size of the alpha channel.

func (*QPixelFormat) BlackSize

func (this *QPixelFormat) BlackSize() byte

Accessor function for the black/key color channel.

func (*QPixelFormat) BlueSize

func (this *QPixelFormat) BlueSize() byte

Accessor function for the size of the blue color channel.

func (*QPixelFormat) BrightnessSize

func (this *QPixelFormat) BrightnessSize() byte

Accessor function for the brightness channel size.

func (*QPixelFormat) ByteOrder

func (this *QPixelFormat) ByteOrder() int

The byte order is almost always set the the byte order of the current system. However, it can be useful to describe some YUV formats. This function should never return QPixelFormat::CurrentSystemEndian as this value is translated to a endian value in the constructor.

func (*QPixelFormat) ByteOrderItemName

func (this *QPixelFormat) ByteOrderItemName(val int) string

func (*QPixelFormat) ChannelCount

func (this *QPixelFormat) ChannelCount() byte

Accessor function for getting the channelCount. Channel Count is deduced by color channels with a size > 0 and if the size of the alpha channel is > 0.

func (*QPixelFormat) ColorModel

func (this *QPixelFormat) ColorModel() int

Accessor function for getting the colorModel.

func (*QPixelFormat) ColorModelItemName

func (this *QPixelFormat) ColorModelItemName(val int) string

func (*QPixelFormat) CyanSize

func (this *QPixelFormat) CyanSize() byte

Accessor function for the cyan color channel.

func (*QPixelFormat) FieldItemName

func (this *QPixelFormat) FieldItemName(val int) string

func (*QPixelFormat) FieldWidthItemName

func (this *QPixelFormat) FieldWidthItemName(val int) string

func (*QPixelFormat) GetCthis

func (this *QPixelFormat) GetCthis() unsafe.Pointer

func (*QPixelFormat) GreenSize

func (this *QPixelFormat) GreenSize() byte

Accessor function for the size of the green color channel.

func (*QPixelFormat) HueSize

func (this *QPixelFormat) HueSize() byte

Accessor function for the hue channel size.

func (*QPixelFormat) LightnessSize

func (this *QPixelFormat) LightnessSize() byte

Accessor function for the lightness channel size.

func (*QPixelFormat) MagentaSize

func (this *QPixelFormat) MagentaSize() byte

Accessor function for the megenta color channel.

func (*QPixelFormat) NewForInherit

func (*QPixelFormat) NewForInherit() *QPixelFormat

Creates a null pixelformat. This format maps to QImage::Format_Invalid.

func (*QPixelFormat) NewForInherit1

func (*QPixelFormat) NewForInherit1(colorModel int, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage int, alphaPosition int, premultiplied int, typeInterpretation int, byteOrder int, subEnum byte) *QPixelFormat

Creates a null pixelformat. This format maps to QImage::Format_Invalid.

func (*QPixelFormat) NewForInherit1p

func (*QPixelFormat) NewForInherit1p(colorModel int, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage int, alphaPosition int, premultiplied int, typeInterpretation int) *QPixelFormat

Creates a null pixelformat. This format maps to QImage::Format_Invalid.

func (*QPixelFormat) NewForInherit1p1

func (*QPixelFormat) NewForInherit1p1(colorModel int, firstSize byte, secondSize byte, thirdSize byte, fourthSize byte, fifthSize byte, alphaSize byte, alphaUsage int, alphaPosition int, premultiplied int, typeInterpretation int, byteOrder int) *QPixelFormat

Creates a null pixelformat. This format maps to QImage::Format_Invalid.

func (*QPixelFormat) NewFromPointer

func (*QPixelFormat) NewFromPointer(cthis unsafe.Pointer) *QPixelFormat

func (*QPixelFormat) Premultiplied

func (this *QPixelFormat) Premultiplied() int

Accessor function for the AlphaPremultiplied enum. This indicates if the alpha channel is multiplied in to the color channels.

func (*QPixelFormat) QPixelFormat_PTR

func (ptr *QPixelFormat) QPixelFormat_PTR() *QPixelFormat

func (*QPixelFormat) RedSize

func (this *QPixelFormat) RedSize() byte

Accessor function for the size of the red color channel.

func (*QPixelFormat) SaturationSize

func (this *QPixelFormat) SaturationSize() byte

Accessor function for the saturation channel size.

func (*QPixelFormat) SetCthis

func (this *QPixelFormat) SetCthis(cthis unsafe.Pointer)

func (*QPixelFormat) SubEnum

func (this *QPixelFormat) SubEnum() byte

func (*QPixelFormat) TypeInterpretation

func (this *QPixelFormat) TypeInterpretation() int

Accessor function for the type representation of a color channel or a pixel.

See also TypeInterpretation.

func (*QPixelFormat) TypeInterpretationItemName

func (this *QPixelFormat) TypeInterpretationItemName(val int) string

func (*QPixelFormat) YUVLayoutItemName

func (this *QPixelFormat) YUVLayoutItemName(val int) string

func (*QPixelFormat) YellowSize

func (this *QPixelFormat) YellowSize() byte

Accessor function for the yellow color channel.

func (*QPixelFormat) YuvLayout

func (this *QPixelFormat) YuvLayout() int

Accessor function for the YUVLayout. It is difficult to describe the color channels of a YUV pixel format since YUV color model uses macro pixels. Instead the layout of the pixels are stored as an enum.

type QPixelFormat_ITF

type QPixelFormat_ITF interface {
	QPixelFormat_PTR() *QPixelFormat
}

type QPixelFormat__AlphaPosition

type QPixelFormat__AlphaPosition = int

This enum type is used to describe the alpha channels position relative to the color channels.

const QPixelFormat__AtBeginning QPixelFormat__AlphaPosition = 0

The alpha channel will be put in front of the color channels . E.g. ARGB.

const QPixelFormat__AtEnd QPixelFormat__AlphaPosition = 1

The alpha channel will be put in the back of the color channels. E.g. RGBA.

type QPixelFormat__AlphaPremultiplied

type QPixelFormat__AlphaPremultiplied = int

This enum type describes the boolean state if the alpha channel is multiplied into the color channels or not.

const QPixelFormat__NotPremultiplied QPixelFormat__AlphaPremultiplied = 0

The alpha channel is not multiplied into the color channels.

const QPixelFormat__Premultiplied QPixelFormat__AlphaPremultiplied = 1

The alpha channel is multiplied into the color channels.

type QPixelFormat__AlphaUsage

type QPixelFormat__AlphaUsage = int

This enum describes if the alpha channel is used or not. Sometimes the pixelformat will have a size for the alpha channel, but the pixel format does actually not use the alpha channel. For example RGB32 is such a format. The RGB channels are 8 bits each, and there is no alpha channel. But the complete size for each pixel is 32. Therefore the alpha channel size is 8, but the alpha channel is ignored. Its important to note that in such situations the position of the alpha channel is significant.

const QPixelFormat__IgnoresAlpha QPixelFormat__AlphaUsage = 1

The alpha channel is not used.

const QPixelFormat__UsesAlpha QPixelFormat__AlphaUsage = 0

The alpha channel is used.

type QPixelFormat__ByteOrder

type QPixelFormat__ByteOrder = int

This enum describes the ByteOrder of the pixel format. This enum is mostly ignored but have some use cases for YUV formats. BGR formats have their own color model, and should not be described by using the opposite endianness on an RGB format.

const QPixelFormat__BigEndian QPixelFormat__ByteOrder = 1

The byte order is big endian.

const QPixelFormat__CurrentSystemEndian QPixelFormat__ByteOrder = 2

This enum will not be stored, but is converted in the constructor to the endian enum that matches the enum of the current system.

const QPixelFormat__LittleEndian QPixelFormat__ByteOrder = 0

The byte order is little endian.

type QPixelFormat__ColorModel

type QPixelFormat__ColorModel = int

This enum type is used to describe the color model of the pixelformat. Alpha was added in 5.5.

const QPixelFormat__Alpha QPixelFormat__ColorModel = 8

There is no color model, only alpha is used.

const QPixelFormat__BGR QPixelFormat__ColorModel = 1

This is logically the opposite endian version of RGB. However, for ease of use it has its own model.

const QPixelFormat__CMYK QPixelFormat__ColorModel = 4

The color model is CMYK.

const QPixelFormat__Grayscale QPixelFormat__ColorModel = 3

The color model is Grayscale.

const QPixelFormat__HSL QPixelFormat__ColorModel = 5

The color model is HSL.

const QPixelFormat__HSV QPixelFormat__ColorModel = 6

The color model is HSV.

const QPixelFormat__Indexed QPixelFormat__ColorModel = 2

The color model uses a color palette.

const QPixelFormat__RGB QPixelFormat__ColorModel = 0

The color model is RGB.

const QPixelFormat__YUV QPixelFormat__ColorModel = 7

The color model is YUV.

type QPixelFormat__Field

type QPixelFormat__Field = int
const QPixelFormat__AlphaField QPixelFormat__Field = 34
const QPixelFormat__AlphaPositionField QPixelFormat__Field = 41
const QPixelFormat__AlphaUsageField QPixelFormat__Field = 40
const QPixelFormat__ByteOrderField QPixelFormat__Field = 47
const QPixelFormat__FifthField QPixelFormat__Field = 28
const QPixelFormat__FirstField QPixelFormat__Field = 4
const QPixelFormat__FourthField QPixelFormat__Field = 22
const QPixelFormat__ModelField QPixelFormat__Field = 0
const QPixelFormat__PremulField QPixelFormat__Field = 42
const QPixelFormat__SecondField QPixelFormat__Field = 10
const QPixelFormat__SubEnumField QPixelFormat__Field = 49
const QPixelFormat__ThirdField QPixelFormat__Field = 16
const QPixelFormat__TotalFieldWidthByOffsets QPixelFormat__Field = 64
const QPixelFormat__TypeInterpretationField QPixelFormat__Field = 43
const QPixelFormat__UnusedField QPixelFormat__Field = 55

type QPixelFormat__FieldWidth

type QPixelFormat__FieldWidth = int
const QPixelFormat__AlphaFieldWidth QPixelFormat__FieldWidth = 6
const QPixelFormat__AlphaPositionFieldWidth QPixelFormat__FieldWidth = 1
const QPixelFormat__AlphaUsageFieldWidth QPixelFormat__FieldWidth = 1
const QPixelFormat__ByteOrderFieldWidth QPixelFormat__FieldWidth = 2
const QPixelFormat__FifthFieldWidth QPixelFormat__FieldWidth = 6
const QPixelFormat__FirstFieldWidth QPixelFormat__FieldWidth = 6
const QPixelFormat__FourthFieldWidth QPixelFormat__FieldWidth = 6
const QPixelFormat__ModelFieldWidth QPixelFormat__FieldWidth = 4
const QPixelFormat__PremulFieldWidth QPixelFormat__FieldWidth = 1
const QPixelFormat__SecondFieldWidth QPixelFormat__FieldWidth = 6
const QPixelFormat__SubEnumFieldWidth QPixelFormat__FieldWidth = 6
const QPixelFormat__ThirdFieldWidth QPixelFormat__FieldWidth = 6
const QPixelFormat__TotalFieldWidthByWidths QPixelFormat__FieldWidth = 64
const QPixelFormat__TypeInterpretationFieldWidth QPixelFormat__FieldWidth = 4
const QPixelFormat__UnusedFieldWidth QPixelFormat__FieldWidth = 9

type QPixelFormat__TypeInterpretation

type QPixelFormat__TypeInterpretation = int

This enum describes how each pixel is interpreted. If a pixel is read as a full 32 bit unsigned integer and then each channel is masked out, or if each byte is read as unsigned char values. Typically QImage formats interpret one pixel as an unsigned integer and then the color channels are masked out. OpenGL on the other hand typically interpreted pixels "one byte after the other", Ie. unsigned byte.

QImage also have the format Format_RGBA8888 (and its derivatives), where the pixels are interpreted as unsigned bytes. OpenGL has extensions that makes it possible to upload pixel buffers in an unsigned integer format.

The image above shows a ARGB pixel in memory read as an unsigned integer. However, if this pixel was read byte for byte on a little endian system the first byte would be the byte containing the B-channel. The next byte would be the G-channel, then the R-channel and finally the A-channel. This shows that on little endian systems, how each pixel is interpreted is significant for integer formats. This is not the case on big endian systems.

ConstantValue QPixelFormat::UnsignedInteger0 QPixelFormat::UnsignedShort1 QPixelFormat::UnsignedByte2 QPixelFormat::FloatingPoint3

const QPixelFormat__FloatingPoint QPixelFormat__TypeInterpretation = 3
const QPixelFormat__UnsignedByte QPixelFormat__TypeInterpretation = 2
const QPixelFormat__UnsignedInteger QPixelFormat__TypeInterpretation = 0
const QPixelFormat__UnsignedShort QPixelFormat__TypeInterpretation = 1

type QPixelFormat__YUVLayout

type QPixelFormat__YUVLayout = int

YUV is not represented by describing the size of the color channels. This is because YUV often use macro pixels, making the concept of sperate color channels invalid. Instead the different YUV layouts are described with this enum.

ConstantValue QPixelFormat::UYVY6 QPixelFormat::YUYV7

const QPixelFormat__IMC1 QPixelFormat__YUVLayout = 10

0

const QPixelFormat__IMC2 QPixelFormat__YUVLayout = 11

1

const QPixelFormat__IMC3 QPixelFormat__YUVLayout = 12

2

const QPixelFormat__IMC4 QPixelFormat__YUVLayout = 13

3

const QPixelFormat__NV12 QPixelFormat__YUVLayout = 8
const QPixelFormat__NV21 QPixelFormat__YUVLayout = 9
const QPixelFormat__UYVY QPixelFormat__YUVLayout = 6
const QPixelFormat__Y16 QPixelFormat__YUVLayout = 15

5

const QPixelFormat__Y8 QPixelFormat__YUVLayout = 14

4

const QPixelFormat__YUV411 QPixelFormat__YUVLayout = 2
const QPixelFormat__YUV420P QPixelFormat__YUVLayout = 3
const QPixelFormat__YUV420SP QPixelFormat__YUVLayout = 4
const QPixelFormat__YUV422 QPixelFormat__YUVLayout = 1
const QPixelFormat__YUV444 QPixelFormat__YUVLayout = 0
const QPixelFormat__YUYV QPixelFormat__YUVLayout = 7
const QPixelFormat__YV12 QPixelFormat__YUVLayout = 5

type QPixmap

type QPixmap struct {
	*QPaintDevice
}

func NewQPixmap

func NewQPixmap() *QPixmap

func NewQPixmap1

func NewQPixmap1(w int, h int) *QPixmap

func NewQPixmap2

func NewQPixmap2(arg0 qtcore.QSize_ITF) *QPixmap

func NewQPixmap3

func NewQPixmap3(fileName string, format string, flags int) *QPixmap

func NewQPixmap3p

func NewQPixmap3p(fileName string) *QPixmap

func NewQPixmap3p1

func NewQPixmap3p1(fileName string, format string) *QPixmap

func NewQPixmap4

func NewQPixmap4(xpm []string) *QPixmap

func NewQPixmapFromPointer

func NewQPixmapFromPointer(cthis unsafe.Pointer) *QPixmap

func QPixmapCache_Find

func QPixmapCache_Find(key string) *QPixmap

func QPixmap_FromImage

func QPixmap_FromImage(image QImage_ITF, flags int) *QPixmap

func QPixmap_FromImage1

func QPixmap_FromImage1(image unsafe.Pointer, flags int) *QPixmap

func QPixmap_FromImageInPlace

func QPixmap_FromImageInPlace(image QImage_ITF, flags int) *QPixmap

func QPixmap_FromImageReader

func QPixmap_FromImageReader(imageReader QImageReader_ITF, flags int) *QPixmap

func QPixmap_GrabWidget

func QPixmap_GrabWidget(widget qtcore.QObject_ITF, rect qtcore.QRect_ITF) *QPixmap

func QPixmap_GrabWidget1

func QPixmap_GrabWidget1(widget qtcore.QObject_ITF, x int, y int, w int, h int) *QPixmap

func QPixmap_GrabWindow

func QPixmap_GrabWindow(arg0 uint64, x int, y int, w int, h int) *QPixmap

func (*QPixmap) CacheKey

func (this *QPixmap) CacheKey() int64

Returns a number that identifies this QPixmap. Distinct QPixmap objects can only have the same cache key if they refer to the same contents.

The cacheKey() will change when the pixmap is altered.

func (*QPixmap) ConvertFromImage

func (this *QPixmap) ConvertFromImage(img QImage_ITF, flags int) bool

Replaces this pixmap's data with the given image using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options. Returns true if the result is that this pixmap is not null.

Note: this function was part of Qt 3 support in Qt 4.6 and earlier. It has been promoted to official API status in 4.7 to support updating the pixmap's image without creating a new QPixmap as fromImage() would.

This function was introduced in Qt 4.7.

See also fromImage().

func (*QPixmap) ConvertFromImagep

func (this *QPixmap) ConvertFromImagep(img QImage_ITF) bool

Replaces this pixmap's data with the given image using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options. Returns true if the result is that this pixmap is not null.

Note: this function was part of Qt 3 support in Qt 4.6 and earlier. It has been promoted to official API status in 4.7 to support updating the pixmap's image without creating a new QPixmap as fromImage() would.

This function was introduced in Qt 4.7.

See also fromImage().

func (*QPixmap) Copy

func (this *QPixmap) Copy(x int, y int, width int, height int) *QPixmap

Returns a deep copy of the subset of the pixmap that is specified by the given rectangle. For more information on deep copies, see the Implicit Data Sharing documentation.

If the given rectangle is empty, the whole image is copied.

See also operator=(), QPixmap(), and Pixmap Transformations.

func (*QPixmap) Copy1

func (this *QPixmap) Copy1(rect qtcore.QRect_ITF) *QPixmap

Returns a deep copy of the subset of the pixmap that is specified by the given rectangle. For more information on deep copies, see the Implicit Data Sharing documentation.

If the given rectangle is empty, the whole image is copied.

See also operator=(), QPixmap(), and Pixmap Transformations.

func (*QPixmap) Copy1p

func (this *QPixmap) Copy1p() *QPixmap

Returns a deep copy of the subset of the pixmap that is specified by the given rectangle. For more information on deep copies, see the Implicit Data Sharing documentation.

If the given rectangle is empty, the whole image is copied.

See also operator=(), QPixmap(), and Pixmap Transformations.

func (*QPixmap) CreateHeuristicMask

func (this *QPixmap) CreateHeuristicMask(clipTight bool) *QBitmap

Creates and returns a heuristic mask for this pixmap.

The function works by selecting a color from one of the corners and then chipping away pixels of that color, starting at all the edges. If clipTight is true (the default) the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.

The mask may not be perfect but it should be reasonable, so you can do things such as the following:

QPixmap myPixmap;
myPixmap.setMask(myPixmap.createHeuristicMask());

This function is slow because it involves converting to/from a QImage, and non-trivial computations.

See also QImage::createHeuristicMask() and createMaskFromColor().

func (*QPixmap) CreateHeuristicMaskp

func (this *QPixmap) CreateHeuristicMaskp() *QBitmap

Creates and returns a heuristic mask for this pixmap.

The function works by selecting a color from one of the corners and then chipping away pixels of that color, starting at all the edges. If clipTight is true (the default) the mask is just large enough to cover the pixels; otherwise, the mask is larger than the data pixels.

The mask may not be perfect but it should be reasonable, so you can do things such as the following:

QPixmap myPixmap;
myPixmap.setMask(myPixmap.createHeuristicMask());

This function is slow because it involves converting to/from a QImage, and non-trivial computations.

See also QImage::createHeuristicMask() and createMaskFromColor().

func (*QPixmap) CreateMaskFromColor

func (this *QPixmap) CreateMaskFromColor(maskColor QColor_ITF, mode int) *QBitmap

Creates and returns a mask for this pixmap based on the given maskColor. If the mode is Qt::MaskInColor, all pixels matching the maskColor will be transparent. If mode is Qt::MaskOutColor, all pixels matching the maskColor will be opaque.

This function is slow because it involves converting to/from a QImage.

See also createHeuristicMask() and QImage::createMaskFromColor().

func (*QPixmap) CreateMaskFromColorp

func (this *QPixmap) CreateMaskFromColorp(maskColor QColor_ITF) *QBitmap

Creates and returns a mask for this pixmap based on the given maskColor. If the mode is Qt::MaskInColor, all pixels matching the maskColor will be transparent. If mode is Qt::MaskOutColor, all pixels matching the maskColor will be opaque.

This function is slow because it involves converting to/from a QImage.

See also createHeuristicMask() and QImage::createMaskFromColor().

func (*QPixmap) DefaultDepth

func (this *QPixmap) DefaultDepth() int

Returns the default pixmap depth used by the application.

On all platforms the depth of the primary screen will be returned.

Note: QGuiApplication must be created before calling this function.

See also depth(), QColormap::depth(), and Pixmap Information.

func (*QPixmap) Depth

func (this *QPixmap) Depth() int

Returns the depth of the pixmap.

The pixmap depth is also called bits per pixel (bpp) or bit planes of a pixmap. A null pixmap has depth 0.

See also defaultDepth() and Pixmap Information.

func (*QPixmap) Detach

func (this *QPixmap) Detach()

Detaches the pixmap from shared pixmap data.

A pixmap is automatically detached by Qt whenever its contents are about to change. This is done in almost all QPixmap member functions that modify the pixmap (fill(), fromImage(), load(), etc.), and in QPainter::begin() on a pixmap.

There are two exceptions in which detach() must be called explicitly, that is when calling the handle() or the x11PictureHandle() function (only available on X11). Otherwise, any modifications done using system calls, will be performed on the shared data.

The detach() function returns immediately if there is just a single reference or if the pixmap has not been initialized yet.

func (*QPixmap) DevType

func (this *QPixmap) DevType() int

func (*QPixmap) DevicePixelRatio

func (this *QPixmap) DevicePixelRatio() float64

Returns the device pixel ratio for the pixmap. This is the ratio between device pixels and device independent pixels.

Use this function when calculating layout geometry based on the pixmap size: QSize layoutSize = image.size() / image.devicePixelRatio()

The default value is 1.0.

See also setDevicePixelRatio() and QImageReader.

func (*QPixmap) Fill

func (this *QPixmap) Fill(fillColor QColor_ITF)

Fills the pixmap with the given color.

The effect of this function is undefined when the pixmap is being painted on.

See also Pixmap Transformations.

func (*QPixmap) Fill1

func (this *QPixmap) Fill1(device QPaintDevice_ITF, ofs qtcore.QPoint_ITF)

Fills the pixmap with the given color.

The effect of this function is undefined when the pixmap is being painted on.

See also Pixmap Transformations.

func (*QPixmap) Fill2

func (this *QPixmap) Fill2(device QPaintDevice_ITF, xofs int, yofs int)

Fills the pixmap with the given color.

The effect of this function is undefined when the pixmap is being painted on.

See also Pixmap Transformations.

func (*QPixmap) Fillp

func (this *QPixmap) Fillp()

Fills the pixmap with the given color.

The effect of this function is undefined when the pixmap is being painted on.

See also Pixmap Transformations.

func (*QPixmap) FromImage

func (this *QPixmap) FromImage(image QImage_ITF, flags int) *QPixmap

Converts the given image to a pixmap using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.

In case of monochrome and 8-bit images, the image is first converted to a 32-bit pixmap and then filled with the colors in the color table. If this is too expensive an operation, you can use QBitmap::fromImage() instead.

See also fromImageReader(), toImage(), and Pixmap Conversion.

func (*QPixmap) FromImage1

func (this *QPixmap) FromImage1(image unsafe.Pointer, flags int) *QPixmap

Converts the given image to a pixmap using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.

In case of monochrome and 8-bit images, the image is first converted to a 32-bit pixmap and then filled with the colors in the color table. If this is too expensive an operation, you can use QBitmap::fromImage() instead.

See also fromImageReader(), toImage(), and Pixmap Conversion.

func (*QPixmap) FromImage1p

func (this *QPixmap) FromImage1p(image unsafe.Pointer) *QPixmap

Converts the given image to a pixmap using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.

In case of monochrome and 8-bit images, the image is first converted to a 32-bit pixmap and then filled with the colors in the color table. If this is too expensive an operation, you can use QBitmap::fromImage() instead.

See also fromImageReader(), toImage(), and Pixmap Conversion.

func (*QPixmap) FromImageInPlace

func (this *QPixmap) FromImageInPlace(image QImage_ITF, flags int) *QPixmap

func (*QPixmap) FromImageInPlacep

func (this *QPixmap) FromImageInPlacep(image QImage_ITF) *QPixmap

func (*QPixmap) FromImageReader

func (this *QPixmap) FromImageReader(imageReader QImageReader_ITF, flags int) *QPixmap

Create a QPixmap from an image read directly from an imageReader. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.

On some systems, reading an image directly to QPixmap can use less memory than reading a QImage to convert it to QPixmap.

See also fromImage(), toImage(), and Pixmap Conversion.

func (*QPixmap) FromImageReaderp

func (this *QPixmap) FromImageReaderp(imageReader QImageReader_ITF) *QPixmap

Create a QPixmap from an image read directly from an imageReader. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.

On some systems, reading an image directly to QPixmap can use less memory than reading a QImage to convert it to QPixmap.

See also fromImage(), toImage(), and Pixmap Conversion.

func (*QPixmap) FromImagep

func (this *QPixmap) FromImagep(image QImage_ITF) *QPixmap

Converts the given image to a pixmap using the specified flags to control the conversion. The flags argument is a bitwise-OR of the Qt::ImageConversionFlags. Passing 0 for flags sets all the default options.

In case of monochrome and 8-bit images, the image is first converted to a 32-bit pixmap and then filled with the colors in the color table. If this is too expensive an operation, you can use QBitmap::fromImage() instead.

See also fromImageReader(), toImage(), and Pixmap Conversion.

func (*QPixmap) GetCthis

func (this *QPixmap) GetCthis() unsafe.Pointer

func (*QPixmap) GrabWidget

func (this *QPixmap) GrabWidget(widget qtcore.QObject_ITF, rect qtcore.QRect_ITF) *QPixmap

func (*QPixmap) GrabWidget1

func (this *QPixmap) GrabWidget1(widget qtcore.QObject_ITF, x int, y int, w int, h int) *QPixmap

func (*QPixmap) GrabWidget1p

func (this *QPixmap) GrabWidget1p(widget qtcore.QObject_ITF) *QPixmap

func (*QPixmap) GrabWidget1p1

func (this *QPixmap) GrabWidget1p1(widget qtcore.QObject_ITF, x int) *QPixmap

func (*QPixmap) GrabWidget1p2

func (this *QPixmap) GrabWidget1p2(widget qtcore.QObject_ITF, x int, y int) *QPixmap

func (*QPixmap) GrabWidget1p3

func (this *QPixmap) GrabWidget1p3(widget qtcore.QObject_ITF, x int, y int, w int) *QPixmap

func (*QPixmap) GrabWindow

func (this *QPixmap) GrabWindow(arg0 uint64, x int, y int, w int, h int) *QPixmap

func (*QPixmap) GrabWindowp

func (this *QPixmap) GrabWindowp(arg0 uint64) *QPixmap

func (*QPixmap) GrabWindowp1

func (this *QPixmap) GrabWindowp1(arg0 uint64, x int) *QPixmap

func (*QPixmap) GrabWindowp2

func (this *QPixmap) GrabWindowp2(arg0 uint64, x int, y int) *QPixmap

func (*QPixmap) GrabWindowp3

func (this *QPixmap) GrabWindowp3(arg0 uint64, x int, y int, w int) *QPixmap

func (*QPixmap) HasAlpha

func (this *QPixmap) HasAlpha() bool

Returns true if this pixmap has an alpha channel, or has a mask, otherwise returns false.

See also hasAlphaChannel() and mask().

func (*QPixmap) HasAlphaChannel

func (this *QPixmap) HasAlphaChannel() bool

Returns true if the pixmap has a format that respects the alpha channel, otherwise returns false.

See also hasAlpha().

func (*QPixmap) Height

func (this *QPixmap) Height() int

Returns the height of the pixmap.

See also size() and Pixmap Information.

func (*QPixmap) InheritFromImageInPlace

func (this *QPixmap) InheritFromImageInPlace(f func(image *QImage, flags int) unsafe.Pointer)

QPixmap fromImageInPlace(QImage &, Qt::ImageConversionFlags)

func (*QPixmap) InheritMetric

func (this *QPixmap) InheritMetric(f func(arg0 int) int)

int metric(QPaintDevice::PaintDeviceMetric)

func (*QPixmap) IsDetached

func (this *QPixmap) IsDetached() bool

func (*QPixmap) IsNull

func (this *QPixmap) IsNull() bool

Returns true if this is a null pixmap; otherwise returns false.

A null pixmap has zero width, zero height and no contents. You cannot draw in a null pixmap.

func (*QPixmap) IsQBitmap

func (this *QPixmap) IsQBitmap() bool

Returns true if this is a QBitmap; otherwise returns false.

func (*QPixmap) Load

func (this *QPixmap) Load(fileName string, format string, flags int) bool

Loads a pixmap from the file with the given fileName. Returns true if the pixmap was successfully loaded; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

The file name can either refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed pixmaps and other resource files in the application's executable.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

Note that QPixmaps are automatically added to the QPixmapCache when loaded from a file; the key used is internal and can not be acquired.

See also loadFromData() and Reading and Writing Image Files.

func (*QPixmap) LoadFromData

func (this *QPixmap) LoadFromData(buf unsafe.Pointer, len_ uint, format string, flags int) bool

Loads a pixmap from the len first bytes of the given binary data. Returns true if the pixmap was loaded successfully; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

See also load() and Reading and Writing Image Files.

func (*QPixmap) LoadFromData1

func (this *QPixmap) LoadFromData1(data qtcore.QByteArray_ITF, format string, flags int) bool

Loads a pixmap from the len first bytes of the given binary data. Returns true if the pixmap was loaded successfully; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

See also load() and Reading and Writing Image Files.

func (*QPixmap) LoadFromData1p

func (this *QPixmap) LoadFromData1p(data qtcore.QByteArray_ITF) bool

Loads a pixmap from the len first bytes of the given binary data. Returns true if the pixmap was loaded successfully; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

See also load() and Reading and Writing Image Files.

func (*QPixmap) LoadFromData1p1

func (this *QPixmap) LoadFromData1p1(data qtcore.QByteArray_ITF, format string) bool

Loads a pixmap from the len first bytes of the given binary data. Returns true if the pixmap was loaded successfully; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

See also load() and Reading and Writing Image Files.

func (*QPixmap) LoadFromDatap

func (this *QPixmap) LoadFromDatap(buf unsafe.Pointer, len_ uint) bool

Loads a pixmap from the len first bytes of the given binary data. Returns true if the pixmap was loaded successfully; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

See also load() and Reading and Writing Image Files.

func (*QPixmap) LoadFromDatap1

func (this *QPixmap) LoadFromDatap1(buf unsafe.Pointer, len_ uint, format string) bool

Loads a pixmap from the len first bytes of the given binary data. Returns true if the pixmap was loaded successfully; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

See also load() and Reading and Writing Image Files.

func (*QPixmap) Loadp

func (this *QPixmap) Loadp(fileName string) bool

Loads a pixmap from the file with the given fileName. Returns true if the pixmap was successfully loaded; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

The file name can either refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed pixmaps and other resource files in the application's executable.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

Note that QPixmaps are automatically added to the QPixmapCache when loaded from a file; the key used is internal and can not be acquired.

See also loadFromData() and Reading and Writing Image Files.

func (*QPixmap) Loadp1

func (this *QPixmap) Loadp1(fileName string, format string) bool

Loads a pixmap from the file with the given fileName. Returns true if the pixmap was successfully loaded; otherwise invalidates the pixmap and returns false.

The loader attempts to read the pixmap using the specified format. If the format is not specified (which is the default), the loader probes the file for a header to guess the file format.

The file name can either refer to an actual file on disk or to one of the application's embedded resources. See the Resource System overview for details on how to embed pixmaps and other resource files in the application's executable.

If the data needs to be modified to fit in a lower-resolution result (e.g. converting from 32-bit to 8-bit), use the flags to control the conversion.

Note that QPixmaps are automatically added to the QPixmapCache when loaded from a file; the key used is internal and can not be acquired.

See also loadFromData() and Reading and Writing Image Files.

func (*QPixmap) Mask

func (this *QPixmap) Mask() *QBitmap

Extracts a bitmap mask from the pixmap's alpha channel.

Warning: This is potentially an expensive operation. The mask of the pixmap is extracted dynamically from the pixeldata.

See also setMask() and Pixmap Information.

func (*QPixmap) Metric

func (this *QPixmap) Metric(arg0 int) int

func (*QPixmap) NewForInherit

func (*QPixmap) NewForInherit() *QPixmap

Constructs a null pixmap.

See also isNull().

func (*QPixmap) NewForInherit1

func (*QPixmap) NewForInherit1(w int, h int) *QPixmap

Constructs a null pixmap.

See also isNull().

func (*QPixmap) NewForInherit2

func (*QPixmap) NewForInherit2(arg0 qtcore.QSize_ITF) *QPixmap

Constructs a null pixmap.

See also isNull().

func (*QPixmap) NewForInherit3

func (*QPixmap) NewForInherit3(fileName string, format string, flags int) *QPixmap

Constructs a null pixmap.

See also isNull().

func (*QPixmap) NewForInherit3p

func (*QPixmap) NewForInherit3p(fileName string) *QPixmap

Constructs a null pixmap.

See also isNull().

func (*QPixmap) NewForInherit3p1

func (*QPixmap) NewForInherit3p1(fileName string, format string) *QPixmap

Constructs a null pixmap.

See also isNull().

func (*QPixmap) NewForInherit4

func (*QPixmap) NewForInherit4(xpm []string) *QPixmap

Constructs a null pixmap.

See also isNull().

func (*QPixmap) NewFromPointer

func (*QPixmap) NewFromPointer(cthis unsafe.Pointer) *QPixmap

func (*QPixmap) Operator_equal

func (this *QPixmap) Operator_equal(arg0 QPixmap_ITF) *QPixmap

func (*QPixmap) Operator_equal1

func (this *QPixmap) Operator_equal1(other unsafe.Pointer) *QPixmap

func (*QPixmap) Operator_not

func (this *QPixmap) Operator_not() bool

func (*QPixmap) PaintEngine

func (this *QPixmap) PaintEngine() *QPaintEngine

func (*QPixmap) QPixmap_PTR

func (ptr *QPixmap) QPixmap_PTR() *QPixmap

func (*QPixmap) Rect

func (this *QPixmap) Rect() *qtcore.QRect

Returns the pixmap's enclosing rectangle.

See also Pixmap Information.

func (*QPixmap) Save

func (this *QPixmap) Save(fileName string, format string, quality int) bool

Saves the pixmap to the file with the given fileName using the specified image file format and quality factor. Returns true if successful; otherwise returns false.

The quality factor must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings.

If format is 0, an image format will be chosen from fileName's suffix.

See also Reading and Writing Image Files.

func (*QPixmap) Save1

func (this *QPixmap) Save1(device qtcore.QIODevice_ITF, format string, quality int) bool

Saves the pixmap to the file with the given fileName using the specified image file format and quality factor. Returns true if successful; otherwise returns false.

The quality factor must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings.

If format is 0, an image format will be chosen from fileName's suffix.

See also Reading and Writing Image Files.

func (*QPixmap) Save1p

func (this *QPixmap) Save1p(device qtcore.QIODevice_ITF) bool

Saves the pixmap to the file with the given fileName using the specified image file format and quality factor. Returns true if successful; otherwise returns false.

The quality factor must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings.

If format is 0, an image format will be chosen from fileName's suffix.

See also Reading and Writing Image Files.

func (*QPixmap) Save1p1

func (this *QPixmap) Save1p1(device qtcore.QIODevice_ITF, format string) bool

Saves the pixmap to the file with the given fileName using the specified image file format and quality factor. Returns true if successful; otherwise returns false.

The quality factor must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings.

If format is 0, an image format will be chosen from fileName's suffix.

See also Reading and Writing Image Files.

func (*QPixmap) Savep

func (this *QPixmap) Savep(fileName string) bool

Saves the pixmap to the file with the given fileName using the specified image file format and quality factor. Returns true if successful; otherwise returns false.

The quality factor must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings.

If format is 0, an image format will be chosen from fileName's suffix.

See also Reading and Writing Image Files.

func (*QPixmap) Savep1

func (this *QPixmap) Savep1(fileName string, format string) bool

Saves the pixmap to the file with the given fileName using the specified image file format and quality factor. Returns true if successful; otherwise returns false.

The quality factor must be in the range [0,100] or -1. Specify 0 to obtain small compressed files, 100 for large uncompressed files, and -1 to use the default settings.

If format is 0, an image format will be chosen from fileName's suffix.

See also Reading and Writing Image Files.

func (*QPixmap) Scaled

func (this *QPixmap) Scaled(w int, h int, aspectMode int, mode int) *QPixmap

Scales the pixmap to the given size, using the aspect ratio and transformation modes specified by aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the pixmap is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null pixmap.

In some cases it can be more beneficial to draw the pixmap to a painter with a scale set rather than scaling the pixmap. This is the case when the painter is for instance based on OpenGL or when the scale factor changes rapidly.

See also isNull() and Pixmap Transformations.

func (*QPixmap) Scaled1

func (this *QPixmap) Scaled1(s qtcore.QSize_ITF, aspectMode int, mode int) *QPixmap

Scales the pixmap to the given size, using the aspect ratio and transformation modes specified by aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the pixmap is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null pixmap.

In some cases it can be more beneficial to draw the pixmap to a painter with a scale set rather than scaling the pixmap. This is the case when the painter is for instance based on OpenGL or when the scale factor changes rapidly.

See also isNull() and Pixmap Transformations.

func (*QPixmap) Scaled1p

func (this *QPixmap) Scaled1p(s qtcore.QSize_ITF) *QPixmap

Scales the pixmap to the given size, using the aspect ratio and transformation modes specified by aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the pixmap is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null pixmap.

In some cases it can be more beneficial to draw the pixmap to a painter with a scale set rather than scaling the pixmap. This is the case when the painter is for instance based on OpenGL or when the scale factor changes rapidly.

See also isNull() and Pixmap Transformations.

func (*QPixmap) Scaled1p1

func (this *QPixmap) Scaled1p1(s qtcore.QSize_ITF, aspectMode int) *QPixmap

Scales the pixmap to the given size, using the aspect ratio and transformation modes specified by aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the pixmap is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null pixmap.

In some cases it can be more beneficial to draw the pixmap to a painter with a scale set rather than scaling the pixmap. This is the case when the painter is for instance based on OpenGL or when the scale factor changes rapidly.

See also isNull() and Pixmap Transformations.

func (*QPixmap) ScaledToHeight

func (this *QPixmap) ScaledToHeight(h int, mode int) *QPixmap

Returns a scaled copy of the image. The returned image is scaled to the given height using the specified transformation mode. The width of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved.

If height is 0 or negative, a null pixmap is returned.

See also isNull() and Pixmap Transformations.

func (*QPixmap) ScaledToHeightp

func (this *QPixmap) ScaledToHeightp(h int) *QPixmap

Returns a scaled copy of the image. The returned image is scaled to the given height using the specified transformation mode. The width of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved.

If height is 0 or negative, a null pixmap is returned.

See also isNull() and Pixmap Transformations.

func (*QPixmap) ScaledToWidth

func (this *QPixmap) ScaledToWidth(w int, mode int) *QPixmap

Returns a scaled copy of the image. The returned image is scaled to the given width using the specified transformation mode. The height of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved.

If width is 0 or negative, a null pixmap is returned.

See also isNull() and Pixmap Transformations.

func (*QPixmap) ScaledToWidthp

func (this *QPixmap) ScaledToWidthp(w int) *QPixmap

Returns a scaled copy of the image. The returned image is scaled to the given width using the specified transformation mode. The height of the pixmap is automatically calculated so that the aspect ratio of the pixmap is preserved.

If width is 0 or negative, a null pixmap is returned.

See also isNull() and Pixmap Transformations.

func (*QPixmap) Scaledp

func (this *QPixmap) Scaledp(w int, h int) *QPixmap

Scales the pixmap to the given size, using the aspect ratio and transformation modes specified by aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the pixmap is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null pixmap.

In some cases it can be more beneficial to draw the pixmap to a painter with a scale set rather than scaling the pixmap. This is the case when the painter is for instance based on OpenGL or when the scale factor changes rapidly.

See also isNull() and Pixmap Transformations.

func (*QPixmap) Scaledp1

func (this *QPixmap) Scaledp1(w int, h int, aspectMode int) *QPixmap

Scales the pixmap to the given size, using the aspect ratio and transformation modes specified by aspectRatioMode and transformMode.

If aspectRatioMode is Qt::IgnoreAspectRatio, the pixmap is scaled to size. If aspectRatioMode is Qt::KeepAspectRatio, the pixmap is scaled to a rectangle as large as possible inside size, preserving the aspect ratio. If aspectRatioMode is Qt::KeepAspectRatioByExpanding, the pixmap is scaled to a rectangle as small as possible outside size, preserving the aspect ratio.

If the given size is empty, this function returns a null pixmap.

In some cases it can be more beneficial to draw the pixmap to a painter with a scale set rather than scaling the pixmap. This is the case when the painter is for instance based on OpenGL or when the scale factor changes rapidly.

See also isNull() and Pixmap Transformations.

func (*QPixmap) Scroll

func (this *QPixmap) Scroll(dx int, dy int, x int, y int, width int, height int, exposed QRegion_ITF)

This convenience function is equivalent to calling QPixmap::scroll(dx, dy, QRect(x, y, width, height), exposed).

This function was introduced in Qt 4.6.

See also QWidget::scroll() and QGraphicsItem::scroll().

func (*QPixmap) Scroll1

func (this *QPixmap) Scroll1(dx int, dy int, rect qtcore.QRect_ITF, exposed QRegion_ITF)

This convenience function is equivalent to calling QPixmap::scroll(dx, dy, QRect(x, y, width, height), exposed).

This function was introduced in Qt 4.6.

See also QWidget::scroll() and QGraphicsItem::scroll().

func (*QPixmap) Scroll1p

func (this *QPixmap) Scroll1p(dx int, dy int, rect qtcore.QRect_ITF)

This convenience function is equivalent to calling QPixmap::scroll(dx, dy, QRect(x, y, width, height), exposed).

This function was introduced in Qt 4.6.

See also QWidget::scroll() and QGraphicsItem::scroll().

func (*QPixmap) Scrollp

func (this *QPixmap) Scrollp(dx int, dy int, x int, y int, width int, height int)

This convenience function is equivalent to calling QPixmap::scroll(dx, dy, QRect(x, y, width, height), exposed).

This function was introduced in Qt 4.6.

See also QWidget::scroll() and QGraphicsItem::scroll().

func (*QPixmap) SetCthis

func (this *QPixmap) SetCthis(cthis unsafe.Pointer)

func (*QPixmap) SetDevicePixelRatio

func (this *QPixmap) SetDevicePixelRatio(scaleFactor float64)

Sets the device pixel ratio for the pixmap. This is the ratio between image pixels and device-independent pixels.

The default scaleFactor is 1.0. Setting it to something else has two effects:

QPainters that are opened on the pixmap will be scaled. For example, painting on a 200x200 image if with a ratio of 2.0 will result in effective (device-independent) painting bounds of 100x100.

Code paths in Qt that calculate layout geometry based on the pixmap size will take the ratio into account: QSize layoutSize = pixmap.size() / pixmap.devicePixelRatio() The net effect of this is that the pixmap is displayed as high-DPI pixmap rather than a large pixmap (see Drawing High Resolution Versions of Pixmaps and Images).

See also devicePixelRatio().

func (*QPixmap) SetMask

func (this *QPixmap) SetMask(arg0 QBitmap_ITF)

Sets a mask bitmap.

This function merges the mask with the pixmap's alpha channel. A pixel value of 1 on the mask means the pixmap's pixel is unchanged; a value of 0 means the pixel is transparent. The mask must have the same size as this pixmap.

Setting a null mask resets the mask, leaving the previously transparent pixels black. The effect of this function is undefined when the pixmap is being painted on.

Warning: This is potentially an expensive operation.

See also mask(), Pixmap Transformations, and QBitmap.

func (*QPixmap) Size

func (this *QPixmap) Size() *qtcore.QSize

Returns the size of the pixmap.

See also width(), height(), and Pixmap Information.

func (*QPixmap) Swap

func (this *QPixmap) Swap(other QPixmap_ITF)

Swaps pixmap other with this pixmap. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QPixmap) ToImage

func (this *QPixmap) ToImage() *QImage

Converts the pixmap to a QImage. Returns a null image if the conversion fails.

If the pixmap has 1-bit depth, the returned image will also be 1 bit deep. Images with more bits will be returned in a format closely represents the underlying system. Usually this will be QImage::Format_ARGB32_Premultiplied for pixmaps with an alpha and QImage::Format_RGB32 or QImage::Format_RGB16 for pixmaps without alpha.

Note that for the moment, alpha masks on monochrome images are ignored.

See also fromImage() and Image Formats.

func (*QPixmap) Transformed

func (this *QPixmap) Transformed(arg0 QMatrix_ITF, mode int) *QPixmap

Returns a copy of the pixmap that is transformed using the given transformation transform and transformation mode. The original pixmap is not changed.

The transformation transform is internally adjusted to compensate for unwanted translation; i.e. the pixmap produced is the smallest pixmap that contains all the transformed points of the original pixmap. Use the trueMatrix() function to retrieve the actual matrix used for transforming the pixmap.

This function is slow because it involves transformation to a QImage, non-trivial computations and a transformation back to a QPixmap.

See also trueMatrix() and Pixmap Transformations.

func (*QPixmap) Transformed1

func (this *QPixmap) Transformed1(arg0 QTransform_ITF, mode int) *QPixmap

Returns a copy of the pixmap that is transformed using the given transformation transform and transformation mode. The original pixmap is not changed.

The transformation transform is internally adjusted to compensate for unwanted translation; i.e. the pixmap produced is the smallest pixmap that contains all the transformed points of the original pixmap. Use the trueMatrix() function to retrieve the actual matrix used for transforming the pixmap.

This function is slow because it involves transformation to a QImage, non-trivial computations and a transformation back to a QPixmap.

See also trueMatrix() and Pixmap Transformations.

func (*QPixmap) Transformed1p

func (this *QPixmap) Transformed1p(arg0 QTransform_ITF) *QPixmap

Returns a copy of the pixmap that is transformed using the given transformation transform and transformation mode. The original pixmap is not changed.

The transformation transform is internally adjusted to compensate for unwanted translation; i.e. the pixmap produced is the smallest pixmap that contains all the transformed points of the original pixmap. Use the trueMatrix() function to retrieve the actual matrix used for transforming the pixmap.

This function is slow because it involves transformation to a QImage, non-trivial computations and a transformation back to a QPixmap.

See also trueMatrix() and Pixmap Transformations.

func (*QPixmap) Transformedp

func (this *QPixmap) Transformedp(arg0 QMatrix_ITF) *QPixmap

Returns a copy of the pixmap that is transformed using the given transformation transform and transformation mode. The original pixmap is not changed.

The transformation transform is internally adjusted to compensate for unwanted translation; i.e. the pixmap produced is the smallest pixmap that contains all the transformed points of the original pixmap. Use the trueMatrix() function to retrieve the actual matrix used for transforming the pixmap.

This function is slow because it involves transformation to a QImage, non-trivial computations and a transformation back to a QPixmap.

See also trueMatrix() and Pixmap Transformations.

func (*QPixmap) TrueMatrix

func (this *QPixmap) TrueMatrix(m QMatrix_ITF, w int, h int) *QMatrix

Returns the actual matrix used for transforming a pixmap with the given width, height and matrix.

When transforming a pixmap using the transformed() function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e. transformed() returns the smallest pixmap containing all transformed points of the original pixmap. This function returns the modified matrix, which maps points correctly from the original pixmap into the new pixmap.

See also transformed() and Pixmap Transformations.

func (*QPixmap) TrueMatrix1

func (this *QPixmap) TrueMatrix1(m QTransform_ITF, w int, h int) *QTransform

Returns the actual matrix used for transforming a pixmap with the given width, height and matrix.

When transforming a pixmap using the transformed() function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e. transformed() returns the smallest pixmap containing all transformed points of the original pixmap. This function returns the modified matrix, which maps points correctly from the original pixmap into the new pixmap.

See also transformed() and Pixmap Transformations.

func (*QPixmap) Width

func (this *QPixmap) Width() int

Returns the width of the pixmap.

See also size() and Pixmap Information.

type QPixmapCache

type QPixmapCache struct {
	*qtrt.CObject
}

func NewQPixmapCacheFromPointer

func NewQPixmapCacheFromPointer(cthis unsafe.Pointer) *QPixmapCache

func (*QPixmapCache) CacheLimit

func (this *QPixmapCache) CacheLimit() int

Returns the cache limit (in kilobytes).

The default cache limit is 10240 KB.

See also setCacheLimit().

func (*QPixmapCache) Clear

func (this *QPixmapCache) Clear()

Removes all pixmaps from the cache.

func (*QPixmapCache) Find

func (this *QPixmapCache) Find(key string) *QPixmap

Looks for a cached pixmap associated with the given key in the cache. If the pixmap is found, the function sets pixmap to that pixmap and returns true; otherwise it leaves pixmap alone and returns false.

Example:

QPixmap pm;
if (!QPixmapCache::find("my_big_image", &pm)) {
    pm.load("bigimage.png");
    QPixmapCache::insert("my_big_image", pm);
}
painter->drawPixmap(0, 0, pm);

This function was introduced in Qt 4.6.

func (*QPixmapCache) Find1

func (this *QPixmapCache) Find1(key string, pixmap QPixmap_ITF) bool

Looks for a cached pixmap associated with the given key in the cache. If the pixmap is found, the function sets pixmap to that pixmap and returns true; otherwise it leaves pixmap alone and returns false.

Example:

QPixmap pm;
if (!QPixmapCache::find("my_big_image", &pm)) {
    pm.load("bigimage.png");
    QPixmapCache::insert("my_big_image", pm);
}
painter->drawPixmap(0, 0, pm);

This function was introduced in Qt 4.6.

func (*QPixmapCache) Find2

func (this *QPixmapCache) Find2(key string, pixmap QPixmap_ITF) bool

Looks for a cached pixmap associated with the given key in the cache. If the pixmap is found, the function sets pixmap to that pixmap and returns true; otherwise it leaves pixmap alone and returns false.

Example:

QPixmap pm;
if (!QPixmapCache::find("my_big_image", &pm)) {
    pm.load("bigimage.png");
    QPixmapCache::insert("my_big_image", pm);
}
painter->drawPixmap(0, 0, pm);

This function was introduced in Qt 4.6.

func (*QPixmapCache) GetCthis

func (this *QPixmapCache) GetCthis() unsafe.Pointer

func (*QPixmapCache) NewFromPointer

func (*QPixmapCache) NewFromPointer(cthis unsafe.Pointer) *QPixmapCache

func (*QPixmapCache) QPixmapCache_PTR

func (ptr *QPixmapCache) QPixmapCache_PTR() *QPixmapCache

func (*QPixmapCache) Remove

func (this *QPixmapCache) Remove(key string)

Removes the pixmap associated with key from the cache.

func (*QPixmapCache) SetCacheLimit

func (this *QPixmapCache) SetCacheLimit(arg0 int)

Sets the cache limit to n kilobytes.

The default setting is 10240 KB.

See also cacheLimit().

func (*QPixmapCache) SetCthis

func (this *QPixmapCache) SetCthis(cthis unsafe.Pointer)

type QPixmapCache_ITF

type QPixmapCache_ITF interface {
	QPixmapCache_PTR() *QPixmapCache
}

type QPixmap_ITF

type QPixmap_ITF interface {
	QPaintDevice_ITF
	QPixmap_PTR() *QPixmap
}

type QPlatformSurfaceEvent

type QPlatformSurfaceEvent struct {
	*qtcore.QEvent
}

func NewQPlatformSurfaceEvent

func NewQPlatformSurfaceEvent(surfaceEventType int) *QPlatformSurfaceEvent

func NewQPlatformSurfaceEventFromPointer

func NewQPlatformSurfaceEventFromPointer(cthis unsafe.Pointer) *QPlatformSurfaceEvent

func (*QPlatformSurfaceEvent) GetCthis

func (this *QPlatformSurfaceEvent) GetCthis() unsafe.Pointer

func (*QPlatformSurfaceEvent) NewForInherit

func (*QPlatformSurfaceEvent) NewForInherit(surfaceEventType int) *QPlatformSurfaceEvent

func (*QPlatformSurfaceEvent) NewFromPointer

func (*QPlatformSurfaceEvent) QPlatformSurfaceEvent_PTR

func (ptr *QPlatformSurfaceEvent) QPlatformSurfaceEvent_PTR() *QPlatformSurfaceEvent

func (*QPlatformSurfaceEvent) SetCthis

func (this *QPlatformSurfaceEvent) SetCthis(cthis unsafe.Pointer)

func (*QPlatformSurfaceEvent) SurfaceEventType

func (this *QPlatformSurfaceEvent) SurfaceEventType() int

func (*QPlatformSurfaceEvent) SurfaceEventTypeItemName

func (this *QPlatformSurfaceEvent) SurfaceEventTypeItemName(val int) string

type QPlatformSurfaceEvent_ITF

type QPlatformSurfaceEvent_ITF interface {
	qtcore.QEvent_ITF
	QPlatformSurfaceEvent_PTR() *QPlatformSurfaceEvent
}

type QPlatformSurfaceEvent__SurfaceEventType

type QPlatformSurfaceEvent__SurfaceEventType = int
const QPlatformSurfaceEvent__SurfaceAboutToBeDestroyed QPlatformSurfaceEvent__SurfaceEventType = 1
const QPlatformSurfaceEvent__SurfaceCreated QPlatformSurfaceEvent__SurfaceEventType = 0

type QPointingDeviceUniqueId

type QPointingDeviceUniqueId struct {
	*qtrt.CObject
}

func NewQPointingDeviceUniqueId

func NewQPointingDeviceUniqueId() *QPointingDeviceUniqueId

func NewQPointingDeviceUniqueIdFromPointer

func NewQPointingDeviceUniqueIdFromPointer(cthis unsafe.Pointer) *QPointingDeviceUniqueId

func QPointingDeviceUniqueId_FromNumericId

func QPointingDeviceUniqueId_FromNumericId(id int64) *QPointingDeviceUniqueId

func (*QPointingDeviceUniqueId) FromNumericId

func (this *QPointingDeviceUniqueId) FromNumericId(id int64) *QPointingDeviceUniqueId

func (*QPointingDeviceUniqueId) GetCthis

func (this *QPointingDeviceUniqueId) GetCthis() unsafe.Pointer

func (*QPointingDeviceUniqueId) IsValid

func (this *QPointingDeviceUniqueId) IsValid() bool

func (*QPointingDeviceUniqueId) NewForInherit

func (*QPointingDeviceUniqueId) NewFromPointer

func (*QPointingDeviceUniqueId) NumericId

func (this *QPointingDeviceUniqueId) NumericId() int64

func (*QPointingDeviceUniqueId) QPointingDeviceUniqueId_PTR

func (ptr *QPointingDeviceUniqueId) QPointingDeviceUniqueId_PTR() *QPointingDeviceUniqueId

func (*QPointingDeviceUniqueId) SetCthis

func (this *QPointingDeviceUniqueId) SetCthis(cthis unsafe.Pointer)

type QPointingDeviceUniqueId_ITF

type QPointingDeviceUniqueId_ITF interface {
	QPointingDeviceUniqueId_PTR() *QPointingDeviceUniqueId
}

type QPolygon

type QPolygon struct {
	*qtrt.CObject
}

func NewQPolygon

func NewQPolygon() *QPolygon

func NewQPolygon1

func NewQPolygon1(size int) *QPolygon

func NewQPolygon2

func NewQPolygon2(r qtcore.QRect_ITF, closed bool) *QPolygon

func NewQPolygon2p

func NewQPolygon2p(r qtcore.QRect_ITF) *QPolygon

func NewQPolygon3

func NewQPolygon3(nPoints int, points unsafe.Pointer) *QPolygon

func NewQPolygonFromPointer

func NewQPolygonFromPointer(cthis unsafe.Pointer) *QPolygon

func (*QPolygon) BoundingRect

func (this *QPolygon) BoundingRect() *qtcore.QRect

Returns the bounding rectangle of the polygon, or QRect(0, 0, 0, 0) if the polygon is empty.

See also QVector::isEmpty().

func (*QPolygon) ContainsPoint

func (this *QPolygon) ContainsPoint(pt qtcore.QPoint_ITF, fillRule int) bool

Returns true if the given point is inside the polygon according to the specified fillRule; otherwise returns false.

This function was introduced in Qt 4.3.

func (*QPolygon) GetCthis

func (this *QPolygon) GetCthis() unsafe.Pointer

func (*QPolygon) Intersected

func (this *QPolygon) Intersected(r QPolygon_ITF) *QPolygon

Returns a polygon which is the intersection of this polygon and r.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

See also intersects().

func (*QPolygon) Intersects

func (this *QPolygon) Intersects(r QPolygon_ITF) bool

Returns true if the current polygon intersects at any point the given polygon p. Also returns true if the current polygon contains or is contained by any part of p.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 5.10.

See also intersected().

func (*QPolygon) NewForInherit

func (*QPolygon) NewForInherit() *QPolygon

Constructs a polygon with no points.

See also QVector::isEmpty().

func (*QPolygon) NewForInherit1

func (*QPolygon) NewForInherit1(size int) *QPolygon

Constructs a polygon with no points.

See also QVector::isEmpty().

func (*QPolygon) NewForInherit2

func (*QPolygon) NewForInherit2(r qtcore.QRect_ITF, closed bool) *QPolygon

Constructs a polygon with no points.

See also QVector::isEmpty().

func (*QPolygon) NewForInherit2p

func (*QPolygon) NewForInherit2p(r qtcore.QRect_ITF) *QPolygon

Constructs a polygon with no points.

See also QVector::isEmpty().

func (*QPolygon) NewForInherit3

func (*QPolygon) NewForInherit3(nPoints int, points unsafe.Pointer) *QPolygon

Constructs a polygon with no points.

See also QVector::isEmpty().

func (*QPolygon) NewFromPointer

func (*QPolygon) NewFromPointer(cthis unsafe.Pointer) *QPolygon

func (*QPolygon) Operator_equal

func (this *QPolygon) Operator_equal(other unsafe.Pointer) *QPolygon

func (*QPolygon) Operator_equal1

func (this *QPolygon) Operator_equal1(other QPolygon_ITF) *QPolygon

func (*QPolygon) Point

func (this *QPolygon) Point(i int, x unsafe.Pointer, y unsafe.Pointer)

Extracts the coordinates of the point at the given index to *x and *y (if they are valid pointers).

See also setPoint().

func (*QPolygon) Point1

func (this *QPolygon) Point1(i int) *qtcore.QPoint

Extracts the coordinates of the point at the given index to *x and *y (if they are valid pointers).

See also setPoint().

func (*QPolygon) PutPoints

func (this *QPolygon) PutPoints(index int, nPoints int, points unsafe.Pointer)

Copies nPoints points from the variable argument list into this polygon from the given index.

The points are given as a sequence of integers, starting with firstx then firsty, and so on. The polygon is resized if index+nPoints exceeds its current size.

The example code creates a polygon with three points (4,5), (6,7) and (8,9), by expanding the polygon from 1 to 3 points:

QPolygon polygon(1);
polygon[0] = QPoint(4, 5);
polygon.putPoints(1, 2, 6,7, 8,9);

The following code has the same result, but here the putPoints() function overwrites rather than extends:

QPolygon polygon(3);
polygon.putPoints(0, 3, 4,5, 0,0, 8,9);
polygon.putPoints(1, 1, 6,7);

See also setPoints().

func (*QPolygon) PutPoints1

func (this *QPolygon) PutPoints1(index int, nPoints int, from QPolygon_ITF, fromIndex int)

Copies nPoints points from the variable argument list into this polygon from the given index.

The points are given as a sequence of integers, starting with firstx then firsty, and so on. The polygon is resized if index+nPoints exceeds its current size.

The example code creates a polygon with three points (4,5), (6,7) and (8,9), by expanding the polygon from 1 to 3 points:

QPolygon polygon(1);
polygon[0] = QPoint(4, 5);
polygon.putPoints(1, 2, 6,7, 8,9);

The following code has the same result, but here the putPoints() function overwrites rather than extends:

QPolygon polygon(3);
polygon.putPoints(0, 3, 4,5, 0,0, 8,9);
polygon.putPoints(1, 1, 6,7);

See also setPoints().

func (*QPolygon) PutPoints1p

func (this *QPolygon) PutPoints1p(index int, nPoints int, from QPolygon_ITF)

Copies nPoints points from the variable argument list into this polygon from the given index.

The points are given as a sequence of integers, starting with firstx then firsty, and so on. The polygon is resized if index+nPoints exceeds its current size.

The example code creates a polygon with three points (4,5), (6,7) and (8,9), by expanding the polygon from 1 to 3 points:

QPolygon polygon(1);
polygon[0] = QPoint(4, 5);
polygon.putPoints(1, 2, 6,7, 8,9);

The following code has the same result, but here the putPoints() function overwrites rather than extends:

QPolygon polygon(3);
polygon.putPoints(0, 3, 4,5, 0,0, 8,9);
polygon.putPoints(1, 1, 6,7);

See also setPoints().

func (*QPolygon) QPolygon_PTR

func (ptr *QPolygon) QPolygon_PTR() *QPolygon

func (*QPolygon) SetCthis

func (this *QPolygon) SetCthis(cthis unsafe.Pointer)

func (*QPolygon) SetPoint

func (this *QPolygon) SetPoint(index int, x int, y int)

Sets the point at the given index to the point specified by (x, y).

See also point(), putPoints(), and setPoints().

func (*QPolygon) SetPoint1

func (this *QPolygon) SetPoint1(index int, p qtcore.QPoint_ITF)

Sets the point at the given index to the point specified by (x, y).

See also point(), putPoints(), and setPoints().

func (*QPolygon) SetPoints

func (this *QPolygon) SetPoints(nPoints int, points unsafe.Pointer)

Resizes the polygon to nPoints and populates it with the given points.

The example code creates a polygon with two points (10, 20) and (30, 40):

static const int points[] = { 10, 20, 30, 40 };
QPolygon polygon;
polygon.setPoints(2, points);

See also setPoint() and putPoints().

func (*QPolygon) Subtracted

func (this *QPolygon) Subtracted(r QPolygon_ITF) *QPolygon

Returns a polygon which is r subtracted from this polygon.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

func (*QPolygon) Swap

func (this *QPolygon) Swap(other QPolygon_ITF)

Swaps polygon other with this polygon. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QPolygon) Translate

func (this *QPolygon) Translate(dx int, dy int)

Translates all points in the polygon by (dx, dy).

See also translated().

func (*QPolygon) Translate1

func (this *QPolygon) Translate1(offset qtcore.QPoint_ITF)

Translates all points in the polygon by (dx, dy).

See also translated().

func (*QPolygon) Translated

func (this *QPolygon) Translated(dx int, dy int) *QPolygon

Returns a copy of the polygon that is translated by (dx, dy).

This function was introduced in Qt 4.6.

See also translate().

func (*QPolygon) Translated1

func (this *QPolygon) Translated1(offset qtcore.QPoint_ITF) *QPolygon

Returns a copy of the polygon that is translated by (dx, dy).

This function was introduced in Qt 4.6.

See also translate().

func (*QPolygon) United

func (this *QPolygon) United(r QPolygon_ITF) *QPolygon

Returns a polygon which is the union of this polygon and r.

Set operations on polygons, will treat the polygons as areas, and implicitly close the polygon.

This function was introduced in Qt 4.3.

See also intersected() and subtracted().

type QPolygonF

type QPolygonF struct {
	*qtrt.CObject
}

func NewQPolygonF

func NewQPolygonF() *QPolygonF

func NewQPolygonF1

func NewQPolygonF1(size int) *QPolygonF

func NewQPolygonF2

func NewQPolygonF2(r qtcore.QRectF_ITF) *QPolygonF

func NewQPolygonF3

func NewQPolygonF3(a QPolygon_ITF) *QPolygonF

func NewQPolygonFFromPointer

func NewQPolygonFFromPointer(cthis unsafe.Pointer) *QPolygonF

func (*QPolygonF) BoundingRect

func (this *QPolygonF) BoundingRect() *qtcore.QRectF

Returns the bounding rectangle of the polygon, or QRect(0, 0, 0, 0) if the polygon is empty.

See also QVector::isEmpty().

func (*QPolygonF) ContainsPoint

func (this *QPolygonF) ContainsPoint(pt qtcore.QPointF_ITF, fillRule int) bool

Returns true if the given point is inside the polygon according to the specified fillRule; otherwise returns false.

This function was introduced in Qt 4.3.

func (*QPolygonF) GetCthis

func (this *QPolygonF) GetCthis() unsafe.Pointer

func (*QPolygonF) Intersected

func (this *QPolygonF) Intersected(r QPolygonF_ITF) *QPolygonF

Returns a polygon which is the intersection of this polygon and r.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

See also intersects().

func (*QPolygonF) Intersects

func (this *QPolygonF) Intersects(r QPolygonF_ITF) bool

Returns true if the current polygon intersects at any point the given polygon p. Also returns true if the current polygon contains or is contained by any part of p.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 5.10.

See also intersected().

func (*QPolygonF) IsClosed

func (this *QPolygonF) IsClosed() bool

func (*QPolygonF) NewForInherit

func (*QPolygonF) NewForInherit() *QPolygonF

func (*QPolygonF) NewForInherit1

func (*QPolygonF) NewForInherit1(size int) *QPolygonF

func (*QPolygonF) NewForInherit2

func (*QPolygonF) NewForInherit2(r qtcore.QRectF_ITF) *QPolygonF

func (*QPolygonF) NewForInherit3

func (*QPolygonF) NewForInherit3(a QPolygon_ITF) *QPolygonF

func (*QPolygonF) NewFromPointer

func (*QPolygonF) NewFromPointer(cthis unsafe.Pointer) *QPolygonF

func (*QPolygonF) Operator_equal

func (this *QPolygonF) Operator_equal(other unsafe.Pointer) *QPolygonF

func (*QPolygonF) Operator_equal1

func (this *QPolygonF) Operator_equal1(other QPolygonF_ITF) *QPolygonF

func (*QPolygonF) QPolygonF_PTR

func (ptr *QPolygonF) QPolygonF_PTR() *QPolygonF

func (*QPolygonF) SetCthis

func (this *QPolygonF) SetCthis(cthis unsafe.Pointer)

func (*QPolygonF) Subtracted

func (this *QPolygonF) Subtracted(r QPolygonF_ITF) *QPolygonF

Returns a polygon which is r subtracted from this polygon.

Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.

This function was introduced in Qt 4.3.

func (*QPolygonF) Swap

func (this *QPolygonF) Swap(other QPolygonF_ITF)

Swaps polygon other with this polygon. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QPolygonF) ToPolygon

func (this *QPolygonF) ToPolygon() *QPolygon

func (*QPolygonF) Translate

func (this *QPolygonF) Translate(dx float64, dy float64)

Translates all points in the polygon by (dx, dy).

See also translated().

func (*QPolygonF) Translate1

func (this *QPolygonF) Translate1(offset qtcore.QPointF_ITF)

Translates all points in the polygon by (dx, dy).

See also translated().

func (*QPolygonF) Translated

func (this *QPolygonF) Translated(dx float64, dy float64) *QPolygonF

Returns a copy of the polygon that is translated by (dx, dy).

This function was introduced in Qt 4.6.

See also translate().

func (*QPolygonF) Translated1

func (this *QPolygonF) Translated1(offset qtcore.QPointF_ITF) *QPolygonF

Returns a copy of the polygon that is translated by (dx, dy).

This function was introduced in Qt 4.6.

See also translate().

func (*QPolygonF) United

func (this *QPolygonF) United(r QPolygonF_ITF) *QPolygonF

Returns a polygon which is the union of this polygon and r.

Set operations on polygons, will treat the polygons as areas, and implicitly close the polygon.

This function was introduced in Qt 4.3.

See also intersected() and subtracted().

type QPolygonFList

type QPolygonFList struct {
	*qtrt.CObject
}

body block begin

func (*QPolygonFList) Append0

func (this *QPolygonFList) Append0()

void append(const T &)

func (*QPolygonFList) Append1

func (this *QPolygonFList) Append1()

void append(const QList<T> &)

func (*QPolygonFList) At0

func (this *QPolygonFList) At0() *QPolygonF

const T & at(int)

func (*QPolygonFList) Back0

func (this *QPolygonFList) Back0() *QPolygonF

T & back()

func (*QPolygonFList) Back1

func (this *QPolygonFList) Back1() *QPolygonF

const T & back()

func (*QPolygonFList) Begin0

func (this *QPolygonFList) Begin0()

QList::iterator begin()

func (*QPolygonFList) Begin1

func (this *QPolygonFList) Begin1()

QList::const_iterator begin()

func (*QPolygonFList) Cbegin0

func (this *QPolygonFList) Cbegin0()

QList::const_iterator cbegin()

func (*QPolygonFList) Cend0

func (this *QPolygonFList) Cend0()

QList::const_iterator cend()

func (*QPolygonFList) Clear0

func (this *QPolygonFList) Clear0()

void clear()

func (*QPolygonFList) ConstBegin0

func (this *QPolygonFList) ConstBegin0()

QList::const_iterator constBegin()

func (*QPolygonFList) ConstEnd0

func (this *QPolygonFList) ConstEnd0()

QList::const_iterator constEnd()

func (*QPolygonFList) ConstFirst0

func (this *QPolygonFList) ConstFirst0() *QPolygonF

const T & constFirst()

func (*QPolygonFList) ConstLast0

func (this *QPolygonFList) ConstLast0() *QPolygonF

const T & constLast()

func (*QPolygonFList) Contains0

func (this *QPolygonFList) Contains0() bool

bool contains(const T &)

func (*QPolygonFList) Contains_impl0

func (this *QPolygonFList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QPolygonFList) Contains_impl1

func (this *QPolygonFList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QPolygonFList) Count0

func (this *QPolygonFList) Count0() int

int count(const T &)

func (*QPolygonFList) Count1

func (this *QPolygonFList) Count1() int

int count()

func (*QPolygonFList) Count_impl0

func (this *QPolygonFList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QPolygonFList) Count_impl1

func (this *QPolygonFList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QPolygonFList) Crbegin0

func (this *QPolygonFList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QPolygonFList) Crend0

func (this *QPolygonFList) Crend0()

QList::const_reverse_iterator crend()

func (*QPolygonFList) Dealloc0

func (this *QPolygonFList) Dealloc0()

void dealloc(QListData::Data *)

func (*QPolygonFList) Detach0

func (this *QPolygonFList) Detach0()

void detach()

func (*QPolygonFList) DetachShared0

func (this *QPolygonFList) DetachShared0()

void detachShared()

func (*QPolygonFList) Detach_helper0

func (this *QPolygonFList) Detach_helper0()

void detach_helper(int)

func (*QPolygonFList) Detach_helper1

func (this *QPolygonFList) Detach_helper1()

void detach_helper()

func (*QPolygonFList) Detach_helper_grow0

func (this *QPolygonFList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QPolygonFList) Empty0

func (this *QPolygonFList) Empty0() bool

bool empty()

func (*QPolygonFList) End0

func (this *QPolygonFList) End0()

QList::iterator end()

func (*QPolygonFList) End1

func (this *QPolygonFList) End1()

QList::const_iterator end()

func (*QPolygonFList) EndsWith0

func (this *QPolygonFList) EndsWith0() bool

bool endsWith(const T &)

func (*QPolygonFList) Erase0

func (this *QPolygonFList) Erase0()

QList::iterator erase(QList::iterator)

func (*QPolygonFList) Erase1

func (this *QPolygonFList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QPolygonFList) First0

func (this *QPolygonFList) First0() *QPolygonF

T & first()

func (*QPolygonFList) First1

func (this *QPolygonFList) First1() *QPolygonF

const T & first()

func (*QPolygonFList) FromSet0

func (this *QPolygonFList) FromSet0() *QPolygonFList

QList<T> fromSet(const QSet<T> &)

func (*QPolygonFList) FromStdList0

func (this *QPolygonFList) FromStdList0() *QPolygonFList

QList<T> fromStdList(const std::list<T> &)

func (*QPolygonFList) FromVector0

func (this *QPolygonFList) FromVector0() *QPolygonFList

QList<T> fromVector(const QVector<T> &)

func (*QPolygonFList) Front0

func (this *QPolygonFList) Front0() *QPolygonF

T & front()

func (*QPolygonFList) Front1

func (this *QPolygonFList) Front1() *QPolygonF

const T & front()

func (*QPolygonFList) IndexOf0

func (this *QPolygonFList) IndexOf0() int

int indexOf(const T &, int)

func (*QPolygonFList) Insert0

func (this *QPolygonFList) Insert0()

void insert(int, const T &)

func (*QPolygonFList) Insert1

func (this *QPolygonFList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QPolygonFList) IsDetached0

func (this *QPolygonFList) IsDetached0() bool

bool isDetached()

func (*QPolygonFList) IsEmpty0

func (this *QPolygonFList) IsEmpty0() bool

bool isEmpty()

func (*QPolygonFList) IsSharedWith0

func (this *QPolygonFList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QPolygonFList) IsValidIterator0

func (this *QPolygonFList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QPolygonFList) Last0

func (this *QPolygonFList) Last0() *QPolygonF

T & last()

func (*QPolygonFList) Last1

func (this *QPolygonFList) Last1() *QPolygonF

const T & last()

func (*QPolygonFList) LastIndexOf0

func (this *QPolygonFList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QPolygonFList) Length0

func (this *QPolygonFList) Length0() int

int length()

func (*QPolygonFList) Mid0

func (this *QPolygonFList) Mid0() *QPolygonFList

QList<T> mid(int, int)

func (*QPolygonFList) Move0

func (this *QPolygonFList) Move0()

void move(int, int)

func (*QPolygonFList) Node_construct0

func (this *QPolygonFList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QPolygonFList) Node_copy0

func (this *QPolygonFList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QPolygonFList) Node_destruct0

func (this *QPolygonFList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QPolygonFList) Node_destruct1

func (this *QPolygonFList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QPolygonFList) Op_eq_impl0

func (this *QPolygonFList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QPolygonFList) Op_eq_impl1

func (this *QPolygonFList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QPolygonFList) Operator_add0

func (this *QPolygonFList) Operator_add0() *QPolygonFList

QList<T> operator+(const QList<T> &)

func (*QPolygonFList) Operator_add_equal0

func (this *QPolygonFList) Operator_add_equal0() *QPolygonFList

QList<T> & operator+=(const QList<T> &)

func (*QPolygonFList) Operator_add_equal1

func (this *QPolygonFList) Operator_add_equal1() *QPolygonFList

QList<T> & operator+=(const T &)

func (*QPolygonFList) Operator_equal0

func (this *QPolygonFList) Operator_equal0() *QPolygonFList

QList<T> & operator=(const QList<T> &)

func (*QPolygonFList) Operator_equal1

func (this *QPolygonFList) Operator_equal1() *QPolygonFList

QList<T> & operator=(QList<T> &&)

func (*QPolygonFList) Operator_equal_equal0

func (this *QPolygonFList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QPolygonFList) Operator_get_index0

func (this *QPolygonFList) Operator_get_index0() *QPolygonF

const T & operator[](int)

func (*QPolygonFList) Operator_get_index1

func (this *QPolygonFList) Operator_get_index1() *QPolygonF

T & operator[](int)

func (*QPolygonFList) Operator_left_shift0

func (this *QPolygonFList) Operator_left_shift0() *QPolygonFList

QList<T> & operator<<(const T &)

func (*QPolygonFList) Operator_left_shift1

func (this *QPolygonFList) Operator_left_shift1() *QPolygonFList

QList<T> & operator<<(const QList<T> &)

func (*QPolygonFList) Operator_not_equal0

func (this *QPolygonFList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QPolygonFList) Pop_back0

func (this *QPolygonFList) Pop_back0()

void pop_back()

func (*QPolygonFList) Pop_front0

func (this *QPolygonFList) Pop_front0()

void pop_front()

func (*QPolygonFList) Prepend0

func (this *QPolygonFList) Prepend0()

void prepend(const T &)

func (*QPolygonFList) Push_back0

func (this *QPolygonFList) Push_back0()

void push_back(const T &)

func (*QPolygonFList) Push_front0

func (this *QPolygonFList) Push_front0()

void push_front(const T &)

func (*QPolygonFList) Rbegin0

func (this *QPolygonFList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QPolygonFList) Rbegin1

func (this *QPolygonFList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QPolygonFList) RemoveAll0

func (this *QPolygonFList) RemoveAll0() int

int removeAll(const T &)

func (*QPolygonFList) RemoveAt0

func (this *QPolygonFList) RemoveAt0()

void removeAt(int)

func (*QPolygonFList) RemoveFirst0

func (this *QPolygonFList) RemoveFirst0()

void removeFirst()

func (*QPolygonFList) RemoveLast0

func (this *QPolygonFList) RemoveLast0()

void removeLast()

func (*QPolygonFList) RemoveOne0

func (this *QPolygonFList) RemoveOne0() bool

bool removeOne(const T &)

func (*QPolygonFList) Rend0

func (this *QPolygonFList) Rend0()

QList::reverse_iterator rend()

func (*QPolygonFList) Rend1

func (this *QPolygonFList) Rend1()

QList::const_reverse_iterator rend()

func (*QPolygonFList) Replace0

func (this *QPolygonFList) Replace0()

void replace(int, const T &)

func (*QPolygonFList) Reserve0

func (this *QPolygonFList) Reserve0()

void reserve(int)

func (*QPolygonFList) SetSharable0

func (this *QPolygonFList) SetSharable0()

void setSharable(bool)

func (*QPolygonFList) Size0

func (this *QPolygonFList) Size0() int

int size()

func (*QPolygonFList) StartsWith0

func (this *QPolygonFList) StartsWith0() bool

bool startsWith(const T &)

func (*QPolygonFList) Swap0

func (this *QPolygonFList) Swap0()

void swap(QList<T> &)

func (*QPolygonFList) Swap1

func (this *QPolygonFList) Swap1()

void swap(int, int)

func (*QPolygonFList) TakeAt0

func (this *QPolygonFList) TakeAt0() *QPolygonF

T takeAt(int)

func (*QPolygonFList) TakeFirst0

func (this *QPolygonFList) TakeFirst0() *QPolygonF

T takeFirst()

func (*QPolygonFList) TakeLast0

func (this *QPolygonFList) TakeLast0() *QPolygonF

T takeLast()

func (*QPolygonFList) ToSet0

func (this *QPolygonFList) ToSet0()

QSet<T> toSet()

func (*QPolygonFList) ToStdList0

func (this *QPolygonFList) ToStdList0()

std::list<T> toStdList()

func (*QPolygonFList) ToVector0

func (this *QPolygonFList) ToVector0()

QVector<T> toVector()

func (*QPolygonFList) Value0

func (this *QPolygonFList) Value0() *QPolygonF

T value(int)

func (*QPolygonFList) Value1

func (this *QPolygonFList) Value1() *QPolygonF

T value(int, const T &)

type QPolygonF_ITF

type QPolygonF_ITF interface {
	QPolygonF_PTR() *QPolygonF
}

type QPolygon_ITF

type QPolygon_ITF interface {
	QPolygon_PTR() *QPolygon
}

type QQuaternion

type QQuaternion struct {
	*qtrt.CObject
}

func NewQQuaternion

func NewQQuaternion() *QQuaternion

func NewQQuaternion1

func NewQQuaternion1(arg0 int) *QQuaternion

func NewQQuaternion2

func NewQQuaternion2(scalar float32, xpos float32, ypos float32, zpos float32) *QQuaternion

func NewQQuaternion3

func NewQQuaternion3(scalar float32, vector QVector3D_ITF) *QQuaternion

func NewQQuaternion4

func NewQQuaternion4(vector QVector4D_ITF) *QQuaternion

func NewQQuaternionFromPointer

func NewQQuaternionFromPointer(cthis unsafe.Pointer) *QQuaternion

func Operator_add48

func Operator_add48(q1 QQuaternion_ITF, q2 QQuaternion_ITF) *QQuaternion

func Operator_div16

func Operator_div16(quaternion QQuaternion_ITF, divisor float32) *QQuaternion

func Operator_minus24

func Operator_minus24(quaternion QQuaternion_ITF) *QQuaternion

Returns a QQuaternion object that is formed by subtracting q2 from q1; each component is subtracted separately.

See also QQuaternion::operator-=().

func Operator_minus25

func Operator_minus25(q1 QQuaternion_ITF, q2 QQuaternion_ITF) *QQuaternion

Returns a QQuaternion object that is formed by subtracting q2 from q1; each component is subtracted separately.

See also QQuaternion::operator-=().

func Operator_mul27

func Operator_mul27(factor float32, quaternion QQuaternion_ITF) *QQuaternion

func Operator_mul28

func Operator_mul28(quaternion QQuaternion_ITF, factor float32) *QQuaternion

func Operator_mul29

func Operator_mul29(q1 QQuaternion_ITF, q2 QQuaternion_ITF) *QQuaternion

func QQuaternion_FromAxes

func QQuaternion_FromAxes(xAxis QVector3D_ITF, yAxis QVector3D_ITF, zAxis QVector3D_ITF) *QQuaternion

func QQuaternion_FromAxisAndAngle

func QQuaternion_FromAxisAndAngle(axis QVector3D_ITF, angle float32) *QQuaternion

func QQuaternion_FromAxisAndAngle1

func QQuaternion_FromAxisAndAngle1(x float32, y float32, z float32, angle float32) *QQuaternion

func QQuaternion_FromDirection

func QQuaternion_FromDirection(direction QVector3D_ITF, up QVector3D_ITF) *QQuaternion

func QQuaternion_FromEulerAngles

func QQuaternion_FromEulerAngles(eulerAngles QVector3D_ITF) *QQuaternion

func QQuaternion_FromEulerAngles1

func QQuaternion_FromEulerAngles1(pitch float32, yaw float32, roll float32) *QQuaternion

func QQuaternion_Nlerp

func QQuaternion_Nlerp(q1 QQuaternion_ITF, q2 QQuaternion_ITF, t float32) *QQuaternion

func QQuaternion_RotationTo

func QQuaternion_RotationTo(from QVector3D_ITF, to QVector3D_ITF) *QQuaternion

func QQuaternion_Slerp

func QQuaternion_Slerp(q1 QQuaternion_ITF, q2 QQuaternion_ITF, t float32) *QQuaternion

func (*QQuaternion) Conjugate

func (this *QQuaternion) Conjugate() *QQuaternion

func (*QQuaternion) Conjugated

func (this *QQuaternion) Conjugated() *QQuaternion

Returns the conjugate of this quaternion, which is (-x, -y, -z, scalar).

This function was introduced in Qt 5.5.

func (*QQuaternion) DotProduct

func (this *QQuaternion) DotProduct(q1 QQuaternion_ITF, q2 QQuaternion_ITF) float32

Returns the dot product of q1 and q2.

This function was introduced in Qt 5.5.

See also length().

func (*QQuaternion) FromAxes

func (this *QQuaternion) FromAxes(xAxis QVector3D_ITF, yAxis QVector3D_ITF, zAxis QVector3D_ITF) *QQuaternion

Constructs the quaternion using 3 axes (xAxis, yAxis, zAxis).

Note: The axes are assumed to be orthonormal.

This function was introduced in Qt 5.5.

See also getAxes() and fromRotationMatrix().

func (*QQuaternion) FromAxisAndAngle

func (this *QQuaternion) FromAxisAndAngle(axis QVector3D_ITF, angle float32) *QQuaternion

Creates a normalized quaternion that corresponds to rotating through angle degrees about the specified 3D axis.

See also getAxisAndAngle().

func (*QQuaternion) FromAxisAndAngle1

func (this *QQuaternion) FromAxisAndAngle1(x float32, y float32, z float32, angle float32) *QQuaternion

Creates a normalized quaternion that corresponds to rotating through angle degrees about the specified 3D axis.

See also getAxisAndAngle().

func (*QQuaternion) FromDirection

func (this *QQuaternion) FromDirection(direction QVector3D_ITF, up QVector3D_ITF) *QQuaternion

Constructs the quaternion using specified forward direction direction and upward direction up. If the upward direction was not specified or the forward and upward vectors are collinear, a new orthonormal upward direction will be generated.

This function was introduced in Qt 5.5.

See also fromAxes() and rotationTo().

func (*QQuaternion) FromEulerAngles

func (this *QQuaternion) FromEulerAngles(eulerAngles QVector3D_ITF) *QQuaternion

Creates a quaternion that corresponds to a rotation of roll degrees around the z axis, pitch degrees around the x axis, and yaw degrees around the y axis (in that order).

This function was introduced in Qt 5.5.

See also getEulerAngles().

func (*QQuaternion) FromEulerAngles1

func (this *QQuaternion) FromEulerAngles1(pitch float32, yaw float32, roll float32) *QQuaternion

Creates a quaternion that corresponds to a rotation of roll degrees around the z axis, pitch degrees around the x axis, and yaw degrees around the y axis (in that order).

This function was introduced in Qt 5.5.

See also getEulerAngles().

func (*QQuaternion) GetAxes

func (this *QQuaternion) GetAxes(xAxis QVector3D_ITF, yAxis QVector3D_ITF, zAxis QVector3D_ITF)

Returns the 3 orthonormal axes (xAxis, yAxis, zAxis) defining the quaternion.

This function was introduced in Qt 5.5.

See also fromAxes() and toRotationMatrix().

func (*QQuaternion) GetAxisAndAngle

func (this *QQuaternion) GetAxisAndAngle(axis QVector3D_ITF, angle unsafe.Pointer)

Extracts a 3D axis (x, y, z) and a rotating angle angle (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromAxisAndAngle().

func (*QQuaternion) GetAxisAndAngle1

func (this *QQuaternion) GetAxisAndAngle1(x unsafe.Pointer, y unsafe.Pointer, z unsafe.Pointer, angle unsafe.Pointer)

Extracts a 3D axis (x, y, z) and a rotating angle angle (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromAxisAndAngle().

func (*QQuaternion) GetCthis

func (this *QQuaternion) GetCthis() unsafe.Pointer

func (*QQuaternion) GetEulerAngles

func (this *QQuaternion) GetEulerAngles(pitch unsafe.Pointer, yaw unsafe.Pointer, roll unsafe.Pointer)

Calculates roll, pitch, and yaw Euler angles (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromEulerAngles().

func (*QQuaternion) Inverted

func (this *QQuaternion) Inverted() *QQuaternion

Returns the inverse of this quaternion. If this quaternion is null, then a null quaternion is returned.

This function was introduced in Qt 5.5.

See also isNull() and length().

func (*QQuaternion) IsIdentity

func (this *QQuaternion) IsIdentity() bool

Returns true if the x, y, and z components of this quaternion are set to 0.0, and the scalar component is set to 1.0; otherwise returns false.

func (*QQuaternion) IsNull

func (this *QQuaternion) IsNull() bool

Returns true if the x, y, z, and scalar components of this quaternion are set to 0.0; otherwise returns false.

func (*QQuaternion) Length

func (this *QQuaternion) Length() float32

Returns the length of the quaternion. This is also called the "norm".

See also lengthSquared(), normalized(), and dotProduct().

func (*QQuaternion) LengthSquared

func (this *QQuaternion) LengthSquared() float32

Returns the squared length of the quaternion.

See also length() and dotProduct().

func (*QQuaternion) NewForInherit

func (*QQuaternion) NewForInherit() *QQuaternion

Constructs an identity quaternion (1, 0, 0, 0), i.e. with the vector (0, 0, 0) and scalar 1.

func (*QQuaternion) NewForInherit1

func (*QQuaternion) NewForInherit1(arg0 int) *QQuaternion

Constructs an identity quaternion (1, 0, 0, 0), i.e. with the vector (0, 0, 0) and scalar 1.

func (*QQuaternion) NewForInherit2

func (*QQuaternion) NewForInherit2(scalar float32, xpos float32, ypos float32, zpos float32) *QQuaternion

Constructs an identity quaternion (1, 0, 0, 0), i.e. with the vector (0, 0, 0) and scalar 1.

func (*QQuaternion) NewForInherit3

func (*QQuaternion) NewForInherit3(scalar float32, vector QVector3D_ITF) *QQuaternion

Constructs an identity quaternion (1, 0, 0, 0), i.e. with the vector (0, 0, 0) and scalar 1.

func (*QQuaternion) NewForInherit4

func (*QQuaternion) NewForInherit4(vector QVector4D_ITF) *QQuaternion

Constructs an identity quaternion (1, 0, 0, 0), i.e. with the vector (0, 0, 0) and scalar 1.

func (*QQuaternion) NewFromPointer

func (*QQuaternion) NewFromPointer(cthis unsafe.Pointer) *QQuaternion

func (*QQuaternion) Nlerp

Interpolates along the shortest linear path between the rotational positions q1 and q2. The value t should be between 0 and 1, indicating the distance to travel between q1 and q2. The result will be normalized().

If t is less than or equal to 0, then q1 will be returned. If t is greater than or equal to 1, then q2 will be returned.

The nlerp() function is typically faster than slerp() and will give approximate results to spherical interpolation that are good enough for some applications.

See also slerp().

func (*QQuaternion) Normalize

func (this *QQuaternion) Normalize()

Normalizes the current quaternion in place. Nothing happens if this is a null quaternion or the length of the quaternion is very close to 1.

See also length() and normalized().

func (*QQuaternion) Normalized

func (this *QQuaternion) Normalized() *QQuaternion

Returns the normalized unit form of this quaternion.

If this quaternion is null, then a null quaternion is returned. If the length of the quaternion is very close to 1, then the quaternion will be returned as-is. Otherwise the normalized form of the quaternion of length 1 will be returned.

See also normalize(), length(), and dotProduct().

func (*QQuaternion) Operator_add_equal

func (this *QQuaternion) Operator_add_equal(quaternion QQuaternion_ITF) *QQuaternion

func (*QQuaternion) Operator_div_equal

func (this *QQuaternion) Operator_div_equal(divisor float32) *QQuaternion

func (*QQuaternion) Operator_minus_equal

func (this *QQuaternion) Operator_minus_equal(quaternion QQuaternion_ITF) *QQuaternion

func (*QQuaternion) Operator_mul_equal

func (this *QQuaternion) Operator_mul_equal(factor float32) *QQuaternion

func (*QQuaternion) Operator_mul_equal1

func (this *QQuaternion) Operator_mul_equal1(quaternion QQuaternion_ITF) *QQuaternion

func (*QQuaternion) QQuaternion_PTR

func (ptr *QQuaternion) QQuaternion_PTR() *QQuaternion

func (*QQuaternion) RotatedVector

func (this *QQuaternion) RotatedVector(vector QVector3D_ITF) *QVector3D

Rotates vector with this quaternion to produce a new vector in 3D space. The following code:

QVector3D result = q.rotatedVector(vector);

is equivalent to the following:

QVector3D result = (q * QQuaternion(0, vector) * q.conjugated()).vector();

func (*QQuaternion) RotationTo

func (this *QQuaternion) RotationTo(from QVector3D_ITF, to QVector3D_ITF) *QQuaternion

Returns the shortest arc quaternion to rotate from the direction described by the vector from to the direction described by the vector to.

This function was introduced in Qt 5.5.

See also fromDirection().

func (*QQuaternion) Scalar

func (this *QQuaternion) Scalar() float32

Returns the scalar component of this quaternion.

See also setScalar(), x(), y(), and z().

func (*QQuaternion) SetCthis

func (this *QQuaternion) SetCthis(cthis unsafe.Pointer)

func (*QQuaternion) SetScalar

func (this *QQuaternion) SetScalar(scalar float32)

Sets the scalar component of this quaternion to scalar.

See also scalar(), setX(), setY(), and setZ().

func (*QQuaternion) SetVector

func (this *QQuaternion) SetVector(vector QVector3D_ITF)

Sets the vector component of this quaternion to vector.

See also vector() and setScalar().

func (*QQuaternion) SetVector1

func (this *QQuaternion) SetVector1(x float32, y float32, z float32)

Sets the vector component of this quaternion to vector.

See also vector() and setScalar().

func (*QQuaternion) SetX

func (this *QQuaternion) SetX(x float32)

Sets the x coordinate of this quaternion's vector to the given x coordinate.

See also x(), setY(), setZ(), and setScalar().

func (*QQuaternion) SetY

func (this *QQuaternion) SetY(y float32)

Sets the y coordinate of this quaternion's vector to the given y coordinate.

See also y(), setX(), setZ(), and setScalar().

func (*QQuaternion) SetZ

func (this *QQuaternion) SetZ(z float32)

Sets the z coordinate of this quaternion's vector to the given z coordinate.

See also z(), setX(), setY(), and setScalar().

func (*QQuaternion) Slerp

Interpolates along the shortest spherical path between the rotational positions q1 and q2. The value t should be between 0 and 1, indicating the spherical distance to travel between q1 and q2.

If t is less than or equal to 0, then q1 will be returned. If t is greater than or equal to 1, then q2 will be returned.

See also nlerp().

func (*QQuaternion) ToEulerAngles

func (this *QQuaternion) ToEulerAngles() *QVector3D

This is an overloaded function.

Calculates roll, pitch, and yaw Euler angles (in degrees) that corresponds to this quaternion.

This function was introduced in Qt 5.5.

See also fromEulerAngles().

func (*QQuaternion) ToVector4D

func (this *QQuaternion) ToVector4D() *QVector4D

Returns this quaternion as a 4D vector.

func (*QQuaternion) Vector

func (this *QQuaternion) Vector() *QVector3D

Returns the vector component of this quaternion.

See also setVector() and scalar().

func (*QQuaternion) X

func (this *QQuaternion) X() float32

Returns the x coordinate of this quaternion's vector.

See also setX(), y(), z(), and scalar().

func (*QQuaternion) Y

func (this *QQuaternion) Y() float32

Returns the y coordinate of this quaternion's vector.

See also setY(), x(), z(), and scalar().

func (*QQuaternion) Z

func (this *QQuaternion) Z() float32

Returns the z coordinate of this quaternion's vector.

See also setZ(), x(), y(), and scalar().

type QQuaternion_ITF

type QQuaternion_ITF interface {
	QQuaternion_PTR() *QQuaternion
}

type QRadialGradient

type QRadialGradient struct {
	*QGradient
}

func NewQRadialGradient

func NewQRadialGradient() *QRadialGradient

func NewQRadialGradient1

func NewQRadialGradient1(center qtcore.QPointF_ITF, radius float64, focalPoint qtcore.QPointF_ITF) *QRadialGradient

func NewQRadialGradient2

func NewQRadialGradient2(cx float64, cy float64, radius float64, fx float64, fy float64) *QRadialGradient

func NewQRadialGradient3

func NewQRadialGradient3(center qtcore.QPointF_ITF, radius float64) *QRadialGradient

func NewQRadialGradient4

func NewQRadialGradient4(cx float64, cy float64, radius float64) *QRadialGradient

func NewQRadialGradient5

func NewQRadialGradient5(center qtcore.QPointF_ITF, centerRadius float64, focalPoint qtcore.QPointF_ITF, focalRadius float64) *QRadialGradient

func NewQRadialGradient6

func NewQRadialGradient6(cx float64, cy float64, centerRadius float64, fx float64, fy float64, focalRadius float64) *QRadialGradient

func NewQRadialGradientFromPointer

func NewQRadialGradientFromPointer(cthis unsafe.Pointer) *QRadialGradient

func (*QRadialGradient) Center

func (this *QRadialGradient) Center() *qtcore.QPointF

func (*QRadialGradient) CenterRadius

func (this *QRadialGradient) CenterRadius() float64

func (*QRadialGradient) FocalPoint

func (this *QRadialGradient) FocalPoint() *qtcore.QPointF

func (*QRadialGradient) FocalRadius

func (this *QRadialGradient) FocalRadius() float64

func (*QRadialGradient) GetCthis

func (this *QRadialGradient) GetCthis() unsafe.Pointer

func (*QRadialGradient) NewForInherit

func (*QRadialGradient) NewForInherit() *QRadialGradient

func (*QRadialGradient) NewForInherit1

func (*QRadialGradient) NewForInherit1(center qtcore.QPointF_ITF, radius float64, focalPoint qtcore.QPointF_ITF) *QRadialGradient

func (*QRadialGradient) NewForInherit2

func (*QRadialGradient) NewForInherit2(cx float64, cy float64, radius float64, fx float64, fy float64) *QRadialGradient

func (*QRadialGradient) NewForInherit3

func (*QRadialGradient) NewForInherit3(center qtcore.QPointF_ITF, radius float64) *QRadialGradient

func (*QRadialGradient) NewForInherit4

func (*QRadialGradient) NewForInherit4(cx float64, cy float64, radius float64) *QRadialGradient

func (*QRadialGradient) NewForInherit5

func (*QRadialGradient) NewForInherit5(center qtcore.QPointF_ITF, centerRadius float64, focalPoint qtcore.QPointF_ITF, focalRadius float64) *QRadialGradient

func (*QRadialGradient) NewForInherit6

func (*QRadialGradient) NewForInherit6(cx float64, cy float64, centerRadius float64, fx float64, fy float64, focalRadius float64) *QRadialGradient

func (*QRadialGradient) NewFromPointer

func (*QRadialGradient) NewFromPointer(cthis unsafe.Pointer) *QRadialGradient

func (*QRadialGradient) QRadialGradient_PTR

func (ptr *QRadialGradient) QRadialGradient_PTR() *QRadialGradient

func (*QRadialGradient) Radius

func (this *QRadialGradient) Radius() float64

func (*QRadialGradient) SetCenter

func (this *QRadialGradient) SetCenter(center qtcore.QPointF_ITF)

func (*QRadialGradient) SetCenter1

func (this *QRadialGradient) SetCenter1(x float64, y float64)

func (*QRadialGradient) SetCenterRadius

func (this *QRadialGradient) SetCenterRadius(radius float64)

func (*QRadialGradient) SetCthis

func (this *QRadialGradient) SetCthis(cthis unsafe.Pointer)

func (*QRadialGradient) SetFocalPoint

func (this *QRadialGradient) SetFocalPoint(focalPoint qtcore.QPointF_ITF)

func (*QRadialGradient) SetFocalPoint1

func (this *QRadialGradient) SetFocalPoint1(x float64, y float64)

func (*QRadialGradient) SetFocalRadius

func (this *QRadialGradient) SetFocalRadius(radius float64)

func (*QRadialGradient) SetRadius

func (this *QRadialGradient) SetRadius(radius float64)

type QRadialGradient_ITF

type QRadialGradient_ITF interface {
	QGradient_ITF
	QRadialGradient_PTR() *QRadialGradient
}

type QRasterWindow

type QRasterWindow struct {
	*QPaintDeviceWindow
}

func NewQRasterWindow

func NewQRasterWindow(parent QWindow_ITF) *QRasterWindow

func NewQRasterWindowFromPointer

func NewQRasterWindowFromPointer(cthis unsafe.Pointer) *QRasterWindow

func NewQRasterWindowp

func NewQRasterWindowp() *QRasterWindow

func (*QRasterWindow) GetCthis

func (this *QRasterWindow) GetCthis() unsafe.Pointer

func (*QRasterWindow) InheritMetric

func (this *QRasterWindow) InheritMetric(f func(metric int) int)

int metric(QPaintDevice::PaintDeviceMetric)

func (*QRasterWindow) InheritRedirected

func (this *QRasterWindow) InheritRedirected(f func(arg0 *qtcore.QPoint) unsafe.Pointer)

QPaintDevice * redirected(QPoint *)

func (*QRasterWindow) MetaObject

func (this *QRasterWindow) MetaObject() *qtcore.QMetaObject

func (*QRasterWindow) Metric

func (this *QRasterWindow) Metric(metric int) int

func (*QRasterWindow) NewForInherit

func (*QRasterWindow) NewForInherit(parent QWindow_ITF) *QRasterWindow

Constructs a new QRasterWindow with parent.

func (*QRasterWindow) NewForInheritp

func (*QRasterWindow) NewForInheritp() *QRasterWindow

Constructs a new QRasterWindow with parent.

func (*QRasterWindow) NewFromPointer

func (*QRasterWindow) NewFromPointer(cthis unsafe.Pointer) *QRasterWindow

func (*QRasterWindow) QRasterWindow_PTR

func (ptr *QRasterWindow) QRasterWindow_PTR() *QRasterWindow

func (*QRasterWindow) Redirected

func (this *QRasterWindow) Redirected(arg0 qtcore.QPoint_ITF) *QPaintDevice

func (*QRasterWindow) SetCthis

func (this *QRasterWindow) SetCthis(cthis unsafe.Pointer)

type QRasterWindow_ITF

type QRasterWindow_ITF interface {
	QPaintDeviceWindow_ITF
	QRasterWindow_PTR() *QRasterWindow
}

type QRawFont

type QRawFont struct {
	*qtrt.CObject
}

func NewQRawFont

func NewQRawFont() *QRawFont

func NewQRawFont1

func NewQRawFont1(fileName string, pixelSize float64, hintingPreference int) *QRawFont

func NewQRawFont1p

func NewQRawFont1p(fileName string, pixelSize float64) *QRawFont

func NewQRawFont2

func NewQRawFont2(fontData qtcore.QByteArray_ITF, pixelSize float64, hintingPreference int) *QRawFont

func NewQRawFont2p

func NewQRawFont2p(fontData qtcore.QByteArray_ITF, pixelSize float64) *QRawFont

func NewQRawFontFromPointer

func NewQRawFontFromPointer(cthis unsafe.Pointer) *QRawFont

func QRawFont_FromFont

func QRawFont_FromFont(font QFont_ITF, writingSystem int) *QRawFont

func (*QRawFont) AdvancesForGlyphIndexes

func (this *QRawFont) AdvancesForGlyphIndexes(glyphIndexes unsafe.Pointer, advances qtcore.QPointF_ITF, numGlyphs int) bool

Returns the QRawFont's advances for each of the glyphIndexes in pixel units. The advances give the distance from the position of a given glyph to where the next glyph should be drawn to make it appear as if the two glyphs are unspaced. How the advances are calculated is controlled by layoutFlags.

This function was introduced in Qt 5.1.

See also QTextLine::horizontalAdvance() and QFontMetricsF::width().

func (*QRawFont) AdvancesForGlyphIndexes1

func (this *QRawFont) AdvancesForGlyphIndexes1(glyphIndexes unsafe.Pointer, advances qtcore.QPointF_ITF, numGlyphs int, layoutFlags int) bool

Returns the QRawFont's advances for each of the glyphIndexes in pixel units. The advances give the distance from the position of a given glyph to where the next glyph should be drawn to make it appear as if the two glyphs are unspaced. How the advances are calculated is controlled by layoutFlags.

This function was introduced in Qt 5.1.

See also QTextLine::horizontalAdvance() and QFontMetricsF::width().

func (*QRawFont) AlphaMapForGlyph

func (this *QRawFont) AlphaMapForGlyph(glyphIndex uint, antialiasingType int, transform QTransform_ITF) *QImage

This function returns a rasterized image of the glyph at the given glyphIndex in the underlying font, using the transform specified. If the QRawFont is not valid, this function will return an invalid QImage.

If the font is a color font, then the resulting image will contain the rendered glyph at the current pixel size. In this case, the antialiasingType will be ignored.

Otherwise, if antialiasingType is set to QRawFont::SubPixelAntialiasing, then the resulting image will be in QImage::Format_RGB32 and the RGB values of each pixel will represent the subpixel opacities of the pixel in the rasterization of the glyph. Otherwise, the image will be in the format of QImage::Format_Indexed8 and each pixel will contain the opacity of the pixel in the rasterization.

See also pathForGlyph() and QPainter::drawGlyphRun().

func (*QRawFont) AlphaMapForGlyphp

func (this *QRawFont) AlphaMapForGlyphp(glyphIndex uint) *QImage

This function returns a rasterized image of the glyph at the given glyphIndex in the underlying font, using the transform specified. If the QRawFont is not valid, this function will return an invalid QImage.

If the font is a color font, then the resulting image will contain the rendered glyph at the current pixel size. In this case, the antialiasingType will be ignored.

Otherwise, if antialiasingType is set to QRawFont::SubPixelAntialiasing, then the resulting image will be in QImage::Format_RGB32 and the RGB values of each pixel will represent the subpixel opacities of the pixel in the rasterization of the glyph. Otherwise, the image will be in the format of QImage::Format_Indexed8 and each pixel will contain the opacity of the pixel in the rasterization.

See also pathForGlyph() and QPainter::drawGlyphRun().

func (*QRawFont) AlphaMapForGlyphp1

func (this *QRawFont) AlphaMapForGlyphp1(glyphIndex uint, antialiasingType int) *QImage

This function returns a rasterized image of the glyph at the given glyphIndex in the underlying font, using the transform specified. If the QRawFont is not valid, this function will return an invalid QImage.

If the font is a color font, then the resulting image will contain the rendered glyph at the current pixel size. In this case, the antialiasingType will be ignored.

Otherwise, if antialiasingType is set to QRawFont::SubPixelAntialiasing, then the resulting image will be in QImage::Format_RGB32 and the RGB values of each pixel will represent the subpixel opacities of the pixel in the rasterization of the glyph. Otherwise, the image will be in the format of QImage::Format_Indexed8 and each pixel will contain the opacity of the pixel in the rasterization.

See also pathForGlyph() and QPainter::drawGlyphRun().

func (*QRawFont) AntialiasingTypeItemName

func (this *QRawFont) AntialiasingTypeItemName(val int) string

func (*QRawFont) Ascent

func (this *QRawFont) Ascent() float64

Returns the ascent of this QRawFont in pixel units.

The ascent of a font is the distance from the baseline to the highest position characters extend to. In practice, some font designers break this rule, e.g. when they put more than one accent on top of a character, or to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.

See also QFontMetricsF::ascent().

func (*QRawFont) AverageCharWidth

func (this *QRawFont) AverageCharWidth() float64

Returns the average character width of this QRawFont in pixel units.

See also QFontMetricsF::averageCharWidth().

func (*QRawFont) BoundingRect

func (this *QRawFont) BoundingRect(glyphIndex uint) *qtcore.QRectF

Returns the smallest rectangle containing the glyph with the given glyphIndex.

This function was introduced in Qt 5.0.

func (*QRawFont) CapHeight

func (this *QRawFont) CapHeight() float64

Returns the cap height of this QRawFont in pixel units.

The cap height of a font is the height of a capital letter above the baseline. It specifically is the height of capital letters that are flat - such as H or I - as opposed to round letters such as O, or pointed letters like A, both of which may display overshoot.

This function was introduced in Qt 5.8.

See also QFontMetricsF::capHeight().

func (*QRawFont) Descent

func (this *QRawFont) Descent() float64

Returns the descent of this QRawFont in pixel units.

The descent is the distance from the base line to the lowest point characters extend to. In practice, some font designers break this rule, e.g. to accommodate an unusual character in an exotic language, so it is possible (though rare) that this value will be too small.

See also QFontMetricsF::descent().

func (*QRawFont) FamilyName

func (this *QRawFont) FamilyName() string

Returns the family name of this QRawFont.

func (*QRawFont) FontTable

func (this *QRawFont) FontTable(tagName string) *qtcore.QByteArray

Retrieves the sfnt table named tagName from the underlying physical font, or an empty byte array if no such table was found. The returned font table's byte order is Big Endian, like the sfnt format specifies. The tagName must be four characters long and should be formatted in the default endianness of the current platform.

func (*QRawFont) FromFont

func (this *QRawFont) FromFont(font QFont_ITF, writingSystem int) *QRawFont

Fetches the physical representation based on a font query. The physical font returned is the font that will be preferred by Qt in order to display text in the selected writingSystem.

Warning: This function is potentially expensive and should not be called in performance sensitive code.

func (*QRawFont) FromFontp

func (this *QRawFont) FromFontp(font QFont_ITF) *QRawFont

Fetches the physical representation based on a font query. The physical font returned is the font that will be preferred by Qt in order to display text in the selected writingSystem.

Warning: This function is potentially expensive and should not be called in performance sensitive code.

func (*QRawFont) GetCthis

func (this *QRawFont) GetCthis() unsafe.Pointer

func (*QRawFont) GlyphIndexesForChars

func (this *QRawFont) GlyphIndexesForChars(chars qtcore.QChar_ITF, numChars int, glyphIndexes unsafe.Pointer, numGlyphs unsafe.Pointer) bool

Converts a string of unicode points to glyph indexes using the CMAP table in the underlying font. The function works like glyphIndexesForString() except it take an array (chars), the results will be returned though glyphIndexes array and number of glyphs will be set in numGlyphs. The size of glyphIndexes array must be at least numChars, if that's still not enough, this function will return false, then you can resize glyphIndexes from the size returned in numGlyphs.

See also glyphIndexesForString(), advancesForGlyphIndexes(), QGlyphRun, QTextLayout::glyphRuns(), and QTextFragment::glyphRuns().

func (*QRawFont) HintingPreference

func (this *QRawFont) HintingPreference() int

Returns the hinting preference used to construct this QRawFont.

See also QFont::hintingPreference().

func (*QRawFont) IsValid

func (this *QRawFont) IsValid() bool

Returns true if the QRawFont is valid and false otherwise.

func (*QRawFont) LayoutFlagItemName

func (this *QRawFont) LayoutFlagItemName(val int) string

func (*QRawFont) Leading

func (this *QRawFont) Leading() float64

Returns the leading of this QRawFont in pixel units.

This is the natural inter-line spacing.

See also QFontMetricsF::leading().

func (*QRawFont) LineThickness

func (this *QRawFont) LineThickness() float64

Returns the thickness for drawing lines (underline, overline, etc.) along with text drawn in this font.

func (*QRawFont) LoadFromData

func (this *QRawFont) LoadFromData(fontData qtcore.QByteArray_ITF, pixelSize float64, hintingPreference int)

Replaces the current QRawFont with the font contained in the supplied fontData for the size (in pixels) given by pixelSize, and using the hinting preference specified by hintingPreference.

The fontData must contain a TrueType or OpenType font.

See also loadFromFile().

func (*QRawFont) LoadFromFile

func (this *QRawFont) LoadFromFile(fileName string, pixelSize float64, hintingPreference int)

Replaces the current QRawFont with the contents of the file referenced by fileName for the size (in pixels) given by pixelSize, and using the hinting preference specified by hintingPreference.

The file must reference a TrueType or OpenType font.

See also loadFromData().

func (*QRawFont) MaxCharWidth

func (this *QRawFont) MaxCharWidth() float64

Returns the width of the widest character in the font.

See also QFontMetricsF::maxWidth().

func (*QRawFont) NewForInherit

func (*QRawFont) NewForInherit() *QRawFont

Constructs an invalid QRawFont.

func (*QRawFont) NewForInherit1

func (*QRawFont) NewForInherit1(fileName string, pixelSize float64, hintingPreference int) *QRawFont

Constructs an invalid QRawFont.

func (*QRawFont) NewForInherit1p

func (*QRawFont) NewForInherit1p(fileName string, pixelSize float64) *QRawFont

Constructs an invalid QRawFont.

func (*QRawFont) NewForInherit2

func (*QRawFont) NewForInherit2(fontData qtcore.QByteArray_ITF, pixelSize float64, hintingPreference int) *QRawFont

Constructs an invalid QRawFont.

func (*QRawFont) NewForInherit2p

func (*QRawFont) NewForInherit2p(fontData qtcore.QByteArray_ITF, pixelSize float64) *QRawFont

Constructs an invalid QRawFont.

func (*QRawFont) NewFromPointer

func (*QRawFont) NewFromPointer(cthis unsafe.Pointer) *QRawFont

func (*QRawFont) Operator_equal

func (this *QRawFont) Operator_equal(other unsafe.Pointer) *QRawFont

func (*QRawFont) Operator_equal1

func (this *QRawFont) Operator_equal1(other QRawFont_ITF) *QRawFont

func (*QRawFont) Operator_equal_equal

func (this *QRawFont) Operator_equal_equal(other QRawFont_ITF) bool

func (*QRawFont) Operator_not_equal

func (this *QRawFont) Operator_not_equal(other QRawFont_ITF) bool

func (*QRawFont) PathForGlyph

func (this *QRawFont) PathForGlyph(glyphIndex uint) *QPainterPath

This function returns the shape of the glyph at a given glyphIndex in the underlying font if the QRawFont is valid. Otherwise, it returns an empty QPainterPath.

The returned glyph will always be unhinted.

See also alphaMapForGlyph() and QPainterPath::addText().

func (*QRawFont) PixelSize

func (this *QRawFont) PixelSize() float64

Returns the pixel size set for this QRawFont. The pixel size affects how glyphs are rasterized, the size of glyphs returned by pathForGlyph(), and is used to convert internal metrics from design units to logical pixel units.

See also setPixelSize().

func (*QRawFont) QRawFont_PTR

func (ptr *QRawFont) QRawFont_PTR() *QRawFont

func (*QRawFont) SetCthis

func (this *QRawFont) SetCthis(cthis unsafe.Pointer)

func (*QRawFont) SetPixelSize

func (this *QRawFont) SetPixelSize(pixelSize float64)

Sets the pixel size with which this font should be rendered to pixelSize.

See also pixelSize().

func (*QRawFont) Style

func (this *QRawFont) Style() int

Returns the style of this QRawFont.

See also QFont::style().

func (*QRawFont) StyleName

func (this *QRawFont) StyleName() string

Returns the style name of this QRawFont.

See also QFont::styleName().

func (*QRawFont) SupportsCharacter

func (this *QRawFont) SupportsCharacter(ucs4 uint) bool

Returns true if the font has a glyph that corresponds to the given character.

See also supportedWritingSystems().

func (*QRawFont) SupportsCharacter1

func (this *QRawFont) SupportsCharacter1(character qtcore.QChar_ITF) bool

Returns true if the font has a glyph that corresponds to the given character.

See also supportedWritingSystems().

func (*QRawFont) Swap

func (this *QRawFont) Swap(other QRawFont_ITF)

Swaps this raw font with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QRawFont) UnderlinePosition

func (this *QRawFont) UnderlinePosition() float64

Returns the position from baseline for drawing underlines below the text rendered with this font.

func (*QRawFont) UnitsPerEm

func (this *QRawFont) UnitsPerEm() float64

Returns the number of design units define the width and height of the em square for this QRawFont. This value is used together with the pixel size when converting design metrics to pixel units, as the internal metrics are specified in design units and the pixel size gives the size of 1 em in pixels.

See also pixelSize() and setPixelSize().

func (*QRawFont) Weight

func (this *QRawFont) Weight() int

Returns the weight of this QRawFont.

See also QFont::weight().

func (*QRawFont) XHeight

func (this *QRawFont) XHeight() float64

Returns the xHeight of this QRawFont in pixel units.

This is often but not always the same as the height of the character 'x'.

See also QFontMetricsF::xHeight().

type QRawFont_ITF

type QRawFont_ITF interface {
	QRawFont_PTR() *QRawFont
}

type QRawFont__AntialiasingType

type QRawFont__AntialiasingType = int

This enum represents the different ways a glyph can be rasterized in the function alphaMapForGlyph().

const QRawFont__PixelAntialiasing QRawFont__AntialiasingType = 0

Will rasterize by measuring the coverage of the shape on whole pixels. The returned image contains the alpha values of each pixel based on the coverage of the glyph shape.

const QRawFont__SubPixelAntialiasing QRawFont__AntialiasingType = 1

Will rasterize by measuring the coverage of each subpixel, returning a separate alpha value for each of the red, green and blue components of each pixel.

type QRawFont__LayoutFlag

type QRawFont__LayoutFlag = int
const QRawFont__KernedAdvances QRawFont__LayoutFlag = 1
const QRawFont__SeparateAdvances QRawFont__LayoutFlag = 0
const QRawFont__UseDesignMetrics QRawFont__LayoutFlag = 2

type QRegExpValidator

type QRegExpValidator struct {
	*QValidator
}

func NewQRegExpValidator

func NewQRegExpValidator(parent qtcore.QObject_ITF) *QRegExpValidator

func NewQRegExpValidator1

func NewQRegExpValidator1(rx qtcore.QRegExp_ITF, parent qtcore.QObject_ITF) *QRegExpValidator

func NewQRegExpValidator1p

func NewQRegExpValidator1p(rx qtcore.QRegExp_ITF) *QRegExpValidator

func NewQRegExpValidatorFromPointer

func NewQRegExpValidatorFromPointer(cthis unsafe.Pointer) *QRegExpValidator

func NewQRegExpValidatorp

func NewQRegExpValidatorp() *QRegExpValidator

func (*QRegExpValidator) GetCthis

func (this *QRegExpValidator) GetCthis() unsafe.Pointer

func (*QRegExpValidator) MetaObject

func (this *QRegExpValidator) MetaObject() *qtcore.QMetaObject

func (*QRegExpValidator) NewForInherit

func (*QRegExpValidator) NewForInherit(parent qtcore.QObject_ITF) *QRegExpValidator

func (*QRegExpValidator) NewForInherit1

func (*QRegExpValidator) NewForInherit1p

func (*QRegExpValidator) NewForInherit1p(rx qtcore.QRegExp_ITF) *QRegExpValidator

func (*QRegExpValidator) NewForInheritp

func (*QRegExpValidator) NewForInheritp() *QRegExpValidator

func (*QRegExpValidator) NewFromPointer

func (*QRegExpValidator) NewFromPointer(cthis unsafe.Pointer) *QRegExpValidator

func (*QRegExpValidator) QRegExpValidator_PTR

func (ptr *QRegExpValidator) QRegExpValidator_PTR() *QRegExpValidator

func (*QRegExpValidator) RegExp

func (this *QRegExpValidator) RegExp() *qtcore.QRegExp

func (*QRegExpValidator) RegExpChanged

func (this *QRegExpValidator) RegExpChanged(regExp qtcore.QRegExp_ITF)

func (*QRegExpValidator) SetCthis

func (this *QRegExpValidator) SetCthis(cthis unsafe.Pointer)

func (*QRegExpValidator) SetRegExp

func (this *QRegExpValidator) SetRegExp(rx qtcore.QRegExp_ITF)

func (*QRegExpValidator) Validate

func (this *QRegExpValidator) Validate(input string, pos int) int

This virtual function returns Invalid if input is invalid according to this validator's rules, Intermediate if it is likely that a little more editing will make the input acceptable (e.g. the user types "4" into a widget which accepts integers between 10 and 99), and Acceptable if the input is valid.

The function can change both input and pos (the cursor position) if required.

type QRegExpValidator_ITF

type QRegExpValidator_ITF interface {
	QValidator_ITF
	QRegExpValidator_PTR() *QRegExpValidator
}

type QRegion

type QRegion struct {
	*qtrt.CObject
}

func NewQRegion

func NewQRegion() *QRegion

func NewQRegion1

func NewQRegion1(x int, y int, w int, h int, t int) *QRegion

func NewQRegion1p

func NewQRegion1p(x int, y int, w int, h int) *QRegion

func NewQRegion2

func NewQRegion2(r qtcore.QRect_ITF, t int) *QRegion

func NewQRegion2p

func NewQRegion2p(r qtcore.QRect_ITF) *QRegion

func NewQRegion3

func NewQRegion3(pa QPolygon_ITF, fillRule int) *QRegion

func NewQRegion3p

func NewQRegion3p(pa QPolygon_ITF) *QRegion

func NewQRegion4

func NewQRegion4(bitmap QBitmap_ITF) *QRegion

func NewQRegionFromPointer

func NewQRegionFromPointer(cthis unsafe.Pointer) *QRegion

func (*QRegion) Begin

func (this *QRegion) Begin() *qtcore.QRect

Returns a const_iterator pointing to the beginning of the range of non-overlapping rectangles that make up the region.

The union of all the rectangles is equal to the original region.

This function was introduced in Qt 5.8.

See also rbegin(), cbegin(), and end().

func (*QRegion) BoundingRect

func (this *QRegion) BoundingRect() *qtcore.QRect

Returns the bounding rectangle of this region. An empty region gives a rectangle that is QRect::isNull().

func (*QRegion) Cbegin

func (this *QRegion) Cbegin() *qtcore.QRect

Same as begin().

This function was introduced in Qt 5.8.

func (*QRegion) Cend

func (this *QRegion) Cend() *qtcore.QRect

Same as end().

This function was introduced in Qt 5.8.

func (*QRegion) Contains

func (this *QRegion) Contains(p qtcore.QPoint_ITF) bool

Returns true if the region contains the point p; otherwise returns false.

func (*QRegion) Contains1

func (this *QRegion) Contains1(r qtcore.QRect_ITF) bool

Returns true if the region contains the point p; otherwise returns false.

func (*QRegion) End

func (this *QRegion) End() *qtcore.QRect

Returns a const_iterator pointing to one past the end of non-overlapping rectangles that make up the region.

The union of all the rectangles is equal to the original region.

This function was introduced in Qt 5.8.

See also rend(), cend(), and begin().

func (*QRegion) GetCthis

func (this *QRegion) GetCthis() unsafe.Pointer

func (*QRegion) Intersected

func (this *QRegion) Intersected(r QRegion_ITF) *QRegion

Returns a region which is the intersection of this region and r.

The figure shows the intersection of two elliptical regions.

This function was introduced in Qt 4.2.

See also subtracted(), united(), and xored().

func (*QRegion) Intersected1

func (this *QRegion) Intersected1(r qtcore.QRect_ITF) *QRegion

Returns a region which is the intersection of this region and r.

The figure shows the intersection of two elliptical regions.

This function was introduced in Qt 4.2.

See also subtracted(), united(), and xored().

func (*QRegion) Intersects

func (this *QRegion) Intersects(r QRegion_ITF) bool

Returns true if this region intersects with region, otherwise returns false.

This function was introduced in Qt 4.2.

func (*QRegion) Intersects1

func (this *QRegion) Intersects1(r qtcore.QRect_ITF) bool

Returns true if this region intersects with region, otherwise returns false.

This function was introduced in Qt 4.2.

func (*QRegion) IsEmpty

func (this *QRegion) IsEmpty() bool

Returns true if the region is empty; otherwise returns false. An empty region is a region that contains no points.

Example:

QRegion r1(10, 10, 20, 20);
r1.isEmpty();               // false

QRegion r3;
r3.isEmpty();               // true

QRegion r2(40, 40, 20, 20);
r3 = r1.intersected(r2);    // r3: intersection of r1 and r2
r3.isEmpty();               // true

r3 = r1.united(r2);         // r3: union of r1 and r2
r3.isEmpty();               // false

func (*QRegion) IsNull

func (this *QRegion) IsNull() bool

Returns true if the region is empty; otherwise returns false. An empty region is a region that contains no points. This function is the same as isEmpty

This function was introduced in Qt 5.0.

See also isEmpty().

func (*QRegion) NewForInherit

func (*QRegion) NewForInherit() *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewForInherit1

func (*QRegion) NewForInherit1(x int, y int, w int, h int, t int) *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewForInherit1p

func (*QRegion) NewForInherit1p(x int, y int, w int, h int) *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewForInherit2

func (*QRegion) NewForInherit2(r qtcore.QRect_ITF, t int) *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewForInherit2p

func (*QRegion) NewForInherit2p(r qtcore.QRect_ITF) *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewForInherit3

func (*QRegion) NewForInherit3(pa QPolygon_ITF, fillRule int) *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewForInherit3p

func (*QRegion) NewForInherit3p(pa QPolygon_ITF) *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewForInherit4

func (*QRegion) NewForInherit4(bitmap QBitmap_ITF) *QRegion

Constructs an empty region.

See also isEmpty().

func (*QRegion) NewFromPointer

func (*QRegion) NewFromPointer(cthis unsafe.Pointer) *QRegion

func (*QRegion) Operator_add

func (this *QRegion) Operator_add(r QRegion_ITF) *QRegion

func (*QRegion) Operator_add1

func (this *QRegion) Operator_add1(r qtcore.QRect_ITF) *QRegion

func (*QRegion) Operator_add_equal

func (this *QRegion) Operator_add_equal(r QRegion_ITF) *QRegion

func (*QRegion) Operator_add_equal1

func (this *QRegion) Operator_add_equal1(r qtcore.QRect_ITF) *QRegion

func (*QRegion) Operator_and

func (this *QRegion) Operator_and(r QRegion_ITF) *QRegion

func (*QRegion) Operator_and1

func (this *QRegion) Operator_and1(r qtcore.QRect_ITF) *QRegion

func (*QRegion) Operator_and_equal

func (this *QRegion) Operator_and_equal(r QRegion_ITF) *QRegion

func (*QRegion) Operator_and_equal1

func (this *QRegion) Operator_and_equal1(r qtcore.QRect_ITF) *QRegion

func (*QRegion) Operator_caret

func (this *QRegion) Operator_caret(r QRegion_ITF) *QRegion

func (*QRegion) Operator_caret_equal

func (this *QRegion) Operator_caret_equal(r QRegion_ITF) *QRegion

func (*QRegion) Operator_equal

func (this *QRegion) Operator_equal(arg0 QRegion_ITF) *QRegion

func (*QRegion) Operator_equal1

func (this *QRegion) Operator_equal1(other unsafe.Pointer) *QRegion

func (*QRegion) Operator_equal_equal

func (this *QRegion) Operator_equal_equal(r QRegion_ITF) bool

func (*QRegion) Operator_minus

func (this *QRegion) Operator_minus(r QRegion_ITF) *QRegion

Applies the subtracted() function to this region and r. r1-r2 is equivalent to r1.subtracted(r2).

See also subtracted().

func (*QRegion) Operator_minus_equal

func (this *QRegion) Operator_minus_equal(r QRegion_ITF) *QRegion

func (*QRegion) Operator_not_equal

func (this *QRegion) Operator_not_equal(r QRegion_ITF) bool

func (*QRegion) Operator_or

func (this *QRegion) Operator_or(r QRegion_ITF) *QRegion

func (*QRegion) Operator_or_equal

func (this *QRegion) Operator_or_equal(r QRegion_ITF) *QRegion

func (*QRegion) QRegion_PTR

func (ptr *QRegion) QRegion_PTR() *QRegion

func (*QRegion) RectCount

func (this *QRegion) RectCount() int

Returns the number of rectangles that this region is composed of. Same as end() - begin().

This function was introduced in Qt 4.6.

func (*QRegion) RegionTypeItemName

func (this *QRegion) RegionTypeItemName(val int) string

func (*QRegion) SetCthis

func (this *QRegion) SetCthis(cthis unsafe.Pointer)

func (*QRegion) SetRects

func (this *QRegion) SetRects(rect qtcore.QRect_ITF, num int)

Sets the region using the array of rectangles specified by rects and number. The rectangles must be optimally Y-X sorted and follow these restrictions:

The rectangles must not intersect. All rectangles with a given top coordinate must have the same height. No two rectangles may abut horizontally (they should be combined into a single wider rectangle in that case). The rectangles must be sorted in ascending order, with Y as the major sort key and X as the minor sort key.

See also rects().

func (*QRegion) Subtracted

func (this *QRegion) Subtracted(r QRegion_ITF) *QRegion

Returns a region which is r subtracted from this region.

The figure shows the result when the ellipse on the right is subtracted from the ellipse on the left (left - right).

This function was introduced in Qt 4.2.

See also intersected(), united(), and xored().

func (*QRegion) Swap

func (this *QRegion) Swap(other QRegion_ITF)

Swaps region other with this region. This operation is very fast and never fails.

This function was introduced in Qt 4.8.

func (*QRegion) Translate

func (this *QRegion) Translate(dx int, dy int)

Translates (moves) the region dx along the X axis and dy along the Y axis.

func (*QRegion) Translate1

func (this *QRegion) Translate1(p qtcore.QPoint_ITF)

Translates (moves) the region dx along the X axis and dy along the Y axis.

func (*QRegion) Translated

func (this *QRegion) Translated(dx int, dy int) *QRegion

Returns a copy of the region that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the region to the right and down.

This function was introduced in Qt 4.1.

See also translate().

func (*QRegion) Translated1

func (this *QRegion) Translated1(p qtcore.QPoint_ITF) *QRegion

Returns a copy of the region that is translated dx along the x axis and dy along the y axis, relative to the current position. Positive values move the region to the right and down.

This function was introduced in Qt 4.1.

See also translate().

func (*QRegion) United

func (this *QRegion) United(r QRegion_ITF) *QRegion

Returns a region which is the union of this region and r.

The figure shows the union of two elliptical regions.

This function was introduced in Qt 4.2.

See also intersected(), subtracted(), and xored().

func (*QRegion) United1

func (this *QRegion) United1(r qtcore.QRect_ITF) *QRegion

Returns a region which is the union of this region and r.

The figure shows the union of two elliptical regions.

This function was introduced in Qt 4.2.

See also intersected(), subtracted(), and xored().

func (*QRegion) Xored

func (this *QRegion) Xored(r QRegion_ITF) *QRegion

Returns a region which is the exclusive or (XOR) of this region and r.

The figure shows the exclusive or of two elliptical regions.

This function was introduced in Qt 4.2.

See also intersected(), united(), and subtracted().

type QRegion_ITF

type QRegion_ITF interface {
	QRegion_PTR() *QRegion
}

type QRegion__RegionType

type QRegion__RegionType = int

Specifies the shape of the region to be created.

const QRegion__Ellipse QRegion__RegionType = 1

the region is an ellipse inside the rectangle.

const QRegion__Rectangle QRegion__RegionType = 0

the region covers the entire rectangle.

type QRegularExpressionValidator

type QRegularExpressionValidator struct {
	*QValidator
}

func NewQRegularExpressionValidator

func NewQRegularExpressionValidator(parent qtcore.QObject_ITF) *QRegularExpressionValidator

func NewQRegularExpressionValidatorFromPointer

func NewQRegularExpressionValidatorFromPointer(cthis unsafe.Pointer) *QRegularExpressionValidator

func NewQRegularExpressionValidatorp

func NewQRegularExpressionValidatorp() *QRegularExpressionValidator

func (*QRegularExpressionValidator) GetCthis

func (this *QRegularExpressionValidator) GetCthis() unsafe.Pointer

func (*QRegularExpressionValidator) MetaObject

func (this *QRegularExpressionValidator) MetaObject() *qtcore.QMetaObject

func (*QRegularExpressionValidator) NewForInherit

func (*QRegularExpressionValidator) NewForInherit1

func (*QRegularExpressionValidator) NewForInherit1p

func (*QRegularExpressionValidator) NewForInheritp

func (*QRegularExpressionValidator) NewFromPointer

func (*QRegularExpressionValidator) QRegularExpressionValidator_PTR

func (ptr *QRegularExpressionValidator) QRegularExpressionValidator_PTR() *QRegularExpressionValidator

func (*QRegularExpressionValidator) RegularExpression

func (this *QRegularExpressionValidator) RegularExpression() *qtcore.QRegularExpression

func (*QRegularExpressionValidator) RegularExpressionChanged

func (this *QRegularExpressionValidator) RegularExpressionChanged(re qtcore.QRegularExpression_ITF)

func (*QRegularExpressionValidator) SetCthis

func (this *QRegularExpressionValidator) SetCthis(cthis unsafe.Pointer)

func (*QRegularExpressionValidator) SetRegularExpression

func (this *QRegularExpressionValidator) SetRegularExpression(re qtcore.QRegularExpression_ITF)

func (*QRegularExpressionValidator) Validate

func (this *QRegularExpressionValidator) Validate(input string, pos int) int

This virtual function returns Invalid if input is invalid according to this validator's rules, Intermediate if it is likely that a little more editing will make the input acceptable (e.g. the user types "4" into a widget which accepts integers between 10 and 99), and Acceptable if the input is valid.

The function can change both input and pos (the cursor position) if required.

type QRegularExpressionValidator_ITF

type QRegularExpressionValidator_ITF interface {
	QValidator_ITF
	QRegularExpressionValidator_PTR() *QRegularExpressionValidator
}

type QResizeEvent

type QResizeEvent struct {
	*qtcore.QEvent
}

func NewQResizeEvent

func NewQResizeEvent(size qtcore.QSize_ITF, oldSize qtcore.QSize_ITF) *QResizeEvent

func NewQResizeEventFromPointer

func NewQResizeEventFromPointer(cthis unsafe.Pointer) *QResizeEvent

func (*QResizeEvent) GetCthis

func (this *QResizeEvent) GetCthis() unsafe.Pointer

func (*QResizeEvent) NewForInherit

func (*QResizeEvent) NewForInherit(size qtcore.QSize_ITF, oldSize qtcore.QSize_ITF) *QResizeEvent

func (*QResizeEvent) NewFromPointer

func (*QResizeEvent) NewFromPointer(cthis unsafe.Pointer) *QResizeEvent

func (*QResizeEvent) OldSize

func (this *QResizeEvent) OldSize() *qtcore.QSize

func (*QResizeEvent) QResizeEvent_PTR

func (ptr *QResizeEvent) QResizeEvent_PTR() *QResizeEvent

func (*QResizeEvent) SetCthis

func (this *QResizeEvent) SetCthis(cthis unsafe.Pointer)

func (*QResizeEvent) Size

func (this *QResizeEvent) Size() *qtcore.QSize

type QResizeEvent_ITF

type QResizeEvent_ITF interface {
	qtcore.QEvent_ITF
	QResizeEvent_PTR() *QResizeEvent
}

type QRgba64

type QRgba64 struct {
	*qtrt.CObject
}

func NewQRgba64

func NewQRgba64() *QRgba64

func NewQRgba64FromPointer

func NewQRgba64FromPointer(cthis unsafe.Pointer) *QRgba64

func QRgba64_FromArgb32

func QRgba64_FromArgb32(rgb uint) *QRgba64

func QRgba64_FromRgba

func QRgba64_FromRgba(red byte, green byte, blue byte, alpha byte) *QRgba64

func QRgba64_FromRgba64

func QRgba64_FromRgba64(c uint64) *QRgba64

func QRgba64_FromRgba641

func QRgba64_FromRgba641(red uint16, green uint16, blue uint16, alpha uint16) *QRgba64

func (*QRgba64) Alpha

func (this *QRgba64) Alpha() uint16

Returns the 16-bit alpha channel.

See also setAlpha().

func (*QRgba64) Alpha8

func (this *QRgba64) Alpha8() byte

Returns the alpha channel as an 8-bit.

func (*QRgba64) Blue

func (this *QRgba64) Blue() uint16

Returns the 16-bit blue color component.

See also setBlue().

func (*QRgba64) Blue8

func (this *QRgba64) Blue8() byte

Returns the blue color component as an 8-bit.

func (*QRgba64) FromArgb32

func (this *QRgba64) FromArgb32(rgb uint) *QRgba64

Constructs a QRgba64 value from the 32bit ARGB value rgb.

See also fromRgba().

func (*QRgba64) FromRgba

func (this *QRgba64) FromRgba(red byte, green byte, blue byte, alpha byte) *QRgba64

Constructs a QRgba64 value from the four 8-bit color channels red, green, blue and alpha.

See also fromArgb32().

func (*QRgba64) FromRgba64

func (this *QRgba64) FromRgba64(c uint64) *QRgba64

Returns c as a QRgba64 struct.

See also fromArgb32().

func (*QRgba64) FromRgba641

func (this *QRgba64) FromRgba641(red uint16, green uint16, blue uint16, alpha uint16) *QRgba64

Returns c as a QRgba64 struct.

See also fromArgb32().

func (*QRgba64) GetCthis

func (this *QRgba64) GetCthis() unsafe.Pointer

func (*QRgba64) Green

func (this *QRgba64) Green() uint16

Returns the 16-bit green color component.

See also setGreen().

func (*QRgba64) Green8

func (this *QRgba64) Green8() byte

Returns the green color component as an 8-bit.

func (*QRgba64) IsOpaque

func (this *QRgba64) IsOpaque() bool

Returns whether the color is fully opaque.

See also isTransparent() and alpha().

func (*QRgba64) IsTransparent

func (this *QRgba64) IsTransparent() bool

Returns whether the color is transparent.

See also isOpaque() and alpha().

func (*QRgba64) NewForInherit

func (*QRgba64) NewForInherit() *QRgba64

Default constructs an instance of QRgba64.

func (*QRgba64) NewFromPointer

func (*QRgba64) NewFromPointer(cthis unsafe.Pointer) *QRgba64

func (*QRgba64) Operator_equal

func (this *QRgba64) Operator_equal(_rgba uint64) *QRgba64

func (*QRgba64) Premultiplied

func (this *QRgba64) Premultiplied() *QRgba64

Returns the color with the alpha premultiplied.

See also unpremultiplied().

func (*QRgba64) QRgba64_PTR

func (ptr *QRgba64) QRgba64_PTR() *QRgba64

func (*QRgba64) Red

func (this *QRgba64) Red() uint16

Returns the 16-bit red color component.

See also setRed().

func (*QRgba64) Red8

func (this *QRgba64) Red8() byte

Returns the red color component as an 8-bit.

func (*QRgba64) SetAlpha

func (this *QRgba64) SetAlpha(_alpha uint16)

Sets the alpha of this color to alpha.

See also alpha().

func (*QRgba64) SetBlue

func (this *QRgba64) SetBlue(_blue uint16)

Sets the blue color component of this color to blue.

See also blue().

func (*QRgba64) SetCthis

func (this *QRgba64) SetCthis(cthis unsafe.Pointer)

func (*QRgba64) SetGreen

func (this *QRgba64) SetGreen(_green uint16)

Sets the green color component of this color to green.

See also green().

func (*QRgba64) SetRed

func (this *QRgba64) SetRed(_red uint16)

Sets the red color component of this color to red.

See also red().

func (*QRgba64) ShiftsItemName

func (this *QRgba64) ShiftsItemName(val int) string

func (*QRgba64) ToArgb32

func (this *QRgba64) ToArgb32() uint

Returns the color as a 32-bit ARGB value.

See also fromArgb32().

func (*QRgba64) ToRgb16

func (this *QRgba64) ToRgb16() uint16

Returns the color as a 16-bit RGB value.

See also toArgb32().

func (*QRgba64) Unpremultiplied

func (this *QRgba64) Unpremultiplied() *QRgba64

Returns the color with the alpha unpremultiplied.

See also premultiplied().

type QRgba64_ITF

type QRgba64_ITF interface {
	QRgba64_PTR() *QRgba64
}

type QRgba64__Shifts

type QRgba64__Shifts = int
const QRgba64__AlphaShift QRgba64__Shifts = 48
const QRgba64__BlueShift QRgba64__Shifts = 32
const QRgba64__GreenShift QRgba64__Shifts = 16
const QRgba64__RedShift QRgba64__Shifts = 0

type QScreen

type QScreen struct {
	*qtcore.QObject
}

func NewQScreenFromPointer

func NewQScreenFromPointer(cthis unsafe.Pointer) *QScreen

func QGuiApplication_PrimaryScreen

func QGuiApplication_PrimaryScreen() *QScreen

func QGuiApplication_ScreenAt

func QGuiApplication_ScreenAt(point qtcore.QPoint_ITF) *QScreen

func (*QScreen) AngleBetween

func (this *QScreen) AngleBetween(a int, b int) int

Convenience function to compute the angle of rotation to get from rotation a to rotation b.

The result will be 0, 90, 180, or 270.

Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation().

func (*QScreen) AvailableGeometry

func (this *QScreen) AvailableGeometry() *qtcore.QRect

func (*QScreen) AvailableGeometryChanged

func (this *QScreen) AvailableGeometryChanged(geometry qtcore.QRect_ITF)

func (*QScreen) AvailableSize

func (this *QScreen) AvailableSize() *qtcore.QSize

func (*QScreen) AvailableVirtualGeometry

func (this *QScreen) AvailableVirtualGeometry() *qtcore.QRect

func (*QScreen) AvailableVirtualSize

func (this *QScreen) AvailableVirtualSize() *qtcore.QSize

func (*QScreen) Depth

func (this *QScreen) Depth() int

func (*QScreen) DevicePixelRatio

func (this *QScreen) DevicePixelRatio() float64

func (*QScreen) Geometry

func (this *QScreen) Geometry() *qtcore.QRect

func (*QScreen) GeometryChanged

func (this *QScreen) GeometryChanged(geometry qtcore.QRect_ITF)

func (*QScreen) GetCthis

func (this *QScreen) GetCthis() unsafe.Pointer

func (*QScreen) GrabWindow

func (this *QScreen) GrabWindow(window uint64, x int, y int, w int, h int) *QPixmap

Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by QRect(x, y, width, height).

The arguments (x, y) specify the offset in the window, whereas (width, height) specify the area to be copied. If width is negative, the function copies everything to the right border of the window. If height is negative, the function copies everything to the bottom of the window.

The offset and size arguments are specified in device independent pixels. The returned pixmap may be larger than the requested size when grabbing from a high-DPI screen. Call QPixmap::devicePixelRatio() to determine if this is the case.

The window system identifier (WId) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a QWidget, is to enable grabbing of windows that are not part of the application, window system frames, and so on.

Warning: Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.

The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.

Note on X11 that if the given window doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will not get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.

On Windows Vista and above grabbing a layered window, which is created by setting the Qt::WA_TranslucentBackground attribute, will not work. Instead grabbing the desktop widget should work.

Warning: In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.

func (*QScreen) GrabWindowp

func (this *QScreen) GrabWindowp(window uint64) *QPixmap

Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by QRect(x, y, width, height).

The arguments (x, y) specify the offset in the window, whereas (width, height) specify the area to be copied. If width is negative, the function copies everything to the right border of the window. If height is negative, the function copies everything to the bottom of the window.

The offset and size arguments are specified in device independent pixels. The returned pixmap may be larger than the requested size when grabbing from a high-DPI screen. Call QPixmap::devicePixelRatio() to determine if this is the case.

The window system identifier (WId) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a QWidget, is to enable grabbing of windows that are not part of the application, window system frames, and so on.

Warning: Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.

The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.

Note on X11 that if the given window doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will not get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.

On Windows Vista and above grabbing a layered window, which is created by setting the Qt::WA_TranslucentBackground attribute, will not work. Instead grabbing the desktop widget should work.

Warning: In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.

func (*QScreen) GrabWindowp1

func (this *QScreen) GrabWindowp1(window uint64, x int) *QPixmap

Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by QRect(x, y, width, height).

The arguments (x, y) specify the offset in the window, whereas (width, height) specify the area to be copied. If width is negative, the function copies everything to the right border of the window. If height is negative, the function copies everything to the bottom of the window.

The offset and size arguments are specified in device independent pixels. The returned pixmap may be larger than the requested size when grabbing from a high-DPI screen. Call QPixmap::devicePixelRatio() to determine if this is the case.

The window system identifier (WId) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a QWidget, is to enable grabbing of windows that are not part of the application, window system frames, and so on.

Warning: Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.

The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.

Note on X11 that if the given window doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will not get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.

On Windows Vista and above grabbing a layered window, which is created by setting the Qt::WA_TranslucentBackground attribute, will not work. Instead grabbing the desktop widget should work.

Warning: In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.

func (*QScreen) GrabWindowp2

func (this *QScreen) GrabWindowp2(window uint64, x int, y int) *QPixmap

Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by QRect(x, y, width, height).

The arguments (x, y) specify the offset in the window, whereas (width, height) specify the area to be copied. If width is negative, the function copies everything to the right border of the window. If height is negative, the function copies everything to the bottom of the window.

The offset and size arguments are specified in device independent pixels. The returned pixmap may be larger than the requested size when grabbing from a high-DPI screen. Call QPixmap::devicePixelRatio() to determine if this is the case.

The window system identifier (WId) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a QWidget, is to enable grabbing of windows that are not part of the application, window system frames, and so on.

Warning: Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.

The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.

Note on X11 that if the given window doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will not get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.

On Windows Vista and above grabbing a layered window, which is created by setting the Qt::WA_TranslucentBackground attribute, will not work. Instead grabbing the desktop widget should work.

Warning: In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.

func (*QScreen) GrabWindowp3

func (this *QScreen) GrabWindowp3(window uint64, x int, y int, w int) *QPixmap

Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by QRect(x, y, width, height).

The arguments (x, y) specify the offset in the window, whereas (width, height) specify the area to be copied. If width is negative, the function copies everything to the right border of the window. If height is negative, the function copies everything to the bottom of the window.

The offset and size arguments are specified in device independent pixels. The returned pixmap may be larger than the requested size when grabbing from a high-DPI screen. Call QPixmap::devicePixelRatio() to determine if this is the case.

The window system identifier (WId) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a QWidget, is to enable grabbing of windows that are not part of the application, window system frames, and so on.

Warning: Grabbing windows that are not part of the application is not supported on systems such as iOS, where sandboxing/security prevents reading pixels of windows not owned by the application.

The grabWindow() function grabs pixels from the screen, not from the window, i.e. if there is another window partially or entirely over the one you grab, you get pixels from the overlying window, too. The mouse cursor is generally not grabbed.

Note on X11 that if the given window doesn't have the same depth as the root window, and another window partially or entirely obscures the one you grab, you will not get pixels from the overlying window. The contents of the obscured areas in the pixmap will be undefined and uninitialized.

On Windows Vista and above grabbing a layered window, which is created by setting the Qt::WA_TranslucentBackground attribute, will not work. Instead grabbing the desktop widget should work.

Warning: In general, grabbing an area outside the screen is not safe. This depends on the underlying window system.

func (*QScreen) IsLandscape

func (this *QScreen) IsLandscape(orientation int) bool

Convenience function that returns true if o is either landscape or inverted landscape; otherwise returns false.

Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation().

func (*QScreen) IsPortrait

func (this *QScreen) IsPortrait(orientation int) bool

Convenience function that returns true if o is either portrait or inverted portrait; otherwise returns false.

Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation().

func (*QScreen) LogicalDotsPerInch

func (this *QScreen) LogicalDotsPerInch() float64

func (*QScreen) LogicalDotsPerInchChanged

func (this *QScreen) LogicalDotsPerInchChanged(dpi float64)

func (*QScreen) LogicalDotsPerInchX

func (this *QScreen) LogicalDotsPerInchX() float64

func (*QScreen) LogicalDotsPerInchY

func (this *QScreen) LogicalDotsPerInchY() float64

func (*QScreen) Manufacturer

func (this *QScreen) Manufacturer() string

func (*QScreen) MapBetween

func (this *QScreen) MapBetween(a int, b int, rect qtcore.QRect_ITF) *qtcore.QRect

Maps the rect between two screen orientations.

This will flip the x and y dimensions of the rectangle rect if the orientation a is Qt::PortraitOrientation or Qt::InvertedPortraitOrientation and orientation b is Qt::LandscapeOrientation or Qt::InvertedLandscapeOrientation, or vice versa.

Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation().

func (*QScreen) MetaObject

func (this *QScreen) MetaObject() *qtcore.QMetaObject

func (*QScreen) Model

func (this *QScreen) Model() string

func (*QScreen) Name

func (this *QScreen) Name() string

func (*QScreen) NativeOrientation

func (this *QScreen) NativeOrientation() int

func (*QScreen) NewFromPointer

func (*QScreen) NewFromPointer(cthis unsafe.Pointer) *QScreen

func (*QScreen) Orientation

func (this *QScreen) Orientation() int

func (*QScreen) OrientationChanged

func (this *QScreen) OrientationChanged(orientation int)

This signal is emitted when the orientation of the screen changes with orientation as an argument.

Note: Notifier signal for property orientation.

See also orientation().

func (*QScreen) OrientationUpdateMask

func (this *QScreen) OrientationUpdateMask() int

Returns the currently set orientation update mask.

See also setOrientationUpdateMask().

func (*QScreen) PhysicalDotsPerInch

func (this *QScreen) PhysicalDotsPerInch() float64

func (*QScreen) PhysicalDotsPerInchChanged

func (this *QScreen) PhysicalDotsPerInchChanged(dpi float64)

func (*QScreen) PhysicalDotsPerInchX

func (this *QScreen) PhysicalDotsPerInchX() float64

func (*QScreen) PhysicalDotsPerInchY

func (this *QScreen) PhysicalDotsPerInchY() float64

func (*QScreen) PhysicalSize

func (this *QScreen) PhysicalSize() *qtcore.QSizeF

func (*QScreen) PhysicalSizeChanged

func (this *QScreen) PhysicalSizeChanged(size qtcore.QSizeF_ITF)

func (*QScreen) PrimaryOrientation

func (this *QScreen) PrimaryOrientation() int

func (*QScreen) PrimaryOrientationChanged

func (this *QScreen) PrimaryOrientationChanged(orientation int)

This signal is emitted when the primary orientation of the screen changes with orientation as an argument.

Note: Notifier signal for property primaryOrientation.

See also primaryOrientation().

func (*QScreen) QScreen_PTR

func (ptr *QScreen) QScreen_PTR() *QScreen

func (*QScreen) RefreshRate

func (this *QScreen) RefreshRate() float64

func (*QScreen) RefreshRateChanged

func (this *QScreen) RefreshRateChanged(refreshRate float64)

func (*QScreen) SerialNumber

func (this *QScreen) SerialNumber() string

func (*QScreen) SetCthis

func (this *QScreen) SetCthis(cthis unsafe.Pointer)

func (*QScreen) SetOrientationUpdateMask

func (this *QScreen) SetOrientationUpdateMask(mask int)

Sets the orientations that the application is interested in receiving updates for in conjunction with this screen.

For example, to receive orientation() updates and thus have orientationChanged() signals being emitted for LandscapeOrientation and InvertedLandscapeOrientation, call setOrientationUpdateMask() with mask set to Qt::LandscapeOrientation | Qt::InvertedLandscapeOrientation.

The default, 0, means no orientationChanged() signals are fired.

See also orientationUpdateMask().

func (*QScreen) Size

func (this *QScreen) Size() *qtcore.QSize

func (*QScreen) TransformBetween

func (this *QScreen) TransformBetween(a int, b int, target qtcore.QRect_ITF) *QTransform

Convenience function to compute a transform that maps from the coordinate system defined by orientation a into the coordinate system defined by orientation b and target dimensions target.

Example, a is Qt::Landscape, b is Qt::Portrait, and target is QRect(0, 0, w, h) the resulting transform will be such that the point QPoint(0, 0) is mapped to QPoint(0, w), and QPoint(h, w) is mapped to QPoint(0, h). Thus, the landscape coordinate system QRect(0, 0, h, w) is mapped (with a 90 degree rotation) into the portrait coordinate system QRect(0, 0, w, h).

Qt::PrimaryOrientation is interpreted as the screen's primaryOrientation().

func (*QScreen) VirtualGeometry

func (this *QScreen) VirtualGeometry() *qtcore.QRect

func (*QScreen) VirtualGeometryChanged

func (this *QScreen) VirtualGeometryChanged(rect qtcore.QRect_ITF)

func (*QScreen) VirtualSize

func (this *QScreen) VirtualSize() *qtcore.QSize

type QScreenList

type QScreenList struct {
	*qtrt.CObject
}

body block begin

func (*QScreenList) Append0

func (this *QScreenList) Append0()

void append(const T &)

func (*QScreenList) Append1

func (this *QScreenList) Append1()

void append(const QList<T> &)

func (*QScreenList) At0

func (this *QScreenList) At0() *QScreen

const T & at(int)

func (*QScreenList) Back0

func (this *QScreenList) Back0() *QScreen

T & back()

func (*QScreenList) Back1

func (this *QScreenList) Back1() *QScreen

const T & back()

func (*QScreenList) Begin0

func (this *QScreenList) Begin0()

QList::iterator begin()

func (*QScreenList) Begin1

func (this *QScreenList) Begin1()

QList::const_iterator begin()

func (*QScreenList) Cbegin0

func (this *QScreenList) Cbegin0()

QList::const_iterator cbegin()

func (*QScreenList) Cend0

func (this *QScreenList) Cend0()

QList::const_iterator cend()

func (*QScreenList) Clear0

func (this *QScreenList) Clear0()

void clear()

func (*QScreenList) ConstBegin0

func (this *QScreenList) ConstBegin0()

QList::const_iterator constBegin()

func (*QScreenList) ConstEnd0

func (this *QScreenList) ConstEnd0()

QList::const_iterator constEnd()

func (*QScreenList) ConstFirst0

func (this *QScreenList) ConstFirst0() *QScreen

const T & constFirst()

func (*QScreenList) ConstLast0

func (this *QScreenList) ConstLast0() *QScreen

const T & constLast()

func (*QScreenList) Contains0

func (this *QScreenList) Contains0() bool

bool contains(const T &)

func (*QScreenList) Contains_impl0

func (this *QScreenList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QScreenList) Contains_impl1

func (this *QScreenList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QScreenList) Count0

func (this *QScreenList) Count0() int

int count(const T &)

func (*QScreenList) Count1

func (this *QScreenList) Count1() int

int count()

func (*QScreenList) Count_impl0

func (this *QScreenList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QScreenList) Count_impl1

func (this *QScreenList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QScreenList) Crbegin0

func (this *QScreenList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QScreenList) Crend0

func (this *QScreenList) Crend0()

QList::const_reverse_iterator crend()

func (*QScreenList) Dealloc0

func (this *QScreenList) Dealloc0()

void dealloc(QListData::Data *)

func (*QScreenList) Detach0

func (this *QScreenList) Detach0()

void detach()

func (*QScreenList) DetachShared0

func (this *QScreenList) DetachShared0()

void detachShared()

func (*QScreenList) Detach_helper0

func (this *QScreenList) Detach_helper0()

void detach_helper(int)

func (*QScreenList) Detach_helper1

func (this *QScreenList) Detach_helper1()

void detach_helper()

func (*QScreenList) Detach_helper_grow0

func (this *QScreenList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QScreenList) Empty0

func (this *QScreenList) Empty0() bool

bool empty()

func (*QScreenList) End0

func (this *QScreenList) End0()

QList::iterator end()

func (*QScreenList) End1

func (this *QScreenList) End1()

QList::const_iterator end()

func (*QScreenList) EndsWith0

func (this *QScreenList) EndsWith0() bool

bool endsWith(const T &)

func (*QScreenList) Erase0

func (this *QScreenList) Erase0()

QList::iterator erase(QList::iterator)

func (*QScreenList) Erase1

func (this *QScreenList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QScreenList) First0

func (this *QScreenList) First0() *QScreen

T & first()

func (*QScreenList) First1

func (this *QScreenList) First1() *QScreen

const T & first()

func (*QScreenList) FromSet0

func (this *QScreenList) FromSet0() *QScreenList

QList<T> fromSet(const QSet<T> &)

func (*QScreenList) FromStdList0

func (this *QScreenList) FromStdList0() *QScreenList

QList<T> fromStdList(const std::list<T> &)

func (*QScreenList) FromVector0

func (this *QScreenList) FromVector0() *QScreenList

QList<T> fromVector(const QVector<T> &)

func (*QScreenList) Front0

func (this *QScreenList) Front0() *QScreen

T & front()

func (*QScreenList) Front1

func (this *QScreenList) Front1() *QScreen

const T & front()

func (*QScreenList) IndexOf0

func (this *QScreenList) IndexOf0() int

int indexOf(const T &, int)

func (*QScreenList) Insert0

func (this *QScreenList) Insert0()

void insert(int, const T &)

func (*QScreenList) Insert1

func (this *QScreenList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QScreenList) IsDetached0

func (this *QScreenList) IsDetached0() bool

bool isDetached()

func (*QScreenList) IsEmpty0

func (this *QScreenList) IsEmpty0() bool

bool isEmpty()

func (*QScreenList) IsSharedWith0

func (this *QScreenList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QScreenList) IsValidIterator0

func (this *QScreenList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QScreenList) Last0

func (this *QScreenList) Last0() *QScreen

T & last()

func (*QScreenList) Last1

func (this *QScreenList) Last1() *QScreen

const T & last()

func (*QScreenList) LastIndexOf0

func (this *QScreenList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QScreenList) Length0

func (this *QScreenList) Length0() int

int length()

func (*QScreenList) Mid0

func (this *QScreenList) Mid0() *QScreenList

QList<T> mid(int, int)

func (*QScreenList) Move0

func (this *QScreenList) Move0()

void move(int, int)

func (*QScreenList) Node_construct0

func (this *QScreenList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QScreenList) Node_copy0

func (this *QScreenList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QScreenList) Node_destruct0

func (this *QScreenList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QScreenList) Node_destruct1

func (this *QScreenList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QScreenList) Op_eq_impl0

func (this *QScreenList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QScreenList) Op_eq_impl1

func (this *QScreenList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QScreenList) Operator_add0

func (this *QScreenList) Operator_add0() *QScreenList

QList<T> operator+(const QList<T> &)

func (*QScreenList) Operator_add_equal0

func (this *QScreenList) Operator_add_equal0() *QScreenList

QList<T> & operator+=(const QList<T> &)

func (*QScreenList) Operator_add_equal1

func (this *QScreenList) Operator_add_equal1() *QScreenList

QList<T> & operator+=(const T &)

func (*QScreenList) Operator_equal0

func (this *QScreenList) Operator_equal0() *QScreenList

QList<T> & operator=(const QList<T> &)

func (*QScreenList) Operator_equal1

func (this *QScreenList) Operator_equal1() *QScreenList

QList<T> & operator=(QList<T> &&)

func (*QScreenList) Operator_equal_equal0

func (this *QScreenList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QScreenList) Operator_get_index0

func (this *QScreenList) Operator_get_index0() *QScreen

const T & operator[](int)

func (*QScreenList) Operator_get_index1

func (this *QScreenList) Operator_get_index1() *QScreen

T & operator[](int)

func (*QScreenList) Operator_left_shift0

func (this *QScreenList) Operator_left_shift0() *QScreenList

QList<T> & operator<<(const T &)

func (*QScreenList) Operator_left_shift1

func (this *QScreenList) Operator_left_shift1() *QScreenList

QList<T> & operator<<(const QList<T> &)

func (*QScreenList) Operator_not_equal0

func (this *QScreenList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QScreenList) Pop_back0

func (this *QScreenList) Pop_back0()

void pop_back()

func (*QScreenList) Pop_front0

func (this *QScreenList) Pop_front0()

void pop_front()

func (*QScreenList) Prepend0

func (this *QScreenList) Prepend0()

void prepend(const T &)

func (*QScreenList) Push_back0

func (this *QScreenList) Push_back0()

void push_back(const T &)

func (*QScreenList) Push_front0

func (this *QScreenList) Push_front0()

void push_front(const T &)

func (*QScreenList) Rbegin0

func (this *QScreenList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QScreenList) Rbegin1

func (this *QScreenList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QScreenList) RemoveAll0

func (this *QScreenList) RemoveAll0() int

int removeAll(const T &)

func (*QScreenList) RemoveAt0

func (this *QScreenList) RemoveAt0()

void removeAt(int)

func (*QScreenList) RemoveFirst0

func (this *QScreenList) RemoveFirst0()

void removeFirst()

func (*QScreenList) RemoveLast0

func (this *QScreenList) RemoveLast0()

void removeLast()

func (*QScreenList) RemoveOne0

func (this *QScreenList) RemoveOne0() bool

bool removeOne(const T &)

func (*QScreenList) Rend0

func (this *QScreenList) Rend0()

QList::reverse_iterator rend()

func (*QScreenList) Rend1

func (this *QScreenList) Rend1()

QList::const_reverse_iterator rend()

func (*QScreenList) Replace0

func (this *QScreenList) Replace0()

void replace(int, const T &)

func (*QScreenList) Reserve0

func (this *QScreenList) Reserve0()

void reserve(int)

func (*QScreenList) SetSharable0

func (this *QScreenList) SetSharable0()

void setSharable(bool)

func (*QScreenList) Size0

func (this *QScreenList) Size0() int

int size()

func (*QScreenList) StartsWith0

func (this *QScreenList) StartsWith0() bool

bool startsWith(const T &)

func (*QScreenList) Swap0

func (this *QScreenList) Swap0()

void swap(QList<T> &)

func (*QScreenList) Swap1

func (this *QScreenList) Swap1()

void swap(int, int)

func (*QScreenList) TakeAt0

func (this *QScreenList) TakeAt0() *QScreen

T takeAt(int)

func (*QScreenList) TakeFirst0

func (this *QScreenList) TakeFirst0() *QScreen

T takeFirst()

func (*QScreenList) TakeLast0

func (this *QScreenList) TakeLast0() *QScreen

T takeLast()

func (*QScreenList) ToSet0

func (this *QScreenList) ToSet0()

QSet<T> toSet()

func (*QScreenList) ToStdList0

func (this *QScreenList) ToStdList0()

std::list<T> toStdList()

func (*QScreenList) ToVector0

func (this *QScreenList) ToVector0()

QVector<T> toVector()

func (*QScreenList) Value0

func (this *QScreenList) Value0() *QScreen

T value(int)

func (*QScreenList) Value1

func (this *QScreenList) Value1() *QScreen

T value(int, const T &)

type QScreenOrientationChangeEvent

type QScreenOrientationChangeEvent struct {
	*qtcore.QEvent
}

func NewQScreenOrientationChangeEvent

func NewQScreenOrientationChangeEvent(screen QScreen_ITF, orientation int) *QScreenOrientationChangeEvent

func NewQScreenOrientationChangeEventFromPointer

func NewQScreenOrientationChangeEventFromPointer(cthis unsafe.Pointer) *QScreenOrientationChangeEvent

func (*QScreenOrientationChangeEvent) GetCthis

func (this *QScreenOrientationChangeEvent) GetCthis() unsafe.Pointer

func (*QScreenOrientationChangeEvent) NewForInherit

func (*QScreenOrientationChangeEvent) NewForInherit(screen QScreen_ITF, orientation int) *QScreenOrientationChangeEvent

func (*QScreenOrientationChangeEvent) NewFromPointer

func (*QScreenOrientationChangeEvent) Orientation

func (this *QScreenOrientationChangeEvent) Orientation() int

func (*QScreenOrientationChangeEvent) QScreenOrientationChangeEvent_PTR

func (ptr *QScreenOrientationChangeEvent) QScreenOrientationChangeEvent_PTR() *QScreenOrientationChangeEvent

func (*QScreenOrientationChangeEvent) Screen

func (this *QScreenOrientationChangeEvent) Screen() *QScreen

func (*QScreenOrientationChangeEvent) SetCthis

func (this *QScreenOrientationChangeEvent) SetCthis(cthis unsafe.Pointer)

type QScreenOrientationChangeEvent_ITF

type QScreenOrientationChangeEvent_ITF interface {
	qtcore.QEvent_ITF
	QScreenOrientationChangeEvent_PTR() *QScreenOrientationChangeEvent
}

type QScreen_ITF

type QScreen_ITF interface {
	qtcore.QObject_ITF
	QScreen_PTR() *QScreen
}

type QScrollEvent

type QScrollEvent struct {
	*qtcore.QEvent
}

func NewQScrollEvent

func NewQScrollEvent(contentPos qtcore.QPointF_ITF, overshoot qtcore.QPointF_ITF, scrollState int) *QScrollEvent

func NewQScrollEventFromPointer

func NewQScrollEventFromPointer(cthis unsafe.Pointer) *QScrollEvent

func (*QScrollEvent) ContentPos

func (this *QScrollEvent) ContentPos() *qtcore.QPointF

func (*QScrollEvent) GetCthis

func (this *QScrollEvent) GetCthis() unsafe.Pointer

func (*QScrollEvent) NewForInherit

func (*QScrollEvent) NewForInherit(contentPos qtcore.QPointF_ITF, overshoot qtcore.QPointF_ITF, scrollState int) *QScrollEvent

func (*QScrollEvent) NewFromPointer

func (*QScrollEvent) NewFromPointer(cthis unsafe.Pointer) *QScrollEvent

func (*QScrollEvent) OvershootDistance

func (this *QScrollEvent) OvershootDistance() *qtcore.QPointF

func (*QScrollEvent) QScrollEvent_PTR

func (ptr *QScrollEvent) QScrollEvent_PTR() *QScrollEvent

func (*QScrollEvent) ScrollState

func (this *QScrollEvent) ScrollState() int

func (*QScrollEvent) ScrollStateItemName

func (this *QScrollEvent) ScrollStateItemName(val int) string

func (*QScrollEvent) SetCthis

func (this *QScrollEvent) SetCthis(cthis unsafe.Pointer)

type QScrollEvent_ITF

type QScrollEvent_ITF interface {
	qtcore.QEvent_ITF
	QScrollEvent_PTR() *QScrollEvent
}

type QScrollEvent__ScrollState

type QScrollEvent__ScrollState = int
const QScrollEvent__ScrollFinished QScrollEvent__ScrollState = 2
const QScrollEvent__ScrollStarted QScrollEvent__ScrollState = 0
const QScrollEvent__ScrollUpdated QScrollEvent__ScrollState = 1

type QScrollPrepareEvent

type QScrollPrepareEvent struct {
	*qtcore.QEvent
}

func NewQScrollPrepareEvent

func NewQScrollPrepareEvent(startPos qtcore.QPointF_ITF) *QScrollPrepareEvent

func NewQScrollPrepareEventFromPointer

func NewQScrollPrepareEventFromPointer(cthis unsafe.Pointer) *QScrollPrepareEvent

func (*QScrollPrepareEvent) ContentPos

func (this *QScrollPrepareEvent) ContentPos() *qtcore.QPointF

func (*QScrollPrepareEvent) ContentPosRange

func (this *QScrollPrepareEvent) ContentPosRange() *qtcore.QRectF

func (*QScrollPrepareEvent) GetCthis

func (this *QScrollPrepareEvent) GetCthis() unsafe.Pointer

func (*QScrollPrepareEvent) NewForInherit

func (*QScrollPrepareEvent) NewForInherit(startPos qtcore.QPointF_ITF) *QScrollPrepareEvent

func (*QScrollPrepareEvent) NewFromPointer

func (*QScrollPrepareEvent) NewFromPointer(cthis unsafe.Pointer) *QScrollPrepareEvent

func (*QScrollPrepareEvent) QScrollPrepareEvent_PTR

func (ptr *QScrollPrepareEvent) QScrollPrepareEvent_PTR() *QScrollPrepareEvent

func (*QScrollPrepareEvent) SetContentPos

func (this *QScrollPrepareEvent) SetContentPos(pos qtcore.QPointF_ITF)

func (*QScrollPrepareEvent) SetContentPosRange

func (this *QScrollPrepareEvent) SetContentPosRange(rect qtcore.QRectF_ITF)

func (*QScrollPrepareEvent) SetCthis

func (this *QScrollPrepareEvent) SetCthis(cthis unsafe.Pointer)

func (*QScrollPrepareEvent) SetViewportSize

func (this *QScrollPrepareEvent) SetViewportSize(size qtcore.QSizeF_ITF)

func (*QScrollPrepareEvent) StartPos

func (this *QScrollPrepareEvent) StartPos() *qtcore.QPointF

func (*QScrollPrepareEvent) ViewportSize

func (this *QScrollPrepareEvent) ViewportSize() *qtcore.QSizeF

type QScrollPrepareEvent_ITF

type QScrollPrepareEvent_ITF interface {
	qtcore.QEvent_ITF
	QScrollPrepareEvent_PTR() *QScrollPrepareEvent
}

type QSessionManager

type QSessionManager struct {
	*qtcore.QObject
}

func NewQSessionManagerFromPointer

func NewQSessionManagerFromPointer(cthis unsafe.Pointer) *QSessionManager

func (*QSessionManager) AllowsErrorInteraction

func (this *QSessionManager) AllowsErrorInteraction() bool

Returns true if error interaction is permitted; otherwise returns false.

This is similar to allowsInteraction(), but also enables the application to tell the user about any errors that occur. Session managers may give error interaction requests higher priority, which means that it is more likely that an error interaction is permitted. However, you are still not guaranteed that the session manager will allow interaction.

See also allowsInteraction(), release(), and cancel().

func (*QSessionManager) AllowsInteraction

func (this *QSessionManager) AllowsInteraction() bool

Asks the session manager for permission to interact with the user. Returns true if interaction is permitted; otherwise returns false.

The rationale behind this mechanism is to make it possible to synchronize user interaction during a shutdown. Advanced session managers may ask all applications simultaneously to commit their data, resulting in a much faster shutdown.

When the interaction is completed we strongly recommend releasing the user interaction semaphore with a call to release(). This way, other applications may get the chance to interact with the user while your application is still busy saving data. (The semaphore is implicitly released when the application exits.)

If the user decides to cancel the shutdown process during the interaction phase, you must tell the session manager that this has happened by calling cancel().

Here's an example of how an application's QGuiApplication::commitDataRequest() might be implemented:

MyMainWidget::MyMainWidget(QWidget *parent)
    :QWidget(parent)
{
    QGuiApplication::setFallbackSessionManagementEnabled(false);
    connect(qApp, SIGNAL(commitDataRequest(QSessionManager)), SLOT(commitData(QSessionManager)));
}

void MyMainWidget::commitData(QSessionManager& manager)
{
    if (manager.allowsInteraction()) {
        int ret = QMessageBox::warning(
                    mainWindow,
                    tr("My Application"),
                    tr("Save changes to document?"),
                    QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);

        switch (ret) {
        case QMessageBox::Save:
            manager.release();
            if (!saveDocument())
                manager.cancel();
            break;
        case QMessageBox::Discard:
            break;
        case QMessageBox::Cancel:
        default:
            manager.cancel();
        }
    } else {
        // we did not get permission to interact, then
        // do something reasonable instead
    }
}

If an error occurred within the application while saving its data, you may want to try allowsErrorInteraction() instead.

See also QGuiApplication::commitDataRequest(), release(), and cancel().

func (*QSessionManager) Cancel

func (this *QSessionManager) Cancel()

Tells the session manager to cancel the shutdown process. Applications should not call this function without asking the user first.

See also allowsInteraction() and allowsErrorInteraction().

func (*QSessionManager) DiscardCommand

func (this *QSessionManager) DiscardCommand() *qtcore.QStringList

Returns the currently set discard command.

To iterate over the list, you can use the foreach pseudo-keyword:

foreach (const QString &command, mySession.discardCommand())
    do_something(command);

See also setDiscardCommand(), restartCommand(), and setRestartCommand().

func (*QSessionManager) GetCthis

func (this *QSessionManager) GetCthis() unsafe.Pointer

func (*QSessionManager) IsPhase2

func (this *QSessionManager) IsPhase2() bool

Returns true if the session manager is currently performing a second session management phase; otherwise returns false.

See also requestPhase2().

func (*QSessionManager) MetaObject

func (this *QSessionManager) MetaObject() *qtcore.QMetaObject

func (*QSessionManager) NewFromPointer

func (*QSessionManager) NewFromPointer(cthis unsafe.Pointer) *QSessionManager

func (*QSessionManager) QSessionManager_PTR

func (ptr *QSessionManager) QSessionManager_PTR() *QSessionManager

func (*QSessionManager) Release

func (this *QSessionManager) Release()

Releases the session manager's interaction semaphore after an interaction phase.

See also allowsInteraction() and allowsErrorInteraction().

func (*QSessionManager) RequestPhase2

func (this *QSessionManager) RequestPhase2()

Requests a second session management phase for the application. The application may then return immediately from the QGuiApplication::commitDataRequest() or QApplication::saveStateRequest() function, and they will be called again once most or all other applications have finished their session management.

The two phases are useful for applications such as the X11 window manager that need to store information about another application's windows and therefore have to wait until these applications have completed their respective session management tasks.

Note: If another application has requested a second phase it may get called before, simultaneously with, or after your application's second phase.

See also isPhase2().

func (*QSessionManager) RestartCommand

func (this *QSessionManager) RestartCommand() *qtcore.QStringList

Returns the currently set restart command.

To iterate over the list, you can use the foreach pseudo-keyword:

foreach (const QString &command, mySession.restartCommand())
    do_something(command);

See also setRestartCommand() and restartHint().

func (*QSessionManager) RestartHint

func (this *QSessionManager) RestartHint() int

Returns the application's current restart hint. The default is RestartIfRunning.

See also setRestartHint().

func (*QSessionManager) RestartHintItemName

func (this *QSessionManager) RestartHintItemName(val int) string

func (*QSessionManager) SessionId

func (this *QSessionManager) SessionId() string

Returns the identifier of the current session.

If the application has been restored from an earlier session, this identifier is the same as it was in the earlier session.

See also sessionKey() and QGuiApplication::sessionId().

func (*QSessionManager) SessionKey

func (this *QSessionManager) SessionKey() string

Returns the session key in the current session.

If the application has been restored from an earlier session, this key is the same as it was when the previous session ended.

The session key changes with every call of commitData() or saveState().

See also sessionId() and QGuiApplication::sessionKey().

func (*QSessionManager) SetCthis

func (this *QSessionManager) SetCthis(cthis unsafe.Pointer)

func (*QSessionManager) SetDiscardCommand

func (this *QSessionManager) SetDiscardCommand(arg0 qtcore.QStringList_ITF)

Sets the discard command to the given command.

See also discardCommand() and setRestartCommand().

func (*QSessionManager) SetManagerProperty

func (this *QSessionManager) SetManagerProperty(name string, value string)

Low-level write access to the application's identification and state record are kept in the session manager.

The property called name has its value set to the string list value.

func (*QSessionManager) SetManagerProperty1

func (this *QSessionManager) SetManagerProperty1(name string, value qtcore.QStringList_ITF)

Low-level write access to the application's identification and state record are kept in the session manager.

The property called name has its value set to the string list value.

func (*QSessionManager) SetRestartCommand

func (this *QSessionManager) SetRestartCommand(arg0 qtcore.QStringList_ITF)

If the session manager is capable of restoring sessions it will execute command in order to restore the application. The command defaults to

appname -session id

The -session option is mandatory; otherwise QGuiApplication cannot tell whether it has been restored or what the current session identifier is. See QGuiApplication::isSessionRestored() and QGuiApplication::sessionId() for details.

If your application is very simple, it may be possible to store the entire application state in additional command line options. This is usually a very bad idea because command lines are often limited to a few hundred bytes. Instead, use QSettings, temporary files, or a database for this purpose. By marking the data with the unique sessionId(), you will be able to restore the application in a future session.

See also restartCommand(), setDiscardCommand(), and setRestartHint().

func (*QSessionManager) SetRestartHint

func (this *QSessionManager) SetRestartHint(arg0 int)

Sets the application's restart hint to hint. On application startup, the hint is set to RestartIfRunning.

Note: These flags are only hints, a session manager may or may not respect them.

We recommend setting the restart hint in QGuiApplication::saveStateRequest() because most session managers perform a checkpoint shortly after an application's startup.

See also restartHint().

type QSessionManager_ITF

type QSessionManager_ITF interface {
	qtcore.QObject_ITF
	QSessionManager_PTR() *QSessionManager
}

type QSessionManager__RestartHint

type QSessionManager__RestartHint = int

This enum type defines the circumstances under which this application wants to be restarted by the session manager. The current values are:

The default hint is RestartIfRunning.

const QSessionManager__RestartAnyway QSessionManager__RestartHint = 1

The application wants to be started at the start of the next session, no matter what. (This is useful for utilities that run just after startup and then quit.)

const QSessionManager__RestartIfRunning QSessionManager__RestartHint = 0

If the application is still running when the session is shut down, it wants to be restarted at the start of the next session.

const QSessionManager__RestartImmediately QSessionManager__RestartHint = 2

The application wants to be started immediately whenever it is not running.

const QSessionManager__RestartNever QSessionManager__RestartHint = 3

The application does not want to be restarted automatically.

type QShortcutEvent

type QShortcutEvent struct {
	*qtcore.QEvent
}

func NewQShortcutEvent

func NewQShortcutEvent(key QKeySequence_ITF, id int, ambiguous bool) *QShortcutEvent

func NewQShortcutEventFromPointer

func NewQShortcutEventFromPointer(cthis unsafe.Pointer) *QShortcutEvent

func NewQShortcutEventp

func NewQShortcutEventp(key QKeySequence_ITF, id int) *QShortcutEvent

func (*QShortcutEvent) GetCthis

func (this *QShortcutEvent) GetCthis() unsafe.Pointer

func (*QShortcutEvent) IsAmbiguous

func (this *QShortcutEvent) IsAmbiguous() bool

func (*QShortcutEvent) Key

func (this *QShortcutEvent) Key() *QKeySequence

func (*QShortcutEvent) NewForInherit

func (*QShortcutEvent) NewForInherit(key QKeySequence_ITF, id int, ambiguous bool) *QShortcutEvent

func (*QShortcutEvent) NewForInheritp

func (*QShortcutEvent) NewForInheritp(key QKeySequence_ITF, id int) *QShortcutEvent

func (*QShortcutEvent) NewFromPointer

func (*QShortcutEvent) NewFromPointer(cthis unsafe.Pointer) *QShortcutEvent

func (*QShortcutEvent) QShortcutEvent_PTR

func (ptr *QShortcutEvent) QShortcutEvent_PTR() *QShortcutEvent

func (*QShortcutEvent) SetCthis

func (this *QShortcutEvent) SetCthis(cthis unsafe.Pointer)

func (*QShortcutEvent) ShortcutId

func (this *QShortcutEvent) ShortcutId() int

type QShortcutEvent_ITF

type QShortcutEvent_ITF interface {
	qtcore.QEvent_ITF
	QShortcutEvent_PTR() *QShortcutEvent
}

type QShowEvent

type QShowEvent struct {
	*qtcore.QEvent
}

func NewQShowEvent

func NewQShowEvent() *QShowEvent

func NewQShowEventFromPointer

func NewQShowEventFromPointer(cthis unsafe.Pointer) *QShowEvent

func (*QShowEvent) GetCthis

func (this *QShowEvent) GetCthis() unsafe.Pointer

func (*QShowEvent) NewForInherit

func (*QShowEvent) NewForInherit() *QShowEvent

func (*QShowEvent) NewFromPointer

func (*QShowEvent) NewFromPointer(cthis unsafe.Pointer) *QShowEvent

func (*QShowEvent) QShowEvent_PTR

func (ptr *QShowEvent) QShowEvent_PTR() *QShowEvent

func (*QShowEvent) SetCthis

func (this *QShowEvent) SetCthis(cthis unsafe.Pointer)

type QShowEvent_ITF

type QShowEvent_ITF interface {
	qtcore.QEvent_ITF
	QShowEvent_PTR() *QShowEvent
}

type QStandardItem

type QStandardItem struct {
	*qtrt.CObject
}

func NewQStandardItem

func NewQStandardItem() *QStandardItem

func NewQStandardItem1

func NewQStandardItem1(text string) *QStandardItem

func NewQStandardItem2

func NewQStandardItem2(icon QIcon_ITF, text string) *QStandardItem

func NewQStandardItem3

func NewQStandardItem3(rows int, columns int) *QStandardItem

func NewQStandardItem3p

func NewQStandardItem3p(rows int) *QStandardItem

func NewQStandardItemFromPointer

func NewQStandardItemFromPointer(cthis unsafe.Pointer) *QStandardItem

func (*QStandardItem) AccessibleDescription

func (this *QStandardItem) AccessibleDescription() string

func (*QStandardItem) AccessibleText

func (this *QStandardItem) AccessibleText() string

func (*QStandardItem) AppendRow

func (this *QStandardItem) AppendRow(item QStandardItem_ITF)

Appends a row containing items. If necessary, the column count is increased to the size of items.

This function was introduced in Qt 4.2.

See also insertRow() and appendColumn().

func (*QStandardItem) Background

func (this *QStandardItem) Background() *QBrush

func (*QStandardItem) CheckState

func (this *QStandardItem) CheckState() int

func (*QStandardItem) Child

func (this *QStandardItem) Child(row int, column int) *QStandardItem

func (*QStandardItem) Childp

func (this *QStandardItem) Childp(row int) *QStandardItem

func (*QStandardItem) ClearData

func (this *QStandardItem) ClearData()

func (*QStandardItem) Clone

func (this *QStandardItem) Clone() *QStandardItem

func (*QStandardItem) Column

func (this *QStandardItem) Column() int

func (*QStandardItem) ColumnCount

func (this *QStandardItem) ColumnCount() int

Reimplemented from QAbstractItemModel::columnCount().

See also setColumnCount().

func (*QStandardItem) Data

func (this *QStandardItem) Data(role int) *qtcore.QVariant

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QStandardItem) Datap

func (this *QStandardItem) Datap() *qtcore.QVariant

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QStandardItem) EmitDataChanged

func (this *QStandardItem) EmitDataChanged()

func (*QStandardItem) Flags

func (this *QStandardItem) Flags() int

Reimplemented from QAbstractItemModel::flags().

func (*QStandardItem) Font

func (this *QStandardItem) Font() *QFont

func (*QStandardItem) Foreground

func (this *QStandardItem) Foreground() *QBrush

func (*QStandardItem) GetCthis

func (this *QStandardItem) GetCthis() unsafe.Pointer

func (*QStandardItem) HasChildren

func (this *QStandardItem) HasChildren() bool

Reimplemented from QAbstractItemModel::hasChildren().

func (*QStandardItem) Icon

func (this *QStandardItem) Icon() *QIcon

func (*QStandardItem) Index

func (this *QStandardItem) Index() *qtcore.QModelIndex

Reimplemented from QAbstractItemModel::index().

func (*QStandardItem) InheritEmitDataChanged

func (this *QStandardItem) InheritEmitDataChanged(f func())

void emitDataChanged()

func (*QStandardItem) InheritOperator_equal

func (this *QStandardItem) InheritOperator_equal(f func(other *QStandardItem) unsafe.Pointer)

QStandardItem & operator=(const QStandardItem &)

func (*QStandardItem) InsertColumns

func (this *QStandardItem) InsertColumns(column int, count int)

Reimplemented from QAbstractItemModel::insertColumns().

func (*QStandardItem) InsertRow

func (this *QStandardItem) InsertRow(row int, item QStandardItem_ITF)

Inserts a row at row containing items. If necessary, the column count is increased to the size of items.

This function was introduced in Qt 4.2.

See also takeRow(), appendRow(), and insertColumn().

func (*QStandardItem) InsertRows

func (this *QStandardItem) InsertRows(row int, count int)

Reimplemented from QAbstractItemModel::insertRows().

func (*QStandardItem) IsAutoTristate

func (this *QStandardItem) IsAutoTristate() bool

func (*QStandardItem) IsCheckable

func (this *QStandardItem) IsCheckable() bool

func (*QStandardItem) IsDragEnabled

func (this *QStandardItem) IsDragEnabled() bool

func (*QStandardItem) IsDropEnabled

func (this *QStandardItem) IsDropEnabled() bool

func (*QStandardItem) IsEditable

func (this *QStandardItem) IsEditable() bool

func (*QStandardItem) IsEnabled

func (this *QStandardItem) IsEnabled() bool

func (*QStandardItem) IsSelectable

func (this *QStandardItem) IsSelectable() bool

func (*QStandardItem) IsTristate

func (this *QStandardItem) IsTristate() bool

func (*QStandardItem) IsUserTristate

func (this *QStandardItem) IsUserTristate() bool

func (*QStandardItem) ItemTypeItemName

func (this *QStandardItem) ItemTypeItemName(val int) string

func (*QStandardItem) Model

func (this *QStandardItem) Model() *QStandardItemModel

func (*QStandardItem) NewForInherit

func (*QStandardItem) NewForInherit() *QStandardItem

func (*QStandardItem) NewForInherit1

func (*QStandardItem) NewForInherit1(text string) *QStandardItem

func (*QStandardItem) NewForInherit2

func (*QStandardItem) NewForInherit2(icon QIcon_ITF, text string) *QStandardItem

func (*QStandardItem) NewForInherit3

func (*QStandardItem) NewForInherit3(rows int, columns int) *QStandardItem

func (*QStandardItem) NewForInherit3p

func (*QStandardItem) NewForInherit3p(rows int) *QStandardItem

func (*QStandardItem) NewFromPointer

func (*QStandardItem) NewFromPointer(cthis unsafe.Pointer) *QStandardItem

func (*QStandardItem) Operator_equal

func (this *QStandardItem) Operator_equal(other QStandardItem_ITF) *QStandardItem

func (*QStandardItem) Operator_less_than

func (this *QStandardItem) Operator_less_than(other QStandardItem_ITF) bool

func (*QStandardItem) Parent

func (this *QStandardItem) Parent() *QStandardItem

Reimplemented from QAbstractItemModel::parent().

func (*QStandardItem) QStandardItem_PTR

func (ptr *QStandardItem) QStandardItem_PTR() *QStandardItem

func (*QStandardItem) Read

func (this *QStandardItem) Read(in qtcore.QDataStream_ITF)

func (*QStandardItem) RemoveColumn

func (this *QStandardItem) RemoveColumn(column int)

func (*QStandardItem) RemoveColumns

func (this *QStandardItem) RemoveColumns(column int, count int)

Reimplemented from QAbstractItemModel::removeColumns().

func (*QStandardItem) RemoveRow

func (this *QStandardItem) RemoveRow(row int)

func (*QStandardItem) RemoveRows

func (this *QStandardItem) RemoveRows(row int, count int)

Reimplemented from QAbstractItemModel::removeRows().

func (*QStandardItem) Row

func (this *QStandardItem) Row() int

func (*QStandardItem) RowCount

func (this *QStandardItem) RowCount() int

Reimplemented from QAbstractItemModel::rowCount().

See also setRowCount().

func (*QStandardItem) SetAccessibleDescription

func (this *QStandardItem) SetAccessibleDescription(accessibleDescription string)

func (*QStandardItem) SetAccessibleText

func (this *QStandardItem) SetAccessibleText(accessibleText string)

func (*QStandardItem) SetAutoTristate

func (this *QStandardItem) SetAutoTristate(tristate bool)

func (*QStandardItem) SetBackground

func (this *QStandardItem) SetBackground(brush QBrush_ITF)

func (*QStandardItem) SetCheckState

func (this *QStandardItem) SetCheckState(checkState int)

func (*QStandardItem) SetCheckable

func (this *QStandardItem) SetCheckable(checkable bool)

func (*QStandardItem) SetChild

func (this *QStandardItem) SetChild(row int, column int, item QStandardItem_ITF)

func (*QStandardItem) SetChild1

func (this *QStandardItem) SetChild1(row int, item QStandardItem_ITF)

func (*QStandardItem) SetColumnCount

func (this *QStandardItem) SetColumnCount(columns int)

Sets the number of columns in this model to columns. If this is less than columnCount(), the data in the unwanted columns is discarded.

This function was introduced in Qt 4.2.

See also columnCount() and setRowCount().

func (*QStandardItem) SetCthis

func (this *QStandardItem) SetCthis(cthis unsafe.Pointer)

func (*QStandardItem) SetData

func (this *QStandardItem) SetData(value qtcore.QVariant_ITF, role int)

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QStandardItem) SetDatap

func (this *QStandardItem) SetDatap(value qtcore.QVariant_ITF)

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QStandardItem) SetDragEnabled

func (this *QStandardItem) SetDragEnabled(dragEnabled bool)

func (*QStandardItem) SetDropEnabled

func (this *QStandardItem) SetDropEnabled(dropEnabled bool)

func (*QStandardItem) SetEditable

func (this *QStandardItem) SetEditable(editable bool)

func (*QStandardItem) SetEnabled

func (this *QStandardItem) SetEnabled(enabled bool)

func (*QStandardItem) SetFlags

func (this *QStandardItem) SetFlags(flags int)

func (*QStandardItem) SetFont

func (this *QStandardItem) SetFont(font QFont_ITF)

func (*QStandardItem) SetForeground

func (this *QStandardItem) SetForeground(brush QBrush_ITF)

func (*QStandardItem) SetIcon

func (this *QStandardItem) SetIcon(icon QIcon_ITF)

func (*QStandardItem) SetRowCount

func (this *QStandardItem) SetRowCount(rows int)

Sets the number of rows in this model to rows. If this is less than rowCount(), the data in the unwanted rows is discarded.

This function was introduced in Qt 4.2.

See also rowCount() and setColumnCount().

func (*QStandardItem) SetSelectable

func (this *QStandardItem) SetSelectable(selectable bool)

func (*QStandardItem) SetSizeHint

func (this *QStandardItem) SetSizeHint(sizeHint qtcore.QSize_ITF)

func (*QStandardItem) SetStatusTip

func (this *QStandardItem) SetStatusTip(statusTip string)

func (*QStandardItem) SetText

func (this *QStandardItem) SetText(text string)

func (*QStandardItem) SetTextAlignment

func (this *QStandardItem) SetTextAlignment(textAlignment int)

func (*QStandardItem) SetToolTip

func (this *QStandardItem) SetToolTip(toolTip string)

func (*QStandardItem) SetTristate

func (this *QStandardItem) SetTristate(tristate bool)

func (*QStandardItem) SetUserTristate

func (this *QStandardItem) SetUserTristate(tristate bool)

func (*QStandardItem) SetWhatsThis

func (this *QStandardItem) SetWhatsThis(whatsThis string)

func (*QStandardItem) SizeHint

func (this *QStandardItem) SizeHint() *qtcore.QSize

func (*QStandardItem) SortChildren

func (this *QStandardItem) SortChildren(column int, order int)

func (*QStandardItem) SortChildrenp

func (this *QStandardItem) SortChildrenp(column int)

func (*QStandardItem) StatusTip

func (this *QStandardItem) StatusTip() string

func (*QStandardItem) TakeChild

func (this *QStandardItem) TakeChild(row int, column int) *QStandardItem

func (*QStandardItem) TakeChildp

func (this *QStandardItem) TakeChildp(row int) *QStandardItem

func (*QStandardItem) Text

func (this *QStandardItem) Text() string

func (*QStandardItem) TextAlignment

func (this *QStandardItem) TextAlignment() int

func (*QStandardItem) ToolTip

func (this *QStandardItem) ToolTip() string

func (*QStandardItem) Type

func (this *QStandardItem) Type() int

func (*QStandardItem) WhatsThis

func (this *QStandardItem) WhatsThis() string

func (*QStandardItem) Write

func (this *QStandardItem) Write(out_ qtcore.QDataStream_ITF)

type QStandardItemList

type QStandardItemList struct {
	*qtrt.CObject
}

body block begin

func (*QStandardItemList) Append0

func (this *QStandardItemList) Append0()

void append(const T &)

func (*QStandardItemList) Append1

func (this *QStandardItemList) Append1()

void append(const QList<T> &)

func (*QStandardItemList) At0

func (this *QStandardItemList) At0() *QStandardItem

const T & at(int)

func (*QStandardItemList) Back0

func (this *QStandardItemList) Back0() *QStandardItem

T & back()

func (*QStandardItemList) Back1

func (this *QStandardItemList) Back1() *QStandardItem

const T & back()

func (*QStandardItemList) Begin0

func (this *QStandardItemList) Begin0()

QList::iterator begin()

func (*QStandardItemList) Begin1

func (this *QStandardItemList) Begin1()

QList::const_iterator begin()

func (*QStandardItemList) Cbegin0

func (this *QStandardItemList) Cbegin0()

QList::const_iterator cbegin()

func (*QStandardItemList) Cend0

func (this *QStandardItemList) Cend0()

QList::const_iterator cend()

func (*QStandardItemList) Clear0

func (this *QStandardItemList) Clear0()

void clear()

func (*QStandardItemList) ConstBegin0

func (this *QStandardItemList) ConstBegin0()

QList::const_iterator constBegin()

func (*QStandardItemList) ConstEnd0

func (this *QStandardItemList) ConstEnd0()

QList::const_iterator constEnd()

func (*QStandardItemList) ConstFirst0

func (this *QStandardItemList) ConstFirst0() *QStandardItem

const T & constFirst()

func (*QStandardItemList) ConstLast0

func (this *QStandardItemList) ConstLast0() *QStandardItem

const T & constLast()

func (*QStandardItemList) Contains0

func (this *QStandardItemList) Contains0() bool

bool contains(const T &)

func (*QStandardItemList) Contains_impl0

func (this *QStandardItemList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QStandardItemList) Contains_impl1

func (this *QStandardItemList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QStandardItemList) Count0

func (this *QStandardItemList) Count0() int

int count(const T &)

func (*QStandardItemList) Count1

func (this *QStandardItemList) Count1() int

int count()

func (*QStandardItemList) Count_impl0

func (this *QStandardItemList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QStandardItemList) Count_impl1

func (this *QStandardItemList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QStandardItemList) Crbegin0

func (this *QStandardItemList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QStandardItemList) Crend0

func (this *QStandardItemList) Crend0()

QList::const_reverse_iterator crend()

func (*QStandardItemList) Dealloc0

func (this *QStandardItemList) Dealloc0()

void dealloc(QListData::Data *)

func (*QStandardItemList) Detach0

func (this *QStandardItemList) Detach0()

void detach()

func (*QStandardItemList) DetachShared0

func (this *QStandardItemList) DetachShared0()

void detachShared()

func (*QStandardItemList) Detach_helper0

func (this *QStandardItemList) Detach_helper0()

void detach_helper(int)

func (*QStandardItemList) Detach_helper1

func (this *QStandardItemList) Detach_helper1()

void detach_helper()

func (*QStandardItemList) Detach_helper_grow0

func (this *QStandardItemList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QStandardItemList) Empty0

func (this *QStandardItemList) Empty0() bool

bool empty()

func (*QStandardItemList) End0

func (this *QStandardItemList) End0()

QList::iterator end()

func (*QStandardItemList) End1

func (this *QStandardItemList) End1()

QList::const_iterator end()

func (*QStandardItemList) EndsWith0

func (this *QStandardItemList) EndsWith0() bool

bool endsWith(const T &)

func (*QStandardItemList) Erase0

func (this *QStandardItemList) Erase0()

QList::iterator erase(QList::iterator)

func (*QStandardItemList) Erase1

func (this *QStandardItemList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QStandardItemList) First0

func (this *QStandardItemList) First0() *QStandardItem

T & first()

func (*QStandardItemList) First1

func (this *QStandardItemList) First1() *QStandardItem

const T & first()

func (*QStandardItemList) FromSet0

func (this *QStandardItemList) FromSet0() *QStandardItemList

QList<T> fromSet(const QSet<T> &)

func (*QStandardItemList) FromStdList0

func (this *QStandardItemList) FromStdList0() *QStandardItemList

QList<T> fromStdList(const std::list<T> &)

func (*QStandardItemList) FromVector0

func (this *QStandardItemList) FromVector0() *QStandardItemList

QList<T> fromVector(const QVector<T> &)

func (*QStandardItemList) Front0

func (this *QStandardItemList) Front0() *QStandardItem

T & front()

func (*QStandardItemList) Front1

func (this *QStandardItemList) Front1() *QStandardItem

const T & front()

func (*QStandardItemList) IndexOf0

func (this *QStandardItemList) IndexOf0() int

int indexOf(const T &, int)

func (*QStandardItemList) Insert0

func (this *QStandardItemList) Insert0()

void insert(int, const T &)

func (*QStandardItemList) Insert1

func (this *QStandardItemList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QStandardItemList) IsDetached0

func (this *QStandardItemList) IsDetached0() bool

bool isDetached()

func (*QStandardItemList) IsEmpty0

func (this *QStandardItemList) IsEmpty0() bool

bool isEmpty()

func (*QStandardItemList) IsSharedWith0

func (this *QStandardItemList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QStandardItemList) IsValidIterator0

func (this *QStandardItemList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QStandardItemList) Last0

func (this *QStandardItemList) Last0() *QStandardItem

T & last()

func (*QStandardItemList) Last1

func (this *QStandardItemList) Last1() *QStandardItem

const T & last()

func (*QStandardItemList) LastIndexOf0

func (this *QStandardItemList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QStandardItemList) Length0

func (this *QStandardItemList) Length0() int

int length()

func (*QStandardItemList) Mid0

func (this *QStandardItemList) Mid0() *QStandardItemList

QList<T> mid(int, int)

func (*QStandardItemList) Move0

func (this *QStandardItemList) Move0()

void move(int, int)

func (*QStandardItemList) Node_construct0

func (this *QStandardItemList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QStandardItemList) Node_copy0

func (this *QStandardItemList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QStandardItemList) Node_destruct0

func (this *QStandardItemList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QStandardItemList) Node_destruct1

func (this *QStandardItemList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QStandardItemList) Op_eq_impl0

func (this *QStandardItemList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QStandardItemList) Op_eq_impl1

func (this *QStandardItemList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QStandardItemList) Operator_add0

func (this *QStandardItemList) Operator_add0() *QStandardItemList

QList<T> operator+(const QList<T> &)

func (*QStandardItemList) Operator_add_equal0

func (this *QStandardItemList) Operator_add_equal0() *QStandardItemList

QList<T> & operator+=(const QList<T> &)

func (*QStandardItemList) Operator_add_equal1

func (this *QStandardItemList) Operator_add_equal1() *QStandardItemList

QList<T> & operator+=(const T &)

func (*QStandardItemList) Operator_equal0

func (this *QStandardItemList) Operator_equal0() *QStandardItemList

QList<T> & operator=(const QList<T> &)

func (*QStandardItemList) Operator_equal1

func (this *QStandardItemList) Operator_equal1() *QStandardItemList

QList<T> & operator=(QList<T> &&)

func (*QStandardItemList) Operator_equal_equal0

func (this *QStandardItemList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QStandardItemList) Operator_get_index0

func (this *QStandardItemList) Operator_get_index0() *QStandardItem

const T & operator[](int)

func (*QStandardItemList) Operator_get_index1

func (this *QStandardItemList) Operator_get_index1() *QStandardItem

T & operator[](int)

func (*QStandardItemList) Operator_left_shift0

func (this *QStandardItemList) Operator_left_shift0() *QStandardItemList

QList<T> & operator<<(const T &)

func (*QStandardItemList) Operator_left_shift1

func (this *QStandardItemList) Operator_left_shift1() *QStandardItemList

QList<T> & operator<<(const QList<T> &)

func (*QStandardItemList) Operator_not_equal0

func (this *QStandardItemList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QStandardItemList) Pop_back0

func (this *QStandardItemList) Pop_back0()

void pop_back()

func (*QStandardItemList) Pop_front0

func (this *QStandardItemList) Pop_front0()

void pop_front()

func (*QStandardItemList) Prepend0

func (this *QStandardItemList) Prepend0()

void prepend(const T &)

func (*QStandardItemList) Push_back0

func (this *QStandardItemList) Push_back0()

void push_back(const T &)

func (*QStandardItemList) Push_front0

func (this *QStandardItemList) Push_front0()

void push_front(const T &)

func (*QStandardItemList) Rbegin0

func (this *QStandardItemList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QStandardItemList) Rbegin1

func (this *QStandardItemList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QStandardItemList) RemoveAll0

func (this *QStandardItemList) RemoveAll0() int

int removeAll(const T &)

func (*QStandardItemList) RemoveAt0

func (this *QStandardItemList) RemoveAt0()

void removeAt(int)

func (*QStandardItemList) RemoveFirst0

func (this *QStandardItemList) RemoveFirst0()

void removeFirst()

func (*QStandardItemList) RemoveLast0

func (this *QStandardItemList) RemoveLast0()

void removeLast()

func (*QStandardItemList) RemoveOne0

func (this *QStandardItemList) RemoveOne0() bool

bool removeOne(const T &)

func (*QStandardItemList) Rend0

func (this *QStandardItemList) Rend0()

QList::reverse_iterator rend()

func (*QStandardItemList) Rend1

func (this *QStandardItemList) Rend1()

QList::const_reverse_iterator rend()

func (*QStandardItemList) Replace0

func (this *QStandardItemList) Replace0()

void replace(int, const T &)

func (*QStandardItemList) Reserve0

func (this *QStandardItemList) Reserve0()

void reserve(int)

func (*QStandardItemList) SetSharable0

func (this *QStandardItemList) SetSharable0()

void setSharable(bool)

func (*QStandardItemList) Size0

func (this *QStandardItemList) Size0() int

int size()

func (*QStandardItemList) StartsWith0

func (this *QStandardItemList) StartsWith0() bool

bool startsWith(const T &)

func (*QStandardItemList) Swap0

func (this *QStandardItemList) Swap0()

void swap(QList<T> &)

func (*QStandardItemList) Swap1

func (this *QStandardItemList) Swap1()

void swap(int, int)

func (*QStandardItemList) TakeAt0

func (this *QStandardItemList) TakeAt0() *QStandardItem

T takeAt(int)

func (*QStandardItemList) TakeFirst0

func (this *QStandardItemList) TakeFirst0() *QStandardItem

T takeFirst()

func (*QStandardItemList) TakeLast0

func (this *QStandardItemList) TakeLast0() *QStandardItem

T takeLast()

func (*QStandardItemList) ToSet0

func (this *QStandardItemList) ToSet0()

QSet<T> toSet()

func (*QStandardItemList) ToStdList0

func (this *QStandardItemList) ToStdList0()

std::list<T> toStdList()

func (*QStandardItemList) ToVector0

func (this *QStandardItemList) ToVector0()

QVector<T> toVector()

func (*QStandardItemList) Value0

func (this *QStandardItemList) Value0() *QStandardItem

T value(int)

func (*QStandardItemList) Value1

func (this *QStandardItemList) Value1() *QStandardItem

T value(int, const T &)

type QStandardItemModel

type QStandardItemModel struct {
	*qtcore.QAbstractItemModel
}

func NewQStandardItemModel

func NewQStandardItemModel(parent qtcore.QObject_ITF) *QStandardItemModel

func NewQStandardItemModel1

func NewQStandardItemModel1(rows int, columns int, parent qtcore.QObject_ITF) *QStandardItemModel

func NewQStandardItemModel1p

func NewQStandardItemModel1p(rows int, columns int) *QStandardItemModel

func NewQStandardItemModelFromPointer

func NewQStandardItemModelFromPointer(cthis unsafe.Pointer) *QStandardItemModel

func NewQStandardItemModelp

func NewQStandardItemModelp() *QStandardItemModel

func (*QStandardItemModel) AppendRow

func (this *QStandardItemModel) AppendRow(item QStandardItem_ITF)

Appends a row containing items. If necessary, the column count is increased to the size of items.

This function was introduced in Qt 4.2.

See also insertRow() and appendColumn().

func (*QStandardItemModel) Clear

func (this *QStandardItemModel) Clear()

Removes all items (including header items) from the model and sets the number of rows and columns to zero.

See also removeColumns() and removeRows().

func (*QStandardItemModel) ClearItemData

func (this *QStandardItemModel) ClearItemData(index qtcore.QModelIndex_ITF) bool

Removes the data stored in all the roles for the given index. Returns true if index is valid and data was cleared, false otherwise.

This function was introduced in Qt 5.12.

See also setData() and data().

func (*QStandardItemModel) ColumnCount

func (this *QStandardItemModel) ColumnCount(parent qtcore.QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::columnCount().

See also setColumnCount().

func (*QStandardItemModel) ColumnCountp

func (this *QStandardItemModel) ColumnCountp() int

Reimplemented from QAbstractItemModel::columnCount().

See also setColumnCount().

func (*QStandardItemModel) Data

func (this *QStandardItemModel) Data(index qtcore.QModelIndex_ITF, role int) *qtcore.QVariant

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QStandardItemModel) Datap

Reimplemented from QAbstractItemModel::data().

See also setData().

func (*QStandardItemModel) DropMimeData

func (this *QStandardItemModel) DropMimeData(data qtcore.QMimeData_ITF, action int, row int, column int, parent qtcore.QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::dropMimeData().

func (*QStandardItemModel) Flags

func (this *QStandardItemModel) Flags(index qtcore.QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::flags().

func (*QStandardItemModel) GetCthis

func (this *QStandardItemModel) GetCthis() unsafe.Pointer

func (*QStandardItemModel) HasChildren

func (this *QStandardItemModel) HasChildren(parent qtcore.QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::hasChildren().

func (*QStandardItemModel) HasChildrenp

func (this *QStandardItemModel) HasChildrenp() bool

Reimplemented from QAbstractItemModel::hasChildren().

func (*QStandardItemModel) HeaderData

func (this *QStandardItemModel) HeaderData(section int, orientation int, role int) *qtcore.QVariant

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

func (*QStandardItemModel) HeaderDatap

func (this *QStandardItemModel) HeaderDatap(section int, orientation int) *qtcore.QVariant

Reimplemented from QAbstractItemModel::headerData().

See also setHeaderData().

func (*QStandardItemModel) HorizontalHeaderItem

func (this *QStandardItemModel) HorizontalHeaderItem(column int) *QStandardItem

Returns the horizontal header item for column if one has been set; otherwise returns 0.

This function was introduced in Qt 4.2.

See also setHorizontalHeaderItem() and verticalHeaderItem().

func (*QStandardItemModel) Index

func (this *QStandardItemModel) Index(row int, column int, parent qtcore.QModelIndex_ITF) *qtcore.QModelIndex

Reimplemented from QAbstractItemModel::index().

func (*QStandardItemModel) IndexFromItem

func (this *QStandardItemModel) IndexFromItem(item QStandardItem_ITF) *qtcore.QModelIndex

Returns the QModelIndex associated with the given item.

Use this function when you want to perform an operation that requires the QModelIndex of the item, such as QAbstractItemView::scrollTo(). QStandardItem::index() is provided as convenience; it is equivalent to calling this function.

This function was introduced in Qt 4.2.

See also itemFromIndex() and QStandardItem::index().

func (*QStandardItemModel) Indexp

func (this *QStandardItemModel) Indexp(row int, column int) *qtcore.QModelIndex

Reimplemented from QAbstractItemModel::index().

func (*QStandardItemModel) InsertColumn

func (this *QStandardItemModel) InsertColumn(column int, parent qtcore.QModelIndex_ITF) bool

Inserts a column at column containing items. If necessary, the row count is increased to the size of items.

This function was introduced in Qt 4.2.

See also takeColumn(), appendColumn(), and insertRow().

func (*QStandardItemModel) InsertColumnp

func (this *QStandardItemModel) InsertColumnp(column int) bool

Inserts a column at column containing items. If necessary, the row count is increased to the size of items.

This function was introduced in Qt 4.2.

See also takeColumn(), appendColumn(), and insertRow().

func (*QStandardItemModel) InsertColumns

func (this *QStandardItemModel) InsertColumns(column int, count int, parent qtcore.QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::insertColumns().

func (*QStandardItemModel) InsertColumnsp

func (this *QStandardItemModel) InsertColumnsp(column int, count int) bool

Reimplemented from QAbstractItemModel::insertColumns().

func (*QStandardItemModel) InsertRow

func (this *QStandardItemModel) InsertRow(row int, item QStandardItem_ITF)

Inserts a row at row containing items. If necessary, the column count is increased to the size of items.

This function was introduced in Qt 4.2.

See also takeRow(), appendRow(), and insertColumn().

func (*QStandardItemModel) InsertRow1

func (this *QStandardItemModel) InsertRow1(row int, parent qtcore.QModelIndex_ITF) bool

Inserts a row at row containing items. If necessary, the column count is increased to the size of items.

This function was introduced in Qt 4.2.

See also takeRow(), appendRow(), and insertColumn().

func (*QStandardItemModel) InsertRow1p

func (this *QStandardItemModel) InsertRow1p(row int) bool

Inserts a row at row containing items. If necessary, the column count is increased to the size of items.

This function was introduced in Qt 4.2.

See also takeRow(), appendRow(), and insertColumn().

func (*QStandardItemModel) InsertRows

func (this *QStandardItemModel) InsertRows(row int, count int, parent qtcore.QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::insertRows().

func (*QStandardItemModel) InsertRowsp

func (this *QStandardItemModel) InsertRowsp(row int, count int) bool

Reimplemented from QAbstractItemModel::insertRows().

func (*QStandardItemModel) InvisibleRootItem

func (this *QStandardItemModel) InvisibleRootItem() *QStandardItem

Returns the model's invisible root item.

The invisible root item provides access to the model's top-level items through the QStandardItem API, making it possible to write functions that can treat top-level items and their children in a uniform way; for example, recursive functions involving a tree model.

Note: Calling index() on the QStandardItem object retrieved from this function is not valid.

This function was introduced in Qt 4.2.

func (*QStandardItemModel) Item

func (this *QStandardItemModel) Item(row int, column int) *QStandardItem

Returns the item for the given row and column if one has been set; otherwise returns 0.

This function was introduced in Qt 4.2.

See also setItem(), takeItem(), and itemFromIndex().

func (*QStandardItemModel) ItemChanged

func (this *QStandardItemModel) ItemChanged(item QStandardItem_ITF)

This signal is emitted whenever the data of item has changed.

This function was introduced in Qt 4.2.

func (*QStandardItemModel) ItemFromIndex

func (this *QStandardItemModel) ItemFromIndex(index qtcore.QModelIndex_ITF) *QStandardItem

Returns a pointer to the QStandardItem associated with the given index.

Calling this function is typically the initial step when processing QModelIndex-based signals from a view, such as QAbstractItemView::activated(). In your slot, you call itemFromIndex(), with the QModelIndex carried by the signal as argument, to obtain a pointer to the corresponding QStandardItem.

Note that this function will lazily create an item for the index (using itemPrototype()), and set it in the parent item's child table, if no item already exists at that index.

If index is an invalid index, this function returns 0.

This function was introduced in Qt 4.2.

See also indexFromItem().

func (*QStandardItemModel) ItemPrototype

func (this *QStandardItemModel) ItemPrototype() *QStandardItem

Returns the item prototype used by the model. The model uses the item prototype as an item factory when it needs to construct new items on demand (for instance, when a view or item delegate calls setData()).

This function was introduced in Qt 4.2.

See also setItemPrototype().

func (*QStandardItemModel) Itemp

func (this *QStandardItemModel) Itemp(row int) *QStandardItem

Returns the item for the given row and column if one has been set; otherwise returns 0.

This function was introduced in Qt 4.2.

See also setItem(), takeItem(), and itemFromIndex().

func (*QStandardItemModel) MetaObject

func (this *QStandardItemModel) MetaObject() *qtcore.QMetaObject

func (*QStandardItemModel) MimeTypes

func (this *QStandardItemModel) MimeTypes() *qtcore.QStringList

Reimplemented from QAbstractItemModel::mimeTypes().

func (*QStandardItemModel) NewForInherit

func (*QStandardItemModel) NewForInherit(parent qtcore.QObject_ITF) *QStandardItemModel

Constructs a new item model with the given parent.

func (*QStandardItemModel) NewForInherit1

func (*QStandardItemModel) NewForInherit1(rows int, columns int, parent qtcore.QObject_ITF) *QStandardItemModel

Constructs a new item model with the given parent.

func (*QStandardItemModel) NewForInherit1p

func (*QStandardItemModel) NewForInherit1p(rows int, columns int) *QStandardItemModel

Constructs a new item model with the given parent.

func (*QStandardItemModel) NewForInheritp

func (*QStandardItemModel) NewForInheritp() *QStandardItemModel

Constructs a new item model with the given parent.

func (*QStandardItemModel) NewFromPointer

func (*QStandardItemModel) NewFromPointer(cthis unsafe.Pointer) *QStandardItemModel

func (*QStandardItemModel) Parent

Reimplemented from QAbstractItemModel::parent().

func (*QStandardItemModel) QStandardItemModel_PTR

func (ptr *QStandardItemModel) QStandardItemModel_PTR() *QStandardItemModel

func (*QStandardItemModel) RemoveColumns

func (this *QStandardItemModel) RemoveColumns(column int, count int, parent qtcore.QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::removeColumns().

func (*QStandardItemModel) RemoveColumnsp

func (this *QStandardItemModel) RemoveColumnsp(column int, count int) bool

Reimplemented from QAbstractItemModel::removeColumns().

func (*QStandardItemModel) RemoveRows

func (this *QStandardItemModel) RemoveRows(row int, count int, parent qtcore.QModelIndex_ITF) bool

Reimplemented from QAbstractItemModel::removeRows().

func (*QStandardItemModel) RemoveRowsp

func (this *QStandardItemModel) RemoveRowsp(row int, count int) bool

Reimplemented from QAbstractItemModel::removeRows().

func (*QStandardItemModel) RowCount

func (this *QStandardItemModel) RowCount(parent qtcore.QModelIndex_ITF) int

Reimplemented from QAbstractItemModel::rowCount().

See also setRowCount().

func (*QStandardItemModel) RowCountp

func (this *QStandardItemModel) RowCountp() int

Reimplemented from QAbstractItemModel::rowCount().

See also setRowCount().

func (*QStandardItemModel) SetColumnCount

func (this *QStandardItemModel) SetColumnCount(columns int)

Sets the number of columns in this model to columns. If this is less than columnCount(), the data in the unwanted columns is discarded.

This function was introduced in Qt 4.2.

See also columnCount() and setRowCount().

func (*QStandardItemModel) SetCthis

func (this *QStandardItemModel) SetCthis(cthis unsafe.Pointer)

func (*QStandardItemModel) SetData

func (this *QStandardItemModel) SetData(index qtcore.QModelIndex_ITF, value qtcore.QVariant_ITF, role int) bool

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QStandardItemModel) SetDatap

func (this *QStandardItemModel) SetDatap(index qtcore.QModelIndex_ITF, value qtcore.QVariant_ITF) bool

Reimplemented from QAbstractItemModel::setData().

See also data().

func (*QStandardItemModel) SetHeaderData

func (this *QStandardItemModel) SetHeaderData(section int, orientation int, value qtcore.QVariant_ITF, role int) bool

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

func (*QStandardItemModel) SetHeaderDatap

func (this *QStandardItemModel) SetHeaderDatap(section int, orientation int, value qtcore.QVariant_ITF) bool

Reimplemented from QAbstractItemModel::setHeaderData().

See also headerData().

func (*QStandardItemModel) SetHorizontalHeaderItem

func (this *QStandardItemModel) SetHorizontalHeaderItem(column int, item QStandardItem_ITF)

Sets the horizontal header item for column to item. The model takes ownership of the item. If necessary, the column count is increased to fit the item. The previous header item (if there was one) is deleted.

This function was introduced in Qt 4.2.

See also horizontalHeaderItem(), setHorizontalHeaderLabels(), and setVerticalHeaderItem().

func (*QStandardItemModel) SetHorizontalHeaderLabels

func (this *QStandardItemModel) SetHorizontalHeaderLabels(labels qtcore.QStringList_ITF)

Sets the horizontal header labels using labels. If necessary, the column count is increased to the size of labels.

This function was introduced in Qt 4.2.

See also setHorizontalHeaderItem().

func (*QStandardItemModel) SetItem

func (this *QStandardItemModel) SetItem(row int, column int, item QStandardItem_ITF)

Sets the item for the given row and column to item. The model takes ownership of the item. If necessary, the row count and column count are increased to fit the item. The previous item at the given location (if there was one) is deleted.

This function was introduced in Qt 4.2.

See also item().

func (*QStandardItemModel) SetItem1

func (this *QStandardItemModel) SetItem1(row int, item QStandardItem_ITF)

Sets the item for the given row and column to item. The model takes ownership of the item. If necessary, the row count and column count are increased to fit the item. The previous item at the given location (if there was one) is deleted.

This function was introduced in Qt 4.2.

See also item().

func (*QStandardItemModel) SetItemPrototype

func (this *QStandardItemModel) SetItemPrototype(item QStandardItem_ITF)

Sets the item prototype for the model to the specified item. The model takes ownership of the prototype.

The item prototype acts as a QStandardItem factory, by relying on the QStandardItem::clone() function. To provide your own prototype, subclass QStandardItem, reimplement QStandardItem::clone() and set the prototype to be an instance of your custom class. Whenever QStandardItemModel needs to create an item on demand (for instance, when a view or item delegate calls setData())), the new items will be instances of your custom class.

This function was introduced in Qt 4.2.

See also itemPrototype() and QStandardItem::clone().

func (*QStandardItemModel) SetRowCount

func (this *QStandardItemModel) SetRowCount(rows int)

Sets the number of rows in this model to rows. If this is less than rowCount(), the data in the unwanted rows is discarded.

This function was introduced in Qt 4.2.

See also rowCount() and setColumnCount().

func (*QStandardItemModel) SetSortRole

func (this *QStandardItemModel) SetSortRole(role int)

func (*QStandardItemModel) SetVerticalHeaderItem

func (this *QStandardItemModel) SetVerticalHeaderItem(row int, item QStandardItem_ITF)

Sets the vertical header item for row to item. The model takes ownership of the item. If necessary, the row count is increased to fit the item. The previous header item (if there was one) is deleted.

This function was introduced in Qt 4.2.

See also verticalHeaderItem(), setVerticalHeaderLabels(), and setHorizontalHeaderItem().

func (*QStandardItemModel) SetVerticalHeaderLabels

func (this *QStandardItemModel) SetVerticalHeaderLabels(labels qtcore.QStringList_ITF)

Sets the vertical header labels using labels. If necessary, the row count is increased to the size of labels.

This function was introduced in Qt 4.2.

See also setVerticalHeaderItem().

func (*QStandardItemModel) Sibling

func (this *QStandardItemModel) Sibling(row int, column int, idx qtcore.QModelIndex_ITF) *qtcore.QModelIndex

Reimplemented from QAbstractItemModel::sibling().

func (*QStandardItemModel) Sort

func (this *QStandardItemModel) Sort(column int, order int)

Reimplemented from QAbstractItemModel::sort().

func (*QStandardItemModel) SortRole

func (this *QStandardItemModel) SortRole() int

func (*QStandardItemModel) Sortp

func (this *QStandardItemModel) Sortp(column int)

Reimplemented from QAbstractItemModel::sort().

func (*QStandardItemModel) SupportedDropActions

func (this *QStandardItemModel) SupportedDropActions() int

Reimplemented from QAbstractItemModel::supportedDropActions().

QStandardItemModel supports both copy and move.

func (*QStandardItemModel) TakeHorizontalHeaderItem

func (this *QStandardItemModel) TakeHorizontalHeaderItem(column int) *QStandardItem

Removes the horizontal header item at column from the header without deleting it, and returns a pointer to the item. The model releases ownership of the item.

This function was introduced in Qt 4.2.

See also horizontalHeaderItem() and takeVerticalHeaderItem().

func (*QStandardItemModel) TakeItem

func (this *QStandardItemModel) TakeItem(row int, column int) *QStandardItem

Removes the item at (row, column) without deleting it. The model releases ownership of the item.

This function was introduced in Qt 4.2.

See also item(), takeRow(), and takeColumn().

func (*QStandardItemModel) TakeItemp

func (this *QStandardItemModel) TakeItemp(row int) *QStandardItem

Removes the item at (row, column) without deleting it. The model releases ownership of the item.

This function was introduced in Qt 4.2.

See also item(), takeRow(), and takeColumn().

func (*QStandardItemModel) TakeVerticalHeaderItem

func (this *QStandardItemModel) TakeVerticalHeaderItem(row int) *QStandardItem

Removes the vertical header item at row from the header without deleting it, and returns a pointer to the item. The model releases ownership of the item.

This function was introduced in Qt 4.2.

See also verticalHeaderItem() and takeHorizontalHeaderItem().

func (*QStandardItemModel) VerticalHeaderItem

func (this *QStandardItemModel) VerticalHeaderItem(row int) *QStandardItem

Returns the vertical header item for row row if one has been set; otherwise returns 0.

This function was introduced in Qt 4.2.

See also setVerticalHeaderItem() and horizontalHeaderItem().

type QStandardItemModel_ITF

type QStandardItemModel_ITF interface {
	qtcore.QAbstractItemModel_ITF
	QStandardItemModel_PTR() *QStandardItemModel
}

type QStandardItem_ITF

type QStandardItem_ITF interface {
	QStandardItem_PTR() *QStandardItem
}

type QStandardItem__ItemType

type QStandardItem__ItemType = int
const QStandardItem__Type QStandardItem__ItemType = 0
const QStandardItem__UserType QStandardItem__ItemType = 1000

type QStaticText

type QStaticText struct {
	*qtrt.CObject
}

func NewQStaticText

func NewQStaticText() *QStaticText

func NewQStaticText1

func NewQStaticText1(text string) *QStaticText

func NewQStaticTextFromPointer

func NewQStaticTextFromPointer(cthis unsafe.Pointer) *QStaticText

func (*QStaticText) GetCthis

func (this *QStaticText) GetCthis() unsafe.Pointer

func (*QStaticText) NewForInherit

func (*QStaticText) NewForInherit() *QStaticText

Constructs an empty QStaticText

func (*QStaticText) NewForInherit1

func (*QStaticText) NewForInherit1(text string) *QStaticText

Constructs an empty QStaticText

func (*QStaticText) NewFromPointer

func (*QStaticText) NewFromPointer(cthis unsafe.Pointer) *QStaticText

func (*QStaticText) Operator_equal

func (this *QStaticText) Operator_equal(other unsafe.Pointer) *QStaticText

func (*QStaticText) Operator_equal1

func (this *QStaticText) Operator_equal1(arg0 QStaticText_ITF) *QStaticText

func (*QStaticText) Operator_equal_equal

func (this *QStaticText) Operator_equal_equal(arg0 QStaticText_ITF) bool

func (*QStaticText) Operator_not_equal

func (this *QStaticText) Operator_not_equal(arg0 QStaticText_ITF) bool

func (*QStaticText) PerformanceHint

func (this *QStaticText) PerformanceHint() int

Returns which performance hint is set for the QStaticText.

See also setPerformanceHint().

func (*QStaticText) PerformanceHintItemName

func (this *QStaticText) PerformanceHintItemName(val int) string

func (*QStaticText) Prepare

func (this *QStaticText) Prepare(matrix QTransform_ITF, font QFont_ITF)

Prepares the QStaticText object for being painted with the given matrix and the given font to avoid overhead when the actual drawStaticText() call is made.

When drawStaticText() is called, the layout of the QStaticText will be recalculated if any part of the QStaticText object has changed since the last time it was drawn. It will also be recalculated if the painter's font is not the same as when the QStaticText was last drawn, or, on any other paint engine than the OpenGL2 engine, if the painter's matrix has been altered since the static text was last drawn.

To avoid the overhead of creating the layout the first time you draw the QStaticText after making changes, you can use the prepare() function and pass in the matrix and font you expect to use when drawing the text.

See also QPainter::setFont() and QPainter::setMatrix().

func (*QStaticText) Preparep

func (this *QStaticText) Preparep()

Prepares the QStaticText object for being painted with the given matrix and the given font to avoid overhead when the actual drawStaticText() call is made.

When drawStaticText() is called, the layout of the QStaticText will be recalculated if any part of the QStaticText object has changed since the last time it was drawn. It will also be recalculated if the painter's font is not the same as when the QStaticText was last drawn, or, on any other paint engine than the OpenGL2 engine, if the painter's matrix has been altered since the static text was last drawn.

To avoid the overhead of creating the layout the first time you draw the QStaticText after making changes, you can use the prepare() function and pass in the matrix and font you expect to use when drawing the text.

See also QPainter::setFont() and QPainter::setMatrix().

func (*QStaticText) Preparep1

func (this *QStaticText) Preparep1(matrix QTransform_ITF)

Prepares the QStaticText object for being painted with the given matrix and the given font to avoid overhead when the actual drawStaticText() call is made.

When drawStaticText() is called, the layout of the QStaticText will be recalculated if any part of the QStaticText object has changed since the last time it was drawn. It will also be recalculated if the painter's font is not the same as when the QStaticText was last drawn, or, on any other paint engine than the OpenGL2 engine, if the painter's matrix has been altered since the static text was last drawn.

To avoid the overhead of creating the layout the first time you draw the QStaticText after making changes, you can use the prepare() function and pass in the matrix and font you expect to use when drawing the text.

See also QPainter::setFont() and QPainter::setMatrix().

func (*QStaticText) QStaticText_PTR

func (ptr *QStaticText) QStaticText_PTR() *QStaticText

func (*QStaticText) SetCthis

func (this *QStaticText) SetCthis(cthis unsafe.Pointer)

func (*QStaticText) SetPerformanceHint

func (this *QStaticText) SetPerformanceHint(performanceHint int)

Sets the performance hint of the QStaticText according to the performanceHint provided. The performanceHint is used to customize how much caching is done internally to improve performance.

The default is QStaticText::ModerateCaching.

Note: This function will cause the layout of the text to require recalculation.

See also performanceHint().

func (*QStaticText) SetText

func (this *QStaticText) SetText(text string)

Sets the text of the QStaticText to text.

Note: This function will cause the layout of the text to require recalculation.

See also text().

func (*QStaticText) SetTextFormat

func (this *QStaticText) SetTextFormat(textFormat int)

Sets the text format of the QStaticText to textFormat. If textFormat is set to Qt::AutoText (the default), the format of the text will try to be determined using the function Qt::mightBeRichText(). If the text format is Qt::PlainText, then the text will be displayed as is, whereas it will be interpreted as HTML if the format is Qt::RichText. HTML tags that alter the font of the text, its color, or its layout are supported by QStaticText.

Note: This function will cause the layout of the text to require recalculation.

See also textFormat(), setText(), and text().

func (*QStaticText) SetTextOption

func (this *QStaticText) SetTextOption(textOption QTextOption_ITF)

Sets the text option structure that controls the layout process to the given textOption.

See also textOption().

func (*QStaticText) SetTextWidth

func (this *QStaticText) SetTextWidth(textWidth float64)

Sets the preferred width for this QStaticText. If the text is wider than the specified width, it will be broken into multiple lines and grow vertically. If the text cannot be split into multiple lines, it will be larger than the specified textWidth.

Setting the preferred text width to a negative number will cause the text to be unbounded.

Use size() to get the actual size of the text.

Note: This function will cause the layout of the text to require recalculation.

See also textWidth() and size().

func (*QStaticText) Size

func (this *QStaticText) Size() *qtcore.QSizeF

Returns the size of the bounding rect for this QStaticText.

See also textWidth().

func (*QStaticText) Swap

func (this *QStaticText) Swap(other QStaticText_ITF)

Swaps this static text instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QStaticText) Text

func (this *QStaticText) Text() string

Returns the text of the QStaticText.

See also setText().

func (*QStaticText) TextFormat

func (this *QStaticText) TextFormat() int

Returns the text format of the QStaticText.

See also setTextFormat(), setText(), and text().

func (*QStaticText) TextOption

func (this *QStaticText) TextOption() *QTextOption

Returns the current text option used to control the layout process.

See also setTextOption().

func (*QStaticText) TextWidth

func (this *QStaticText) TextWidth() float64

Returns the preferred width for this QStaticText.

See also setTextWidth().

type QStaticText_ITF

type QStaticText_ITF interface {
	QStaticText_PTR() *QStaticText
}

type QStaticText__PerformanceHint

type QStaticText__PerformanceHint = int

This enum the different performance hints that can be set on the QStaticText. These hints can be used to indicate that the QStaticText should use additional caches, if possible, to improve performance at the expense of memory. In particular, setting the performance hint AggressiveCaching on the QStaticText will improve performance when using the OpenGL graphics system or when drawing to a QOpenGLWidget.

const QStaticText__AggressiveCaching QStaticText__PerformanceHint = 1

Use additional caching when available. This may improve performance at a higher memory cost.

const QStaticText__ModerateCaching QStaticText__PerformanceHint = 0

Do basic caching for high performance at a low memory cost.

type QStatusTipEvent

type QStatusTipEvent struct {
	*qtcore.QEvent
}

func NewQStatusTipEvent

func NewQStatusTipEvent(tip string) *QStatusTipEvent

func NewQStatusTipEventFromPointer

func NewQStatusTipEventFromPointer(cthis unsafe.Pointer) *QStatusTipEvent

func (*QStatusTipEvent) GetCthis

func (this *QStatusTipEvent) GetCthis() unsafe.Pointer

func (*QStatusTipEvent) NewForInherit

func (*QStatusTipEvent) NewForInherit(tip string) *QStatusTipEvent

func (*QStatusTipEvent) NewFromPointer

func (*QStatusTipEvent) NewFromPointer(cthis unsafe.Pointer) *QStatusTipEvent

func (*QStatusTipEvent) QStatusTipEvent_PTR

func (ptr *QStatusTipEvent) QStatusTipEvent_PTR() *QStatusTipEvent

func (*QStatusTipEvent) SetCthis

func (this *QStatusTipEvent) SetCthis(cthis unsafe.Pointer)

func (*QStatusTipEvent) Tip

func (this *QStatusTipEvent) Tip() string

type QStatusTipEvent_ITF

type QStatusTipEvent_ITF interface {
	qtcore.QEvent_ITF
	QStatusTipEvent_PTR() *QStatusTipEvent
}

type QStyleHints

type QStyleHints struct {
	*qtcore.QObject
}

func NewQStyleHintsFromPointer

func NewQStyleHintsFromPointer(cthis unsafe.Pointer) *QStyleHints

func QGuiApplication_StyleHints

func QGuiApplication_StyleHints() *QStyleHints

func (*QStyleHints) CursorFlashTime

func (this *QStyleHints) CursorFlashTime() int

func (*QStyleHints) CursorFlashTimeChanged

func (this *QStyleHints) CursorFlashTimeChanged(cursorFlashTime int)

func (*QStyleHints) FontSmoothingGamma

func (this *QStyleHints) FontSmoothingGamma() float64

func (*QStyleHints) GetCthis

func (this *QStyleHints) GetCthis() unsafe.Pointer

func (*QStyleHints) KeyboardAutoRepeatRate

func (this *QStyleHints) KeyboardAutoRepeatRate() int

func (*QStyleHints) KeyboardInputInterval

func (this *QStyleHints) KeyboardInputInterval() int

func (*QStyleHints) KeyboardInputIntervalChanged

func (this *QStyleHints) KeyboardInputIntervalChanged(keyboardInputInterval int)

func (*QStyleHints) MetaObject

func (this *QStyleHints) MetaObject() *qtcore.QMetaObject

func (*QStyleHints) MouseDoubleClickInterval

func (this *QStyleHints) MouseDoubleClickInterval() int

func (*QStyleHints) MouseDoubleClickIntervalChanged

func (this *QStyleHints) MouseDoubleClickIntervalChanged(mouseDoubleClickInterval int)

func (*QStyleHints) MousePressAndHoldInterval

func (this *QStyleHints) MousePressAndHoldInterval() int

func (*QStyleHints) MousePressAndHoldIntervalChanged

func (this *QStyleHints) MousePressAndHoldIntervalChanged(mousePressAndHoldInterval int)

func (*QStyleHints) MouseQuickSelectionThreshold

func (this *QStyleHints) MouseQuickSelectionThreshold() int

func (*QStyleHints) MouseQuickSelectionThresholdChanged

func (this *QStyleHints) MouseQuickSelectionThresholdChanged(threshold int)

func (*QStyleHints) NewFromPointer

func (*QStyleHints) NewFromPointer(cthis unsafe.Pointer) *QStyleHints

func (*QStyleHints) PasswordMaskCharacter

func (this *QStyleHints) PasswordMaskCharacter() *qtcore.QChar

func (*QStyleHints) PasswordMaskDelay

func (this *QStyleHints) PasswordMaskDelay() int

func (*QStyleHints) QStyleHints_PTR

func (ptr *QStyleHints) QStyleHints_PTR() *QStyleHints

func (*QStyleHints) SetCthis

func (this *QStyleHints) SetCthis(cthis unsafe.Pointer)

func (*QStyleHints) SetCursorFlashTime

func (this *QStyleHints) SetCursorFlashTime(cursorFlashTime int)

func (*QStyleHints) SetFocusOnTouchRelease

func (this *QStyleHints) SetFocusOnTouchRelease() bool

func (*QStyleHints) SetKeyboardInputInterval

func (this *QStyleHints) SetKeyboardInputInterval(keyboardInputInterval int)

func (*QStyleHints) SetMouseDoubleClickInterval

func (this *QStyleHints) SetMouseDoubleClickInterval(mouseDoubleClickInterval int)

func (*QStyleHints) SetMousePressAndHoldInterval

func (this *QStyleHints) SetMousePressAndHoldInterval(mousePressAndHoldInterval int)

func (*QStyleHints) SetMouseQuickSelectionThreshold

func (this *QStyleHints) SetMouseQuickSelectionThreshold(threshold int)

func (*QStyleHints) SetStartDragDistance

func (this *QStyleHints) SetStartDragDistance(startDragDistance int)

func (*QStyleHints) SetStartDragTime

func (this *QStyleHints) SetStartDragTime(startDragTime int)

func (*QStyleHints) SetTabFocusBehavior

func (this *QStyleHints) SetTabFocusBehavior(tabFocusBehavior int)

func (*QStyleHints) SetUseHoverEffects

func (this *QStyleHints) SetUseHoverEffects(useHoverEffects bool)

func (*QStyleHints) SetWheelScrollLines

func (this *QStyleHints) SetWheelScrollLines(scrollLines int)

func (*QStyleHints) ShowIsFullScreen

func (this *QStyleHints) ShowIsFullScreen() bool

func (*QStyleHints) ShowIsMaximized

func (this *QStyleHints) ShowIsMaximized() bool

func (*QStyleHints) ShowShortcutsInContextMenus

func (this *QStyleHints) ShowShortcutsInContextMenus() bool

func (*QStyleHints) SingleClickActivation

func (this *QStyleHints) SingleClickActivation() bool

func (*QStyleHints) StartDragDistance

func (this *QStyleHints) StartDragDistance() int

func (*QStyleHints) StartDragDistanceChanged

func (this *QStyleHints) StartDragDistanceChanged(startDragDistance int)

func (*QStyleHints) StartDragTime

func (this *QStyleHints) StartDragTime() int

func (*QStyleHints) StartDragTimeChanged

func (this *QStyleHints) StartDragTimeChanged(startDragTime int)

func (*QStyleHints) StartDragVelocity

func (this *QStyleHints) StartDragVelocity() int

func (*QStyleHints) TabFocusBehavior

func (this *QStyleHints) TabFocusBehavior() int

func (*QStyleHints) TabFocusBehaviorChanged

func (this *QStyleHints) TabFocusBehaviorChanged(tabFocusBehavior int)

func (*QStyleHints) UseHoverEffects

func (this *QStyleHints) UseHoverEffects() bool

func (*QStyleHints) UseHoverEffectsChanged

func (this *QStyleHints) UseHoverEffectsChanged(useHoverEffects bool)

func (*QStyleHints) UseRtlExtensions

func (this *QStyleHints) UseRtlExtensions() bool

func (*QStyleHints) WheelScrollLines

func (this *QStyleHints) WheelScrollLines() int

func (*QStyleHints) WheelScrollLinesChanged

func (this *QStyleHints) WheelScrollLinesChanged(scrollLines int)

type QStyleHints_ITF

type QStyleHints_ITF interface {
	qtcore.QObject_ITF
	QStyleHints_PTR() *QStyleHints
}

type QSurface

type QSurface struct {
	*qtrt.CObject
}

func NewQSurface

func NewQSurface(type_ int) *QSurface

func NewQSurfaceFromPointer

func NewQSurfaceFromPointer(cthis unsafe.Pointer) *QSurface

func (*QSurface) Format

func (this *QSurface) Format() *QSurfaceFormat

Returns the format of the surface.

func (*QSurface) GetCthis

func (this *QSurface) GetCthis() unsafe.Pointer

func (*QSurface) NewForInherit

func (*QSurface) NewForInherit(type_ int) *QSurface

Creates a surface with the given type.

func (*QSurface) NewFromPointer

func (*QSurface) NewFromPointer(cthis unsafe.Pointer) *QSurface

func (*QSurface) QSurface_PTR

func (ptr *QSurface) QSurface_PTR() *QSurface

func (*QSurface) SetCthis

func (this *QSurface) SetCthis(cthis unsafe.Pointer)

func (*QSurface) Size

func (this *QSurface) Size() *qtcore.QSize

Returns the size of the surface in pixels.

func (*QSurface) SupportsOpenGL

func (this *QSurface) SupportsOpenGL() bool

Returns true if the surface is OpenGL compatible and can be used in conjunction with QOpenGLContext; otherwise returns false.

This function was introduced in Qt 5.3.

func (*QSurface) SurfaceClass

func (this *QSurface) SurfaceClass() int

Returns the surface class of this surface.

func (*QSurface) SurfaceClassItemName

func (this *QSurface) SurfaceClassItemName(val int) string

func (*QSurface) SurfaceType

func (this *QSurface) SurfaceType() int

Returns the type of the surface.

func (*QSurface) SurfaceTypeItemName

func (this *QSurface) SurfaceTypeItemName(val int) string

type QSurfaceFormat

type QSurfaceFormat struct {
	*qtrt.CObject
}

func NewQSurfaceFormat

func NewQSurfaceFormat() *QSurfaceFormat

func NewQSurfaceFormat1

func NewQSurfaceFormat1(options int) *QSurfaceFormat

func NewQSurfaceFormatFromPointer

func NewQSurfaceFormatFromPointer(cthis unsafe.Pointer) *QSurfaceFormat

func QSurfaceFormat_DefaultFormat

func QSurfaceFormat_DefaultFormat() *QSurfaceFormat

func (*QSurfaceFormat) AlphaBufferSize

func (this *QSurfaceFormat) AlphaBufferSize() int

Get the size in bits of the alpha channel of the color buffer.

See also setAlphaBufferSize().

func (*QSurfaceFormat) BlueBufferSize

func (this *QSurfaceFormat) BlueBufferSize() int

Get the size in bits of the blue channel of the color buffer.

See also setBlueBufferSize().

func (*QSurfaceFormat) ColorSpace

func (this *QSurfaceFormat) ColorSpace() int

Returns the color space.

This function was introduced in Qt 5.10.

See also setColorSpace().

func (*QSurfaceFormat) ColorSpaceItemName

func (this *QSurfaceFormat) ColorSpaceItemName(val int) string

func (*QSurfaceFormat) DefaultFormat

func (this *QSurfaceFormat) DefaultFormat() *QSurfaceFormat

Returns the global default surface format.

When setDefaultFormat() is not called, this is a default-constructed QSurfaceFormat.

This function was introduced in Qt 5.4.

See also setDefaultFormat().

func (*QSurfaceFormat) DepthBufferSize

func (this *QSurfaceFormat) DepthBufferSize() int

Returns the depth buffer size.

See also setDepthBufferSize().

func (*QSurfaceFormat) FormatOptionItemName

func (this *QSurfaceFormat) FormatOptionItemName(val int) string

func (*QSurfaceFormat) GetCthis

func (this *QSurfaceFormat) GetCthis() unsafe.Pointer

func (*QSurfaceFormat) GreenBufferSize

func (this *QSurfaceFormat) GreenBufferSize() int

Get the size in bits of the green channel of the color buffer.

See also setGreenBufferSize().

func (*QSurfaceFormat) HasAlpha

func (this *QSurfaceFormat) HasAlpha() bool

Returns true if the alpha buffer size is greater than zero.

This means that the surface might be used with per pixel translucency effects.

func (*QSurfaceFormat) MajorVersion

func (this *QSurfaceFormat) MajorVersion() int

Returns the major OpenGL version.

The default version is 2.0.

See also setMajorVersion().

func (*QSurfaceFormat) MinorVersion

func (this *QSurfaceFormat) MinorVersion() int

Returns the minor OpenGL version.

See also setMinorVersion().

func (*QSurfaceFormat) NewForInherit

func (*QSurfaceFormat) NewForInherit() *QSurfaceFormat

Constructs a default initialized QSurfaceFormat.

Note: By default OpenGL 2.0 is requested since this provides the highest grade of portability between platforms and OpenGL implementations.

func (*QSurfaceFormat) NewForInherit1

func (*QSurfaceFormat) NewForInherit1(options int) *QSurfaceFormat

Constructs a default initialized QSurfaceFormat.

Note: By default OpenGL 2.0 is requested since this provides the highest grade of portability between platforms and OpenGL implementations.

func (*QSurfaceFormat) NewFromPointer

func (*QSurfaceFormat) NewFromPointer(cthis unsafe.Pointer) *QSurfaceFormat

func (*QSurfaceFormat) OpenGLContextProfileItemName

func (this *QSurfaceFormat) OpenGLContextProfileItemName(val int) string

func (*QSurfaceFormat) Operator_equal

func (this *QSurfaceFormat) Operator_equal(other QSurfaceFormat_ITF) *QSurfaceFormat

func (*QSurfaceFormat) Options

func (this *QSurfaceFormat) Options() int

Returns the currently set format options.

This function was introduced in Qt 5.3.

See also setOption(), setOptions(), and testOption().

func (*QSurfaceFormat) Profile

func (this *QSurfaceFormat) Profile() int

Get the configured OpenGL context profile.

This setting is ignored if the requested OpenGL version is less than 3.2.

See also setProfile().

func (*QSurfaceFormat) QSurfaceFormat_PTR

func (ptr *QSurfaceFormat) QSurfaceFormat_PTR() *QSurfaceFormat

func (*QSurfaceFormat) RedBufferSize

func (this *QSurfaceFormat) RedBufferSize() int

Get the size in bits of the red channel of the color buffer.

See also setRedBufferSize().

func (*QSurfaceFormat) RenderableType

func (this *QSurfaceFormat) RenderableType() int

Gets the renderable type.

Chooses between desktop OpenGL, OpenGL ES, and OpenVG.

See also setRenderableType().

func (*QSurfaceFormat) RenderableTypeItemName

func (this *QSurfaceFormat) RenderableTypeItemName(val int) string

func (*QSurfaceFormat) Samples

func (this *QSurfaceFormat) Samples() int

Returns the number of samples per pixel when multisampling is enabled, or -1 when multisampling is disabled. The default return value is -1.

See also setSamples().

func (*QSurfaceFormat) SetAlphaBufferSize

func (this *QSurfaceFormat) SetAlphaBufferSize(size int)

Set the desired size in bits of the alpha channel of the color buffer.

See also alphaBufferSize().

func (*QSurfaceFormat) SetBlueBufferSize

func (this *QSurfaceFormat) SetBlueBufferSize(size int)

Set the desired size in bits of the blue channel of the color buffer.

Note: On Mac OSX, be sure to set the buffer size of all color channels, otherwise this setting will have no effect. If one of the buffer sizes is not set, the current bit-depth of the screen is used.

See also blueBufferSize().

func (*QSurfaceFormat) SetColorSpace

func (this *QSurfaceFormat) SetColorSpace(colorSpace int)

Sets the preferred colorSpace.

For example, this allows requesting windows with default framebuffers that are sRGB-capable on platforms that support it.

Note: When the requested color space is not supported by the platform, the request is ignored. Query the QSurfaceFormat after window creation to verify if the color space request could be honored or not.

Note: This setting controls if the default framebuffer of the window is capable of updates and blending in a given color space. It does not change applications' output by itself. The applications' rendering code will still have to opt in via the appropriate OpenGL calls to enable updates and blending to be performed in the given color space instead of using the standard linear operations.

This function was introduced in Qt 5.10.

See also colorSpace().

func (*QSurfaceFormat) SetCthis

func (this *QSurfaceFormat) SetCthis(cthis unsafe.Pointer)

func (*QSurfaceFormat) SetDefaultFormat

func (this *QSurfaceFormat) SetDefaultFormat(format QSurfaceFormat_ITF)

Sets the global default surface format.

This format is used by default in QOpenGLContext, QWindow, QOpenGLWidget and similar classes.

It can always be overridden on a per-instance basis by using the class in question's own setFormat() function. However, it is often more convenient to set the format for all windows once at the start of the application. It also guarantees proper behavior in cases where shared contexts are required, because settings the format via this function guarantees that all contexts and surfaces, even the ones created internally by Qt, will use the same format.

Note: When setting Qt::AA_ShareOpenGLContexts, it is strongly recommended to place the call to this function before the construction of the QGuiApplication or QApplication. Otherwise format will not be applied to the global share context and therefore issues may arise with context sharing afterwards.

This function was introduced in Qt 5.4.

See also defaultFormat().

func (*QSurfaceFormat) SetDepthBufferSize

func (this *QSurfaceFormat) SetDepthBufferSize(size int)

Set the minimum depth buffer size to size.

See also depthBufferSize().

func (*QSurfaceFormat) SetGreenBufferSize

func (this *QSurfaceFormat) SetGreenBufferSize(size int)

Set the desired size in bits of the green channel of the color buffer.

Note: On Mac OSX, be sure to set the buffer size of all color channels, otherwise this setting will have no effect. If one of the buffer sizes is not set, the current bit-depth of the screen is used.

See also greenBufferSize().

func (*QSurfaceFormat) SetMajorVersion

func (this *QSurfaceFormat) SetMajorVersion(majorVersion int)

Sets the desired major OpenGL version.

See also majorVersion().

func (*QSurfaceFormat) SetMinorVersion

func (this *QSurfaceFormat) SetMinorVersion(minorVersion int)

Sets the desired minor OpenGL version.

The default version is 2.0.

See also minorVersion().

func (*QSurfaceFormat) SetOption

func (this *QSurfaceFormat) SetOption(opt int)

Sets the format option option if on is true; otherwise, clears the option.

This function was introduced in Qt 5.3.

See also setOptions(), options(), and testOption().

func (*QSurfaceFormat) SetOption1

func (this *QSurfaceFormat) SetOption1(option int, on bool)

Sets the format option option if on is true; otherwise, clears the option.

This function was introduced in Qt 5.3.

See also setOptions(), options(), and testOption().

func (*QSurfaceFormat) SetOption1p

func (this *QSurfaceFormat) SetOption1p(option int)

Sets the format option option if on is true; otherwise, clears the option.

This function was introduced in Qt 5.3.

See also setOptions(), options(), and testOption().

func (*QSurfaceFormat) SetOptions

func (this *QSurfaceFormat) SetOptions(options int)

Sets the format options to options.

This function was introduced in Qt 5.3.

See also options() and testOption().

func (*QSurfaceFormat) SetProfile

func (this *QSurfaceFormat) SetProfile(profile int)

Sets the desired OpenGL context profile.

This setting is ignored if the requested OpenGL version is less than 3.2.

See also profile().

func (*QSurfaceFormat) SetRedBufferSize

func (this *QSurfaceFormat) SetRedBufferSize(size int)

Set the desired size in bits of the red channel of the color buffer.

Note: On Mac OSX, be sure to set the buffer size of all color channels, otherwise this setting will have no effect. If one of the buffer sizes is not set, the current bit-depth of the screen is used.

See also redBufferSize().

func (*QSurfaceFormat) SetRenderableType

func (this *QSurfaceFormat) SetRenderableType(type_ int)

Sets the desired renderable type.

Chooses between desktop OpenGL, OpenGL ES, and OpenVG.

See also renderableType().

func (*QSurfaceFormat) SetSamples

func (this *QSurfaceFormat) SetSamples(numSamples int)

Set the preferred number of samples per pixel when multisampling is enabled to numSamples. By default, multisampling is disabled.

See also samples().

func (*QSurfaceFormat) SetStencilBufferSize

func (this *QSurfaceFormat) SetStencilBufferSize(size int)

Set the preferred stencil buffer size to size bits.

See also stencilBufferSize().

func (*QSurfaceFormat) SetStereo

func (this *QSurfaceFormat) SetStereo(enable bool)

If enable is true enables stereo buffering; otherwise disables stereo buffering.

Stereo buffering is disabled by default.

Stereo buffering provides extra color buffers to generate left-eye and right-eye images.

See also stereo().

func (*QSurfaceFormat) SetSwapBehavior

func (this *QSurfaceFormat) SetSwapBehavior(behavior int)

Set the swap behavior of the surface.

The swap behavior specifies whether single, double, or triple buffering is desired. The default, DefaultSwapBehavior, gives the default swap behavior of the platform.

See also swapBehavior().

func (*QSurfaceFormat) SetSwapInterval

func (this *QSurfaceFormat) SetSwapInterval(interval int)

Sets the preferred swap interval. The swap interval specifies the minimum number of video frames that are displayed before a buffer swap occurs. This can be used to sync the GL drawing into a window to the vertical refresh of the screen.

Setting an interval value of 0 will turn the vertical refresh syncing off, any value higher than 0 will turn the vertical syncing on. Setting interval to a higher value, for example 10, results in having 10 vertical retraces between every buffer swap.

The default interval is 1.

Changing the swap interval may not be supported by the underlying platform. In this case, the request will be silently ignored.

This function was introduced in Qt 5.3.

See also swapInterval().

func (*QSurfaceFormat) SetVersion

func (this *QSurfaceFormat) SetVersion(major int, minor int)

Sets the desired major and minor OpenGL versions.

The default version is 2.0.

See also version().

func (*QSurfaceFormat) StencilBufferSize

func (this *QSurfaceFormat) StencilBufferSize() int

Returns the stencil buffer size in bits.

See also setStencilBufferSize().

func (*QSurfaceFormat) Stereo

func (this *QSurfaceFormat) Stereo() bool

Returns true if stereo buffering is enabled; otherwise returns false. Stereo buffering is disabled by default.

See also setStereo().

func (*QSurfaceFormat) SwapBehavior

func (this *QSurfaceFormat) SwapBehavior() int

Returns the configured swap behaviour.

See also setSwapBehavior().

func (*QSurfaceFormat) SwapBehaviorItemName

func (this *QSurfaceFormat) SwapBehaviorItemName(val int) string

func (*QSurfaceFormat) SwapInterval

func (this *QSurfaceFormat) SwapInterval() int

Returns the swap interval.

This function was introduced in Qt 5.3.

See also setSwapInterval().

func (*QSurfaceFormat) TestOption

func (this *QSurfaceFormat) TestOption(opt int) bool

Returns true if the format option option is set; otherwise returns false.

This function was introduced in Qt 5.3.

See also options().

func (*QSurfaceFormat) TestOption1

func (this *QSurfaceFormat) TestOption1(option int) bool

Returns true if the format option option is set; otherwise returns false.

This function was introduced in Qt 5.3.

See also options().

type QSurfaceFormat_ITF

type QSurfaceFormat_ITF interface {
	QSurfaceFormat_PTR() *QSurfaceFormat
}

type QSurfaceFormat__ColorSpace

type QSurfaceFormat__ColorSpace = int

This enum is used to specify the preferred color space, controlling if the window's associated default framebuffer is able to do updates and blending in a given encoding instead of the standard linear operations.

const QSurfaceFormat__DefaultColorSpace QSurfaceFormat__ColorSpace = 0

The default, unspecified color space.

const QSurfaceFormat__sRGBColorSpace QSurfaceFormat__ColorSpace = 1

When GL_ARB_framebuffer_sRGB or GL_EXT_framebuffer_sRGB is supported by the platform and this value is set, the window will be created with an sRGB-capable default framebuffer. Note that some platforms may return windows with a sRGB-capable default framebuffer even when not requested explicitly.

type QSurfaceFormat__FormatOption

type QSurfaceFormat__FormatOption = int
const QSurfaceFormat__DebugContext QSurfaceFormat__FormatOption = 2
const QSurfaceFormat__DeprecatedFunctions QSurfaceFormat__FormatOption = 4
const QSurfaceFormat__ResetNotification QSurfaceFormat__FormatOption = 8
const QSurfaceFormat__StereoBuffers QSurfaceFormat__FormatOption = 1

type QSurfaceFormat__OpenGLContextProfile

type QSurfaceFormat__OpenGLContextProfile = int

This enum is used to specify the OpenGL context profile, in conjunction with QSurfaceFormat::setMajorVersion() and QSurfaceFormat::setMinorVersion().

Profiles are exposed in OpenGL 3.2 and above, and are used to choose between a restricted core profile, and a compatibility profile which might contain deprecated support functionality.

Note that the core profile might still contain functionality that is deprecated and scheduled for removal in a higher version. To get access to the deprecated functionality for the core profile in the set OpenGL version you can use the QSurfaceFormat format option QSurfaceFormat::DeprecatedFunctions.

const QSurfaceFormat__CompatibilityProfile QSurfaceFormat__OpenGLContextProfile = 2

Functionality from earlier OpenGL versions is available.

const QSurfaceFormat__CoreProfile QSurfaceFormat__OpenGLContextProfile = 1
const QSurfaceFormat__NoProfile QSurfaceFormat__OpenGLContextProfile = 0

type QSurfaceFormat__RenderableType

type QSurfaceFormat__RenderableType = int

This enum specifies the rendering backend for the surface.

const QSurfaceFormat__DefaultRenderableType QSurfaceFormat__RenderableType = 0
const QSurfaceFormat__OpenGL QSurfaceFormat__RenderableType = 1
const QSurfaceFormat__OpenGLES QSurfaceFormat__RenderableType = 2
const QSurfaceFormat__OpenVG QSurfaceFormat__RenderableType = 4

type QSurfaceFormat__SwapBehavior

type QSurfaceFormat__SwapBehavior = int

This enum is used by QSurfaceFormat to specify the swap behaviour of a surface. The swap behaviour is mostly transparent to the application, but it affects factors such as rendering latency and throughput.

const QSurfaceFormat__DefaultSwapBehavior QSurfaceFormat__SwapBehavior = 0

The default, unspecified swap behaviour of the platform.

const QSurfaceFormat__DoubleBuffer QSurfaceFormat__SwapBehavior = 2

This is typically the default swap behaviour on desktop platforms, consisting of one back buffer and one front buffer. Rendering is done to the back buffer, and then the back buffer and front buffer are swapped, or the contents of the back buffer are copied to the front buffer, depending on the implementation.

const QSurfaceFormat__SingleBuffer QSurfaceFormat__SwapBehavior = 1

Used to request single buffering, which might result in flickering when OpenGL rendering is done directly to screen without an intermediate offscreen buffer.

const QSurfaceFormat__TripleBuffer QSurfaceFormat__SwapBehavior = 3

This swap behaviour is sometimes used in order to decrease the risk of skipping a frame when the rendering rate is just barely keeping up with the screen refresh rate. Depending on the platform it might also lead to slightly more efficient use of the GPU due to improved pipelining behaviour. Triple buffering comes at the cost of an extra frame of memory usage and latency, and might not be supported depending on the underlying platform.

type QSurface_ITF

type QSurface_ITF interface {
	QSurface_PTR() *QSurface
}

type QSurface__SurfaceClass

type QSurface__SurfaceClass = int

The SurfaceClass enum describes the actual subclass of the surface.

const QSurface__Offscreen QSurface__SurfaceClass = 1

The surface is an instance of QOffscreenSurface.

const QSurface__Window QSurface__SurfaceClass = 0

The surface is an instance of QWindow.

type QSurface__SurfaceType

type QSurface__SurfaceType = int

The SurfaceType enum describes what type of surface this is.

const QSurface__MetalSurface QSurface__SurfaceType = 5

The surface is a Metal compatible surface and can be used in conjunction with Apple's Metal graphics API. This surface type is supported on macOS only.

const QSurface__OpenGLSurface QSurface__SurfaceType = 1

The surface is an OpenGL compatible surface and can be used in conjunction with QOpenGLContext.

const QSurface__OpenVGSurface QSurface__SurfaceType = 3

The surface is an OpenVG compatible surface and can be used in conjunction with OpenVG contexts.

const QSurface__RasterGLSurface QSurface__SurfaceType = 2

The surface can be rendered to using a software rasterizer, and also supports OpenGL. This surface type is intended for internal Qt use, and requires the use of private API.

const QSurface__RasterSurface QSurface__SurfaceType = 0

The surface is is composed of pixels and can be rendered to using a software rasterizer like Qt's raster paint engine.

const QSurface__VulkanSurface QSurface__SurfaceType = 4

The surface is a Vulkan compatible surface and can be used in conjunction with the Vulkan graphics API.

type QSyntaxHighlighter

type QSyntaxHighlighter struct {
	*qtcore.QObject
}

func NewQSyntaxHighlighter

func NewQSyntaxHighlighter(parent qtcore.QObject_ITF) *QSyntaxHighlighter

func NewQSyntaxHighlighter1

func NewQSyntaxHighlighter1(parent QTextDocument_ITF) *QSyntaxHighlighter

func NewQSyntaxHighlighterFromPointer

func NewQSyntaxHighlighterFromPointer(cthis unsafe.Pointer) *QSyntaxHighlighter

func (*QSyntaxHighlighter) CurrentBlock

func (this *QSyntaxHighlighter) CurrentBlock() *QTextBlock

Returns the current text block.

This function was introduced in Qt 4.4.

func (*QSyntaxHighlighter) CurrentBlockState

func (this *QSyntaxHighlighter) CurrentBlockState() int

Returns the state of the current text block. If no value is set, the returned value is -1.

See also setCurrentBlockState().

func (*QSyntaxHighlighter) CurrentBlockUserData

func (this *QSyntaxHighlighter) CurrentBlockUserData() *QTextBlockUserData

Returns the QTextBlockUserData object previously attached to the current text block.

See also QTextBlock::userData() and setCurrentBlockUserData().

func (*QSyntaxHighlighter) Document

func (this *QSyntaxHighlighter) Document() *QTextDocument

Returns the QTextDocument on which this syntax highlighter is installed.

See also setDocument().

func (*QSyntaxHighlighter) Format

func (this *QSyntaxHighlighter) Format(pos int) *QTextCharFormat

Returns the format at position inside the syntax highlighter's current text block.

See also setFormat().

func (*QSyntaxHighlighter) GetCthis

func (this *QSyntaxHighlighter) GetCthis() unsafe.Pointer

func (*QSyntaxHighlighter) HighlightBlock

func (this *QSyntaxHighlighter) HighlightBlock(text string)

Highlights the given text block. This function is called when necessary by the rich text engine, i.e. on text blocks which have changed.

To provide your own syntax highlighting, you must subclass QSyntaxHighlighter and reimplement highlightBlock(). In your reimplementation you should parse the block's text and call setFormat() as often as necessary to apply any font and color changes that you require. For example:

void MyHighlighter::highlightBlock(const QString &text)
{
    QTextCharFormat myClassFormat;
    myClassFormat.setFontWeight(QFont::Bold);
    myClassFormat.setForeground(Qt::darkMagenta);

    QRegularExpression expression("\\bMy[A-Za-z]+\\b");
    QRegularExpressionMatchIterator i = expression.globalMatch(text);
    while (i.hasNext())
    {
      QRegularExpressionMatch match = i.next();
      setFormat(match.capturedStart(), match.capturedLength(), myClassFormat);
    }
}

See the Detailed Description for examples of using setCurrentBlockState(), currentBlockState() and previousBlockState() to handle syntaxes with constructs that span several text blocks

See also previousBlockState(), setFormat(), and setCurrentBlockState().

func (*QSyntaxHighlighter) InheritCurrentBlock

func (this *QSyntaxHighlighter) InheritCurrentBlock(f func() unsafe.Pointer)

QTextBlock currentBlock()

func (*QSyntaxHighlighter) InheritCurrentBlockState

func (this *QSyntaxHighlighter) InheritCurrentBlockState(f func() int)

int currentBlockState()

func (*QSyntaxHighlighter) InheritCurrentBlockUserData

func (this *QSyntaxHighlighter) InheritCurrentBlockUserData(f func() unsafe.Pointer)

QTextBlockUserData * currentBlockUserData()

func (*QSyntaxHighlighter) InheritFormat

func (this *QSyntaxHighlighter) InheritFormat(f func(pos int) unsafe.Pointer)

QTextCharFormat format(int)

func (*QSyntaxHighlighter) InheritHighlightBlock

func (this *QSyntaxHighlighter) InheritHighlightBlock(f func(text string))

void highlightBlock(const QString &)

func (*QSyntaxHighlighter) InheritPreviousBlockState

func (this *QSyntaxHighlighter) InheritPreviousBlockState(f func() int)

int previousBlockState()

func (*QSyntaxHighlighter) InheritSetCurrentBlockState

func (this *QSyntaxHighlighter) InheritSetCurrentBlockState(f func(newState int))

void setCurrentBlockState(int)

func (*QSyntaxHighlighter) InheritSetCurrentBlockUserData

func (this *QSyntaxHighlighter) InheritSetCurrentBlockUserData(f func(data *QTextBlockUserData))

void setCurrentBlockUserData(QTextBlockUserData *)

func (*QSyntaxHighlighter) InheritSetFormat

func (this *QSyntaxHighlighter) InheritSetFormat(f func(start int, count int, format *QTextCharFormat))

void setFormat(int, int, const QTextCharFormat &)

func (*QSyntaxHighlighter) MetaObject

func (this *QSyntaxHighlighter) MetaObject() *qtcore.QMetaObject

func (*QSyntaxHighlighter) NewForInherit

func (*QSyntaxHighlighter) NewForInherit(parent qtcore.QObject_ITF) *QSyntaxHighlighter

Constructs a QSyntaxHighlighter with the given parent.

If the parent is a QTextEdit, it installs the syntax highlighter on the parents document. The specified QTextEdit also becomes the owner of the QSyntaxHighlighter.

func (*QSyntaxHighlighter) NewForInherit1

func (*QSyntaxHighlighter) NewForInherit1(parent QTextDocument_ITF) *QSyntaxHighlighter

Constructs a QSyntaxHighlighter with the given parent.

If the parent is a QTextEdit, it installs the syntax highlighter on the parents document. The specified QTextEdit also becomes the owner of the QSyntaxHighlighter.

func (*QSyntaxHighlighter) NewFromPointer

func (*QSyntaxHighlighter) NewFromPointer(cthis unsafe.Pointer) *QSyntaxHighlighter

func (*QSyntaxHighlighter) PreviousBlockState

func (this *QSyntaxHighlighter) PreviousBlockState() int

Returns the end state of the text block previous to the syntax highlighter's current block. If no value was previously set, the returned value is -1.

See also highlightBlock() and setCurrentBlockState().

func (*QSyntaxHighlighter) QSyntaxHighlighter_PTR

func (ptr *QSyntaxHighlighter) QSyntaxHighlighter_PTR() *QSyntaxHighlighter

func (*QSyntaxHighlighter) Rehighlight

func (this *QSyntaxHighlighter) Rehighlight()

Reapplies the highlighting to the whole document.

This function was introduced in Qt 4.2.

See also rehighlightBlock().

func (*QSyntaxHighlighter) RehighlightBlock

func (this *QSyntaxHighlighter) RehighlightBlock(block QTextBlock_ITF)

Reapplies the highlighting to the given QTextBlock block.

This function was introduced in Qt 4.6.

See also rehighlight().

func (*QSyntaxHighlighter) SetCthis

func (this *QSyntaxHighlighter) SetCthis(cthis unsafe.Pointer)

func (*QSyntaxHighlighter) SetCurrentBlockState

func (this *QSyntaxHighlighter) SetCurrentBlockState(newState int)

Sets the state of the current text block to newState.

See also currentBlockState() and highlightBlock().

func (*QSyntaxHighlighter) SetCurrentBlockUserData

func (this *QSyntaxHighlighter) SetCurrentBlockUserData(data QTextBlockUserData_ITF)

Attaches the given data to the current text block. The ownership is passed to the underlying text document, i.e. the provided QTextBlockUserData object will be deleted if the corresponding text block gets deleted.

QTextBlockUserData can be used to store custom settings. In the case of syntax highlighting, it is in particular interesting as cache storage for information that you may figure out while parsing the paragraph's text.

For example while parsing the text, you can keep track of parenthesis characters that you encounter ('{[(' and the like), and store their relative position and the actual QChar in a simple class derived from QTextBlockUserData:

struct ParenthesisInfo
{
    QChar char;
    int position;
};

struct BlockData : public QTextBlockUserData
{
    QVector<ParenthesisInfo> parentheses;
};

During cursor navigation in the associated editor, you can ask the current QTextBlock (retrieved using the QTextCursor::block() function) if it has a user data object set and cast it to your BlockData object. Then you can check if the current cursor position matches with a previously recorded parenthesis position, and, depending on the type of parenthesis (opening or closing), find the next opening or closing parenthesis on the same level.

In this way you can do a visual parenthesis matching and highlight from the current cursor position to the matching parenthesis. That makes it easier to spot a missing parenthesis in your code and to find where a corresponding opening/closing parenthesis is when editing parenthesis intensive code.

See also currentBlockUserData() and QTextBlock::setUserData().

func (*QSyntaxHighlighter) SetDocument

func (this *QSyntaxHighlighter) SetDocument(doc QTextDocument_ITF)

Installs the syntax highlighter on the given QTextDocument doc. A QSyntaxHighlighter can only be used with one document at a time.

See also document().

func (*QSyntaxHighlighter) SetFormat

func (this *QSyntaxHighlighter) SetFormat(start int, count int, format QTextCharFormat_ITF)

This function is applied to the syntax highlighter's current text block (i.e. the text that is passed to the highlightBlock() function).

The specified format is applied to the text from the start position for a length of count characters (if count is 0, nothing is done). The formatting properties set in format are merged at display time with the formatting information stored directly in the document, for example as previously set with QTextCursor's functions. Note that the document itself remains unmodified by the format set through this function.

See also format() and highlightBlock().

func (*QSyntaxHighlighter) SetFormat1

func (this *QSyntaxHighlighter) SetFormat1(start int, count int, color QColor_ITF)

This function is applied to the syntax highlighter's current text block (i.e. the text that is passed to the highlightBlock() function).

The specified format is applied to the text from the start position for a length of count characters (if count is 0, nothing is done). The formatting properties set in format are merged at display time with the formatting information stored directly in the document, for example as previously set with QTextCursor's functions. Note that the document itself remains unmodified by the format set through this function.

See also format() and highlightBlock().

func (*QSyntaxHighlighter) SetFormat2

func (this *QSyntaxHighlighter) SetFormat2(start int, count int, font QFont_ITF)

This function is applied to the syntax highlighter's current text block (i.e. the text that is passed to the highlightBlock() function).

The specified format is applied to the text from the start position for a length of count characters (if count is 0, nothing is done). The formatting properties set in format are merged at display time with the formatting information stored directly in the document, for example as previously set with QTextCursor's functions. Note that the document itself remains unmodified by the format set through this function.

See also format() and highlightBlock().

type QSyntaxHighlighter_ITF

type QSyntaxHighlighter_ITF interface {
	qtcore.QObject_ITF
	QSyntaxHighlighter_PTR() *QSyntaxHighlighter
}

type QTabletEvent

type QTabletEvent struct {
	*QInputEvent
}

func NewQTabletEvent

func NewQTabletEvent(t int, pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64) *QTabletEvent

func NewQTabletEvent1

func NewQTabletEvent1(t int, pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64, button int, buttons int) *QTabletEvent

func NewQTabletEventFromPointer

func NewQTabletEventFromPointer(cthis unsafe.Pointer) *QTabletEvent

func (*QTabletEvent) Button

func (this *QTabletEvent) Button() int

func (*QTabletEvent) Buttons

func (this *QTabletEvent) Buttons() int

func (*QTabletEvent) Device

func (this *QTabletEvent) Device() int

func (*QTabletEvent) GetCthis

func (this *QTabletEvent) GetCthis() unsafe.Pointer

func (*QTabletEvent) GlobalPos

func (this *QTabletEvent) GlobalPos() *qtcore.QPoint

func (*QTabletEvent) GlobalPosF

func (this *QTabletEvent) GlobalPosF() *qtcore.QPointF

func (*QTabletEvent) GlobalX

func (this *QTabletEvent) GlobalX() int

func (*QTabletEvent) GlobalY

func (this *QTabletEvent) GlobalY() int

func (*QTabletEvent) HiResGlobalX

func (this *QTabletEvent) HiResGlobalX() float64

func (*QTabletEvent) HiResGlobalY

func (this *QTabletEvent) HiResGlobalY() float64

func (*QTabletEvent) NewForInherit

func (*QTabletEvent) NewForInherit(t int, pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64) *QTabletEvent

func (*QTabletEvent) NewForInherit1

func (*QTabletEvent) NewForInherit1(t int, pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, device int, pointerType int, pressure float64, xTilt int, yTilt int, tangentialPressure float64, rotation float64, z int, keyState int, uniqueID int64, button int, buttons int) *QTabletEvent

func (*QTabletEvent) NewFromPointer

func (*QTabletEvent) NewFromPointer(cthis unsafe.Pointer) *QTabletEvent

func (*QTabletEvent) PointerType

func (this *QTabletEvent) PointerType() int

func (*QTabletEvent) PointerTypeItemName

func (this *QTabletEvent) PointerTypeItemName(val int) string

func (*QTabletEvent) Pos

func (this *QTabletEvent) Pos() *qtcore.QPoint

func (*QTabletEvent) PosF

func (this *QTabletEvent) PosF() *qtcore.QPointF

func (*QTabletEvent) Pressure

func (this *QTabletEvent) Pressure() float64

func (*QTabletEvent) QTabletEvent_PTR

func (ptr *QTabletEvent) QTabletEvent_PTR() *QTabletEvent

func (*QTabletEvent) Rotation

func (this *QTabletEvent) Rotation() float64

func (*QTabletEvent) SetCthis

func (this *QTabletEvent) SetCthis(cthis unsafe.Pointer)

func (*QTabletEvent) TabletDeviceItemName

func (this *QTabletEvent) TabletDeviceItemName(val int) string

func (*QTabletEvent) TangentialPressure

func (this *QTabletEvent) TangentialPressure() float64

func (*QTabletEvent) UniqueId

func (this *QTabletEvent) UniqueId() int64

func (*QTabletEvent) X

func (this *QTabletEvent) X() int

func (*QTabletEvent) XTilt

func (this *QTabletEvent) XTilt() int

func (*QTabletEvent) Y

func (this *QTabletEvent) Y() int

func (*QTabletEvent) YTilt

func (this *QTabletEvent) YTilt() int

func (*QTabletEvent) Z

func (this *QTabletEvent) Z() int

type QTabletEvent_ITF

type QTabletEvent_ITF interface {
	QInputEvent_ITF
	QTabletEvent_PTR() *QTabletEvent
}

type QTabletEvent__PointerType

type QTabletEvent__PointerType = int
const QTabletEvent__Cursor QTabletEvent__PointerType = 2
const QTabletEvent__Eraser QTabletEvent__PointerType = 3
const QTabletEvent__Pen QTabletEvent__PointerType = 1
const QTabletEvent__UnknownPointer QTabletEvent__PointerType = 0

type QTabletEvent__TabletDevice

type QTabletEvent__TabletDevice = int
const QTabletEvent__Airbrush QTabletEvent__TabletDevice = 3
const QTabletEvent__FourDMouse QTabletEvent__TabletDevice = 4
const QTabletEvent__NoDevice QTabletEvent__TabletDevice = 0
const QTabletEvent__Puck QTabletEvent__TabletDevice = 1
const QTabletEvent__RotationStylus QTabletEvent__TabletDevice = 6
const QTabletEvent__Stylus QTabletEvent__TabletDevice = 2
const QTabletEvent__XFreeEraser QTabletEvent__TabletDevice = 5

type QTextBlock

type QTextBlock struct {
	*qtrt.CObject
}

func NewQTextBlock

func NewQTextBlock() *QTextBlock

func NewQTextBlockFromPointer

func NewQTextBlockFromPointer(cthis unsafe.Pointer) *QTextBlock

func (*QTextBlock) Begin

func (this *QTextBlock) Begin() unsafe.Pointer

func (*QTextBlock) BlockFormat

func (this *QTextBlock) BlockFormat() *QTextBlockFormat

func (*QTextBlock) BlockFormatIndex

func (this *QTextBlock) BlockFormatIndex() int

func (*QTextBlock) BlockNumber

func (this *QTextBlock) BlockNumber() int

func (*QTextBlock) CharFormat

func (this *QTextBlock) CharFormat() *QTextCharFormat

func (*QTextBlock) CharFormatIndex

func (this *QTextBlock) CharFormatIndex() int

func (*QTextBlock) ClearLayout

func (this *QTextBlock) ClearLayout()

func (*QTextBlock) Contains

func (this *QTextBlock) Contains(position int) bool

func (*QTextBlock) Document

func (this *QTextBlock) Document() *QTextDocument

Returns the document this object belongs to.

See also format().

func (*QTextBlock) End

func (this *QTextBlock) End() unsafe.Pointer

func (*QTextBlock) FirstLineNumber

func (this *QTextBlock) FirstLineNumber() int

func (*QTextBlock) FragmentIndex

func (this *QTextBlock) FragmentIndex() int

func (*QTextBlock) GetCthis

func (this *QTextBlock) GetCthis() unsafe.Pointer

func (*QTextBlock) IsValid

func (this *QTextBlock) IsValid() bool

func (*QTextBlock) IsVisible

func (this *QTextBlock) IsVisible() bool

func (*QTextBlock) Layout

func (this *QTextBlock) Layout() *QTextLayout

func (*QTextBlock) Length

func (this *QTextBlock) Length() int

func (*QTextBlock) LineCount

func (this *QTextBlock) LineCount() int

func (*QTextBlock) NewForInherit

func (*QTextBlock) NewForInherit() *QTextBlock

func (*QTextBlock) NewFromPointer

func (*QTextBlock) NewFromPointer(cthis unsafe.Pointer) *QTextBlock

func (*QTextBlock) Next

func (this *QTextBlock) Next() *QTextBlock

func (*QTextBlock) Operator_equal

func (this *QTextBlock) Operator_equal(o QTextBlock_ITF) *QTextBlock

func (*QTextBlock) Operator_equal_equal

func (this *QTextBlock) Operator_equal_equal(o QTextBlock_ITF) bool

func (*QTextBlock) Operator_less_than

func (this *QTextBlock) Operator_less_than(o QTextBlock_ITF) bool

func (*QTextBlock) Operator_not_equal

func (this *QTextBlock) Operator_not_equal(o QTextBlock_ITF) bool

func (*QTextBlock) Position

func (this *QTextBlock) Position() int

func (*QTextBlock) Previous

func (this *QTextBlock) Previous() *QTextBlock

func (*QTextBlock) QTextBlock_PTR

func (ptr *QTextBlock) QTextBlock_PTR() *QTextBlock

func (*QTextBlock) Revision

func (this *QTextBlock) Revision() int

func (*QTextBlock) SetCthis

func (this *QTextBlock) SetCthis(cthis unsafe.Pointer)

func (*QTextBlock) SetLineCount

func (this *QTextBlock) SetLineCount(count int)

func (*QTextBlock) SetRevision

func (this *QTextBlock) SetRevision(rev int)

func (*QTextBlock) SetUserData

func (this *QTextBlock) SetUserData(data QTextBlockUserData_ITF)

func (*QTextBlock) SetUserState

func (this *QTextBlock) SetUserState(state int)

func (*QTextBlock) SetVisible

func (this *QTextBlock) SetVisible(visible bool)

func (*QTextBlock) Text

func (this *QTextBlock) Text() string

func (*QTextBlock) TextDirection

func (this *QTextBlock) TextDirection() int

func (*QTextBlock) TextList

func (this *QTextBlock) TextList() *QTextList

func (*QTextBlock) UserData

func (this *QTextBlock) UserData() *QTextBlockUserData

func (*QTextBlock) UserState

func (this *QTextBlock) UserState() int

type QTextBlockFormat

type QTextBlockFormat struct {
	*QTextFormat
}

func NewQTextBlockFormat

func NewQTextBlockFormat() *QTextBlockFormat

func NewQTextBlockFormat1

func NewQTextBlockFormat1(fmt_ QTextFormat_ITF) *QTextBlockFormat

func NewQTextBlockFormatFromPointer

func NewQTextBlockFormatFromPointer(cthis unsafe.Pointer) *QTextBlockFormat

func (*QTextBlockFormat) Alignment

func (this *QTextBlockFormat) Alignment() int

func (*QTextBlockFormat) BottomMargin

func (this *QTextBlockFormat) BottomMargin() float64

func (*QTextBlockFormat) GetCthis

func (this *QTextBlockFormat) GetCthis() unsafe.Pointer

func (*QTextBlockFormat) HeadingLevel

func (this *QTextBlockFormat) HeadingLevel() int

func (*QTextBlockFormat) Indent

func (this *QTextBlockFormat) Indent() int

func (*QTextBlockFormat) IsValid

func (this *QTextBlockFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextBlockFormat) LeftMargin

func (this *QTextBlockFormat) LeftMargin() float64

func (*QTextBlockFormat) LineHeight

func (this *QTextBlockFormat) LineHeight(scriptLineHeight float64, scaling float64) float64

func (*QTextBlockFormat) LineHeight1

func (this *QTextBlockFormat) LineHeight1() float64

func (*QTextBlockFormat) LineHeightType

func (this *QTextBlockFormat) LineHeightType() int

func (*QTextBlockFormat) LineHeightTypesItemName

func (this *QTextBlockFormat) LineHeightTypesItemName(val int) string

func (*QTextBlockFormat) NewForInherit

func (*QTextBlockFormat) NewForInherit() *QTextBlockFormat

func (*QTextBlockFormat) NewForInherit1

func (*QTextBlockFormat) NewForInherit1(fmt_ QTextFormat_ITF) *QTextBlockFormat

func (*QTextBlockFormat) NewFromPointer

func (*QTextBlockFormat) NewFromPointer(cthis unsafe.Pointer) *QTextBlockFormat

func (*QTextBlockFormat) NonBreakableLines

func (this *QTextBlockFormat) NonBreakableLines() bool

func (*QTextBlockFormat) PageBreakPolicy

func (this *QTextBlockFormat) PageBreakPolicy() int

func (*QTextBlockFormat) QTextBlockFormat_PTR

func (ptr *QTextBlockFormat) QTextBlockFormat_PTR() *QTextBlockFormat

func (*QTextBlockFormat) RightMargin

func (this *QTextBlockFormat) RightMargin() float64

func (*QTextBlockFormat) SetAlignment

func (this *QTextBlockFormat) SetAlignment(alignment int)

func (*QTextBlockFormat) SetBottomMargin

func (this *QTextBlockFormat) SetBottomMargin(margin float64)

func (*QTextBlockFormat) SetCthis

func (this *QTextBlockFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextBlockFormat) SetHeadingLevel

func (this *QTextBlockFormat) SetHeadingLevel(alevel int)

func (*QTextBlockFormat) SetIndent

func (this *QTextBlockFormat) SetIndent(indent int)

func (*QTextBlockFormat) SetLeftMargin

func (this *QTextBlockFormat) SetLeftMargin(margin float64)

func (*QTextBlockFormat) SetLineHeight

func (this *QTextBlockFormat) SetLineHeight(height float64, heightType int)

func (*QTextBlockFormat) SetNonBreakableLines

func (this *QTextBlockFormat) SetNonBreakableLines(b bool)

func (*QTextBlockFormat) SetPageBreakPolicy

func (this *QTextBlockFormat) SetPageBreakPolicy(flags int)

func (*QTextBlockFormat) SetRightMargin

func (this *QTextBlockFormat) SetRightMargin(margin float64)

func (*QTextBlockFormat) SetTextIndent

func (this *QTextBlockFormat) SetTextIndent(aindent float64)

func (*QTextBlockFormat) SetTopMargin

func (this *QTextBlockFormat) SetTopMargin(margin float64)

func (*QTextBlockFormat) TextIndent

func (this *QTextBlockFormat) TextIndent() float64

func (*QTextBlockFormat) TopMargin

func (this *QTextBlockFormat) TopMargin() float64

type QTextBlockFormat_ITF

type QTextBlockFormat_ITF interface {
	QTextFormat_ITF
	QTextBlockFormat_PTR() *QTextBlockFormat
}

type QTextBlockFormat__LineHeightTypes

type QTextBlockFormat__LineHeightTypes = int
const QTextBlockFormat__FixedHeight QTextBlockFormat__LineHeightTypes = 2
const QTextBlockFormat__LineDistanceHeight QTextBlockFormat__LineHeightTypes = 4
const QTextBlockFormat__MinimumHeight QTextBlockFormat__LineHeightTypes = 3
const QTextBlockFormat__ProportionalHeight QTextBlockFormat__LineHeightTypes = 1
const QTextBlockFormat__SingleHeight QTextBlockFormat__LineHeightTypes = 0

type QTextBlockGroup

type QTextBlockGroup struct {
	*QTextObject
}

func NewQTextBlockGroup

func NewQTextBlockGroup(doc QTextDocument_ITF) *QTextBlockGroup

func NewQTextBlockGroupFromPointer

func NewQTextBlockGroupFromPointer(cthis unsafe.Pointer) *QTextBlockGroup

func (*QTextBlockGroup) BlockFormatChanged

func (this *QTextBlockGroup) BlockFormatChanged(block QTextBlock_ITF)

func (*QTextBlockGroup) BlockInserted

func (this *QTextBlockGroup) BlockInserted(block QTextBlock_ITF)

func (*QTextBlockGroup) BlockRemoved

func (this *QTextBlockGroup) BlockRemoved(block QTextBlock_ITF)

func (*QTextBlockGroup) GetCthis

func (this *QTextBlockGroup) GetCthis() unsafe.Pointer

func (*QTextBlockGroup) InheritBlockFormatChanged

func (this *QTextBlockGroup) InheritBlockFormatChanged(f func(block *QTextBlock))

void blockFormatChanged(const QTextBlock &)

func (*QTextBlockGroup) InheritBlockInserted

func (this *QTextBlockGroup) InheritBlockInserted(f func(block *QTextBlock))

void blockInserted(const QTextBlock &)

func (*QTextBlockGroup) InheritBlockRemoved

func (this *QTextBlockGroup) InheritBlockRemoved(f func(block *QTextBlock))

void blockRemoved(const QTextBlock &)

func (*QTextBlockGroup) MetaObject

func (this *QTextBlockGroup) MetaObject() *qtcore.QMetaObject

func (*QTextBlockGroup) NewForInherit

func (*QTextBlockGroup) NewForInherit(doc QTextDocument_ITF) *QTextBlockGroup

func (*QTextBlockGroup) NewFromPointer

func (*QTextBlockGroup) NewFromPointer(cthis unsafe.Pointer) *QTextBlockGroup

func (*QTextBlockGroup) QTextBlockGroup_PTR

func (ptr *QTextBlockGroup) QTextBlockGroup_PTR() *QTextBlockGroup

func (*QTextBlockGroup) SetCthis

func (this *QTextBlockGroup) SetCthis(cthis unsafe.Pointer)

type QTextBlockGroup_ITF

type QTextBlockGroup_ITF interface {
	QTextObject_ITF
	QTextBlockGroup_PTR() *QTextBlockGroup
}

type QTextBlockList

type QTextBlockList struct {
	*qtrt.CObject
}

body block begin

func (*QTextBlockList) Append0

func (this *QTextBlockList) Append0()

void append(const T &)

func (*QTextBlockList) Append1

func (this *QTextBlockList) Append1()

void append(const QList<T> &)

func (*QTextBlockList) At0

func (this *QTextBlockList) At0() *QTextBlock

const T & at(int)

func (*QTextBlockList) Back0

func (this *QTextBlockList) Back0() *QTextBlock

T & back()

func (*QTextBlockList) Back1

func (this *QTextBlockList) Back1() *QTextBlock

const T & back()

func (*QTextBlockList) Begin0

func (this *QTextBlockList) Begin0()

QList::iterator begin()

func (*QTextBlockList) Begin1

func (this *QTextBlockList) Begin1()

QList::const_iterator begin()

func (*QTextBlockList) Cbegin0

func (this *QTextBlockList) Cbegin0()

QList::const_iterator cbegin()

func (*QTextBlockList) Cend0

func (this *QTextBlockList) Cend0()

QList::const_iterator cend()

func (*QTextBlockList) Clear0

func (this *QTextBlockList) Clear0()

void clear()

func (*QTextBlockList) ConstBegin0

func (this *QTextBlockList) ConstBegin0()

QList::const_iterator constBegin()

func (*QTextBlockList) ConstEnd0

func (this *QTextBlockList) ConstEnd0()

QList::const_iterator constEnd()

func (*QTextBlockList) ConstFirst0

func (this *QTextBlockList) ConstFirst0() *QTextBlock

const T & constFirst()

func (*QTextBlockList) ConstLast0

func (this *QTextBlockList) ConstLast0() *QTextBlock

const T & constLast()

func (*QTextBlockList) Contains0

func (this *QTextBlockList) Contains0() bool

bool contains(const T &)

func (*QTextBlockList) Contains_impl0

func (this *QTextBlockList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QTextBlockList) Contains_impl1

func (this *QTextBlockList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QTextBlockList) Count0

func (this *QTextBlockList) Count0() int

int count(const T &)

func (*QTextBlockList) Count1

func (this *QTextBlockList) Count1() int

int count()

func (*QTextBlockList) Count_impl0

func (this *QTextBlockList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QTextBlockList) Count_impl1

func (this *QTextBlockList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QTextBlockList) Crbegin0

func (this *QTextBlockList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QTextBlockList) Crend0

func (this *QTextBlockList) Crend0()

QList::const_reverse_iterator crend()

func (*QTextBlockList) Dealloc0

func (this *QTextBlockList) Dealloc0()

void dealloc(QListData::Data *)

func (*QTextBlockList) Detach0

func (this *QTextBlockList) Detach0()

void detach()

func (*QTextBlockList) DetachShared0

func (this *QTextBlockList) DetachShared0()

void detachShared()

func (*QTextBlockList) Detach_helper0

func (this *QTextBlockList) Detach_helper0()

void detach_helper(int)

func (*QTextBlockList) Detach_helper1

func (this *QTextBlockList) Detach_helper1()

void detach_helper()

func (*QTextBlockList) Detach_helper_grow0

func (this *QTextBlockList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QTextBlockList) Empty0

func (this *QTextBlockList) Empty0() bool

bool empty()

func (*QTextBlockList) End0

func (this *QTextBlockList) End0()

QList::iterator end()

func (*QTextBlockList) End1

func (this *QTextBlockList) End1()

QList::const_iterator end()

func (*QTextBlockList) EndsWith0

func (this *QTextBlockList) EndsWith0() bool

bool endsWith(const T &)

func (*QTextBlockList) Erase0

func (this *QTextBlockList) Erase0()

QList::iterator erase(QList::iterator)

func (*QTextBlockList) Erase1

func (this *QTextBlockList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QTextBlockList) First0

func (this *QTextBlockList) First0() *QTextBlock

T & first()

func (*QTextBlockList) First1

func (this *QTextBlockList) First1() *QTextBlock

const T & first()

func (*QTextBlockList) FromSet0

func (this *QTextBlockList) FromSet0() *QTextBlockList

QList<T> fromSet(const QSet<T> &)

func (*QTextBlockList) FromStdList0

func (this *QTextBlockList) FromStdList0() *QTextBlockList

QList<T> fromStdList(const std::list<T> &)

func (*QTextBlockList) FromVector0

func (this *QTextBlockList) FromVector0() *QTextBlockList

QList<T> fromVector(const QVector<T> &)

func (*QTextBlockList) Front0

func (this *QTextBlockList) Front0() *QTextBlock

T & front()

func (*QTextBlockList) Front1

func (this *QTextBlockList) Front1() *QTextBlock

const T & front()

func (*QTextBlockList) IndexOf0

func (this *QTextBlockList) IndexOf0() int

int indexOf(const T &, int)

func (*QTextBlockList) Insert0

func (this *QTextBlockList) Insert0()

void insert(int, const T &)

func (*QTextBlockList) Insert1

func (this *QTextBlockList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QTextBlockList) IsDetached0

func (this *QTextBlockList) IsDetached0() bool

bool isDetached()

func (*QTextBlockList) IsEmpty0

func (this *QTextBlockList) IsEmpty0() bool

bool isEmpty()

func (*QTextBlockList) IsSharedWith0

func (this *QTextBlockList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QTextBlockList) IsValidIterator0

func (this *QTextBlockList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QTextBlockList) Last0

func (this *QTextBlockList) Last0() *QTextBlock

T & last()

func (*QTextBlockList) Last1

func (this *QTextBlockList) Last1() *QTextBlock

const T & last()

func (*QTextBlockList) LastIndexOf0

func (this *QTextBlockList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QTextBlockList) Length0

func (this *QTextBlockList) Length0() int

int length()

func (*QTextBlockList) Mid0

func (this *QTextBlockList) Mid0() *QTextBlockList

QList<T> mid(int, int)

func (*QTextBlockList) Move0

func (this *QTextBlockList) Move0()

void move(int, int)

func (*QTextBlockList) Node_construct0

func (this *QTextBlockList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QTextBlockList) Node_copy0

func (this *QTextBlockList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QTextBlockList) Node_destruct0

func (this *QTextBlockList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QTextBlockList) Node_destruct1

func (this *QTextBlockList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QTextBlockList) Op_eq_impl0

func (this *QTextBlockList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QTextBlockList) Op_eq_impl1

func (this *QTextBlockList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QTextBlockList) Operator_add0

func (this *QTextBlockList) Operator_add0() *QTextBlockList

QList<T> operator+(const QList<T> &)

func (*QTextBlockList) Operator_add_equal0

func (this *QTextBlockList) Operator_add_equal0() *QTextBlockList

QList<T> & operator+=(const QList<T> &)

func (*QTextBlockList) Operator_add_equal1

func (this *QTextBlockList) Operator_add_equal1() *QTextBlockList

QList<T> & operator+=(const T &)

func (*QTextBlockList) Operator_equal0

func (this *QTextBlockList) Operator_equal0() *QTextBlockList

QList<T> & operator=(const QList<T> &)

func (*QTextBlockList) Operator_equal1

func (this *QTextBlockList) Operator_equal1() *QTextBlockList

QList<T> & operator=(QList<T> &&)

func (*QTextBlockList) Operator_equal_equal0

func (this *QTextBlockList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QTextBlockList) Operator_get_index0

func (this *QTextBlockList) Operator_get_index0() *QTextBlock

const T & operator[](int)

func (*QTextBlockList) Operator_get_index1

func (this *QTextBlockList) Operator_get_index1() *QTextBlock

T & operator[](int)

func (*QTextBlockList) Operator_left_shift0

func (this *QTextBlockList) Operator_left_shift0() *QTextBlockList

QList<T> & operator<<(const T &)

func (*QTextBlockList) Operator_left_shift1

func (this *QTextBlockList) Operator_left_shift1() *QTextBlockList

QList<T> & operator<<(const QList<T> &)

func (*QTextBlockList) Operator_not_equal0

func (this *QTextBlockList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QTextBlockList) Pop_back0

func (this *QTextBlockList) Pop_back0()

void pop_back()

func (*QTextBlockList) Pop_front0

func (this *QTextBlockList) Pop_front0()

void pop_front()

func (*QTextBlockList) Prepend0

func (this *QTextBlockList) Prepend0()

void prepend(const T &)

func (*QTextBlockList) Push_back0

func (this *QTextBlockList) Push_back0()

void push_back(const T &)

func (*QTextBlockList) Push_front0

func (this *QTextBlockList) Push_front0()

void push_front(const T &)

func (*QTextBlockList) Rbegin0

func (this *QTextBlockList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QTextBlockList) Rbegin1

func (this *QTextBlockList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QTextBlockList) RemoveAll0

func (this *QTextBlockList) RemoveAll0() int

int removeAll(const T &)

func (*QTextBlockList) RemoveAt0

func (this *QTextBlockList) RemoveAt0()

void removeAt(int)

func (*QTextBlockList) RemoveFirst0

func (this *QTextBlockList) RemoveFirst0()

void removeFirst()

func (*QTextBlockList) RemoveLast0

func (this *QTextBlockList) RemoveLast0()

void removeLast()

func (*QTextBlockList) RemoveOne0

func (this *QTextBlockList) RemoveOne0() bool

bool removeOne(const T &)

func (*QTextBlockList) Rend0

func (this *QTextBlockList) Rend0()

QList::reverse_iterator rend()

func (*QTextBlockList) Rend1

func (this *QTextBlockList) Rend1()

QList::const_reverse_iterator rend()

func (*QTextBlockList) Replace0

func (this *QTextBlockList) Replace0()

void replace(int, const T &)

func (*QTextBlockList) Reserve0

func (this *QTextBlockList) Reserve0()

void reserve(int)

func (*QTextBlockList) SetSharable0

func (this *QTextBlockList) SetSharable0()

void setSharable(bool)

func (*QTextBlockList) Size0

func (this *QTextBlockList) Size0() int

int size()

func (*QTextBlockList) StartsWith0

func (this *QTextBlockList) StartsWith0() bool

bool startsWith(const T &)

func (*QTextBlockList) Swap0

func (this *QTextBlockList) Swap0()

void swap(QList<T> &)

func (*QTextBlockList) Swap1

func (this *QTextBlockList) Swap1()

void swap(int, int)

func (*QTextBlockList) TakeAt0

func (this *QTextBlockList) TakeAt0() *QTextBlock

T takeAt(int)

func (*QTextBlockList) TakeFirst0

func (this *QTextBlockList) TakeFirst0() *QTextBlock

T takeFirst()

func (*QTextBlockList) TakeLast0

func (this *QTextBlockList) TakeLast0() *QTextBlock

T takeLast()

func (*QTextBlockList) ToSet0

func (this *QTextBlockList) ToSet0()

QSet<T> toSet()

func (*QTextBlockList) ToStdList0

func (this *QTextBlockList) ToStdList0()

std::list<T> toStdList()

func (*QTextBlockList) ToVector0

func (this *QTextBlockList) ToVector0()

QVector<T> toVector()

func (*QTextBlockList) Value0

func (this *QTextBlockList) Value0() *QTextBlock

T value(int)

func (*QTextBlockList) Value1

func (this *QTextBlockList) Value1() *QTextBlock

T value(int, const T &)

type QTextBlockUserData

type QTextBlockUserData struct {
	*qtrt.CObject
}

func NewQTextBlockUserDataFromPointer

func NewQTextBlockUserDataFromPointer(cthis unsafe.Pointer) *QTextBlockUserData

func (*QTextBlockUserData) GetCthis

func (this *QTextBlockUserData) GetCthis() unsafe.Pointer

func (*QTextBlockUserData) NewFromPointer

func (*QTextBlockUserData) NewFromPointer(cthis unsafe.Pointer) *QTextBlockUserData

func (*QTextBlockUserData) QTextBlockUserData_PTR

func (ptr *QTextBlockUserData) QTextBlockUserData_PTR() *QTextBlockUserData

func (*QTextBlockUserData) SetCthis

func (this *QTextBlockUserData) SetCthis(cthis unsafe.Pointer)

type QTextBlockUserData_ITF

type QTextBlockUserData_ITF interface {
	QTextBlockUserData_PTR() *QTextBlockUserData
}

type QTextBlock_ITF

type QTextBlock_ITF interface {
	QTextBlock_PTR() *QTextBlock
}

type QTextCharFormat

type QTextCharFormat struct {
	*QTextFormat
}

func NewQTextCharFormat

func NewQTextCharFormat() *QTextCharFormat

func NewQTextCharFormat1

func NewQTextCharFormat1(fmt_ QTextFormat_ITF) *QTextCharFormat

func NewQTextCharFormatFromPointer

func NewQTextCharFormatFromPointer(cthis unsafe.Pointer) *QTextCharFormat

func (*QTextCharFormat) AnchorHref

func (this *QTextCharFormat) AnchorHref() string

func (*QTextCharFormat) AnchorName

func (this *QTextCharFormat) AnchorName() string

func (*QTextCharFormat) AnchorNames

func (this *QTextCharFormat) AnchorNames() *qtcore.QStringList

func (*QTextCharFormat) Font

func (this *QTextCharFormat) Font() *QFont

func (*QTextCharFormat) FontCapitalization

func (this *QTextCharFormat) FontCapitalization() int

func (*QTextCharFormat) FontFamily

func (this *QTextCharFormat) FontFamily() string

func (*QTextCharFormat) FontFixedPitch

func (this *QTextCharFormat) FontFixedPitch() bool

func (*QTextCharFormat) FontHintingPreference

func (this *QTextCharFormat) FontHintingPreference() int

func (*QTextCharFormat) FontItalic

func (this *QTextCharFormat) FontItalic() bool

func (*QTextCharFormat) FontKerning

func (this *QTextCharFormat) FontKerning() bool

func (*QTextCharFormat) FontLetterSpacing

func (this *QTextCharFormat) FontLetterSpacing() float64

func (*QTextCharFormat) FontLetterSpacingType

func (this *QTextCharFormat) FontLetterSpacingType() int

func (*QTextCharFormat) FontOverline

func (this *QTextCharFormat) FontOverline() bool

func (*QTextCharFormat) FontPointSize

func (this *QTextCharFormat) FontPointSize() float64

func (*QTextCharFormat) FontPropertiesInheritanceBehaviorItemName

func (this *QTextCharFormat) FontPropertiesInheritanceBehaviorItemName(val int) string

func (*QTextCharFormat) FontStretch

func (this *QTextCharFormat) FontStretch() int

func (*QTextCharFormat) FontStrikeOut

func (this *QTextCharFormat) FontStrikeOut() bool

func (*QTextCharFormat) FontStyleHint

func (this *QTextCharFormat) FontStyleHint() int

func (*QTextCharFormat) FontStyleStrategy

func (this *QTextCharFormat) FontStyleStrategy() int

func (*QTextCharFormat) FontUnderline

func (this *QTextCharFormat) FontUnderline() bool

func (*QTextCharFormat) FontWeight

func (this *QTextCharFormat) FontWeight() int

func (*QTextCharFormat) FontWordSpacing

func (this *QTextCharFormat) FontWordSpacing() float64

func (*QTextCharFormat) GetCthis

func (this *QTextCharFormat) GetCthis() unsafe.Pointer

func (*QTextCharFormat) IsAnchor

func (this *QTextCharFormat) IsAnchor() bool

func (*QTextCharFormat) IsValid

func (this *QTextCharFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextCharFormat) NewForInherit

func (*QTextCharFormat) NewForInherit() *QTextCharFormat

func (*QTextCharFormat) NewForInherit1

func (*QTextCharFormat) NewForInherit1(fmt_ QTextFormat_ITF) *QTextCharFormat

func (*QTextCharFormat) NewFromPointer

func (*QTextCharFormat) NewFromPointer(cthis unsafe.Pointer) *QTextCharFormat

func (*QTextCharFormat) QTextCharFormat_PTR

func (ptr *QTextCharFormat) QTextCharFormat_PTR() *QTextCharFormat

func (*QTextCharFormat) SetAnchor

func (this *QTextCharFormat) SetAnchor(anchor bool)

func (*QTextCharFormat) SetAnchorHref

func (this *QTextCharFormat) SetAnchorHref(value string)

func (*QTextCharFormat) SetAnchorName

func (this *QTextCharFormat) SetAnchorName(name string)

func (*QTextCharFormat) SetAnchorNames

func (this *QTextCharFormat) SetAnchorNames(names qtcore.QStringList_ITF)

func (*QTextCharFormat) SetCthis

func (this *QTextCharFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextCharFormat) SetFont

func (this *QTextCharFormat) SetFont(font QFont_ITF, behavior int)

func (*QTextCharFormat) SetFont1

func (this *QTextCharFormat) SetFont1(font QFont_ITF)

func (*QTextCharFormat) SetFontCapitalization

func (this *QTextCharFormat) SetFontCapitalization(capitalization int)

func (*QTextCharFormat) SetFontFamily

func (this *QTextCharFormat) SetFontFamily(family string)

func (*QTextCharFormat) SetFontFixedPitch

func (this *QTextCharFormat) SetFontFixedPitch(fixedPitch bool)

func (*QTextCharFormat) SetFontHintingPreference

func (this *QTextCharFormat) SetFontHintingPreference(hintingPreference int)

func (*QTextCharFormat) SetFontItalic

func (this *QTextCharFormat) SetFontItalic(italic bool)

func (*QTextCharFormat) SetFontKerning

func (this *QTextCharFormat) SetFontKerning(enable bool)

func (*QTextCharFormat) SetFontLetterSpacing

func (this *QTextCharFormat) SetFontLetterSpacing(spacing float64)

func (*QTextCharFormat) SetFontLetterSpacingType

func (this *QTextCharFormat) SetFontLetterSpacingType(letterSpacingType int)

func (*QTextCharFormat) SetFontOverline

func (this *QTextCharFormat) SetFontOverline(overline bool)

func (*QTextCharFormat) SetFontPointSize

func (this *QTextCharFormat) SetFontPointSize(size float64)

func (*QTextCharFormat) SetFontStretch

func (this *QTextCharFormat) SetFontStretch(factor int)

func (*QTextCharFormat) SetFontStrikeOut

func (this *QTextCharFormat) SetFontStrikeOut(strikeOut bool)

func (*QTextCharFormat) SetFontStyleHint

func (this *QTextCharFormat) SetFontStyleHint(hint int, strategy int)

func (*QTextCharFormat) SetFontStyleHintp

func (this *QTextCharFormat) SetFontStyleHintp(hint int)

func (*QTextCharFormat) SetFontStyleStrategy

func (this *QTextCharFormat) SetFontStyleStrategy(strategy int)

func (*QTextCharFormat) SetFontUnderline

func (this *QTextCharFormat) SetFontUnderline(underline bool)

func (*QTextCharFormat) SetFontWeight

func (this *QTextCharFormat) SetFontWeight(weight int)

func (*QTextCharFormat) SetFontWordSpacing

func (this *QTextCharFormat) SetFontWordSpacing(spacing float64)

func (*QTextCharFormat) SetTableCellColumnSpan

func (this *QTextCharFormat) SetTableCellColumnSpan(tableCellColumnSpan int)

func (*QTextCharFormat) SetTableCellRowSpan

func (this *QTextCharFormat) SetTableCellRowSpan(tableCellRowSpan int)

func (*QTextCharFormat) SetTextOutline

func (this *QTextCharFormat) SetTextOutline(pen QPen_ITF)

func (*QTextCharFormat) SetToolTip

func (this *QTextCharFormat) SetToolTip(tip string)

func (*QTextCharFormat) SetUnderlineColor

func (this *QTextCharFormat) SetUnderlineColor(color QColor_ITF)

func (*QTextCharFormat) SetUnderlineStyle

func (this *QTextCharFormat) SetUnderlineStyle(style int)

func (*QTextCharFormat) SetVerticalAlignment

func (this *QTextCharFormat) SetVerticalAlignment(alignment int)

func (*QTextCharFormat) TableCellColumnSpan

func (this *QTextCharFormat) TableCellColumnSpan() int

func (*QTextCharFormat) TableCellRowSpan

func (this *QTextCharFormat) TableCellRowSpan() int

func (*QTextCharFormat) TextOutline

func (this *QTextCharFormat) TextOutline() *QPen

func (*QTextCharFormat) ToolTip

func (this *QTextCharFormat) ToolTip() string

func (*QTextCharFormat) UnderlineColor

func (this *QTextCharFormat) UnderlineColor() *QColor

func (*QTextCharFormat) UnderlineStyle

func (this *QTextCharFormat) UnderlineStyle() int

func (*QTextCharFormat) UnderlineStyleItemName

func (this *QTextCharFormat) UnderlineStyleItemName(val int) string

func (*QTextCharFormat) VerticalAlignment

func (this *QTextCharFormat) VerticalAlignment() int

func (*QTextCharFormat) VerticalAlignmentItemName

func (this *QTextCharFormat) VerticalAlignmentItemName(val int) string

type QTextCharFormat_ITF

type QTextCharFormat_ITF interface {
	QTextFormat_ITF
	QTextCharFormat_PTR() *QTextCharFormat
}

type QTextCharFormat__FontPropertiesInheritanceBehavior

type QTextCharFormat__FontPropertiesInheritanceBehavior = int
const QTextCharFormat__FontPropertiesAll QTextCharFormat__FontPropertiesInheritanceBehavior = 1
const QTextCharFormat__FontPropertiesSpecifiedOnly QTextCharFormat__FontPropertiesInheritanceBehavior = 0

type QTextCharFormat__UnderlineStyle

type QTextCharFormat__UnderlineStyle = int
const QTextCharFormat__DashDotDotLine QTextCharFormat__UnderlineStyle = 5
const QTextCharFormat__DashDotLine QTextCharFormat__UnderlineStyle = 4
const QTextCharFormat__DashUnderline QTextCharFormat__UnderlineStyle = 2
const QTextCharFormat__DotLine QTextCharFormat__UnderlineStyle = 3
const QTextCharFormat__NoUnderline QTextCharFormat__UnderlineStyle = 0
const QTextCharFormat__SingleUnderline QTextCharFormat__UnderlineStyle = 1
const QTextCharFormat__SpellCheckUnderline QTextCharFormat__UnderlineStyle = 7
const QTextCharFormat__WaveUnderline QTextCharFormat__UnderlineStyle = 6

type QTextCharFormat__VerticalAlignment

type QTextCharFormat__VerticalAlignment = int
const QTextCharFormat__AlignBaseline QTextCharFormat__VerticalAlignment = 6
const QTextCharFormat__AlignBottom QTextCharFormat__VerticalAlignment = 5
const QTextCharFormat__AlignMiddle QTextCharFormat__VerticalAlignment = 3
const QTextCharFormat__AlignNormal QTextCharFormat__VerticalAlignment = 0
const QTextCharFormat__AlignSubScript QTextCharFormat__VerticalAlignment = 2
const QTextCharFormat__AlignSuperScript QTextCharFormat__VerticalAlignment = 1
const QTextCharFormat__AlignTop QTextCharFormat__VerticalAlignment = 4

type QTextCursor

type QTextCursor struct {
	*qtrt.CObject
}

func NewQTextCursor

func NewQTextCursor() *QTextCursor

func NewQTextCursor1

func NewQTextCursor1(document QTextDocument_ITF) *QTextCursor

func NewQTextCursor2

func NewQTextCursor2(frame QTextFrame_ITF) *QTextCursor

func NewQTextCursor3

func NewQTextCursor3(block QTextBlock_ITF) *QTextCursor

func NewQTextCursorFromPointer

func NewQTextCursorFromPointer(cthis unsafe.Pointer) *QTextCursor

func (*QTextCursor) Anchor

func (this *QTextCursor) Anchor() int

Returns the anchor position; this is the same as position() unless there is a selection in which case position() marks one end of the selection and anchor() marks the other end. Just like the cursor position, the anchor position is between characters.

See also position(), setPosition(), movePosition(), selectionStart(), and selectionEnd().

func (*QTextCursor) AtBlockEnd

func (this *QTextCursor) AtBlockEnd() bool

Returns true if the cursor is at the end of a block; otherwise returns false.

See also atBlockStart() and atEnd().

func (*QTextCursor) AtBlockStart

func (this *QTextCursor) AtBlockStart() bool

Returns true if the cursor is at the start of a block; otherwise returns false.

See also atBlockEnd() and atStart().

func (*QTextCursor) AtEnd

func (this *QTextCursor) AtEnd() bool

Returns true if the cursor is at the end of the document; otherwise returns false.

This function was introduced in Qt 4.6.

See also atStart() and atBlockEnd().

func (*QTextCursor) AtStart

func (this *QTextCursor) AtStart() bool

Returns true if the cursor is at the start of the document; otherwise returns false.

See also atBlockStart() and atEnd().

func (*QTextCursor) BeginEditBlock

func (this *QTextCursor) BeginEditBlock()

Indicates the start of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.

For example:

QTextCursor cursor(textDocument);
cursor.beginEditBlock();
cursor.insertText("Hello");
cursor.insertText("World");
cursor.endEditBlock();

textDocument->undo();

The call to undo() will cause both insertions to be undone, causing both "World" and "Hello" to be removed.

It is possible to nest calls to beginEditBlock and endEditBlock. The top-most pair will determine the scope of the undo/redo operation.

See also endEditBlock().

func (*QTextCursor) Block

func (this *QTextCursor) Block() *QTextBlock

Returns the block that contains the cursor.

func (*QTextCursor) BlockCharFormat

func (this *QTextCursor) BlockCharFormat() *QTextCharFormat

Returns the block character format of the block the cursor is in.

The block char format is the format used when inserting text at the beginning of an empty block.

See also setBlockCharFormat().

func (*QTextCursor) BlockFormat

func (this *QTextCursor) BlockFormat() *QTextBlockFormat

Returns the block format of the block the cursor is in.

See also setBlockFormat() and charFormat().

func (*QTextCursor) BlockNumber

func (this *QTextCursor) BlockNumber() int

Returns the number of the block the cursor is in, or 0 if the cursor is invalid.

Note that this function only makes sense in documents without complex objects such as tables or frames.

This function was introduced in Qt 4.2.

func (*QTextCursor) CharFormat

func (this *QTextCursor) CharFormat() *QTextCharFormat

Returns the format of the character immediately before the cursor position(). If the cursor is positioned at the beginning of a text block that is not empty then the format of the character immediately after the cursor is returned.

See also setCharFormat(), insertText(), and blockFormat().

func (*QTextCursor) ClearSelection

func (this *QTextCursor) ClearSelection()

Clears the current selection by setting the anchor to the cursor position.

Note that it does not delete the text of the selection.

See also removeSelectedText() and hasSelection().

func (*QTextCursor) ColumnNumber

func (this *QTextCursor) ColumnNumber() int

Returns the position of the cursor within its containing line.

Note that this is the column number relative to a wrapped line, not relative to the block (i.e. the paragraph).

You probably want to call positionInBlock() instead.

This function was introduced in Qt 4.2.

See also positionInBlock().

func (*QTextCursor) CreateList

func (this *QTextCursor) CreateList(format QTextListFormat_ITF) *QTextList

Creates and returns a new list with the given format, and makes the current paragraph the cursor is in the first list item.

See also insertList() and currentList().

func (*QTextCursor) CreateList1

func (this *QTextCursor) CreateList1(style int) *QTextList

Creates and returns a new list with the given format, and makes the current paragraph the cursor is in the first list item.

See also insertList() and currentList().

func (*QTextCursor) CurrentFrame

func (this *QTextCursor) CurrentFrame() *QTextFrame

Returns a pointer to the current frame. Returns 0 if the cursor is invalid.

See also insertFrame().

func (*QTextCursor) CurrentList

func (this *QTextCursor) CurrentList() *QTextList

Returns the current list if the cursor position() is inside a block that is part of a list; otherwise returns 0.

See also insertList() and createList().

func (*QTextCursor) CurrentTable

func (this *QTextCursor) CurrentTable() *QTextTable

Returns a pointer to the current table if the cursor position() is inside a block that is part of a table; otherwise returns 0.

See also insertTable().

func (*QTextCursor) DeleteChar

func (this *QTextCursor) DeleteChar()

If there is no selected text, deletes the character at the current cursor position; otherwise deletes the selected text.

See also deletePreviousChar(), hasSelection(), and clearSelection().

func (*QTextCursor) DeletePreviousChar

func (this *QTextCursor) DeletePreviousChar()

If there is no selected text, deletes the character before the current cursor position; otherwise deletes the selected text.

See also deleteChar(), hasSelection(), and clearSelection().

func (*QTextCursor) Document

func (this *QTextCursor) Document() *QTextDocument

Returns the document this cursor is associated with.

This function was introduced in Qt 4.5.

func (*QTextCursor) EndEditBlock

func (this *QTextCursor) EndEditBlock()

Indicates the end of a block of editing operations on the document that should appear as a single operation from an undo/redo point of view.

See also beginEditBlock().

func (*QTextCursor) GetCthis

func (this *QTextCursor) GetCthis() unsafe.Pointer

func (*QTextCursor) HasComplexSelection

func (this *QTextCursor) HasComplexSelection() bool

Returns true if the cursor contains a selection that is not simply a range from selectionStart() to selectionEnd(); otherwise returns false.

Complex selections are ones that span at least two cells in a table; their extent is specified by selectedTableCells().

func (*QTextCursor) HasSelection

func (this *QTextCursor) HasSelection() bool

Returns true if the cursor contains a selection; otherwise returns false.

func (*QTextCursor) InsertBlock

func (this *QTextCursor) InsertBlock()

Inserts a new empty block at the cursor position() with the current blockFormat() and charFormat().

See also setBlockFormat().

func (*QTextCursor) InsertBlock1

func (this *QTextCursor) InsertBlock1(format QTextBlockFormat_ITF)

Inserts a new empty block at the cursor position() with the current blockFormat() and charFormat().

See also setBlockFormat().

func (*QTextCursor) InsertBlock2

func (this *QTextCursor) InsertBlock2(format QTextBlockFormat_ITF, charFormat QTextCharFormat_ITF)

Inserts a new empty block at the cursor position() with the current blockFormat() and charFormat().

See also setBlockFormat().

func (*QTextCursor) InsertFragment

func (this *QTextCursor) InsertFragment(fragment QTextDocumentFragment_ITF)

Inserts the text fragment at the current position().

func (*QTextCursor) InsertFrame

func (this *QTextCursor) InsertFrame(format QTextFrameFormat_ITF) *QTextFrame

Inserts a frame with the given format at the current cursor position(), moves the cursor position() inside the frame, and returns the frame.

If the cursor holds a selection, the whole selection is moved inside the frame.

See also hasSelection().

func (*QTextCursor) InsertHtml

func (this *QTextCursor) InsertHtml(html string)

Inserts the text html at the current position(). The text is interpreted as HTML.

Note: When using this function with a style sheet, the style sheet will only apply to the current block in the document. In order to apply a style sheet throughout a document, use QTextDocument::setDefaultStyleSheet() instead.

This function was introduced in Qt 4.2.

func (*QTextCursor) InsertImage

func (this *QTextCursor) InsertImage(format QTextImageFormat_ITF, alignment int)

Inserts the image defined by format at the current position().

func (*QTextCursor) InsertImage1

func (this *QTextCursor) InsertImage1(format QTextImageFormat_ITF)

Inserts the image defined by format at the current position().

func (*QTextCursor) InsertImage2

func (this *QTextCursor) InsertImage2(name string)

Inserts the image defined by format at the current position().

func (*QTextCursor) InsertImage3

func (this *QTextCursor) InsertImage3(image QImage_ITF, name string)

Inserts the image defined by format at the current position().

func (*QTextCursor) InsertImage3p

func (this *QTextCursor) InsertImage3p(image QImage_ITF)

Inserts the image defined by format at the current position().

func (*QTextCursor) InsertList

func (this *QTextCursor) InsertList(format QTextListFormat_ITF) *QTextList

Inserts a new block at the current position and makes it the first list item of a newly created list with the given format. Returns the created list.

See also currentList(), createList(), and insertBlock().

func (*QTextCursor) InsertList1

func (this *QTextCursor) InsertList1(style int) *QTextList

Inserts a new block at the current position and makes it the first list item of a newly created list with the given format. Returns the created list.

See also currentList(), createList(), and insertBlock().

func (*QTextCursor) InsertTable

func (this *QTextCursor) InsertTable(rows int, cols int, format QTextTableFormat_ITF) *QTextTable

Creates a new table with the given number of rows and columns in the specified format, inserts it at the current cursor position() in the document, and returns the table object. The cursor is moved to the beginning of the first cell.

There must be at least one row and one column in the table.

See also currentTable().

func (*QTextCursor) InsertTable1

func (this *QTextCursor) InsertTable1(rows int, cols int) *QTextTable

Creates a new table with the given number of rows and columns in the specified format, inserts it at the current cursor position() in the document, and returns the table object. The cursor is moved to the beginning of the first cell.

There must be at least one row and one column in the table.

See also currentTable().

func (*QTextCursor) InsertText

func (this *QTextCursor) InsertText(text string)

Inserts text at the current position, using the current character format.

If there is a selection, the selection is deleted and replaced by text, for example:

cursor.clearSelection();
cursor.movePosition(QTextCursor::NextWord, QTextCursor::KeepAnchor);
cursor.insertText("Hello World");

This clears any existing selection, selects the word at the cursor (i.e. from position() forward), and replaces the selection with the phrase "Hello World".

Any ASCII linefeed characters (\n) in the inserted text are transformed into unicode block separators, corresponding to insertBlock() calls.

See also charFormat() and hasSelection().

func (*QTextCursor) InsertText1

func (this *QTextCursor) InsertText1(text string, format QTextCharFormat_ITF)

Inserts text at the current position, using the current character format.

If there is a selection, the selection is deleted and replaced by text, for example:

cursor.clearSelection();
cursor.movePosition(QTextCursor::NextWord, QTextCursor::KeepAnchor);
cursor.insertText("Hello World");

This clears any existing selection, selects the word at the cursor (i.e. from position() forward), and replaces the selection with the phrase "Hello World".

Any ASCII linefeed characters (\n) in the inserted text are transformed into unicode block separators, corresponding to insertBlock() calls.

See also charFormat() and hasSelection().

func (*QTextCursor) IsCopyOf

func (this *QTextCursor) IsCopyOf(other QTextCursor_ITF) bool

Returns true if this cursor and other are copies of each other, i.e. one of them was created as a copy of the other and neither has moved since. This is much stricter than equality.

See also operator=() and operator==().

func (*QTextCursor) IsNull

func (this *QTextCursor) IsNull() bool

Returns true if the cursor is null; otherwise returns false. A null cursor is created by the default constructor.

func (*QTextCursor) JoinPreviousEditBlock

func (this *QTextCursor) JoinPreviousEditBlock()

Like beginEditBlock() indicates the start of a block of editing operations that should appear as a single operation for undo/redo. However unlike beginEditBlock() it does not start a new block but reverses the previous call to endEditBlock() and therefore makes following operations part of the previous edit block created.

For example:

QTextCursor cursor(textDocument);
cursor.beginEditBlock();
cursor.insertText("Hello");
cursor.insertText("World");
cursor.endEditBlock();

...

cursor.joinPreviousEditBlock();
cursor.insertText("Hey");
cursor.endEditBlock();

textDocument->undo();

The call to undo() will cause all three insertions to be undone.

See also beginEditBlock() and endEditBlock().

func (*QTextCursor) KeepPositionOnInsert

func (this *QTextCursor) KeepPositionOnInsert() bool

Returns whether the cursor should keep its current position when text gets inserted at the position of the cursor.

The default is false;

This function was introduced in Qt 4.7.

See also setKeepPositionOnInsert().

func (*QTextCursor) MergeBlockCharFormat

func (this *QTextCursor) MergeBlockCharFormat(modifier QTextCharFormat_ITF)

Modifies the block char format of the current block (or all blocks that are contained in the selection) with the block format specified by modifier.

See also setBlockCharFormat().

func (*QTextCursor) MergeBlockFormat

func (this *QTextCursor) MergeBlockFormat(modifier QTextBlockFormat_ITF)

Modifies the block format of the current block (or all blocks that are contained in the selection) with the block format specified by modifier.

See also setBlockFormat() and blockFormat().

func (*QTextCursor) MergeCharFormat

func (this *QTextCursor) MergeCharFormat(modifier QTextCharFormat_ITF)

Merges the cursor's current character format with the properties described by format modifier. If the cursor has a selection, this function applies all the properties set in modifier to all the character formats that are part of the selection.

See also hasSelection() and setCharFormat().

func (*QTextCursor) MoveModeItemName

func (this *QTextCursor) MoveModeItemName(val int) string

func (*QTextCursor) MoveOperationItemName

func (this *QTextCursor) MoveOperationItemName(val int) string

func (*QTextCursor) MovePosition

func (this *QTextCursor) MovePosition(op int, arg1 int, n int) bool

Moves the cursor by performing the given operation n times, using the specified mode, and returns true if all operations were completed successfully; otherwise returns false.

For example, if this function is repeatedly used to seek to the end of the next word, it will eventually fail when the end of the document is reached.

By default, the move operation is performed once (n = 1).

If mode is KeepAnchor, the cursor selects the text it moves over. This is the same effect that the user achieves when they hold down the Shift key and move the cursor with the cursor keys.

See also setVisualNavigation().

func (*QTextCursor) MovePositionp

func (this *QTextCursor) MovePositionp(op int) bool

Moves the cursor by performing the given operation n times, using the specified mode, and returns true if all operations were completed successfully; otherwise returns false.

For example, if this function is repeatedly used to seek to the end of the next word, it will eventually fail when the end of the document is reached.

By default, the move operation is performed once (n = 1).

If mode is KeepAnchor, the cursor selects the text it moves over. This is the same effect that the user achieves when they hold down the Shift key and move the cursor with the cursor keys.

See also setVisualNavigation().

func (*QTextCursor) MovePositionp1

func (this *QTextCursor) MovePositionp1(op int, arg1 int) bool

Moves the cursor by performing the given operation n times, using the specified mode, and returns true if all operations were completed successfully; otherwise returns false.

For example, if this function is repeatedly used to seek to the end of the next word, it will eventually fail when the end of the document is reached.

By default, the move operation is performed once (n = 1).

If mode is KeepAnchor, the cursor selects the text it moves over. This is the same effect that the user achieves when they hold down the Shift key and move the cursor with the cursor keys.

See also setVisualNavigation().

func (*QTextCursor) NewForInherit

func (*QTextCursor) NewForInherit() *QTextCursor

Constructs a null cursor.

func (*QTextCursor) NewForInherit1

func (*QTextCursor) NewForInherit1(document QTextDocument_ITF) *QTextCursor

Constructs a null cursor.

func (*QTextCursor) NewForInherit2

func (*QTextCursor) NewForInherit2(frame QTextFrame_ITF) *QTextCursor

Constructs a null cursor.

func (*QTextCursor) NewForInherit3

func (*QTextCursor) NewForInherit3(block QTextBlock_ITF) *QTextCursor

Constructs a null cursor.

func (*QTextCursor) NewFromPointer

func (*QTextCursor) NewFromPointer(cthis unsafe.Pointer) *QTextCursor

func (*QTextCursor) Operator_equal

func (this *QTextCursor) Operator_equal(other unsafe.Pointer) *QTextCursor

func (*QTextCursor) Operator_equal1

func (this *QTextCursor) Operator_equal1(other QTextCursor_ITF) *QTextCursor

func (*QTextCursor) Operator_equal_equal

func (this *QTextCursor) Operator_equal_equal(rhs QTextCursor_ITF) bool

func (*QTextCursor) Operator_greater_than

func (this *QTextCursor) Operator_greater_than(rhs QTextCursor_ITF) bool

func (*QTextCursor) Operator_greater_than_equal

func (this *QTextCursor) Operator_greater_than_equal(rhs QTextCursor_ITF) bool

func (*QTextCursor) Operator_less_than

func (this *QTextCursor) Operator_less_than(rhs QTextCursor_ITF) bool

func (*QTextCursor) Operator_less_than_equal

func (this *QTextCursor) Operator_less_than_equal(rhs QTextCursor_ITF) bool

func (*QTextCursor) Operator_not_equal

func (this *QTextCursor) Operator_not_equal(rhs QTextCursor_ITF) bool

func (*QTextCursor) Position

func (this *QTextCursor) Position() int

Returns the absolute position of the cursor within the document. The cursor is positioned between characters.

See also setPosition(), movePosition(), anchor(), and positionInBlock().

func (*QTextCursor) PositionInBlock

func (this *QTextCursor) PositionInBlock() int

Returns the relative position of the cursor within the block. The cursor is positioned between characters.

This is equivalent to position() - block().position().

This function was introduced in Qt 4.7.

See also position().

func (*QTextCursor) QTextCursor_PTR

func (ptr *QTextCursor) QTextCursor_PTR() *QTextCursor

func (*QTextCursor) RemoveSelectedText

func (this *QTextCursor) RemoveSelectedText()

If there is a selection, its content is deleted; otherwise does nothing.

See also hasSelection().

func (*QTextCursor) Select

func (this *QTextCursor) Select(selection int)

Selects text in the document according to the given selection.

func (*QTextCursor) SelectedTableCells

func (this *QTextCursor) SelectedTableCells(firstRow unsafe.Pointer, numRows unsafe.Pointer, firstColumn unsafe.Pointer, numColumns unsafe.Pointer)

If the selection spans over table cells, firstRow is populated with the number of the first row in the selection, firstColumn with the number of the first column in the selection, and numRows and numColumns with the number of rows and columns in the selection. If the selection does not span any table cells the results are harmless but undefined.

func (*QTextCursor) SelectedText

func (this *QTextCursor) SelectedText() string

Returns the current selection's text (which may be empty). This only returns the text, with no rich text formatting information. If you want a document fragment (i.e. formatted rich text) use selection() instead.

Note: If the selection obtained from an editor spans a line break, the text will contain a Unicode U+2029 paragraph separator character instead of a newline \n character. Use QString::replace() to replace these characters with newlines.

func (*QTextCursor) Selection

func (this *QTextCursor) Selection() *QTextDocumentFragment

Returns the current selection (which may be empty) with all its formatting information. If you just want the selected text (i.e. plain text) use selectedText() instead.

Note: Unlike QTextDocumentFragment::toPlainText(), selectedText() may include special unicode characters such as QChar::ParagraphSeparator.

See also QTextDocumentFragment::toPlainText().

func (*QTextCursor) SelectionEnd

func (this *QTextCursor) SelectionEnd() int

Returns the end of the selection or position() if the cursor doesn't have a selection.

See also selectionStart(), position(), and anchor().

func (*QTextCursor) SelectionStart

func (this *QTextCursor) SelectionStart() int

Returns the start of the selection or position() if the cursor doesn't have a selection.

See also selectionEnd(), position(), and anchor().

func (*QTextCursor) SelectionTypeItemName

func (this *QTextCursor) SelectionTypeItemName(val int) string

func (*QTextCursor) SetBlockCharFormat

func (this *QTextCursor) SetBlockCharFormat(format QTextCharFormat_ITF)

Sets the block char format of the current block (or all blocks that are contained in the selection) to format.

See also blockCharFormat().

func (*QTextCursor) SetBlockFormat

func (this *QTextCursor) SetBlockFormat(format QTextBlockFormat_ITF)

Sets the block format of the current block (or all blocks that are contained in the selection) to format.

See also blockFormat() and mergeBlockFormat().

func (*QTextCursor) SetCharFormat

func (this *QTextCursor) SetCharFormat(format QTextCharFormat_ITF)

Sets the cursor's current character format to the given format. If the cursor has a selection, the given format is applied to the current selection.

See also charFormat(), hasSelection(), and mergeCharFormat().

func (*QTextCursor) SetCthis

func (this *QTextCursor) SetCthis(cthis unsafe.Pointer)

func (*QTextCursor) SetKeepPositionOnInsert

func (this *QTextCursor) SetKeepPositionOnInsert(b bool)

Defines whether the cursor should keep its current position when text gets inserted at the current position of the cursor.

If b is true, the cursor keeps its current position when text gets inserted at the positing of the cursor. If b is false, the cursor moves along with the inserted text.

The default is false.

Note that a cursor always moves when text is inserted before the current position of the cursor, and it always keeps its position when text is inserted after the current position of the cursor.

This function was introduced in Qt 4.7.

See also keepPositionOnInsert().

func (*QTextCursor) SetPosition

func (this *QTextCursor) SetPosition(pos int, mode int)

Moves the cursor to the absolute position in the document specified by pos using a MoveMode specified by m. The cursor is positioned between characters.

See also position(), movePosition(), and anchor().

func (*QTextCursor) SetPositionp

func (this *QTextCursor) SetPositionp(pos int)

Moves the cursor to the absolute position in the document specified by pos using a MoveMode specified by m. The cursor is positioned between characters.

See also position(), movePosition(), and anchor().

func (*QTextCursor) SetVerticalMovementX

func (this *QTextCursor) SetVerticalMovementX(x int)

Sets the visual x position for vertical cursor movements to x.

The vertical movement x position is cleared automatically when the cursor moves horizontally, and kept unchanged when the cursor moves vertically. The mechanism allows the cursor to move up and down on a visually straight line with proportional fonts, and to gently "jump" over short lines.

A value of -1 indicates no predefined x position. It will then be set automatically the next time the cursor moves up or down.

This function was introduced in Qt 4.7.

See also verticalMovementX().

func (*QTextCursor) SetVisualNavigation

func (this *QTextCursor) SetVisualNavigation(b bool)

Sets visual navigation to b.

Visual navigation means skipping over hidden text paragraphs. The default is false.

This function was introduced in Qt 4.4.

See also visualNavigation() and movePosition().

func (*QTextCursor) Swap

func (this *QTextCursor) Swap(other QTextCursor_ITF)

Swaps this text cursor instance with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QTextCursor) VerticalMovementX

func (this *QTextCursor) VerticalMovementX() int

Returns the visual x position for vertical cursor movements.

A value of -1 indicates no predefined x position. It will then be set automatically the next time the cursor moves up or down.

This function was introduced in Qt 4.7.

See also setVerticalMovementX().

func (*QTextCursor) VisualNavigation

func (this *QTextCursor) VisualNavigation() bool

Returns true if the cursor does visual navigation; otherwise returns false.

Visual navigation means skipping over hidden text paragraphs. The default is false.

This function was introduced in Qt 4.4.

See also setVisualNavigation() and movePosition().

type QTextCursor_ITF

type QTextCursor_ITF interface {
	QTextCursor_PTR() *QTextCursor
}

type QTextCursor__MoveMode

type QTextCursor__MoveMode = int

If the anchor() is kept where it is and the position() is moved, the text in between will be selected.

const QTextCursor__KeepAnchor QTextCursor__MoveMode = 1

Keeps the anchor where it is.

const QTextCursor__MoveAnchor QTextCursor__MoveMode = 0

Moves the anchor to the same position as the cursor itself.

type QTextCursor__MoveOperation

type QTextCursor__MoveOperation = int

See also movePosition().

const QTextCursor__Down QTextCursor__MoveOperation = 12
const QTextCursor__End QTextCursor__MoveOperation = 11
const QTextCursor__EndOfBlock QTextCursor__MoveOperation = 15
const QTextCursor__EndOfLine QTextCursor__MoveOperation = 13
const QTextCursor__EndOfWord QTextCursor__MoveOperation = 14
const QTextCursor__Left QTextCursor__MoveOperation = 9

Move left one character.

const QTextCursor__NextBlock QTextCursor__MoveOperation = 16
const QTextCursor__NextCell QTextCursor__MoveOperation = 21
const QTextCursor__NextCharacter QTextCursor__MoveOperation = 17
const QTextCursor__NextRow QTextCursor__MoveOperation = 23
const QTextCursor__NextWord QTextCursor__MoveOperation = 18
const QTextCursor__NoMove QTextCursor__MoveOperation = 0

Keep the cursor where it is

const QTextCursor__PreviousBlock QTextCursor__MoveOperation = 6

Move to the start of the previous block.

const QTextCursor__PreviousCell QTextCursor__MoveOperation = 22
const QTextCursor__PreviousCharacter QTextCursor__MoveOperation = 7

Move to the previous character.

const QTextCursor__PreviousRow QTextCursor__MoveOperation = 24
const QTextCursor__PreviousWord QTextCursor__MoveOperation = 8

Move to the beginning of the previous word.

const QTextCursor__Right QTextCursor__MoveOperation = 19
const QTextCursor__Start QTextCursor__MoveOperation = 1

Move to the start of the document.

const QTextCursor__StartOfBlock QTextCursor__MoveOperation = 4

Move to the start of the current block.

const QTextCursor__StartOfLine QTextCursor__MoveOperation = 3

Move to the start of the current line.

const QTextCursor__StartOfWord QTextCursor__MoveOperation = 5

Move to the start of the current word.

const QTextCursor__Up QTextCursor__MoveOperation = 2

Move up one line.

const QTextCursor__WordLeft QTextCursor__MoveOperation = 10
const QTextCursor__WordRight QTextCursor__MoveOperation = 20

type QTextCursor__SelectionType

type QTextCursor__SelectionType = int

This enum describes the types of selection that can be applied with the select() function.

const QTextCursor__BlockUnderCursor QTextCursor__SelectionType = 2

Selects the block of text under the cursor.

const QTextCursor__Document QTextCursor__SelectionType = 3

Selects the entire document.

const QTextCursor__LineUnderCursor QTextCursor__SelectionType = 1

Selects the line of text under the cursor.

const QTextCursor__WordUnderCursor QTextCursor__SelectionType = 0

Selects the word under the cursor. If the cursor is not positioned within a string of selectable characters, no text is selected.

type QTextDocument

type QTextDocument struct {
	*qtcore.QObject
}

func NewQTextDocument

func NewQTextDocument(parent qtcore.QObject_ITF) *QTextDocument

func NewQTextDocument1

func NewQTextDocument1(text string, parent qtcore.QObject_ITF) *QTextDocument

func NewQTextDocument1p

func NewQTextDocument1p(text string) *QTextDocument

func NewQTextDocumentFromPointer

func NewQTextDocumentFromPointer(cthis unsafe.Pointer) *QTextDocument

func NewQTextDocumentp

func NewQTextDocumentp() *QTextDocument

func (*QTextDocument) AddResource

func (this *QTextDocument) AddResource(type_ int, name qtcore.QUrl_ITF, resource qtcore.QVariant_ITF)

Adds the resource resource to the resource cache, using type and name as identifiers. type should be a value from QTextDocument::ResourceType.

For example, you can add an image as a resource in order to reference it from within the document:

document->addResource(QTextDocument::ImageResource,
    QUrl("mydata://image.png"), QVariant(image));

The image can be inserted into the document using the QTextCursor API:

QTextImageFormat imageFormat;
imageFormat.setName("mydata://image.png");
cursor.insertImage(imageFormat);

Alternatively, you can insert images using the HTML img tag:

editor->append("<img src=\"mydata://image.png\" />");

func (*QTextDocument) AdjustSize

func (this *QTextDocument) AdjustSize()

Adjusts the document to a reasonable size.

This function was introduced in Qt 4.2.

See also idealWidth(), textWidth, and size.

func (*QTextDocument) AppendUndoItem

func (this *QTextDocument) AppendUndoItem(arg0 QAbstractUndoItem_ITF)

func (*QTextDocument) AvailableRedoSteps

func (this *QTextDocument) AvailableRedoSteps() int

Returns the number of available redo steps.

This function was introduced in Qt 4.6.

See also isRedoAvailable().

func (*QTextDocument) AvailableUndoSteps

func (this *QTextDocument) AvailableUndoSteps() int

Returns the number of available undo steps.

This function was introduced in Qt 4.6.

See also isUndoAvailable().

func (*QTextDocument) BaseUrl

func (this *QTextDocument) BaseUrl() *qtcore.QUrl

func (*QTextDocument) BaseUrlChanged

func (this *QTextDocument) BaseUrlChanged(url qtcore.QUrl_ITF)

func (*QTextDocument) Begin

func (this *QTextDocument) Begin() *QTextBlock

Returns the document's first text block.

See also firstBlock().

func (*QTextDocument) BlockCount

func (this *QTextDocument) BlockCount() int

func (*QTextDocument) BlockCountChanged

func (this *QTextDocument) BlockCountChanged(newBlockCount int)

This signal is emitted when the total number of text blocks in the document changes. The value passed in newBlockCount is the new total.

This function was introduced in Qt 4.3.

func (*QTextDocument) CharacterAt

func (this *QTextDocument) CharacterAt(pos int) *qtcore.QChar

Returns the character at position pos, or a null character if the position is out of range.

This function was introduced in Qt 4.5.

See also characterCount().

func (*QTextDocument) CharacterCount

func (this *QTextDocument) CharacterCount() int

Returns the number of characters of this document.

This function was introduced in Qt 4.5.

See also blockCount() and characterAt().

func (*QTextDocument) Clear

func (this *QTextDocument) Clear()

Clears the document.

func (*QTextDocument) ClearUndoRedoStacks

func (this *QTextDocument) ClearUndoRedoStacks(historyToClear int)

Clears the stacks specified by stacksToClear.

This method clears any commands on the undo stack, the redo stack, or both (the default). If commands are cleared, the appropriate signals are emitted, QTextDocument::undoAvailable() or QTextDocument::redoAvailable().

This function was introduced in Qt 4.7.

See also QTextDocument::undoAvailable() and QTextDocument::redoAvailable().

func (*QTextDocument) ClearUndoRedoStacksp

func (this *QTextDocument) ClearUndoRedoStacksp()

Clears the stacks specified by stacksToClear.

This method clears any commands on the undo stack, the redo stack, or both (the default). If commands are cleared, the appropriate signals are emitted, QTextDocument::undoAvailable() or QTextDocument::redoAvailable().

This function was introduced in Qt 4.7.

See also QTextDocument::undoAvailable() and QTextDocument::redoAvailable().

func (*QTextDocument) Clone

func (this *QTextDocument) Clone(parent qtcore.QObject_ITF) *QTextDocument

Creates a new QTextDocument that is a copy of this text document. parent is the parent of the returned text document.

func (*QTextDocument) Clonep

func (this *QTextDocument) Clonep() *QTextDocument

Creates a new QTextDocument that is a copy of this text document. parent is the parent of the returned text document.

func (*QTextDocument) ContentsChange

func (this *QTextDocument) ContentsChange(from int, charsRemoved int, charsAdded int)

This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.

Information is provided about the position of the character in the document where the change occurred, the number of characters removed (charsRemoved), and the number of characters added (charsAdded).

The signal is emitted before the document's layout manager is notified about the change. This hook allows you to implement syntax highlighting for the document.

See also QAbstractTextDocumentLayout::documentChanged() and contentsChanged().

func (*QTextDocument) ContentsChanged

func (this *QTextDocument) ContentsChanged()

This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.

See also contentsChange().

func (*QTextDocument) CreateObject

func (this *QTextDocument) CreateObject(f QTextFormat_ITF) *QTextObject

Creates and returns a new document object (a QTextObject), based on the given format.

QTextObjects will always get created through this method, so you must reimplement it if you use custom text objects inside your document.

func (*QTextDocument) CursorPositionChanged

func (this *QTextDocument) CursorPositionChanged(cursor QTextCursor_ITF)

This signal is emitted whenever the position of a cursor changed due to an editing operation. The cursor that changed is passed in cursor. If the document is used with the QTextEdit class and you need a signal when the cursor is moved with the arrow keys you can use the cursorPositionChanged() signal in QTextEdit.

func (*QTextDocument) DefaultCursorMoveStyle

func (this *QTextDocument) DefaultCursorMoveStyle() int

The default cursor movement style is used by all QTextCursor objects created from the document. The default is Qt::LogicalMoveStyle.

This function was introduced in Qt 4.8.

See also setDefaultCursorMoveStyle().

func (*QTextDocument) DefaultFont

func (this *QTextDocument) DefaultFont() *QFont

Returns the default font to be used in the document layout.

Note: Getter function for property defaultFont.

See also setDefaultFont().

func (*QTextDocument) DefaultStyleSheet

func (this *QTextDocument) DefaultStyleSheet() string

func (*QTextDocument) DefaultTextOption

func (this *QTextDocument) DefaultTextOption() *QTextOption

The default text option is used on all QTextLayout objects in the document. This allows setting global properties for the document such as the default word wrap mode.

This function was introduced in Qt 4.3.

Note: Getter function for property defaultTextOption.

See also setDefaultTextOption().

func (*QTextDocument) DocumentLayout

func (this *QTextDocument) DocumentLayout() *QAbstractTextDocumentLayout

Returns the document layout for this document.

See also setDocumentLayout().

func (*QTextDocument) DocumentLayoutChanged

func (this *QTextDocument) DocumentLayoutChanged()

This signal is emitted when a new document layout is set.

This function was introduced in Qt 4.4.

See also setDocumentLayout().

func (*QTextDocument) DocumentMargin

func (this *QTextDocument) DocumentMargin() float64

func (*QTextDocument) DrawContents

func (this *QTextDocument) DrawContents(painter QPainter_ITF, rect qtcore.QRectF_ITF)

Draws the content of the document with painter p, clipped to rect. If rect is a null rectangle (default) then the document is painted unclipped.

This function was introduced in Qt 4.2.

func (*QTextDocument) DrawContentsp

func (this *QTextDocument) DrawContentsp(painter QPainter_ITF)

Draws the content of the document with painter p, clipped to rect. If rect is a null rectangle (default) then the document is painted unclipped.

This function was introduced in Qt 4.2.

func (*QTextDocument) End

func (this *QTextDocument) End() *QTextBlock

This function returns a block to test for the end of the document while iterating over it.

for (QTextBlock it = doc->begin(); it != doc->end(); it = it.next())
    cout << it.text().toStdString() << endl;

The block returned is invalid and represents the block after the last block in the document. You can use lastBlock() to retrieve the last valid block of the document.

See also lastBlock().

func (*QTextDocument) Find

func (this *QTextDocument) Find(subString string, from int, options int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find1

func (this *QTextDocument) Find1(subString string, cursor QTextCursor_ITF, options int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find1p

func (this *QTextDocument) Find1p(subString string, cursor QTextCursor_ITF) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find2

func (this *QTextDocument) Find2(expr qtcore.QRegExp_ITF, from int, options int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find2p

func (this *QTextDocument) Find2p(expr qtcore.QRegExp_ITF) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find2p1

func (this *QTextDocument) Find2p1(expr qtcore.QRegExp_ITF, from int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find3

func (this *QTextDocument) Find3(expr qtcore.QRegExp_ITF, cursor QTextCursor_ITF, options int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find3p

func (this *QTextDocument) Find3p(expr qtcore.QRegExp_ITF, cursor QTextCursor_ITF) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find4

func (this *QTextDocument) Find4(expr qtcore.QRegularExpression_ITF, from int, options int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find4p

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find4p1

func (this *QTextDocument) Find4p1(expr qtcore.QRegularExpression_ITF, from int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find5

func (this *QTextDocument) Find5(expr qtcore.QRegularExpression_ITF, cursor QTextCursor_ITF, options int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Find5p

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) FindBlock

func (this *QTextDocument) FindBlock(pos int) *QTextBlock

Returns the text block that contains the pos-th character.

func (*QTextDocument) FindBlockByLineNumber

func (this *QTextDocument) FindBlockByLineNumber(blockNumber int) *QTextBlock

Returns the text block that contains the specified lineNumber.

This function was introduced in Qt 4.5.

See also QTextBlock::firstLineNumber().

func (*QTextDocument) FindBlockByNumber

func (this *QTextDocument) FindBlockByNumber(blockNumber int) *QTextBlock

Returns the text block with the specified blockNumber.

This function was introduced in Qt 4.4.

See also QTextBlock::blockNumber().

func (*QTextDocument) FindFlagItemName

func (this *QTextDocument) FindFlagItemName(val int) string

func (*QTextDocument) Findp

func (this *QTextDocument) Findp(subString string) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) Findp1

func (this *QTextDocument) Findp1(subString string, from int) *QTextCursor

Finds the next occurrence of the string, subString, in the document. The search starts at the position of the given cursor, and proceeds forwards through the document unless specified otherwise in the search options. The options control the type of search performed.

Returns a cursor with the match selected if subString was found; otherwise returns a null cursor.

If the given cursor has a selection, the search begins after the selection; otherwise it begins at the cursor's position.

By default the search is case insensitive, and can match text anywhere in the document.

func (*QTextDocument) FirstBlock

func (this *QTextDocument) FirstBlock() *QTextBlock

Returns the document's first text block.

This function was introduced in Qt 4.4.

func (*QTextDocument) FrameAt

func (this *QTextDocument) FrameAt(pos int) *QTextFrame

func (*QTextDocument) GetCthis

func (this *QTextDocument) GetCthis() unsafe.Pointer

func (*QTextDocument) IdealWidth

func (this *QTextDocument) IdealWidth() float64

Returns the ideal width of the text document. The ideal width is the actually used width of the document without optional alignments taken into account. It is always <= size().width().

This function was introduced in Qt 4.2.

See also adjustSize() and textWidth.

func (*QTextDocument) IndentWidth

func (this *QTextDocument) IndentWidth() float64

func (*QTextDocument) InheritCreateObject

func (this *QTextDocument) InheritCreateObject(f func(f *QTextFormat) unsafe.Pointer)

QTextObject * createObject(const QTextFormat &)

func (*QTextDocument) InheritLoadResource

func (this *QTextDocument) InheritLoadResource(f func(type_ int, name *qtcore.QUrl) unsafe.Pointer)

QVariant loadResource(int, const QUrl &)

func (*QTextDocument) IsEmpty

func (this *QTextDocument) IsEmpty() bool

Returns true if the document is empty; otherwise returns false.

func (*QTextDocument) IsModified

func (this *QTextDocument) IsModified() bool

func (*QTextDocument) IsRedoAvailable

func (this *QTextDocument) IsRedoAvailable() bool

Returns true if redo is available; otherwise returns false.

See also isUndoAvailable() and availableRedoSteps().

func (*QTextDocument) IsUndoAvailable

func (this *QTextDocument) IsUndoAvailable() bool

Returns true if undo is available; otherwise returns false.

See also isRedoAvailable() and availableUndoSteps().

func (*QTextDocument) IsUndoRedoEnabled

func (this *QTextDocument) IsUndoRedoEnabled() bool

func (*QTextDocument) LastBlock

func (this *QTextDocument) LastBlock() *QTextBlock

Returns the document's last (valid) text block.

This function was introduced in Qt 4.4.

func (*QTextDocument) LineCount

func (this *QTextDocument) LineCount() int

Returns the number of lines of this document (if the layout supports this). Otherwise, this is identical to the number of blocks.

This function was introduced in Qt 4.5.

See also blockCount() and characterCount().

func (*QTextDocument) LoadResource

func (this *QTextDocument) LoadResource(type_ int, name qtcore.QUrl_ITF) *qtcore.QVariant

Loads data of the specified type from the resource with the given name.

This function is called by the rich text engine to request data that isn't directly stored by QTextDocument, but still associated with it. For example, images are referenced indirectly by the name attribute of a QTextImageFormat object.

When called by Qt, type is one of the values of QTextDocument::ResourceType.

If the QTextDocument is a child object of a QObject that has an invokable loadResource method such as QTextEdit, QTextBrowser or a QTextDocument itself then the default implementation tries to retrieve the data from the parent.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

func (*QTextDocument) MarkContentsDirty

func (this *QTextDocument) MarkContentsDirty(from int, length int)

Marks the contents specified by the given position and length as "dirty", informing the document that it needs to be laid out again.

func (*QTextDocument) MaximumBlockCount

func (this *QTextDocument) MaximumBlockCount() int

func (*QTextDocument) MetaInformation

func (this *QTextDocument) MetaInformation(info int) string

Returns meta information about the document of the type specified by info.

See also setMetaInformation().

func (*QTextDocument) MetaInformationItemName

func (this *QTextDocument) MetaInformationItemName(val int) string

func (*QTextDocument) MetaObject

func (this *QTextDocument) MetaObject() *qtcore.QMetaObject

func (*QTextDocument) ModificationChanged

func (this *QTextDocument) ModificationChanged(m bool)

This signal is emitted whenever the content of the document changes in a way that affects the modification state. If changed is true, the document has been modified; otherwise it is false.

For example, calling setModified(false) on a document and then inserting text causes the signal to get emitted. If you undo that operation, causing the document to return to its original unmodified state, the signal will get emitted again.

func (*QTextDocument) NewForInherit

func (*QTextDocument) NewForInherit(parent qtcore.QObject_ITF) *QTextDocument

Constructs an empty QTextDocument with the given parent.

func (*QTextDocument) NewForInherit1

func (*QTextDocument) NewForInherit1(text string, parent qtcore.QObject_ITF) *QTextDocument

Constructs an empty QTextDocument with the given parent.

func (*QTextDocument) NewForInherit1p

func (*QTextDocument) NewForInherit1p(text string) *QTextDocument

Constructs an empty QTextDocument with the given parent.

func (*QTextDocument) NewForInheritp

func (*QTextDocument) NewForInheritp() *QTextDocument

Constructs an empty QTextDocument with the given parent.

func (*QTextDocument) NewFromPointer

func (*QTextDocument) NewFromPointer(cthis unsafe.Pointer) *QTextDocument

func (*QTextDocument) Object

func (this *QTextDocument) Object(objectIndex int) *QTextObject

Returns the text object associated with the given objectIndex.

func (*QTextDocument) ObjectForFormat

func (this *QTextDocument) ObjectForFormat(arg0 QTextFormat_ITF) *QTextObject

Returns the text object associated with the format f.

func (*QTextDocument) PageCount

func (this *QTextDocument) PageCount() int

returns the number of pages in this document.

func (*QTextDocument) PageSize

func (this *QTextDocument) PageSize() *qtcore.QSizeF

func (*QTextDocument) Print

func (this *QTextDocument) Print(printer QPagedPaintDevice_ITF)

Prints the document to the given printer. The QPagedPaintDevice must be set up before being used with this function.

This is only a convenience method to print the whole document to the printer.

If the document is already paginated through a specified height in the pageSize() property it is printed as-is.

If the document is not paginated, like for example a document used in a QTextEdit, then a temporary copy of the document is created and the copy is broken into multiple pages according to the size of the paint device's paperRect(). By default a 2 cm margin is set around the document contents. In addition the current page number is printed at the bottom of each page.

See also QTextEdit::print().

func (*QTextDocument) QTextDocument_PTR

func (ptr *QTextDocument) QTextDocument_PTR() *QTextDocument

func (*QTextDocument) Redo

func (this *QTextDocument) Redo(cursor QTextCursor_ITF)

Redoes the last editing operation on the document if redo is available.

The provided cursor is positioned at the end of the location where the edition operation was redone.

This function was introduced in Qt 4.2.

func (*QTextDocument) Redo1

func (this *QTextDocument) Redo1()

Redoes the last editing operation on the document if redo is available.

The provided cursor is positioned at the end of the location where the edition operation was redone.

This function was introduced in Qt 4.2.

func (*QTextDocument) RedoAvailable

func (this *QTextDocument) RedoAvailable(arg0 bool)

This signal is emitted whenever redo operations become available (available is true) or unavailable (available is false).

func (*QTextDocument) Resource

func (this *QTextDocument) Resource(type_ int, name qtcore.QUrl_ITF) *qtcore.QVariant

Returns data of the specified type from the resource with the given name.

This function is called by the rich text engine to request data that isn't directly stored by QTextDocument, but still associated with it. For example, images are referenced indirectly by the name attribute of a QTextImageFormat object.

Resources are cached internally in the document. If a resource can not be found in the cache, loadResource is called to try to load the resource. loadResource should then use addResource to add the resource to the cache.

See also QTextDocument::ResourceType.

func (*QTextDocument) ResourceTypeItemName

func (this *QTextDocument) ResourceTypeItemName(val int) string

func (*QTextDocument) Revision

func (this *QTextDocument) Revision() int

Returns the document's revision (if undo is enabled).

The revision is guaranteed to increase when a document that is not modified is edited.

This function was introduced in Qt 4.4.

See also QTextBlock::revision() and isModified().

func (*QTextDocument) RootFrame

func (this *QTextDocument) RootFrame() *QTextFrame

Returns the document's root frame.

func (*QTextDocument) SetBaseUrl

func (this *QTextDocument) SetBaseUrl(url qtcore.QUrl_ITF)

func (*QTextDocument) SetCthis

func (this *QTextDocument) SetCthis(cthis unsafe.Pointer)

func (*QTextDocument) SetDefaultCursorMoveStyle

func (this *QTextDocument) SetDefaultCursorMoveStyle(style int)

Sets the default cursor movement style to the given style.

This function was introduced in Qt 4.8.

See also defaultCursorMoveStyle().

func (*QTextDocument) SetDefaultFont

func (this *QTextDocument) SetDefaultFont(font QFont_ITF)

Sets the default font to use in the document layout.

Note: Setter function for property defaultFont.

See also defaultFont().

func (*QTextDocument) SetDefaultStyleSheet

func (this *QTextDocument) SetDefaultStyleSheet(sheet string)

func (*QTextDocument) SetDefaultTextOption

func (this *QTextDocument) SetDefaultTextOption(option QTextOption_ITF)

Sets the default text option to option.

This function was introduced in Qt 4.3.

Note: Setter function for property defaultTextOption.

See also defaultTextOption().

func (*QTextDocument) SetDocumentLayout

func (this *QTextDocument) SetDocumentLayout(layout QAbstractTextDocumentLayout_ITF)

Sets the document to use the given layout. The previous layout is deleted.

See also documentLayoutChanged().

func (*QTextDocument) SetDocumentMargin

func (this *QTextDocument) SetDocumentMargin(margin float64)

func (*QTextDocument) SetHtml

func (this *QTextDocument) SetHtml(html string)

Replaces the entire contents of the document with the given HTML-formatted text in the html string. The undo/redo history is reset when this function is called.

The HTML formatting is respected as much as possible; for example, "<b>bold</b> text" will produce text where the first word has a font weight that gives it a bold appearance: "bold text".

Note: It is the responsibility of the caller to make sure that the text is correctly decoded when a QString containing HTML is created and passed to setHtml().

See also setPlainText() and Supported HTML Subset.

func (*QTextDocument) SetIndentWidth

func (this *QTextDocument) SetIndentWidth(width float64)

Sets the width used for text list and text block indenting.

The indent properties of QTextListFormat and QTextBlockFormat specify multiples of this value. The default indent width is 40 .

This function was introduced in Qt 4.4.

Note: Setter function for property indentWidth.

See also indentWidth().

func (*QTextDocument) SetMaximumBlockCount

func (this *QTextDocument) SetMaximumBlockCount(maximum int)

func (*QTextDocument) SetMetaInformation

func (this *QTextDocument) SetMetaInformation(info int, arg1 string)

Sets the document's meta information of the type specified by info to the given string.

See also metaInformation().

func (*QTextDocument) SetModified

func (this *QTextDocument) SetModified(m bool)

func (*QTextDocument) SetModifiedp

func (this *QTextDocument) SetModifiedp()

func (*QTextDocument) SetPageSize

func (this *QTextDocument) SetPageSize(size qtcore.QSizeF_ITF)

func (*QTextDocument) SetPlainText

func (this *QTextDocument) SetPlainText(text string)

Replaces the entire contents of the document with the given plain text. The undo/redo history is reset when this function is called.

See also setHtml().

func (*QTextDocument) SetTextWidth

func (this *QTextDocument) SetTextWidth(width float64)

func (*QTextDocument) SetUndoRedoEnabled

func (this *QTextDocument) SetUndoRedoEnabled(enable bool)

func (*QTextDocument) SetUseDesignMetrics

func (this *QTextDocument) SetUseDesignMetrics(b bool)

func (*QTextDocument) Size

func (this *QTextDocument) Size() *qtcore.QSizeF

func (*QTextDocument) StacksItemName

func (this *QTextDocument) StacksItemName(val int) string

func (*QTextDocument) TextWidth

func (this *QTextDocument) TextWidth() float64

func (*QTextDocument) ToHtml

func (this *QTextDocument) ToHtml(encoding qtcore.QByteArray_ITF) string

Returns a string containing an HTML representation of the document.

The encoding parameter specifies the value for the charset attribute in the html header. For example if 'utf-8' is specified then the beginning of the generated html will look like this:

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>...

If no encoding is specified then no such meta information is generated.

If you later on convert the returned html string into a byte array for transmission over a network or when saving to disk you should specify the encoding you're going to use for the conversion to a byte array here.

See also Supported HTML Subset.

func (*QTextDocument) ToHtmlp

func (this *QTextDocument) ToHtmlp() string

Returns a string containing an HTML representation of the document.

The encoding parameter specifies the value for the charset attribute in the html header. For example if 'utf-8' is specified then the beginning of the generated html will look like this:

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>...

If no encoding is specified then no such meta information is generated.

If you later on convert the returned html string into a byte array for transmission over a network or when saving to disk you should specify the encoding you're going to use for the conversion to a byte array here.

See also Supported HTML Subset.

func (*QTextDocument) ToPlainText

func (this *QTextDocument) ToPlainText() string

Returns the plain text contained in the document. If you want formatting information use a QTextCursor instead.

This function returns the same as toRawText(), but will replace some unicode characters with ASCII alternatives. In particular, no-break space (U+00A0) is replaced by a regular space (U+0020), and both paragraph (U+2029) and line (U+2028) separators are replaced by line feed (U+000A). If you need the precise contents of the document, use toRawText() instead.

Note: Embedded objects, such as images, are represented by a Unicode value U+FFFC (OBJECT REPLACEMENT CHARACTER).

See also toHtml().

func (*QTextDocument) ToRawText

func (this *QTextDocument) ToRawText() string

Returns the raw text contained in the document without any formatting information. If you want formatting information use a QTextCursor instead.

This function was introduced in Qt 5.9.

See also toPlainText().

func (*QTextDocument) Undo

func (this *QTextDocument) Undo(cursor QTextCursor_ITF)

Undoes the last editing operation on the document if undo is available. The provided cursor is positioned at the end of the location where the edition operation was undone.

See the Qt Undo Framework documentation for details.

This function was introduced in Qt 4.2.

See also undoAvailable() and isUndoRedoEnabled().

func (*QTextDocument) Undo1

func (this *QTextDocument) Undo1()

Undoes the last editing operation on the document if undo is available. The provided cursor is positioned at the end of the location where the edition operation was undone.

See the Qt Undo Framework documentation for details.

This function was introduced in Qt 4.2.

See also undoAvailable() and isUndoRedoEnabled().

func (*QTextDocument) UndoAvailable

func (this *QTextDocument) UndoAvailable(arg0 bool)

This signal is emitted whenever undo operations become available (available is true) or unavailable (available is false).

See the Qt Undo Framework documentation for details.

See also undo() and isUndoRedoEnabled().

func (*QTextDocument) UndoCommandAdded

func (this *QTextDocument) UndoCommandAdded()

This signal is emitted every time a new level of undo is added to the QTextDocument.

This function was introduced in Qt 4.4.

func (*QTextDocument) UseDesignMetrics

func (this *QTextDocument) UseDesignMetrics() bool

type QTextDocumentFragment

type QTextDocumentFragment struct {
	*qtrt.CObject
}

func NewQTextDocumentFragment

func NewQTextDocumentFragment() *QTextDocumentFragment

func NewQTextDocumentFragment1

func NewQTextDocumentFragment1(document QTextDocument_ITF) *QTextDocumentFragment

func NewQTextDocumentFragment2

func NewQTextDocumentFragment2(range_ QTextCursor_ITF) *QTextDocumentFragment

func NewQTextDocumentFragmentFromPointer

func NewQTextDocumentFragmentFromPointer(cthis unsafe.Pointer) *QTextDocumentFragment

func QTextDocumentFragment_FromHtml

func QTextDocumentFragment_FromHtml(html string) *QTextDocumentFragment

func QTextDocumentFragment_FromHtml1

func QTextDocumentFragment_FromHtml1(html string, resourceProvider QTextDocument_ITF) *QTextDocumentFragment

func QTextDocumentFragment_FromPlainText

func QTextDocumentFragment_FromPlainText(plainText string) *QTextDocumentFragment

func (*QTextDocumentFragment) FromHtml

func (this *QTextDocumentFragment) FromHtml(html string) *QTextDocumentFragment

Returns a QTextDocumentFragment based on the arbitrary piece of HTML in the given text. The formatting is preserved as much as possible; for example, "<b>bold</b>" will become a document fragment with the text "bold" with a bold character format.

func (*QTextDocumentFragment) FromHtml1

func (this *QTextDocumentFragment) FromHtml1(html string, resourceProvider QTextDocument_ITF) *QTextDocumentFragment

Returns a QTextDocumentFragment based on the arbitrary piece of HTML in the given text. The formatting is preserved as much as possible; for example, "<b>bold</b>" will become a document fragment with the text "bold" with a bold character format.

func (*QTextDocumentFragment) FromPlainText

func (this *QTextDocumentFragment) FromPlainText(plainText string) *QTextDocumentFragment

Returns a document fragment that contains the given plainText.

When inserting such a fragment into a QTextDocument the current char format of the QTextCursor used for insertion is used as format for the text.

func (*QTextDocumentFragment) GetCthis

func (this *QTextDocumentFragment) GetCthis() unsafe.Pointer

func (*QTextDocumentFragment) IsEmpty

func (this *QTextDocumentFragment) IsEmpty() bool

Returns true if the fragment is empty; otherwise returns false.

func (*QTextDocumentFragment) NewForInherit

func (*QTextDocumentFragment) NewForInherit() *QTextDocumentFragment

Constructs an empty QTextDocumentFragment.

See also isEmpty().

func (*QTextDocumentFragment) NewForInherit1

Constructs an empty QTextDocumentFragment.

See also isEmpty().

func (*QTextDocumentFragment) NewForInherit2

Constructs an empty QTextDocumentFragment.

See also isEmpty().

func (*QTextDocumentFragment) NewFromPointer

func (*QTextDocumentFragment) Operator_equal

func (*QTextDocumentFragment) QTextDocumentFragment_PTR

func (ptr *QTextDocumentFragment) QTextDocumentFragment_PTR() *QTextDocumentFragment

func (*QTextDocumentFragment) SetCthis

func (this *QTextDocumentFragment) SetCthis(cthis unsafe.Pointer)

func (*QTextDocumentFragment) ToHtml

func (this *QTextDocumentFragment) ToHtml(encoding qtcore.QByteArray_ITF) string

Returns the contents of the document fragment as HTML, using the specified encoding (e.g., "UTF-8", "ISO 8859-1").

This function was introduced in Qt 4.2.

See also toPlainText(), QTextDocument::toHtml(), and QTextCodec.

func (*QTextDocumentFragment) ToHtmlp

func (this *QTextDocumentFragment) ToHtmlp() string

Returns the contents of the document fragment as HTML, using the specified encoding (e.g., "UTF-8", "ISO 8859-1").

This function was introduced in Qt 4.2.

See also toPlainText(), QTextDocument::toHtml(), and QTextCodec.

func (*QTextDocumentFragment) ToPlainText

func (this *QTextDocumentFragment) ToPlainText() string

Returns the document fragment's text as plain text (i.e. with no formatting information).

See also toHtml().

type QTextDocumentFragment_ITF

type QTextDocumentFragment_ITF interface {
	QTextDocumentFragment_PTR() *QTextDocumentFragment
}

type QTextDocumentWriter

type QTextDocumentWriter struct {
	*qtrt.CObject
}

func NewQTextDocumentWriter

func NewQTextDocumentWriter() *QTextDocumentWriter

func NewQTextDocumentWriter1

func NewQTextDocumentWriter1(device qtcore.QIODevice_ITF, format qtcore.QByteArray_ITF) *QTextDocumentWriter

func NewQTextDocumentWriter2

func NewQTextDocumentWriter2(fileName string, format qtcore.QByteArray_ITF) *QTextDocumentWriter

func NewQTextDocumentWriter2p

func NewQTextDocumentWriter2p(fileName string) *QTextDocumentWriter

func NewQTextDocumentWriterFromPointer

func NewQTextDocumentWriterFromPointer(cthis unsafe.Pointer) *QTextDocumentWriter

func (*QTextDocumentWriter) Codec

func (this *QTextDocumentWriter) Codec() *qtcore.QTextCodec

Returns the codec that is currently assigned to the writer.

See also setCodec().

func (*QTextDocumentWriter) Device

func (this *QTextDocumentWriter) Device() *qtcore.QIODevice

Returns the device currently assigned, or 0 if no device has been assigned.

See also setDevice().

func (*QTextDocumentWriter) FileName

func (this *QTextDocumentWriter) FileName() string

If the currently assigned device is a QFile, or if setFileName() has been called, this function returns the name of the file to be written to. In all other cases, it returns an empty string.

See also setFileName() and setDevice().

func (*QTextDocumentWriter) Format

func (this *QTextDocumentWriter) Format() *qtcore.QByteArray

Returns the format used for writing documents.

See also setFormat().

func (*QTextDocumentWriter) GetCthis

func (this *QTextDocumentWriter) GetCthis() unsafe.Pointer

func (*QTextDocumentWriter) NewForInherit

func (*QTextDocumentWriter) NewForInherit() *QTextDocumentWriter

Constructs an empty QTextDocumentWriter object. Before writing, you must call setFormat() to set a document format, then setDevice() or setFileName().

func (*QTextDocumentWriter) NewForInherit1

Constructs an empty QTextDocumentWriter object. Before writing, you must call setFormat() to set a document format, then setDevice() or setFileName().

func (*QTextDocumentWriter) NewForInherit2

func (*QTextDocumentWriter) NewForInherit2(fileName string, format qtcore.QByteArray_ITF) *QTextDocumentWriter

Constructs an empty QTextDocumentWriter object. Before writing, you must call setFormat() to set a document format, then setDevice() or setFileName().

func (*QTextDocumentWriter) NewForInherit2p

func (*QTextDocumentWriter) NewForInherit2p(fileName string) *QTextDocumentWriter

Constructs an empty QTextDocumentWriter object. Before writing, you must call setFormat() to set a document format, then setDevice() or setFileName().

func (*QTextDocumentWriter) NewFromPointer

func (*QTextDocumentWriter) NewFromPointer(cthis unsafe.Pointer) *QTextDocumentWriter

func (*QTextDocumentWriter) QTextDocumentWriter_PTR

func (ptr *QTextDocumentWriter) QTextDocumentWriter_PTR() *QTextDocumentWriter

func (*QTextDocumentWriter) SetCodec

func (this *QTextDocumentWriter) SetCodec(codec qtcore.QTextCodec_ITF)

Sets the codec for this stream to codec. The codec is used for encoding any data that is written. By default, QTextDocumentWriter uses UTF-8.

See also codec().

func (*QTextDocumentWriter) SetCthis

func (this *QTextDocumentWriter) SetCthis(cthis unsafe.Pointer)

func (*QTextDocumentWriter) SetDevice

func (this *QTextDocumentWriter) SetDevice(device qtcore.QIODevice_ITF)

Sets the writer's device to the device specified. If a device has already been set, the old device is removed but otherwise left unchanged.

If the device is not already open, QTextDocumentWriter will attempt to open the device in QIODevice::WriteOnly mode by calling open().

Note: This will not work for certain devices, such as QProcess, QTcpSocket and QUdpSocket, where some configuration is required before the device can be opened.

See also device() and setFileName().

func (*QTextDocumentWriter) SetFileName

func (this *QTextDocumentWriter) SetFileName(fileName string)

Sets the name of the file to be written to fileName. Internally, QTextDocumentWriter will create a QFile and open it in QIODevice::WriteOnly mode, and use this file when writing the document.

See also fileName() and setDevice().

func (*QTextDocumentWriter) SetFormat

func (this *QTextDocumentWriter) SetFormat(format qtcore.QByteArray_ITF)

Sets the format used to write documents to the format specified. format is a case insensitive text string. For example:

QTextDocumentWriter writer;
writer.setFormat("odf"); // same as writer.setFormat("ODF");

You can call supportedDocumentFormats() for the full list of formats QTextDocumentWriter supports.

See also format().

func (*QTextDocumentWriter) Write

func (this *QTextDocumentWriter) Write(document QTextDocument_ITF) bool

Writes the given document to the assigned device or file and returns true if successful; otherwise returns false.

func (*QTextDocumentWriter) Write1

func (this *QTextDocumentWriter) Write1(fragment QTextDocumentFragment_ITF) bool

Writes the given document to the assigned device or file and returns true if successful; otherwise returns false.

type QTextDocumentWriter_ITF

type QTextDocumentWriter_ITF interface {
	QTextDocumentWriter_PTR() *QTextDocumentWriter
}

type QTextDocument_ITF

type QTextDocument_ITF interface {
	qtcore.QObject_ITF
	QTextDocument_PTR() *QTextDocument
}

type QTextDocument__FindFlag

type QTextDocument__FindFlag = int
const QTextDocument__FindBackward QTextDocument__FindFlag = 1
const QTextDocument__FindCaseSensitively QTextDocument__FindFlag = 2
const QTextDocument__FindWholeWords QTextDocument__FindFlag = 4

type QTextDocument__MetaInformation

type QTextDocument__MetaInformation = int

This enum describes the different types of meta information that can be added to a document.

See also metaInformation() and setMetaInformation().

const QTextDocument__DocumentTitle QTextDocument__MetaInformation = 0

The title of the document.

const QTextDocument__DocumentUrl QTextDocument__MetaInformation = 1

The url of the document. The loadResource() function uses this url as the base when loading relative resources.

type QTextDocument__ResourceType

type QTextDocument__ResourceType = int

This enum describes the types of resources that can be loaded by QTextDocument's loadResource() function.

See also loadResource().

const QTextDocument__HtmlResource QTextDocument__ResourceType = 1

The resource contains HTML.

const QTextDocument__ImageResource QTextDocument__ResourceType = 2

The resource contains image data. Currently supported data types are QVariant::Pixmap and QVariant::Image. If the corresponding variant is of type QVariant::ByteArray then Qt attempts to load the image using QImage::loadFromData. QVariant::Icon is currently not supported. The icon needs to be converted to one of the supported types first, for example using QIcon::pixmap.

const QTextDocument__StyleSheetResource QTextDocument__ResourceType = 3

The resource contains CSS.

const QTextDocument__UserResource QTextDocument__ResourceType = 100

type QTextDocument__Stacks

type QTextDocument__Stacks = int

QTextDocument::UndoAndRedoStacksUndoStack | RedoStackBoth the undo and redo stacks.

const QTextDocument__RedoStack QTextDocument__Stacks = 2
const QTextDocument__UndoAndRedoStacks QTextDocument__Stacks = 3
const QTextDocument__UndoStack QTextDocument__Stacks = 1

type QTextFormat

type QTextFormat struct {
	*qtrt.CObject
}

func NewQTextFormat

func NewQTextFormat() *QTextFormat

func NewQTextFormat1

func NewQTextFormat1(type_ int) *QTextFormat

func NewQTextFormatFromPointer

func NewQTextFormatFromPointer(cthis unsafe.Pointer) *QTextFormat

func (*QTextFormat) Background

func (this *QTextFormat) Background() *QBrush

Returns the brush used to paint the document's background.

See also setBackground(), clearBackground(), and foreground().

func (*QTextFormat) BoolProperty

func (this *QTextFormat) BoolProperty(propertyId int) bool

Returns the value of the property specified by propertyId. If the property isn't of QTextFormat::Bool type, false is returned instead.

See also setProperty(), intProperty(), doubleProperty(), stringProperty(), colorProperty(), lengthProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) BrushProperty

func (this *QTextFormat) BrushProperty(propertyId int) *QBrush

Returns the value of the property given by propertyId; if the property isn't of QVariant::Brush type, Qt::NoBrush is returned instead.

See also setProperty(), boolProperty(), intProperty(), doubleProperty(), stringProperty(), lengthProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) ClearBackground

func (this *QTextFormat) ClearBackground()

Clears the brush used to paint the document's background. The default brush will be used.

See also background(), setBackground(), and clearForeground().

func (*QTextFormat) ClearForeground

func (this *QTextFormat) ClearForeground()

Clears the brush used to paint the document's foreground. The default brush will be used.

See also foreground(), setForeground(), and clearBackground().

func (*QTextFormat) ClearProperty

func (this *QTextFormat) ClearProperty(propertyId int)

Clears the value of the property given by propertyId

See also Property.

func (*QTextFormat) ColorProperty

func (this *QTextFormat) ColorProperty(propertyId int) *QColor

Returns the value of the property given by propertyId; if the property isn't of QVariant::Color type, an invalid color is returned instead.

See also setProperty(), boolProperty(), intProperty(), doubleProperty(), stringProperty(), lengthProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) DoubleProperty

func (this *QTextFormat) DoubleProperty(propertyId int) float64

Returns the value of the property specified by propertyId. If the property isn't of QVariant::Double or QMetaType::Float type, 0 is returned instead.

See also setProperty(), boolProperty(), intProperty(), stringProperty(), colorProperty(), lengthProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) Foreground

func (this *QTextFormat) Foreground() *QBrush

Returns the brush used to render foreground details, such as text, frame outlines, and table borders.

See also setForeground(), clearForeground(), and background().

func (*QTextFormat) FormatTypeItemName

func (this *QTextFormat) FormatTypeItemName(val int) string

func (*QTextFormat) GetCthis

func (this *QTextFormat) GetCthis() unsafe.Pointer

func (*QTextFormat) HasProperty

func (this *QTextFormat) HasProperty(propertyId int) bool

Returns true if the text format has a property with the given propertyId; otherwise returns false.

See also properties() and Property.

func (*QTextFormat) IntProperty

func (this *QTextFormat) IntProperty(propertyId int) int

Returns the value of the property specified by propertyId. If the property is not of QTextFormat::Integer type, 0 is returned instead.

See also setProperty(), boolProperty(), doubleProperty(), stringProperty(), colorProperty(), lengthProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) IsBlockFormat

func (this *QTextFormat) IsBlockFormat() bool

Returns true if this text format is a BlockFormat; otherwise returns false.

func (*QTextFormat) IsCharFormat

func (this *QTextFormat) IsCharFormat() bool

Returns true if this text format is a CharFormat; otherwise returns false.

func (*QTextFormat) IsEmpty

func (this *QTextFormat) IsEmpty() bool

Returns true if the format does not store any properties; false otherwise.

This function was introduced in Qt 5.3.

See also propertyCount() and properties().

func (*QTextFormat) IsFrameFormat

func (this *QTextFormat) IsFrameFormat() bool

Returns true if this text format is a FrameFormat; otherwise returns false.

func (*QTextFormat) IsImageFormat

func (this *QTextFormat) IsImageFormat() bool

Returns true if this text format is an image format; otherwise returns false.

func (*QTextFormat) IsListFormat

func (this *QTextFormat) IsListFormat() bool

Returns true if this text format is a ListFormat; otherwise returns false.

func (*QTextFormat) IsTableCellFormat

func (this *QTextFormat) IsTableCellFormat() bool

Returns true if this text format is a TableCellFormat; otherwise returns false.

This function was introduced in Qt 4.4.

func (*QTextFormat) IsTableFormat

func (this *QTextFormat) IsTableFormat() bool

Returns true if this text format is a TableFormat; otherwise returns false.

func (*QTextFormat) IsValid

func (this *QTextFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextFormat) LayoutDirection

func (this *QTextFormat) LayoutDirection() int

Returns the document's layout direction.

See also setLayoutDirection().

func (*QTextFormat) LengthProperty

func (this *QTextFormat) LengthProperty(propertyId int) *QTextLength

Returns the value of the property given by propertyId.

See also setProperty(), boolProperty(), intProperty(), doubleProperty(), stringProperty(), colorProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) Merge

func (this *QTextFormat) Merge(other QTextFormat_ITF)

Merges the other format with this format; where there are conflicts the other format takes precedence.

func (*QTextFormat) NewForInherit

func (*QTextFormat) NewForInherit() *QTextFormat

Creates a new text format with an InvalidFormat.

See also FormatType.

func (*QTextFormat) NewForInherit1

func (*QTextFormat) NewForInherit1(type_ int) *QTextFormat

Creates a new text format with an InvalidFormat.

See also FormatType.

func (*QTextFormat) NewFromPointer

func (*QTextFormat) NewFromPointer(cthis unsafe.Pointer) *QTextFormat

func (*QTextFormat) ObjectIndex

func (this *QTextFormat) ObjectIndex() int

Returns the index of the format object, or -1 if the format object is invalid.

See also setObjectIndex().

func (*QTextFormat) ObjectType

func (this *QTextFormat) ObjectType() int

Returns the text format's object type.

See also ObjectTypes and setObjectType().

func (*QTextFormat) ObjectTypesItemName

func (this *QTextFormat) ObjectTypesItemName(val int) string

func (*QTextFormat) Operator_equal

func (this *QTextFormat) Operator_equal(rhs QTextFormat_ITF) *QTextFormat

func (*QTextFormat) Operator_equal_equal

func (this *QTextFormat) Operator_equal_equal(rhs QTextFormat_ITF) bool

func (*QTextFormat) Operator_not_equal

func (this *QTextFormat) Operator_not_equal(rhs QTextFormat_ITF) bool

func (*QTextFormat) PageBreakFlagItemName

func (this *QTextFormat) PageBreakFlagItemName(val int) string

func (*QTextFormat) PenProperty

func (this *QTextFormat) PenProperty(propertyId int) *QPen

Returns the value of the property given by propertyId; if the property isn't of QVariant::Pen type, Qt::NoPen is returned instead.

See also setProperty(), boolProperty(), intProperty(), doubleProperty(), stringProperty(), lengthProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) Property

func (this *QTextFormat) Property(propertyId int) *qtcore.QVariant

Returns the property specified by the given propertyId.

See also setProperty() and Property.

func (*QTextFormat) PropertyCount

func (this *QTextFormat) PropertyCount() int

Returns the number of properties stored in the format.

This function was introduced in Qt 4.3.

func (*QTextFormat) PropertyItemName

func (this *QTextFormat) PropertyItemName(val int) string

func (*QTextFormat) QTextFormat_PTR

func (ptr *QTextFormat) QTextFormat_PTR() *QTextFormat

func (*QTextFormat) SetBackground

func (this *QTextFormat) SetBackground(brush QBrush_ITF)

Sets the brush use to paint the document's background to the brush specified.

See also background(), clearBackground(), and setForeground().

func (*QTextFormat) SetCthis

func (this *QTextFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextFormat) SetForeground

func (this *QTextFormat) SetForeground(brush QBrush_ITF)

Sets the foreground brush to the specified brush. The foreground brush is mostly used to render text.

See also foreground(), clearForeground(), and setBackground().

func (*QTextFormat) SetLayoutDirection

func (this *QTextFormat) SetLayoutDirection(direction int)

Sets the document's layout direction to the specified direction.

See also layoutDirection().

func (*QTextFormat) SetObjectIndex

func (this *QTextFormat) SetObjectIndex(object int)

Sets the format object's object index.

See also objectIndex().

func (*QTextFormat) SetObjectType

func (this *QTextFormat) SetObjectType(type_ int)

Sets the text format's object type to type.

See also ObjectTypes and objectType().

func (*QTextFormat) SetProperty

func (this *QTextFormat) SetProperty(propertyId int, value qtcore.QVariant_ITF)

Sets the property specified by the propertyId to the given value.

See also property() and Property.

func (*QTextFormat) StringProperty

func (this *QTextFormat) StringProperty(propertyId int) string

Returns the value of the property given by propertyId; if the property isn't of QVariant::String type, an empty string is returned instead.

See also setProperty(), boolProperty(), intProperty(), doubleProperty(), colorProperty(), lengthProperty(), lengthVectorProperty(), and Property.

func (*QTextFormat) Swap

func (this *QTextFormat) Swap(other QTextFormat_ITF)

Swaps this text format with other. This function is very fast and never fails.

This function was introduced in Qt 5.0.

func (*QTextFormat) ToBlockFormat

func (this *QTextFormat) ToBlockFormat() *QTextBlockFormat

Returns this format as a block format.

func (*QTextFormat) ToCharFormat

func (this *QTextFormat) ToCharFormat() *QTextCharFormat

Returns this format as a character format.

func (*QTextFormat) ToFrameFormat

func (this *QTextFormat) ToFrameFormat() *QTextFrameFormat

Returns this format as a frame format.

func (*QTextFormat) ToImageFormat

func (this *QTextFormat) ToImageFormat() *QTextImageFormat

Returns this format as an image format.

func (*QTextFormat) ToListFormat

func (this *QTextFormat) ToListFormat() *QTextListFormat

Returns this format as a list format.

func (*QTextFormat) ToTableCellFormat

func (this *QTextFormat) ToTableCellFormat() *QTextTableCellFormat

Returns this format as a table cell format.

This function was introduced in Qt 4.4.

func (*QTextFormat) ToTableFormat

func (this *QTextFormat) ToTableFormat() *QTextTableFormat

Returns this format as a table format.

func (*QTextFormat) Type

func (this *QTextFormat) Type() int

Returns the type of this format.

See also FormatType.

type QTextFormat_ITF

type QTextFormat_ITF interface {
	QTextFormat_PTR() *QTextFormat
}

type QTextFormat__FormatType

type QTextFormat__FormatType = int

This enum describes the text item a QTextFormat object is formatting.

See also QTextCharFormat, QTextBlockFormat, QTextListFormat, QTextTableFormat, and type().

const QTextFormat__BlockFormat QTextFormat__FormatType = 1

The object formats a text block

const QTextFormat__CharFormat QTextFormat__FormatType = 2

The object formats a single character

const QTextFormat__FrameFormat QTextFormat__FormatType = 5

The object formats a frame

const QTextFormat__InvalidFormat QTextFormat__FormatType = -1
const QTextFormat__ListFormat QTextFormat__FormatType = 3

The object formats a list

const QTextFormat__TableFormat QTextFormat__FormatType = 4
const QTextFormat__UserFormat QTextFormat__FormatType = 100

type QTextFormat__ObjectTypes

type QTextFormat__ObjectTypes = int

This enum describes what kind of QTextObject this format is associated with.

See also QTextObject, QTextTable, and QTextObject::format().

const QTextFormat__ImageObject QTextFormat__ObjectTypes = 1
const QTextFormat__NoObject QTextFormat__ObjectTypes = 0
const QTextFormat__TableCellObject QTextFormat__ObjectTypes = 3
const QTextFormat__TableObject QTextFormat__ObjectTypes = 2
const QTextFormat__UserObject QTextFormat__ObjectTypes = 4096

type QTextFormat__PageBreakFlag

type QTextFormat__PageBreakFlag = int
const QTextFormat__PageBreak_AlwaysAfter QTextFormat__PageBreakFlag = 16
const QTextFormat__PageBreak_AlwaysBefore QTextFormat__PageBreakFlag = 1
const QTextFormat__PageBreak_Auto QTextFormat__PageBreakFlag = 0

type QTextFormat__Property

type QTextFormat__Property = int

This enum describes the different properties a format can have.

Paragraph and character properties

Paragraph properties

Character properties

QTextFormat::FontCapitalizationFirstFontPropertySpecifies the capitalization type that is to be applied to the text.

List properties

Table and frame properties

Table cell properties

ConstantValue

Image properties

ConstantValue

Selection properties

Page break properties

See also property() and setProperty().

const QTextFormat__AnchorHref QTextFormat__Property = 8241
const QTextFormat__AnchorName QTextFormat__Property = 8242
const QTextFormat__BackgroundBrush QTextFormat__Property = 2080
const QTextFormat__BackgroundImageUrl QTextFormat__Property = 2083
const QTextFormat__BlockAlignment QTextFormat__Property = 4112
const QTextFormat__BlockBottomMargin QTextFormat__Property = 4145
const QTextFormat__BlockIndent QTextFormat__Property = 4160
const QTextFormat__BlockLeftMargin QTextFormat__Property = 4146
const QTextFormat__BlockNonBreakableLines QTextFormat__Property = 4176
const QTextFormat__BlockRightMargin QTextFormat__Property = 4147
const QTextFormat__BlockTopMargin QTextFormat__Property = 4144
const QTextFormat__BlockTrailingHorizontalRulerWidth QTextFormat__Property = 4192
const QTextFormat__CssFloat QTextFormat__Property = 2048
const QTextFormat__FirstFontProperty QTextFormat__Property = 8160
const QTextFormat__FontCapitalization QTextFormat__Property = 8160
const QTextFormat__FontFamily QTextFormat__Property = 8192
const QTextFormat__FontFixedPitch QTextFormat__Property = 8200
const QTextFormat__FontHintingPreference QTextFormat__Property = 8166
const QTextFormat__FontItalic QTextFormat__Property = 8196
const QTextFormat__FontKerning QTextFormat__Property = 8165
const QTextFormat__FontLetterSpacing QTextFormat__Property = 8161
const QTextFormat__FontLetterSpacingType QTextFormat__Property = 8243
const QTextFormat__FontOverline QTextFormat__Property = 8198
const QTextFormat__FontPixelSize QTextFormat__Property = 8201
const QTextFormat__FontPointSize QTextFormat__Property = 8193
const QTextFormat__FontSizeAdjustment QTextFormat__Property = 8194
const QTextFormat__FontSizeIncrement QTextFormat__Property = 8194
const QTextFormat__FontStretch QTextFormat__Property = 8244
const QTextFormat__FontStrikeOut QTextFormat__Property = 8199
const QTextFormat__FontStyleHint QTextFormat__Property = 8163
const QTextFormat__FontStyleStrategy QTextFormat__Property = 8164
const QTextFormat__FontUnderline QTextFormat__Property = 8197
const QTextFormat__FontWeight QTextFormat__Property = 8195
const QTextFormat__FontWordSpacing QTextFormat__Property = 8162
const QTextFormat__ForegroundBrush QTextFormat__Property = 2081
const QTextFormat__FrameBorder QTextFormat__Property = 16384
const QTextFormat__FrameBorderBrush QTextFormat__Property = 16393
const QTextFormat__FrameBorderStyle QTextFormat__Property = 16400
const QTextFormat__FrameBottomMargin QTextFormat__Property = 16390
const QTextFormat__FrameHeight QTextFormat__Property = 16388
const QTextFormat__FrameLeftMargin QTextFormat__Property = 16391
const QTextFormat__FrameMargin QTextFormat__Property = 16385
const QTextFormat__FramePadding QTextFormat__Property = 16386
const QTextFormat__FrameRightMargin QTextFormat__Property = 16392
const QTextFormat__FrameTopMargin QTextFormat__Property = 16389
const QTextFormat__FrameWidth QTextFormat__Property = 16387
const QTextFormat__FullWidthSelection QTextFormat__Property = 24576
const QTextFormat__HeadingLevel QTextFormat__Property = 4208
const QTextFormat__ImageHeight QTextFormat__Property = 20497
const QTextFormat__ImageName QTextFormat__Property = 20480
const QTextFormat__ImageQuality QTextFormat__Property = 20500
const QTextFormat__ImageWidth QTextFormat__Property = 20496
const QTextFormat__IsAnchor QTextFormat__Property = 8240
const QTextFormat__LastFontProperty QTextFormat__Property = 8201
const QTextFormat__LayoutDirection QTextFormat__Property = 2049
const QTextFormat__LineHeight QTextFormat__Property = 4168
const QTextFormat__LineHeightType QTextFormat__Property = 4169
const QTextFormat__ListIndent QTextFormat__Property = 12289
const QTextFormat__ListNumberPrefix QTextFormat__Property = 12290
const QTextFormat__ListNumberSuffix QTextFormat__Property = 12291
const QTextFormat__ListStyle QTextFormat__Property = 12288
const QTextFormat__ObjectIndex QTextFormat__Property = 0
const QTextFormat__ObjectType QTextFormat__Property = 12032
const QTextFormat__OutlinePen QTextFormat__Property = 2064
const QTextFormat__PageBreakPolicy QTextFormat__Property = 28672
const QTextFormat__TabPositions QTextFormat__Property = 4149
const QTextFormat__TableCellBottomPadding QTextFormat__Property = 18451
const QTextFormat__TableCellColumnSpan QTextFormat__Property = 18449
const QTextFormat__TableCellLeftPadding QTextFormat__Property = 18452
const QTextFormat__TableCellPadding QTextFormat__Property = 16643
const QTextFormat__TableCellRightPadding QTextFormat__Property = 18453
const QTextFormat__TableCellRowSpan QTextFormat__Property = 18448
const QTextFormat__TableCellSpacing QTextFormat__Property = 16642
const QTextFormat__TableCellTopPadding QTextFormat__Property = 18450
const QTextFormat__TableColumnWidthConstraints QTextFormat__Property = 16641
const QTextFormat__TableColumns QTextFormat__Property = 16640
const QTextFormat__TableHeaderRowCount QTextFormat__Property = 16644
const QTextFormat__TextIndent QTextFormat__Property = 4148
const QTextFormat__TextOutline QTextFormat__Property = 8226
const QTextFormat__TextToolTip QTextFormat__Property = 8228
const QTextFormat__TextUnderlineColor QTextFormat__Property = 8208
const QTextFormat__TextUnderlineStyle QTextFormat__Property = 8227
const QTextFormat__TextVerticalAlignment QTextFormat__Property = 8225
const QTextFormat__UserProperty QTextFormat__Property = 1048576

type QTextFragment

type QTextFragment struct {
	*qtrt.CObject
}

func NewQTextFragment

func NewQTextFragment() *QTextFragment

func NewQTextFragmentFromPointer

func NewQTextFragmentFromPointer(cthis unsafe.Pointer) *QTextFragment

func (*QTextFragment) CharFormat

func (this *QTextFragment) CharFormat() *QTextCharFormat

func (*QTextFragment) CharFormatIndex

func (this *QTextFragment) CharFormatIndex() int

func (*QTextFragment) Contains

func (this *QTextFragment) Contains(position int) bool

func (*QTextFragment) GetCthis

func (this *QTextFragment) GetCthis() unsafe.Pointer

func (*QTextFragment) IsValid

func (this *QTextFragment) IsValid() bool

func (*QTextFragment) Length

func (this *QTextFragment) Length() int

func (*QTextFragment) NewForInherit

func (*QTextFragment) NewForInherit() *QTextFragment

func (*QTextFragment) NewFromPointer

func (*QTextFragment) NewFromPointer(cthis unsafe.Pointer) *QTextFragment

func (*QTextFragment) Operator_equal

func (this *QTextFragment) Operator_equal(o QTextFragment_ITF) *QTextFragment

func (*QTextFragment) Operator_equal_equal

func (this *QTextFragment) Operator_equal_equal(o QTextFragment_ITF) bool

func (*QTextFragment) Operator_less_than

func (this *QTextFragment) Operator_less_than(o QTextFragment_ITF) bool

func (*QTextFragment) Operator_not_equal

func (this *QTextFragment) Operator_not_equal(o QTextFragment_ITF) bool

func (*QTextFragment) Position

func (this *QTextFragment) Position() int

func (*QTextFragment) QTextFragment_PTR

func (ptr *QTextFragment) QTextFragment_PTR() *QTextFragment

func (*QTextFragment) SetCthis

func (this *QTextFragment) SetCthis(cthis unsafe.Pointer)

func (*QTextFragment) Text

func (this *QTextFragment) Text() string

type QTextFragment_ITF

type QTextFragment_ITF interface {
	QTextFragment_PTR() *QTextFragment
}

type QTextFrame

type QTextFrame struct {
	*QTextObject
}

func NewQTextFrame

func NewQTextFrame(doc QTextDocument_ITF) *QTextFrame

func NewQTextFrameFromPointer

func NewQTextFrameFromPointer(cthis unsafe.Pointer) *QTextFrame

func (*QTextFrame) Begin

func (this *QTextFrame) Begin() unsafe.Pointer

func (*QTextFrame) End

func (this *QTextFrame) End() unsafe.Pointer

func (*QTextFrame) FirstCursorPosition

func (this *QTextFrame) FirstCursorPosition() *QTextCursor

func (*QTextFrame) FirstPosition

func (this *QTextFrame) FirstPosition() int

func (*QTextFrame) FrameFormat

func (this *QTextFrame) FrameFormat() *QTextFrameFormat

func (*QTextFrame) GetCthis

func (this *QTextFrame) GetCthis() unsafe.Pointer

func (*QTextFrame) LastCursorPosition

func (this *QTextFrame) LastCursorPosition() *QTextCursor

func (*QTextFrame) LastPosition

func (this *QTextFrame) LastPosition() int

func (*QTextFrame) LayoutData

func (this *QTextFrame) LayoutData() *QTextFrameLayoutData

func (*QTextFrame) MetaObject

func (this *QTextFrame) MetaObject() *qtcore.QMetaObject

func (*QTextFrame) NewForInherit

func (*QTextFrame) NewForInherit(doc QTextDocument_ITF) *QTextFrame

func (*QTextFrame) NewFromPointer

func (*QTextFrame) NewFromPointer(cthis unsafe.Pointer) *QTextFrame

func (*QTextFrame) ParentFrame

func (this *QTextFrame) ParentFrame() *QTextFrame

func (*QTextFrame) QTextFrame_PTR

func (ptr *QTextFrame) QTextFrame_PTR() *QTextFrame

func (*QTextFrame) SetCthis

func (this *QTextFrame) SetCthis(cthis unsafe.Pointer)

func (*QTextFrame) SetFrameFormat

func (this *QTextFrame) SetFrameFormat(format QTextFrameFormat_ITF)

func (*QTextFrame) SetLayoutData

func (this *QTextFrame) SetLayoutData(data QTextFrameLayoutData_ITF)

type QTextFrameFormat

type QTextFrameFormat struct {
	*QTextFormat
}

func NewQTextFrameFormat

func NewQTextFrameFormat() *QTextFrameFormat

func NewQTextFrameFormat1

func NewQTextFrameFormat1(fmt_ QTextFormat_ITF) *QTextFrameFormat

func NewQTextFrameFormatFromPointer

func NewQTextFrameFormatFromPointer(cthis unsafe.Pointer) *QTextFrameFormat

func (*QTextFrameFormat) Border

func (this *QTextFrameFormat) Border() float64

func (*QTextFrameFormat) BorderBrush

func (this *QTextFrameFormat) BorderBrush() *QBrush

func (*QTextFrameFormat) BorderStyle

func (this *QTextFrameFormat) BorderStyle() int

func (*QTextFrameFormat) BorderStyleItemName

func (this *QTextFrameFormat) BorderStyleItemName(val int) string

func (*QTextFrameFormat) BottomMargin

func (this *QTextFrameFormat) BottomMargin() float64

func (*QTextFrameFormat) GetCthis

func (this *QTextFrameFormat) GetCthis() unsafe.Pointer

func (*QTextFrameFormat) Height

func (this *QTextFrameFormat) Height() *QTextLength

func (*QTextFrameFormat) IsValid

func (this *QTextFrameFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextFrameFormat) LeftMargin

func (this *QTextFrameFormat) LeftMargin() float64

func (*QTextFrameFormat) Margin

func (this *QTextFrameFormat) Margin() float64

func (*QTextFrameFormat) NewForInherit

func (*QTextFrameFormat) NewForInherit() *QTextFrameFormat

func (*QTextFrameFormat) NewForInherit1

func (*QTextFrameFormat) NewForInherit1(fmt_ QTextFormat_ITF) *QTextFrameFormat

func (*QTextFrameFormat) NewFromPointer

func (*QTextFrameFormat) NewFromPointer(cthis unsafe.Pointer) *QTextFrameFormat

func (*QTextFrameFormat) Padding

func (this *QTextFrameFormat) Padding() float64

func (*QTextFrameFormat) PageBreakPolicy

func (this *QTextFrameFormat) PageBreakPolicy() int

func (*QTextFrameFormat) Position

func (this *QTextFrameFormat) Position() int

func (*QTextFrameFormat) PositionItemName

func (this *QTextFrameFormat) PositionItemName(val int) string

func (*QTextFrameFormat) QTextFrameFormat_PTR

func (ptr *QTextFrameFormat) QTextFrameFormat_PTR() *QTextFrameFormat

func (*QTextFrameFormat) RightMargin

func (this *QTextFrameFormat) RightMargin() float64

func (*QTextFrameFormat) SetBorder

func (this *QTextFrameFormat) SetBorder(border float64)

func (*QTextFrameFormat) SetBorderBrush

func (this *QTextFrameFormat) SetBorderBrush(brush QBrush_ITF)

func (*QTextFrameFormat) SetBorderStyle

func (this *QTextFrameFormat) SetBorderStyle(style int)

func (*QTextFrameFormat) SetBottomMargin

func (this *QTextFrameFormat) SetBottomMargin(margin float64)

func (*QTextFrameFormat) SetCthis

func (this *QTextFrameFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextFrameFormat) SetHeight

func (this *QTextFrameFormat) SetHeight(height float64)

func (*QTextFrameFormat) SetHeight1

func (this *QTextFrameFormat) SetHeight1(height QTextLength_ITF)

func (*QTextFrameFormat) SetLeftMargin

func (this *QTextFrameFormat) SetLeftMargin(margin float64)

func (*QTextFrameFormat) SetMargin

func (this *QTextFrameFormat) SetMargin(margin float64)

func (*QTextFrameFormat) SetPadding

func (this *QTextFrameFormat) SetPadding(padding float64)

func (*QTextFrameFormat) SetPageBreakPolicy

func (this *QTextFrameFormat) SetPageBreakPolicy(flags int)

func (*QTextFrameFormat) SetPosition

func (this *QTextFrameFormat) SetPosition(f int)

func (*QTextFrameFormat) SetRightMargin

func (this *QTextFrameFormat) SetRightMargin(margin float64)

func (*QTextFrameFormat) SetTopMargin

func (this *QTextFrameFormat) SetTopMargin(margin float64)

func (*QTextFrameFormat) SetWidth

func (this *QTextFrameFormat) SetWidth(width float64)

func (*QTextFrameFormat) SetWidth1

func (this *QTextFrameFormat) SetWidth1(length QTextLength_ITF)

func (*QTextFrameFormat) TopMargin

func (this *QTextFrameFormat) TopMargin() float64

func (*QTextFrameFormat) Width

func (this *QTextFrameFormat) Width() *QTextLength

type QTextFrameFormat_ITF

type QTextFrameFormat_ITF interface {
	QTextFormat_ITF
	QTextFrameFormat_PTR() *QTextFrameFormat
}

type QTextFrameFormat__BorderStyle

type QTextFrameFormat__BorderStyle = int
const QTextFrameFormat__BorderStyle_Dashed QTextFrameFormat__BorderStyle = 2
const QTextFrameFormat__BorderStyle_DotDash QTextFrameFormat__BorderStyle = 5
const QTextFrameFormat__BorderStyle_DotDotDash QTextFrameFormat__BorderStyle = 6
const QTextFrameFormat__BorderStyle_Dotted QTextFrameFormat__BorderStyle = 1
const QTextFrameFormat__BorderStyle_Double QTextFrameFormat__BorderStyle = 4
const QTextFrameFormat__BorderStyle_Groove QTextFrameFormat__BorderStyle = 7
const QTextFrameFormat__BorderStyle_Inset QTextFrameFormat__BorderStyle = 9
const QTextFrameFormat__BorderStyle_None QTextFrameFormat__BorderStyle = 0
const QTextFrameFormat__BorderStyle_Outset QTextFrameFormat__BorderStyle = 10
const QTextFrameFormat__BorderStyle_Ridge QTextFrameFormat__BorderStyle = 8
const QTextFrameFormat__BorderStyle_Solid QTextFrameFormat__BorderStyle = 3

type QTextFrameFormat__Position

type QTextFrameFormat__Position = int
const QTextFrameFormat__FloatLeft QTextFrameFormat__Position = 1
const QTextFrameFormat__FloatRight QTextFrameFormat__Position = 2
const QTextFrameFormat__InFlow QTextFrameFormat__Position = 0

type QTextFrameLayoutData

type QTextFrameLayoutData struct {
	*qtrt.CObject
}

func NewQTextFrameLayoutDataFromPointer

func NewQTextFrameLayoutDataFromPointer(cthis unsafe.Pointer) *QTextFrameLayoutData

func (*QTextFrameLayoutData) GetCthis

func (this *QTextFrameLayoutData) GetCthis() unsafe.Pointer

func (*QTextFrameLayoutData) NewFromPointer

func (*QTextFrameLayoutData) NewFromPointer(cthis unsafe.Pointer) *QTextFrameLayoutData

func (*QTextFrameLayoutData) QTextFrameLayoutData_PTR

func (ptr *QTextFrameLayoutData) QTextFrameLayoutData_PTR() *QTextFrameLayoutData

func (*QTextFrameLayoutData) SetCthis

func (this *QTextFrameLayoutData) SetCthis(cthis unsafe.Pointer)

type QTextFrameLayoutData_ITF

type QTextFrameLayoutData_ITF interface {
	QTextFrameLayoutData_PTR() *QTextFrameLayoutData
}

type QTextFrameList

type QTextFrameList struct {
	*qtrt.CObject
}

body block begin

func (*QTextFrameList) Append0

func (this *QTextFrameList) Append0()

void append(const T &)

func (*QTextFrameList) Append1

func (this *QTextFrameList) Append1()

void append(const QList<T> &)

func (*QTextFrameList) At0

func (this *QTextFrameList) At0() *QTextFrame

const T & at(int)

func (*QTextFrameList) Back0

func (this *QTextFrameList) Back0() *QTextFrame

T & back()

func (*QTextFrameList) Back1

func (this *QTextFrameList) Back1() *QTextFrame

const T & back()

func (*QTextFrameList) Begin0

func (this *QTextFrameList) Begin0()

QList::iterator begin()

func (*QTextFrameList) Begin1

func (this *QTextFrameList) Begin1()

QList::const_iterator begin()

func (*QTextFrameList) Cbegin0

func (this *QTextFrameList) Cbegin0()

QList::const_iterator cbegin()

func (*QTextFrameList) Cend0

func (this *QTextFrameList) Cend0()

QList::const_iterator cend()

func (*QTextFrameList) Clear0

func (this *QTextFrameList) Clear0()

void clear()

func (*QTextFrameList) ConstBegin0

func (this *QTextFrameList) ConstBegin0()

QList::const_iterator constBegin()

func (*QTextFrameList) ConstEnd0

func (this *QTextFrameList) ConstEnd0()

QList::const_iterator constEnd()

func (*QTextFrameList) ConstFirst0

func (this *QTextFrameList) ConstFirst0() *QTextFrame

const T & constFirst()

func (*QTextFrameList) ConstLast0

func (this *QTextFrameList) ConstLast0() *QTextFrame

const T & constLast()

func (*QTextFrameList) Contains0

func (this *QTextFrameList) Contains0() bool

bool contains(const T &)

func (*QTextFrameList) Contains_impl0

func (this *QTextFrameList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QTextFrameList) Contains_impl1

func (this *QTextFrameList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QTextFrameList) Count0

func (this *QTextFrameList) Count0() int

int count(const T &)

func (*QTextFrameList) Count1

func (this *QTextFrameList) Count1() int

int count()

func (*QTextFrameList) Count_impl0

func (this *QTextFrameList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QTextFrameList) Count_impl1

func (this *QTextFrameList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QTextFrameList) Crbegin0

func (this *QTextFrameList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QTextFrameList) Crend0

func (this *QTextFrameList) Crend0()

QList::const_reverse_iterator crend()

func (*QTextFrameList) Dealloc0

func (this *QTextFrameList) Dealloc0()

void dealloc(QListData::Data *)

func (*QTextFrameList) Detach0

func (this *QTextFrameList) Detach0()

void detach()

func (*QTextFrameList) DetachShared0

func (this *QTextFrameList) DetachShared0()

void detachShared()

func (*QTextFrameList) Detach_helper0

func (this *QTextFrameList) Detach_helper0()

void detach_helper(int)

func (*QTextFrameList) Detach_helper1

func (this *QTextFrameList) Detach_helper1()

void detach_helper()

func (*QTextFrameList) Detach_helper_grow0

func (this *QTextFrameList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QTextFrameList) Empty0

func (this *QTextFrameList) Empty0() bool

bool empty()

func (*QTextFrameList) End0

func (this *QTextFrameList) End0()

QList::iterator end()

func (*QTextFrameList) End1

func (this *QTextFrameList) End1()

QList::const_iterator end()

func (*QTextFrameList) EndsWith0

func (this *QTextFrameList) EndsWith0() bool

bool endsWith(const T &)

func (*QTextFrameList) Erase0

func (this *QTextFrameList) Erase0()

QList::iterator erase(QList::iterator)

func (*QTextFrameList) Erase1

func (this *QTextFrameList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QTextFrameList) First0

func (this *QTextFrameList) First0() *QTextFrame

T & first()

func (*QTextFrameList) First1

func (this *QTextFrameList) First1() *QTextFrame

const T & first()

func (*QTextFrameList) FromSet0

func (this *QTextFrameList) FromSet0() *QTextFrameList

QList<T> fromSet(const QSet<T> &)

func (*QTextFrameList) FromStdList0

func (this *QTextFrameList) FromStdList0() *QTextFrameList

QList<T> fromStdList(const std::list<T> &)

func (*QTextFrameList) FromVector0

func (this *QTextFrameList) FromVector0() *QTextFrameList

QList<T> fromVector(const QVector<T> &)

func (*QTextFrameList) Front0

func (this *QTextFrameList) Front0() *QTextFrame

T & front()

func (*QTextFrameList) Front1

func (this *QTextFrameList) Front1() *QTextFrame

const T & front()

func (*QTextFrameList) IndexOf0

func (this *QTextFrameList) IndexOf0() int

int indexOf(const T &, int)

func (*QTextFrameList) Insert0

func (this *QTextFrameList) Insert0()

void insert(int, const T &)

func (*QTextFrameList) Insert1

func (this *QTextFrameList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QTextFrameList) IsDetached0

func (this *QTextFrameList) IsDetached0() bool

bool isDetached()

func (*QTextFrameList) IsEmpty0

func (this *QTextFrameList) IsEmpty0() bool

bool isEmpty()

func (*QTextFrameList) IsSharedWith0

func (this *QTextFrameList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QTextFrameList) IsValidIterator0

func (this *QTextFrameList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QTextFrameList) Last0

func (this *QTextFrameList) Last0() *QTextFrame

T & last()

func (*QTextFrameList) Last1

func (this *QTextFrameList) Last1() *QTextFrame

const T & last()

func (*QTextFrameList) LastIndexOf0

func (this *QTextFrameList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QTextFrameList) Length0

func (this *QTextFrameList) Length0() int

int length()

func (*QTextFrameList) Mid0

func (this *QTextFrameList) Mid0() *QTextFrameList

QList<T> mid(int, int)

func (*QTextFrameList) Move0

func (this *QTextFrameList) Move0()

void move(int, int)

func (*QTextFrameList) Node_construct0

func (this *QTextFrameList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QTextFrameList) Node_copy0

func (this *QTextFrameList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QTextFrameList) Node_destruct0

func (this *QTextFrameList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QTextFrameList) Node_destruct1

func (this *QTextFrameList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QTextFrameList) Op_eq_impl0

func (this *QTextFrameList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QTextFrameList) Op_eq_impl1

func (this *QTextFrameList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QTextFrameList) Operator_add0

func (this *QTextFrameList) Operator_add0() *QTextFrameList

QList<T> operator+(const QList<T> &)

func (*QTextFrameList) Operator_add_equal0

func (this *QTextFrameList) Operator_add_equal0() *QTextFrameList

QList<T> & operator+=(const QList<T> &)

func (*QTextFrameList) Operator_add_equal1

func (this *QTextFrameList) Operator_add_equal1() *QTextFrameList

QList<T> & operator+=(const T &)

func (*QTextFrameList) Operator_equal0

func (this *QTextFrameList) Operator_equal0() *QTextFrameList

QList<T> & operator=(const QList<T> &)

func (*QTextFrameList) Operator_equal1

func (this *QTextFrameList) Operator_equal1() *QTextFrameList

QList<T> & operator=(QList<T> &&)

func (*QTextFrameList) Operator_equal_equal0

func (this *QTextFrameList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QTextFrameList) Operator_get_index0

func (this *QTextFrameList) Operator_get_index0() *QTextFrame

const T & operator[](int)

func (*QTextFrameList) Operator_get_index1

func (this *QTextFrameList) Operator_get_index1() *QTextFrame

T & operator[](int)

func (*QTextFrameList) Operator_left_shift0

func (this *QTextFrameList) Operator_left_shift0() *QTextFrameList

QList<T> & operator<<(const T &)

func (*QTextFrameList) Operator_left_shift1

func (this *QTextFrameList) Operator_left_shift1() *QTextFrameList

QList<T> & operator<<(const QList<T> &)

func (*QTextFrameList) Operator_not_equal0

func (this *QTextFrameList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QTextFrameList) Pop_back0

func (this *QTextFrameList) Pop_back0()

void pop_back()

func (*QTextFrameList) Pop_front0

func (this *QTextFrameList) Pop_front0()

void pop_front()

func (*QTextFrameList) Prepend0

func (this *QTextFrameList) Prepend0()

void prepend(const T &)

func (*QTextFrameList) Push_back0

func (this *QTextFrameList) Push_back0()

void push_back(const T &)

func (*QTextFrameList) Push_front0

func (this *QTextFrameList) Push_front0()

void push_front(const T &)

func (*QTextFrameList) Rbegin0

func (this *QTextFrameList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QTextFrameList) Rbegin1

func (this *QTextFrameList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QTextFrameList) RemoveAll0

func (this *QTextFrameList) RemoveAll0() int

int removeAll(const T &)

func (*QTextFrameList) RemoveAt0

func (this *QTextFrameList) RemoveAt0()

void removeAt(int)

func (*QTextFrameList) RemoveFirst0

func (this *QTextFrameList) RemoveFirst0()

void removeFirst()

func (*QTextFrameList) RemoveLast0

func (this *QTextFrameList) RemoveLast0()

void removeLast()

func (*QTextFrameList) RemoveOne0

func (this *QTextFrameList) RemoveOne0() bool

bool removeOne(const T &)

func (*QTextFrameList) Rend0

func (this *QTextFrameList) Rend0()

QList::reverse_iterator rend()

func (*QTextFrameList) Rend1

func (this *QTextFrameList) Rend1()

QList::const_reverse_iterator rend()

func (*QTextFrameList) Replace0

func (this *QTextFrameList) Replace0()

void replace(int, const T &)

func (*QTextFrameList) Reserve0

func (this *QTextFrameList) Reserve0()

void reserve(int)

func (*QTextFrameList) SetSharable0

func (this *QTextFrameList) SetSharable0()

void setSharable(bool)

func (*QTextFrameList) Size0

func (this *QTextFrameList) Size0() int

int size()

func (*QTextFrameList) StartsWith0

func (this *QTextFrameList) StartsWith0() bool

bool startsWith(const T &)

func (*QTextFrameList) Swap0

func (this *QTextFrameList) Swap0()

void swap(QList<T> &)

func (*QTextFrameList) Swap1

func (this *QTextFrameList) Swap1()

void swap(int, int)

func (*QTextFrameList) TakeAt0

func (this *QTextFrameList) TakeAt0() *QTextFrame

T takeAt(int)

func (*QTextFrameList) TakeFirst0

func (this *QTextFrameList) TakeFirst0() *QTextFrame

T takeFirst()

func (*QTextFrameList) TakeLast0

func (this *QTextFrameList) TakeLast0() *QTextFrame

T takeLast()

func (*QTextFrameList) ToSet0

func (this *QTextFrameList) ToSet0()

QSet<T> toSet()

func (*QTextFrameList) ToStdList0

func (this *QTextFrameList) ToStdList0()

std::list<T> toStdList()

func (*QTextFrameList) ToVector0

func (this *QTextFrameList) ToVector0()

QVector<T> toVector()

func (*QTextFrameList) Value0

func (this *QTextFrameList) Value0() *QTextFrame

T value(int)

func (*QTextFrameList) Value1

func (this *QTextFrameList) Value1() *QTextFrame

T value(int, const T &)

type QTextFrame_ITF

type QTextFrame_ITF interface {
	QTextObject_ITF
	QTextFrame_PTR() *QTextFrame
}

type QTextImageFormat

type QTextImageFormat struct {
	*QTextCharFormat
}

func NewQTextImageFormat

func NewQTextImageFormat() *QTextImageFormat

func NewQTextImageFormat1

func NewQTextImageFormat1(format QTextFormat_ITF) *QTextImageFormat

func NewQTextImageFormatFromPointer

func NewQTextImageFormatFromPointer(cthis unsafe.Pointer) *QTextImageFormat

func (*QTextImageFormat) GetCthis

func (this *QTextImageFormat) GetCthis() unsafe.Pointer

func (*QTextImageFormat) Height

func (this *QTextImageFormat) Height() float64

func (*QTextImageFormat) IsValid

func (this *QTextImageFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextImageFormat) Name

func (this *QTextImageFormat) Name() string

func (*QTextImageFormat) NewForInherit

func (*QTextImageFormat) NewForInherit() *QTextImageFormat

func (*QTextImageFormat) NewForInherit1

func (*QTextImageFormat) NewForInherit1(format QTextFormat_ITF) *QTextImageFormat

func (*QTextImageFormat) NewFromPointer

func (*QTextImageFormat) NewFromPointer(cthis unsafe.Pointer) *QTextImageFormat

func (*QTextImageFormat) QTextImageFormat_PTR

func (ptr *QTextImageFormat) QTextImageFormat_PTR() *QTextImageFormat

func (*QTextImageFormat) Quality

func (this *QTextImageFormat) Quality() int

func (*QTextImageFormat) SetCthis

func (this *QTextImageFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextImageFormat) SetHeight

func (this *QTextImageFormat) SetHeight(height float64)

func (*QTextImageFormat) SetName

func (this *QTextImageFormat) SetName(name string)

func (*QTextImageFormat) SetQuality

func (this *QTextImageFormat) SetQuality(quality int)

func (*QTextImageFormat) SetQualityp

func (this *QTextImageFormat) SetQualityp()

func (*QTextImageFormat) SetWidth

func (this *QTextImageFormat) SetWidth(width float64)

func (*QTextImageFormat) Width

func (this *QTextImageFormat) Width() float64

type QTextImageFormat_ITF

type QTextImageFormat_ITF interface {
	QTextCharFormat_ITF
	QTextImageFormat_PTR() *QTextImageFormat
}

type QTextInlineObject

type QTextInlineObject struct {
	*qtrt.CObject
}

func NewQTextInlineObject

func NewQTextInlineObject() *QTextInlineObject

func NewQTextInlineObjectFromPointer

func NewQTextInlineObjectFromPointer(cthis unsafe.Pointer) *QTextInlineObject

func (*QTextInlineObject) Ascent

func (this *QTextInlineObject) Ascent() float64

func (*QTextInlineObject) Descent

func (this *QTextInlineObject) Descent() float64

func (*QTextInlineObject) Format

func (this *QTextInlineObject) Format() *QTextFormat

func (*QTextInlineObject) FormatIndex

func (this *QTextInlineObject) FormatIndex() int

func (*QTextInlineObject) GetCthis

func (this *QTextInlineObject) GetCthis() unsafe.Pointer

func (*QTextInlineObject) Height

func (this *QTextInlineObject) Height() float64

func (*QTextInlineObject) IsValid

func (this *QTextInlineObject) IsValid() bool

func (*QTextInlineObject) NewForInherit

func (*QTextInlineObject) NewForInherit() *QTextInlineObject

func (*QTextInlineObject) NewFromPointer

func (*QTextInlineObject) NewFromPointer(cthis unsafe.Pointer) *QTextInlineObject

func (*QTextInlineObject) QTextInlineObject_PTR

func (ptr *QTextInlineObject) QTextInlineObject_PTR() *QTextInlineObject

func (*QTextInlineObject) Rect

func (this *QTextInlineObject) Rect() *qtcore.QRectF

func (*QTextInlineObject) SetAscent

func (this *QTextInlineObject) SetAscent(a float64)

func (*QTextInlineObject) SetCthis

func (this *QTextInlineObject) SetCthis(cthis unsafe.Pointer)

func (*QTextInlineObject) SetDescent

func (this *QTextInlineObject) SetDescent(d float64)

func (*QTextInlineObject) SetWidth

func (this *QTextInlineObject) SetWidth(w float64)

func (*QTextInlineObject) TextDirection

func (this *QTextInlineObject) TextDirection() int

func (*QTextInlineObject) TextPosition

func (this *QTextInlineObject) TextPosition() int

func (*QTextInlineObject) Width

func (this *QTextInlineObject) Width() float64

type QTextInlineObject_ITF

type QTextInlineObject_ITF interface {
	QTextInlineObject_PTR() *QTextInlineObject
}

type QTextItem

type QTextItem struct {
	*qtrt.CObject
}

func NewQTextItemFromPointer

func NewQTextItemFromPointer(cthis unsafe.Pointer) *QTextItem

func (*QTextItem) Ascent

func (this *QTextItem) Ascent() float64

func (*QTextItem) Descent

func (this *QTextItem) Descent() float64

func (*QTextItem) Font

func (this *QTextItem) Font() *QFont

func (*QTextItem) GetCthis

func (this *QTextItem) GetCthis() unsafe.Pointer

func (*QTextItem) NewFromPointer

func (*QTextItem) NewFromPointer(cthis unsafe.Pointer) *QTextItem

func (*QTextItem) QTextItem_PTR

func (ptr *QTextItem) QTextItem_PTR() *QTextItem

func (*QTextItem) RenderFlagItemName

func (this *QTextItem) RenderFlagItemName(val int) string

func (*QTextItem) RenderFlags

func (this *QTextItem) RenderFlags() int

func (*QTextItem) SetCthis

func (this *QTextItem) SetCthis(cthis unsafe.Pointer)

func (*QTextItem) Text

func (this *QTextItem) Text() string

func (*QTextItem) Width

func (this *QTextItem) Width() float64

type QTextItem_ITF

type QTextItem_ITF interface {
	QTextItem_PTR() *QTextItem
}

type QTextItem__RenderFlag

type QTextItem__RenderFlag = int
const QTextItem__Dummy QTextItem__RenderFlag = -1
const QTextItem__Overline QTextItem__RenderFlag = 16
const QTextItem__RightToLeft QTextItem__RenderFlag = 1
const QTextItem__StrikeOut QTextItem__RenderFlag = 64
const QTextItem__Underline QTextItem__RenderFlag = 32

type QTextLayout

type QTextLayout struct {
	*qtrt.CObject
}

func NewQTextLayout

func NewQTextLayout() *QTextLayout

func NewQTextLayout1

func NewQTextLayout1(text string) *QTextLayout

func NewQTextLayout2

func NewQTextLayout2(text string, font QFont_ITF, paintdevice QPaintDevice_ITF) *QTextLayout

func NewQTextLayout2p

func NewQTextLayout2p(text string, font QFont_ITF) *QTextLayout

func NewQTextLayout3

func NewQTextLayout3(b QTextBlock_ITF) *QTextLayout

func NewQTextLayoutFromPointer

func NewQTextLayoutFromPointer(cthis unsafe.Pointer) *QTextLayout

func (*QTextLayout) BeginLayout

func (this *QTextLayout) BeginLayout()

Begins the layout process.

Warning: This will invalidate the layout, so all existing QTextLine objects that refer to the previous contents should now be discarded.

See also endLayout().

func (*QTextLayout) BoundingRect

func (this *QTextLayout) BoundingRect() *qtcore.QRectF

The smallest rectangle that contains all the lines in the layout.

func (*QTextLayout) CacheEnabled

func (this *QTextLayout) CacheEnabled() bool

Returns true if the complete layout information is cached; otherwise returns false.

See also setCacheEnabled().

func (*QTextLayout) ClearAdditionalFormats

func (this *QTextLayout) ClearAdditionalFormats()

func (*QTextLayout) ClearFormats

func (this *QTextLayout) ClearFormats()

Clears the list of additional formats supported by the text layout.

This function was introduced in Qt 5.6.

See also formats() and setFormats().

func (*QTextLayout) ClearLayout

func (this *QTextLayout) ClearLayout()

Clears the line information in the layout. After having called this function, lineCount() returns 0.

Warning: This will invalidate the layout, so all existing QTextLine objects that refer to the previous contents should now be discarded.

This function was introduced in Qt 4.4.

func (*QTextLayout) CreateLine

func (this *QTextLayout) CreateLine() *QTextLine

Returns a new text line to be laid out if there is text to be inserted into the layout; otherwise returns an invalid text line.

The text layout creates a new line object that starts after the last line in the layout, or at the beginning if the layout is empty. The layout maintains an internal cursor, and each line is filled with text from the cursor position onwards when the QTextLine::setLineWidth() function is called.

Once QTextLine::setLineWidth() is called, a new line can be created and filled with text. Repeating this process will lay out the whole block of text contained in the QTextLayout. If there is no text left to be inserted into the layout, the QTextLine returned will not be valid (isValid() will return false).

func (*QTextLayout) CursorModeItemName

func (this *QTextLayout) CursorModeItemName(val int) string

func (*QTextLayout) CursorMoveStyle

func (this *QTextLayout) CursorMoveStyle() int

The cursor movement style of this QTextLayout. The default is Qt::LogicalMoveStyle.

See also setCursorMoveStyle().

func (*QTextLayout) DrawCursor

func (this *QTextLayout) DrawCursor(p QPainter_ITF, pos qtcore.QPointF_ITF, cursorPosition int)

Draws a text cursor with the current pen and the specified width at the given position using the painter specified. The corresponding position within the text is specified by cursorPosition.

func (*QTextLayout) DrawCursor1

func (this *QTextLayout) DrawCursor1(p QPainter_ITF, pos qtcore.QPointF_ITF, cursorPosition int, width int)

Draws a text cursor with the current pen and the specified width at the given position using the painter specified. The corresponding position within the text is specified by cursorPosition.

func (*QTextLayout) EndLayout

func (this *QTextLayout) EndLayout()

Ends the layout process.

See also beginLayout().

func (*QTextLayout) Font

func (this *QTextLayout) Font() *QFont

Returns the current font that is used for the layout, or a default font if none is set.

See also setFont().

func (*QTextLayout) GetCthis

func (this *QTextLayout) GetCthis() unsafe.Pointer

func (*QTextLayout) IsValidCursorPosition

func (this *QTextLayout) IsValidCursorPosition(pos int) bool

/ Returns true if position pos is a valid cursor position.

In a Unicode context some positions in the text are not valid cursor positions, because the position is inside a Unicode surrogate or a grapheme cluster.

A grapheme cluster is a sequence of two or more Unicode characters that form one indivisible entity on the screen. For example the latin character `Ä' can be represented in Unicode by two characters, `A' (0x41), and the combining diaresis (0x308). A text cursor can only validly be positioned before or after these two characters, never between them since that wouldn't make sense. In indic languages every syllable forms a grapheme cluster.

func (*QTextLayout) LeftCursorPosition

func (this *QTextLayout) LeftCursorPosition(oldPos int) int

Returns the cursor position to the left of oldPos, next to it. It's dependent on the visual position of characters, after bi-directional reordering.

See also rightCursorPosition() and previousCursorPosition().

func (*QTextLayout) LineAt

func (this *QTextLayout) LineAt(i int) *QTextLine

Returns the i-th line of text in this text layout.

See also lineCount() and lineForTextPosition().

func (*QTextLayout) LineCount

func (this *QTextLayout) LineCount() int

Returns the number of lines in this text layout.

See also lineAt().

func (*QTextLayout) LineForTextPosition

func (this *QTextLayout) LineForTextPosition(pos int) *QTextLine

Returns the line that contains the cursor position specified by pos.

See also isValidCursorPosition() and lineAt().

func (*QTextLayout) MaximumWidth

func (this *QTextLayout) MaximumWidth() float64

The maximum width the layout could expand to; this is essentially the width of the entire text.

Warning: This function only returns a valid value after the layout has been done.

See also minimumWidth().

func (*QTextLayout) MinimumWidth

func (this *QTextLayout) MinimumWidth() float64

The minimum width the layout needs. This is the width of the layout's smallest non-breakable substring.

Warning: This function only returns a valid value after the layout has been done.

See also maximumWidth().

func (*QTextLayout) NewForInherit

func (*QTextLayout) NewForInherit() *QTextLayout

Constructs an empty text layout.

See also setText().

func (*QTextLayout) NewForInherit1

func (*QTextLayout) NewForInherit1(text string) *QTextLayout

Constructs an empty text layout.

See also setText().

func (*QTextLayout) NewForInherit2

func (*QTextLayout) NewForInherit2(text string, font QFont_ITF, paintdevice QPaintDevice_ITF) *QTextLayout

Constructs an empty text layout.

See also setText().

func (*QTextLayout) NewForInherit2p

func (*QTextLayout) NewForInherit2p(text string, font QFont_ITF) *QTextLayout

Constructs an empty text layout.

See also setText().

func (*QTextLayout) NewForInherit3

func (*QTextLayout) NewForInherit3(b QTextBlock_ITF) *QTextLayout

Constructs an empty text layout.

See also setText().

func (*QTextLayout) NewFromPointer

func (*QTextLayout) NewFromPointer(cthis unsafe.Pointer) *QTextLayout

func (*QTextLayout) NextCursorPosition

func (this *QTextLayout) NextCursorPosition(oldPos int, mode int) int

Returns the next valid cursor position after oldPos that respects the given cursor mode. Returns value of oldPos, if oldPos is not a valid cursor position.

See also isValidCursorPosition() and previousCursorPosition().

func (*QTextLayout) NextCursorPositionp

func (this *QTextLayout) NextCursorPositionp(oldPos int) int

Returns the next valid cursor position after oldPos that respects the given cursor mode. Returns value of oldPos, if oldPos is not a valid cursor position.

See also isValidCursorPosition() and previousCursorPosition().

func (*QTextLayout) Position

func (this *QTextLayout) Position() *qtcore.QPointF

The global position of the layout. This is independent of the bounding rectangle and of the layout process.

This function was introduced in Qt 4.2.

See also setPosition().

func (*QTextLayout) PreeditAreaPosition

func (this *QTextLayout) PreeditAreaPosition() int

Returns the position of the area in the text layout that will be processed before editing occurs.

See also preeditAreaText().

func (*QTextLayout) PreeditAreaText

func (this *QTextLayout) PreeditAreaText() string

Returns the text that is inserted in the layout before editing occurs.

See also preeditAreaPosition().

func (*QTextLayout) PreviousCursorPosition

func (this *QTextLayout) PreviousCursorPosition(oldPos int, mode int) int

Returns the first valid cursor position before oldPos that respects the given cursor mode. Returns value of oldPos, if oldPos is not a valid cursor position.

See also isValidCursorPosition() and nextCursorPosition().

func (*QTextLayout) PreviousCursorPositionp

func (this *QTextLayout) PreviousCursorPositionp(oldPos int) int

Returns the first valid cursor position before oldPos that respects the given cursor mode. Returns value of oldPos, if oldPos is not a valid cursor position.

See also isValidCursorPosition() and nextCursorPosition().

func (*QTextLayout) QTextLayout_PTR

func (ptr *QTextLayout) QTextLayout_PTR() *QTextLayout

func (*QTextLayout) RightCursorPosition

func (this *QTextLayout) RightCursorPosition(oldPos int) int

Returns the cursor position to the right of oldPos, next to it. It's dependent on the visual position of characters, after bi-directional reordering.

See also leftCursorPosition() and nextCursorPosition().

func (*QTextLayout) SetCacheEnabled

func (this *QTextLayout) SetCacheEnabled(enable bool)

Enables caching of the complete layout information if enable is true; otherwise disables layout caching. Usually QTextLayout throws most of the layouting information away after a call to endLayout() to reduce memory consumption. If you however want to draw the laid out text directly afterwards enabling caching might speed up drawing significantly.

See also cacheEnabled().

func (*QTextLayout) SetCthis

func (this *QTextLayout) SetCthis(cthis unsafe.Pointer)

func (*QTextLayout) SetCursorMoveStyle

func (this *QTextLayout) SetCursorMoveStyle(style int)

Sets the visual cursor movement style to the given style. If the QTextLayout is backed by a document, you can ignore this and use the option in QTextDocument, this option is for widgets like QLineEdit or custom widgets without a QTextDocument. Default value is Qt::LogicalMoveStyle.

See also cursorMoveStyle().

func (*QTextLayout) SetFlags

func (this *QTextLayout) SetFlags(flags int)

func (*QTextLayout) SetFont

func (this *QTextLayout) SetFont(f QFont_ITF)

Sets the layout's font to the given font. The layout is invalidated and must be laid out again.

See also font().

func (*QTextLayout) SetPosition

func (this *QTextLayout) SetPosition(p qtcore.QPointF_ITF)

Moves the text layout to point p.

See also position().

func (*QTextLayout) SetPreeditArea

func (this *QTextLayout) SetPreeditArea(position int, text string)

Sets the position and text of the area in the layout that is processed before editing occurs. The layout is invalidated and must be laid out again.

See also preeditAreaPosition() and preeditAreaText().

func (*QTextLayout) SetRawFont

func (this *QTextLayout) SetRawFont(rawFont QRawFont_ITF)

func (*QTextLayout) SetText

func (this *QTextLayout) SetText(string string)

Sets the layout's text to the given string. The layout is invalidated and must be laid out again.

Notice that when using this QTextLayout as part of a QTextDocument this method will have no effect.

See also text().

func (*QTextLayout) SetTextOption

func (this *QTextLayout) SetTextOption(option QTextOption_ITF)

Sets the text option structure that controls the layout process to the given option.

See also textOption().

func (*QTextLayout) Text

func (this *QTextLayout) Text() string

Returns the layout's text.

See also setText().

func (*QTextLayout) TextOption

func (this *QTextLayout) TextOption() *QTextOption

Returns the current text option used to control the layout process.

See also setTextOption().

type QTextLayout_ITF

type QTextLayout_ITF interface {
	QTextLayout_PTR() *QTextLayout
}

type QTextLayout__CursorMode

type QTextLayout__CursorMode = int

ConstantValue QTextLayout::SkipCharacters0 QTextLayout::SkipWords1

const QTextLayout__SkipCharacters QTextLayout__CursorMode = 0
const QTextLayout__SkipWords QTextLayout__CursorMode = 1

type QTextLength

type QTextLength struct {
	*qtrt.CObject
}

func NewQTextLength

func NewQTextLength() *QTextLength

func NewQTextLength1

func NewQTextLength1(type_ int, value float64) *QTextLength

func NewQTextLengthFromPointer

func NewQTextLengthFromPointer(cthis unsafe.Pointer) *QTextLength

func (*QTextLength) GetCthis

func (this *QTextLength) GetCthis() unsafe.Pointer

func (*QTextLength) NewForInherit

func (*QTextLength) NewForInherit() *QTextLength

func (*QTextLength) NewForInherit1

func (*QTextLength) NewForInherit1(type_ int, value float64) *QTextLength

func (*QTextLength) NewFromPointer

func (*QTextLength) NewFromPointer(cthis unsafe.Pointer) *QTextLength

func (*QTextLength) Operator_equal_equal

func (this *QTextLength) Operator_equal_equal(other QTextLength_ITF) bool

func (*QTextLength) Operator_not_equal

func (this *QTextLength) Operator_not_equal(other QTextLength_ITF) bool

func (*QTextLength) QTextLength_PTR

func (ptr *QTextLength) QTextLength_PTR() *QTextLength

func (*QTextLength) RawValue

func (this *QTextLength) RawValue() float64

func (*QTextLength) SetCthis

func (this *QTextLength) SetCthis(cthis unsafe.Pointer)

func (*QTextLength) Type

func (this *QTextLength) Type() int

Returns the type of this format.

See also FormatType.

func (*QTextLength) TypeItemName

func (this *QTextLength) TypeItemName(val int) string

func (*QTextLength) Value

func (this *QTextLength) Value(maximumLength float64) float64

type QTextLength_ITF

type QTextLength_ITF interface {
	QTextLength_PTR() *QTextLength
}

type QTextLength__Type

type QTextLength__Type = int
const QTextLength__FixedLength QTextLength__Type = 1
const QTextLength__PercentageLength QTextLength__Type = 2
const QTextLength__VariableLength QTextLength__Type = 0

type QTextLine

type QTextLine struct {
	*qtrt.CObject
}

func NewQTextLine

func NewQTextLine() *QTextLine

func NewQTextLineFromPointer

func NewQTextLineFromPointer(cthis unsafe.Pointer) *QTextLine

func (*QTextLine) Ascent

func (this *QTextLine) Ascent() float64

func (*QTextLine) CursorPositionItemName

func (this *QTextLine) CursorPositionItemName(val int) string

func (*QTextLine) CursorToX

func (this *QTextLine) CursorToX(cursorPos unsafe.Pointer, edge int) float64

func (*QTextLine) CursorToX1

func (this *QTextLine) CursorToX1(cursorPos int, edge int) float64

func (*QTextLine) CursorToX1p

func (this *QTextLine) CursorToX1p(cursorPos int) float64

func (*QTextLine) CursorToXp

func (this *QTextLine) CursorToXp(cursorPos unsafe.Pointer) float64

func (*QTextLine) Descent

func (this *QTextLine) Descent() float64

func (*QTextLine) EdgeItemName

func (this *QTextLine) EdgeItemName(val int) string

func (*QTextLine) GetCthis

func (this *QTextLine) GetCthis() unsafe.Pointer

func (*QTextLine) Height

func (this *QTextLine) Height() float64

func (*QTextLine) HorizontalAdvance

func (this *QTextLine) HorizontalAdvance() float64

func (*QTextLine) IsValid

func (this *QTextLine) IsValid() bool

func (*QTextLine) Leading

func (this *QTextLine) Leading() float64

func (*QTextLine) LeadingIncluded

func (this *QTextLine) LeadingIncluded() bool

func (*QTextLine) LineNumber

func (this *QTextLine) LineNumber() int

func (*QTextLine) NaturalTextRect

func (this *QTextLine) NaturalTextRect() *qtcore.QRectF

func (*QTextLine) NaturalTextWidth

func (this *QTextLine) NaturalTextWidth() float64

func (*QTextLine) NewForInherit

func (*QTextLine) NewForInherit() *QTextLine

func (*QTextLine) NewFromPointer

func (*QTextLine) NewFromPointer(cthis unsafe.Pointer) *QTextLine

func (*QTextLine) Position

func (this *QTextLine) Position() *qtcore.QPointF

The global position of the layout. This is independent of the bounding rectangle and of the layout process.

This function was introduced in Qt 4.2.

See also setPosition().

func (*QTextLine) QTextLine_PTR

func (ptr *QTextLine) QTextLine_PTR() *QTextLine

func (*QTextLine) Rect

func (this *QTextLine) Rect() *qtcore.QRectF

func (*QTextLine) SetCthis

func (this *QTextLine) SetCthis(cthis unsafe.Pointer)

func (*QTextLine) SetLeadingIncluded

func (this *QTextLine) SetLeadingIncluded(included bool)

func (*QTextLine) SetLineWidth

func (this *QTextLine) SetLineWidth(width float64)

func (*QTextLine) SetNumColumns

func (this *QTextLine) SetNumColumns(columns int)

func (*QTextLine) SetNumColumns1

func (this *QTextLine) SetNumColumns1(columns int, alignmentWidth float64)

func (*QTextLine) SetPosition

func (this *QTextLine) SetPosition(pos qtcore.QPointF_ITF)

Moves the text layout to point p.

See also position().

func (*QTextLine) TextLength

func (this *QTextLine) TextLength() int

func (*QTextLine) TextStart

func (this *QTextLine) TextStart() int

func (*QTextLine) Width

func (this *QTextLine) Width() float64

func (*QTextLine) X

func (this *QTextLine) X() float64

func (*QTextLine) XToCursor

func (this *QTextLine) XToCursor(x float64, arg1 int) int

func (*QTextLine) XToCursorp

func (this *QTextLine) XToCursorp(x float64) int

func (*QTextLine) Y

func (this *QTextLine) Y() float64

type QTextLine_ITF

type QTextLine_ITF interface {
	QTextLine_PTR() *QTextLine
}

type QTextLine__CursorPosition

type QTextLine__CursorPosition = int
const QTextLine__CursorBetweenCharacters QTextLine__CursorPosition = 0
const QTextLine__CursorOnCharacter QTextLine__CursorPosition = 1

type QTextLine__Edge

type QTextLine__Edge = int
const QTextLine__Leading QTextLine__Edge = 0
const QTextLine__Trailing QTextLine__Edge = 1

type QTextList

type QTextList struct {
	*QTextBlockGroup
}

func NewQTextList

func NewQTextList(doc QTextDocument_ITF) *QTextList

func NewQTextListFromPointer

func NewQTextListFromPointer(cthis unsafe.Pointer) *QTextList

func (*QTextList) Add

func (this *QTextList) Add(block QTextBlock_ITF)

Makes the given block part of the list.

See also remove() and removeItem().

func (*QTextList) Count

func (this *QTextList) Count() int

Returns the number of items in the list.

func (*QTextList) Format

func (this *QTextList) Format() *QTextListFormat

Returns the list's format.

See also setFormat().

func (*QTextList) GetCthis

func (this *QTextList) GetCthis() unsafe.Pointer

func (*QTextList) IsEmpty

func (this *QTextList) IsEmpty() bool

func (*QTextList) Item

func (this *QTextList) Item(i int) *QTextBlock

Returns the i-th text block in the list.

See also count() and itemText().

func (*QTextList) ItemNumber

func (this *QTextList) ItemNumber(arg0 QTextBlock_ITF) int

Returns the index of the list item that corresponds to the given block. Returns -1 if the block was not present in the list.

func (*QTextList) ItemText

func (this *QTextList) ItemText(arg0 QTextBlock_ITF) string

Returns the text of the list item that corresponds to the given block.

func (*QTextList) MetaObject

func (this *QTextList) MetaObject() *qtcore.QMetaObject

func (*QTextList) NewForInherit

func (*QTextList) NewForInherit(doc QTextDocument_ITF) *QTextList

func (*QTextList) NewFromPointer

func (*QTextList) NewFromPointer(cthis unsafe.Pointer) *QTextList

func (*QTextList) QTextList_PTR

func (ptr *QTextList) QTextList_PTR() *QTextList

func (*QTextList) Remove

func (this *QTextList) Remove(arg0 QTextBlock_ITF)

Removes the given block from the list.

See also add() and removeItem().

func (*QTextList) RemoveItem

func (this *QTextList) RemoveItem(i int)

Removes the item at item position i from the list. When the last item in the list is removed, the list is automatically deleted by the QTextDocument that owns it.

See also add() and remove().

func (*QTextList) SetCthis

func (this *QTextList) SetCthis(cthis unsafe.Pointer)

func (*QTextList) SetFormat

func (this *QTextList) SetFormat(format QTextListFormat_ITF)

Sets the list's format to format.

See also format().

type QTextListFormat

type QTextListFormat struct {
	*QTextFormat
}

func NewQTextListFormat

func NewQTextListFormat() *QTextListFormat

func NewQTextListFormat1

func NewQTextListFormat1(fmt_ QTextFormat_ITF) *QTextListFormat

func NewQTextListFormatFromPointer

func NewQTextListFormatFromPointer(cthis unsafe.Pointer) *QTextListFormat

func (*QTextListFormat) GetCthis

func (this *QTextListFormat) GetCthis() unsafe.Pointer

func (*QTextListFormat) Indent

func (this *QTextListFormat) Indent() int

func (*QTextListFormat) IsValid

func (this *QTextListFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextListFormat) NewForInherit

func (*QTextListFormat) NewForInherit() *QTextListFormat

func (*QTextListFormat) NewForInherit1

func (*QTextListFormat) NewForInherit1(fmt_ QTextFormat_ITF) *QTextListFormat

func (*QTextListFormat) NewFromPointer

func (*QTextListFormat) NewFromPointer(cthis unsafe.Pointer) *QTextListFormat

func (*QTextListFormat) NumberPrefix

func (this *QTextListFormat) NumberPrefix() string

func (*QTextListFormat) NumberSuffix

func (this *QTextListFormat) NumberSuffix() string

func (*QTextListFormat) QTextListFormat_PTR

func (ptr *QTextListFormat) QTextListFormat_PTR() *QTextListFormat

func (*QTextListFormat) SetCthis

func (this *QTextListFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextListFormat) SetIndent

func (this *QTextListFormat) SetIndent(indent int)

func (*QTextListFormat) SetNumberPrefix

func (this *QTextListFormat) SetNumberPrefix(numberPrefix string)

func (*QTextListFormat) SetNumberSuffix

func (this *QTextListFormat) SetNumberSuffix(numberSuffix string)

func (*QTextListFormat) SetStyle

func (this *QTextListFormat) SetStyle(style int)

func (*QTextListFormat) Style

func (this *QTextListFormat) Style() int

func (*QTextListFormat) StyleItemName

func (this *QTextListFormat) StyleItemName(val int) string

type QTextListFormat_ITF

type QTextListFormat_ITF interface {
	QTextFormat_ITF
	QTextListFormat_PTR() *QTextListFormat
}

type QTextListFormat__Style

type QTextListFormat__Style = int
const QTextListFormat__ListCircle QTextListFormat__Style = -2
const QTextListFormat__ListDecimal QTextListFormat__Style = -4
const QTextListFormat__ListDisc QTextListFormat__Style = -1
const QTextListFormat__ListLowerAlpha QTextListFormat__Style = -5
const QTextListFormat__ListLowerRoman QTextListFormat__Style = -7
const QTextListFormat__ListSquare QTextListFormat__Style = -3
const QTextListFormat__ListStyleUndefined QTextListFormat__Style = 0
const QTextListFormat__ListUpperAlpha QTextListFormat__Style = -6
const QTextListFormat__ListUpperRoman QTextListFormat__Style = -8

type QTextList_ITF

type QTextList_ITF interface {
	QTextBlockGroup_ITF
	QTextList_PTR() *QTextList
}

type QTextObject

type QTextObject struct {
	*qtcore.QObject
}

func NewQTextObject

func NewQTextObject(doc QTextDocument_ITF) *QTextObject

func NewQTextObjectFromPointer

func NewQTextObjectFromPointer(cthis unsafe.Pointer) *QTextObject

func (*QTextObject) Document

func (this *QTextObject) Document() *QTextDocument

Returns the document this object belongs to.

See also format().

func (*QTextObject) Format

func (this *QTextObject) Format() *QTextFormat

Returns the text object's format.

See also setFormat() and document().

func (*QTextObject) FormatIndex

func (this *QTextObject) FormatIndex() int

Returns the index of the object's format in the document's internal list of formats.

See also QTextDocument::allFormats().

func (*QTextObject) GetCthis

func (this *QTextObject) GetCthis() unsafe.Pointer

func (*QTextObject) InheritSetFormat

func (this *QTextObject) InheritSetFormat(f func(format *QTextFormat))

void setFormat(const QTextFormat &)

func (*QTextObject) MetaObject

func (this *QTextObject) MetaObject() *qtcore.QMetaObject

func (*QTextObject) NewForInherit

func (*QTextObject) NewForInherit(doc QTextDocument_ITF) *QTextObject

Creates a new QTextObject for the given document.

Warning: This function should never be called directly, but only from QTextDocument::createObject().

func (*QTextObject) NewFromPointer

func (*QTextObject) NewFromPointer(cthis unsafe.Pointer) *QTextObject

func (*QTextObject) ObjectIndex

func (this *QTextObject) ObjectIndex() int

Returns the object index of this object. This can be used together with QTextFormat::setObjectIndex().

func (*QTextObject) QTextObject_PTR

func (ptr *QTextObject) QTextObject_PTR() *QTextObject

func (*QTextObject) SetCthis

func (this *QTextObject) SetCthis(cthis unsafe.Pointer)

func (*QTextObject) SetFormat

func (this *QTextObject) SetFormat(format QTextFormat_ITF)

Sets the text object's format.

See also format().

type QTextObjectInterface

type QTextObjectInterface struct {
	*qtrt.CObject
}

func NewQTextObjectInterfaceFromPointer

func NewQTextObjectInterfaceFromPointer(cthis unsafe.Pointer) *QTextObjectInterface

func (*QTextObjectInterface) DrawObject

func (this *QTextObjectInterface) DrawObject(painter QPainter_ITF, rect qtcore.QRectF_ITF, doc QTextDocument_ITF, posInDocument int, format QTextFormat_ITF)

func (*QTextObjectInterface) GetCthis

func (this *QTextObjectInterface) GetCthis() unsafe.Pointer

func (*QTextObjectInterface) IntrinsicSize

func (this *QTextObjectInterface) IntrinsicSize(doc QTextDocument_ITF, posInDocument int, format QTextFormat_ITF) *qtcore.QSizeF

func (*QTextObjectInterface) NewFromPointer

func (*QTextObjectInterface) NewFromPointer(cthis unsafe.Pointer) *QTextObjectInterface

func (*QTextObjectInterface) QTextObjectInterface_PTR

func (ptr *QTextObjectInterface) QTextObjectInterface_PTR() *QTextObjectInterface

func (*QTextObjectInterface) SetCthis

func (this *QTextObjectInterface) SetCthis(cthis unsafe.Pointer)

type QTextObjectInterface_ITF

type QTextObjectInterface_ITF interface {
	QTextObjectInterface_PTR() *QTextObjectInterface
}

type QTextObject_ITF

type QTextObject_ITF interface {
	qtcore.QObject_ITF
	QTextObject_PTR() *QTextObject
}

type QTextOption

type QTextOption struct {
	*qtrt.CObject
}

func NewQTextOption

func NewQTextOption() *QTextOption

func NewQTextOption1

func NewQTextOption1(alignment int) *QTextOption

func NewQTextOptionFromPointer

func NewQTextOptionFromPointer(cthis unsafe.Pointer) *QTextOption

func (*QTextOption) Alignment

func (this *QTextOption) Alignment() int

Returns the text alignment defined by the option.

See also setAlignment().

func (*QTextOption) FlagItemName

func (this *QTextOption) FlagItemName(val int) string

func (*QTextOption) Flags

func (this *QTextOption) Flags() int

Returns the flags associated with the option.

See also setFlags().

func (*QTextOption) GetCthis

func (this *QTextOption) GetCthis() unsafe.Pointer

func (*QTextOption) NewForInherit

func (*QTextOption) NewForInherit() *QTextOption

Constructs a text option with default properties for text. The text alignment property is set to Qt::AlignLeft. The word wrap property is set to QTextOption::WordWrap. The using of design metrics flag is set to false.

func (*QTextOption) NewForInherit1

func (*QTextOption) NewForInherit1(alignment int) *QTextOption

Constructs a text option with default properties for text. The text alignment property is set to Qt::AlignLeft. The word wrap property is set to QTextOption::WordWrap. The using of design metrics flag is set to false.

func (*QTextOption) NewFromPointer

func (*QTextOption) NewFromPointer(cthis unsafe.Pointer) *QTextOption

func (*QTextOption) Operator_equal

func (this *QTextOption) Operator_equal(o QTextOption_ITF) *QTextOption

func (*QTextOption) QTextOption_PTR

func (ptr *QTextOption) QTextOption_PTR() *QTextOption

func (*QTextOption) SetAlignment

func (this *QTextOption) SetAlignment(alignment int)

Sets the option's text alignment to the specified alignment.

See also alignment().

func (*QTextOption) SetCthis

func (this *QTextOption) SetCthis(cthis unsafe.Pointer)

func (*QTextOption) SetFlags

func (this *QTextOption) SetFlags(flags int)

Sets the flags associated with the option to the given flags.

See also flags().

func (*QTextOption) SetTabStop

func (this *QTextOption) SetTabStop(tabStop float64)

func (*QTextOption) SetTabStopDistance

func (this *QTextOption) SetTabStopDistance(tabStopDistance float64)

Sets the default distance in device units between tab stops to the value specified by tabStopDistance.

This function was introduced in Qt 5.10.

See also tabStopDistance(), setTabArray(), setTabs(), and tabs().

func (*QTextOption) SetTextDirection

func (this *QTextOption) SetTextDirection(aDirection int)

Sets the direction of the text layout defined by the option to the given direction.

See also textDirection().

func (*QTextOption) SetUseDesignMetrics

func (this *QTextOption) SetUseDesignMetrics(b bool)

If enable is true then the layout will use design metrics; otherwise it will use the metrics of the paint device (which is the default behavior).

See also useDesignMetrics().

func (*QTextOption) SetWrapMode

func (this *QTextOption) SetWrapMode(wrap int)

Sets the option's text wrap mode to the given mode.

See also wrapMode().

func (*QTextOption) TabStop

func (this *QTextOption) TabStop() float64

func (*QTextOption) TabStopDistance

func (this *QTextOption) TabStopDistance() float64

Returns the distance in device units between tab stops.

This function was introduced in Qt 5.10.

See also setTabStopDistance(), tabArray(), setTabs(), and tabs().

func (*QTextOption) TabTypeItemName

func (this *QTextOption) TabTypeItemName(val int) string

func (*QTextOption) TextDirection

func (this *QTextOption) TextDirection() int

Returns the direction of the text layout defined by the option.

See also setTextDirection().

func (*QTextOption) UseDesignMetrics

func (this *QTextOption) UseDesignMetrics() bool

Returns true if the layout uses design rather than device metrics; otherwise returns false.

See also setUseDesignMetrics().

func (*QTextOption) WrapMode

func (this *QTextOption) WrapMode() int

Returns the text wrap mode defined by the option.

See also setWrapMode().

func (*QTextOption) WrapModeItemName

func (this *QTextOption) WrapModeItemName(val int) string

type QTextOption_ITF

type QTextOption_ITF interface {
	QTextOption_PTR() *QTextOption
}

type QTextOption__Flag

type QTextOption__Flag = int
const QTextOption__AddSpaceForLineAndParagraphSeparators QTextOption__Flag = 4
const QTextOption__IncludeTrailingSpaces QTextOption__Flag = -2147483648
const QTextOption__ShowDocumentTerminator QTextOption__Flag = 16
const QTextOption__ShowLineAndParagraphSeparators QTextOption__Flag = 2
const QTextOption__ShowTabsAndSpaces QTextOption__Flag = 1
const QTextOption__SuppressColors QTextOption__Flag = 8

type QTextOption__TabType

type QTextOption__TabType = int

This enum holds the different types of tabulator

This enum was introduced or modified in Qt 4.4.

const QTextOption__CenterTab QTextOption__TabType = 2

A centered-tab

const QTextOption__DelimiterTab QTextOption__TabType = 3

A tab stopping at a certain delimiter-character

const QTextOption__LeftTab QTextOption__TabType = 0

A left-tab

const QTextOption__RightTab QTextOption__TabType = 1

A right-tab

type QTextOption__WrapMode

type QTextOption__WrapMode = int

This enum describes how text is wrapped in a document.

const QTextOption__ManualWrap QTextOption__WrapMode = 2

Same as QTextOption::NoWrap

const QTextOption__NoWrap QTextOption__WrapMode = 0

Text is not wrapped at all.

const QTextOption__WordWrap QTextOption__WrapMode = 1

Text is wrapped at word boundaries.

const QTextOption__WrapAnywhere QTextOption__WrapMode = 3

Text can be wrapped at any point on a line, even if it occurs in the middle of a word.

const QTextOption__WrapAtWordBoundaryOrAnywhere QTextOption__WrapMode = 4

If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word.

type QTextTable

type QTextTable struct {
	*QTextFrame
}

func NewQTextTable

func NewQTextTable(doc QTextDocument_ITF) *QTextTable

func NewQTextTableFromPointer

func NewQTextTableFromPointer(cthis unsafe.Pointer) *QTextTable

func (*QTextTable) AppendColumns

func (this *QTextTable) AppendColumns(count int)

Appends count columns at the right side of the table.

This function was introduced in Qt 4.5.

See also insertColumns(), insertRows(), resize(), removeRows(), removeColumns(), and appendRows().

func (*QTextTable) AppendRows

func (this *QTextTable) AppendRows(count int)

Appends count rows at the bottom of the table.

This function was introduced in Qt 4.5.

See also insertColumns(), insertRows(), resize(), removeRows(), removeColumns(), and appendColumns().

func (*QTextTable) CellAt

func (this *QTextTable) CellAt(row int, col int) *QTextTableCell

Returns the table cell at the given row and column in the table.

See also columns() and rows().

func (*QTextTable) CellAt1

func (this *QTextTable) CellAt1(position int) *QTextTableCell

Returns the table cell at the given row and column in the table.

See also columns() and rows().

func (*QTextTable) CellAt2

func (this *QTextTable) CellAt2(c QTextCursor_ITF) *QTextTableCell

Returns the table cell at the given row and column in the table.

See also columns() and rows().

func (*QTextTable) Columns

func (this *QTextTable) Columns() int

Returns the number of columns in the table.

See also rows().

func (*QTextTable) Format

func (this *QTextTable) Format() *QTextTableFormat

Returns the table's format.

See also setFormat().

func (*QTextTable) GetCthis

func (this *QTextTable) GetCthis() unsafe.Pointer

func (*QTextTable) InsertColumns

func (this *QTextTable) InsertColumns(pos int, num int)

Inserts a number of columns before the column with the specified index.

See also insertRows(), resize(), removeRows(), removeColumns(), appendRows(), and appendColumns().

func (*QTextTable) InsertRows

func (this *QTextTable) InsertRows(pos int, num int)

Inserts a number of rows before the row with the specified index.

See also resize(), insertColumns(), removeRows(), removeColumns(), appendRows(), and appendColumns().

func (*QTextTable) MergeCells

func (this *QTextTable) MergeCells(row int, col int, numRows int, numCols int)

Merges the cell at the specified row and column with the adjacent cells into one cell. The new cell will span numRows rows and numCols columns. This method does nothing if numRows or numCols is less than the current number of rows or columns spanned by the cell.

This function was introduced in Qt 4.1.

See also splitCell().

func (*QTextTable) MergeCells1

func (this *QTextTable) MergeCells1(cursor QTextCursor_ITF)

Merges the cell at the specified row and column with the adjacent cells into one cell. The new cell will span numRows rows and numCols columns. This method does nothing if numRows or numCols is less than the current number of rows or columns spanned by the cell.

This function was introduced in Qt 4.1.

See also splitCell().

func (*QTextTable) MetaObject

func (this *QTextTable) MetaObject() *qtcore.QMetaObject

func (*QTextTable) NewForInherit

func (*QTextTable) NewForInherit(doc QTextDocument_ITF) *QTextTable

func (*QTextTable) NewFromPointer

func (*QTextTable) NewFromPointer(cthis unsafe.Pointer) *QTextTable

func (*QTextTable) QTextTable_PTR

func (ptr *QTextTable) QTextTable_PTR() *QTextTable

func (*QTextTable) RemoveColumns

func (this *QTextTable) RemoveColumns(pos int, num int)

Removes a number of columns starting with the column at the specified index.

See also insertRows(), insertColumns(), removeRows(), resize(), appendRows(), and appendColumns().

func (*QTextTable) RemoveRows

func (this *QTextTable) RemoveRows(pos int, num int)

Removes a number of rows starting with the row at the specified index.

See also insertRows(), insertColumns(), resize(), removeColumns(), appendRows(), and appendColumns().

func (*QTextTable) Resize

func (this *QTextTable) Resize(rows int, cols int)

Resizes the table to contain the required number of rows and columns.

See also insertRows(), insertColumns(), removeRows(), and removeColumns().

func (*QTextTable) RowEnd

func (this *QTextTable) RowEnd(c QTextCursor_ITF) *QTextCursor

Returns a cursor pointing to the end of the row that contains the given cursor.

See also rowStart().

func (*QTextTable) RowStart

func (this *QTextTable) RowStart(c QTextCursor_ITF) *QTextCursor

Returns a cursor pointing to the start of the row that contains the given cursor.

See also rowEnd().

func (*QTextTable) Rows

func (this *QTextTable) Rows() int

Returns the number of rows in the table.

See also columns().

func (*QTextTable) SetCthis

func (this *QTextTable) SetCthis(cthis unsafe.Pointer)

func (*QTextTable) SetFormat

func (this *QTextTable) SetFormat(format QTextTableFormat_ITF)

Sets the table's format.

See also format().

func (*QTextTable) SplitCell

func (this *QTextTable) SplitCell(row int, col int, numRows int, numCols int)

Splits the specified cell at row and column into an array of multiple cells with dimensions specified by numRows and numCols.

Note: It is only possible to split cells that span multiple rows or columns, such as rows that have been merged using mergeCells().

This function was introduced in Qt 4.1.

See also mergeCells().

type QTextTableCell

type QTextTableCell struct {
	*qtrt.CObject
}

func NewQTextTableCell

func NewQTextTableCell() *QTextTableCell

func NewQTextTableCellFromPointer

func NewQTextTableCellFromPointer(cthis unsafe.Pointer) *QTextTableCell

func (*QTextTableCell) Begin

func (this *QTextTableCell) Begin() int

func (*QTextTableCell) Column

func (this *QTextTableCell) Column() int

func (*QTextTableCell) ColumnSpan

func (this *QTextTableCell) ColumnSpan() int

func (*QTextTableCell) End

func (this *QTextTableCell) End() int

func (*QTextTableCell) FirstCursorPosition

func (this *QTextTableCell) FirstCursorPosition() *QTextCursor

func (*QTextTableCell) FirstPosition

func (this *QTextTableCell) FirstPosition() int

func (*QTextTableCell) Format

func (this *QTextTableCell) Format() *QTextCharFormat

Returns the table's format.

See also setFormat().

func (*QTextTableCell) GetCthis

func (this *QTextTableCell) GetCthis() unsafe.Pointer

func (*QTextTableCell) IsValid

func (this *QTextTableCell) IsValid() bool

func (*QTextTableCell) LastCursorPosition

func (this *QTextTableCell) LastCursorPosition() *QTextCursor

func (*QTextTableCell) LastPosition

func (this *QTextTableCell) LastPosition() int

func (*QTextTableCell) NewForInherit

func (*QTextTableCell) NewForInherit() *QTextTableCell

func (*QTextTableCell) NewFromPointer

func (*QTextTableCell) NewFromPointer(cthis unsafe.Pointer) *QTextTableCell

func (*QTextTableCell) Operator_equal

func (this *QTextTableCell) Operator_equal(o QTextTableCell_ITF) *QTextTableCell

func (*QTextTableCell) Operator_equal_equal

func (this *QTextTableCell) Operator_equal_equal(other QTextTableCell_ITF) bool

func (*QTextTableCell) Operator_not_equal

func (this *QTextTableCell) Operator_not_equal(other QTextTableCell_ITF) bool

func (*QTextTableCell) QTextTableCell_PTR

func (ptr *QTextTableCell) QTextTableCell_PTR() *QTextTableCell

func (*QTextTableCell) Row

func (this *QTextTableCell) Row() int

func (*QTextTableCell) RowSpan

func (this *QTextTableCell) RowSpan() int

func (*QTextTableCell) SetCthis

func (this *QTextTableCell) SetCthis(cthis unsafe.Pointer)

func (*QTextTableCell) SetFormat

func (this *QTextTableCell) SetFormat(format QTextCharFormat_ITF)

Sets the table's format.

See also format().

func (*QTextTableCell) TableCellFormatIndex

func (this *QTextTableCell) TableCellFormatIndex() int

type QTextTableCellFormat

type QTextTableCellFormat struct {
	*QTextCharFormat
}

func NewQTextTableCellFormat

func NewQTextTableCellFormat() *QTextTableCellFormat

func NewQTextTableCellFormat1

func NewQTextTableCellFormat1(fmt_ QTextFormat_ITF) *QTextTableCellFormat

func NewQTextTableCellFormatFromPointer

func NewQTextTableCellFormatFromPointer(cthis unsafe.Pointer) *QTextTableCellFormat

func (*QTextTableCellFormat) BottomPadding

func (this *QTextTableCellFormat) BottomPadding() float64

func (*QTextTableCellFormat) GetCthis

func (this *QTextTableCellFormat) GetCthis() unsafe.Pointer

func (*QTextTableCellFormat) IsValid

func (this *QTextTableCellFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextTableCellFormat) LeftPadding

func (this *QTextTableCellFormat) LeftPadding() float64

func (*QTextTableCellFormat) NewForInherit

func (*QTextTableCellFormat) NewForInherit() *QTextTableCellFormat

func (*QTextTableCellFormat) NewForInherit1

func (*QTextTableCellFormat) NewFromPointer

func (*QTextTableCellFormat) NewFromPointer(cthis unsafe.Pointer) *QTextTableCellFormat

func (*QTextTableCellFormat) QTextTableCellFormat_PTR

func (ptr *QTextTableCellFormat) QTextTableCellFormat_PTR() *QTextTableCellFormat

func (*QTextTableCellFormat) RightPadding

func (this *QTextTableCellFormat) RightPadding() float64

func (*QTextTableCellFormat) SetBottomPadding

func (this *QTextTableCellFormat) SetBottomPadding(padding float64)

func (*QTextTableCellFormat) SetCthis

func (this *QTextTableCellFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextTableCellFormat) SetLeftPadding

func (this *QTextTableCellFormat) SetLeftPadding(padding float64)

func (*QTextTableCellFormat) SetPadding

func (this *QTextTableCellFormat) SetPadding(padding float64)

func (*QTextTableCellFormat) SetRightPadding

func (this *QTextTableCellFormat) SetRightPadding(padding float64)

func (*QTextTableCellFormat) SetTopPadding

func (this *QTextTableCellFormat) SetTopPadding(padding float64)

func (*QTextTableCellFormat) TopPadding

func (this *QTextTableCellFormat) TopPadding() float64

type QTextTableCellFormat_ITF

type QTextTableCellFormat_ITF interface {
	QTextCharFormat_ITF
	QTextTableCellFormat_PTR() *QTextTableCellFormat
}

type QTextTableCell_ITF

type QTextTableCell_ITF interface {
	QTextTableCell_PTR() *QTextTableCell
}

type QTextTableFormat

type QTextTableFormat struct {
	*QTextFrameFormat
}

func NewQTextTableFormat

func NewQTextTableFormat() *QTextTableFormat

func NewQTextTableFormat1

func NewQTextTableFormat1(fmt_ QTextFormat_ITF) *QTextTableFormat

func NewQTextTableFormatFromPointer

func NewQTextTableFormatFromPointer(cthis unsafe.Pointer) *QTextTableFormat

func (*QTextTableFormat) Alignment

func (this *QTextTableFormat) Alignment() int

func (*QTextTableFormat) CellPadding

func (this *QTextTableFormat) CellPadding() float64

func (*QTextTableFormat) CellSpacing

func (this *QTextTableFormat) CellSpacing() float64

func (*QTextTableFormat) ClearColumnWidthConstraints

func (this *QTextTableFormat) ClearColumnWidthConstraints()

func (*QTextTableFormat) Columns

func (this *QTextTableFormat) Columns() int

func (*QTextTableFormat) GetCthis

func (this *QTextTableFormat) GetCthis() unsafe.Pointer

func (*QTextTableFormat) HeaderRowCount

func (this *QTextTableFormat) HeaderRowCount() int

func (*QTextTableFormat) IsValid

func (this *QTextTableFormat) IsValid() bool

Returns true if the format is valid (i.e. is not InvalidFormat); otherwise returns false.

func (*QTextTableFormat) NewForInherit

func (*QTextTableFormat) NewForInherit() *QTextTableFormat

func (*QTextTableFormat) NewForInherit1

func (*QTextTableFormat) NewForInherit1(fmt_ QTextFormat_ITF) *QTextTableFormat

func (*QTextTableFormat) NewFromPointer

func (*QTextTableFormat) NewFromPointer(cthis unsafe.Pointer) *QTextTableFormat

func (*QTextTableFormat) QTextTableFormat_PTR

func (ptr *QTextTableFormat) QTextTableFormat_PTR() *QTextTableFormat

func (*QTextTableFormat) SetAlignment

func (this *QTextTableFormat) SetAlignment(alignment int)

func (*QTextTableFormat) SetCellPadding

func (this *QTextTableFormat) SetCellPadding(padding float64)

func (*QTextTableFormat) SetCellSpacing

func (this *QTextTableFormat) SetCellSpacing(spacing float64)

func (*QTextTableFormat) SetColumns

func (this *QTextTableFormat) SetColumns(columns int)

func (*QTextTableFormat) SetCthis

func (this *QTextTableFormat) SetCthis(cthis unsafe.Pointer)

func (*QTextTableFormat) SetHeaderRowCount

func (this *QTextTableFormat) SetHeaderRowCount(count int)

type QTextTableFormat_ITF

type QTextTableFormat_ITF interface {
	QTextFrameFormat_ITF
	QTextTableFormat_PTR() *QTextTableFormat
}

type QTextTable_ITF

type QTextTable_ITF interface {
	QTextFrame_ITF
	QTextTable_PTR() *QTextTable
}

type QToolBarChangeEvent

type QToolBarChangeEvent struct {
	*qtcore.QEvent
}

func NewQToolBarChangeEvent

func NewQToolBarChangeEvent(t bool) *QToolBarChangeEvent

func NewQToolBarChangeEventFromPointer

func NewQToolBarChangeEventFromPointer(cthis unsafe.Pointer) *QToolBarChangeEvent

func (*QToolBarChangeEvent) GetCthis

func (this *QToolBarChangeEvent) GetCthis() unsafe.Pointer

func (*QToolBarChangeEvent) NewForInherit

func (*QToolBarChangeEvent) NewForInherit(t bool) *QToolBarChangeEvent

func (*QToolBarChangeEvent) NewFromPointer

func (*QToolBarChangeEvent) NewFromPointer(cthis unsafe.Pointer) *QToolBarChangeEvent

func (*QToolBarChangeEvent) QToolBarChangeEvent_PTR

func (ptr *QToolBarChangeEvent) QToolBarChangeEvent_PTR() *QToolBarChangeEvent

func (*QToolBarChangeEvent) SetCthis

func (this *QToolBarChangeEvent) SetCthis(cthis unsafe.Pointer)

func (*QToolBarChangeEvent) Toggle

func (this *QToolBarChangeEvent) Toggle() bool

type QToolBarChangeEvent_ITF

type QToolBarChangeEvent_ITF interface {
	qtcore.QEvent_ITF
	QToolBarChangeEvent_PTR() *QToolBarChangeEvent
}

type QTouchDevice

type QTouchDevice struct {
	*qtrt.CObject
}

func NewQTouchDevice

func NewQTouchDevice() *QTouchDevice

func NewQTouchDeviceFromPointer

func NewQTouchDeviceFromPointer(cthis unsafe.Pointer) *QTouchDevice

func (*QTouchDevice) Capabilities

func (this *QTouchDevice) Capabilities() int

Returns the touch device capabilities.

See also setCapabilities().

func (*QTouchDevice) CapabilityFlagItemName

func (this *QTouchDevice) CapabilityFlagItemName(val int) string

func (*QTouchDevice) DeviceTypeItemName

func (this *QTouchDevice) DeviceTypeItemName(val int) string

func (*QTouchDevice) GetCthis

func (this *QTouchDevice) GetCthis() unsafe.Pointer

func (*QTouchDevice) MaximumTouchPoints

func (this *QTouchDevice) MaximumTouchPoints() int

Returns the maximum number of simultaneous touch points (fingers) that can be detected.

This function was introduced in Qt 5.2.

See also setMaximumTouchPoints().

func (*QTouchDevice) Name

func (this *QTouchDevice) Name() string

Returns the touch device name.

This string may often be empty. It is however useful for systems that have more than one touch input device because there it can be used to differentiate between the devices (i.e. to tell from which device a QTouchEvent originates from).

See also setName().

func (*QTouchDevice) NewForInherit

func (*QTouchDevice) NewForInherit() *QTouchDevice

Creates a new touch device instance. By default the name is empty, the only capability is Position and type is TouchScreen.

func (*QTouchDevice) NewFromPointer

func (*QTouchDevice) NewFromPointer(cthis unsafe.Pointer) *QTouchDevice

func (*QTouchDevice) QTouchDevice_PTR

func (ptr *QTouchDevice) QTouchDevice_PTR() *QTouchDevice

func (*QTouchDevice) SetCapabilities

func (this *QTouchDevice) SetCapabilities(caps int)

Sets the capabilities caps supported by the device and its driver.

See also capabilities().

func (*QTouchDevice) SetCthis

func (this *QTouchDevice) SetCthis(cthis unsafe.Pointer)

func (*QTouchDevice) SetMaximumTouchPoints

func (this *QTouchDevice) SetMaximumTouchPoints(max int)

Sets the maximum number of simultaneous touchpoints max supported by the device and its driver.

See also maximumTouchPoints().

func (*QTouchDevice) SetName

func (this *QTouchDevice) SetName(name string)

Sets the name (a unique identifier) for the device. In most systems it is enough to leave this unset and keep the default empty name. This identifier becomes important when having multiple touch devices and a need to differentiate between them.

See also name().

func (*QTouchDevice) SetType

func (this *QTouchDevice) SetType(devType int)

Sets the device type devType.

See also type().

func (*QTouchDevice) Type

func (this *QTouchDevice) Type() int

Returns the touch device type.

See also setType().

type QTouchDevice_ITF

type QTouchDevice_ITF interface {
	QTouchDevice_PTR() *QTouchDevice
}

type QTouchDevice__CapabilityFlag

type QTouchDevice__CapabilityFlag = int
const QTouchDevice__Area QTouchDevice__CapabilityFlag = 2
const QTouchDevice__MouseEmulation QTouchDevice__CapabilityFlag = 64
const QTouchDevice__NormalizedPosition QTouchDevice__CapabilityFlag = 32
const QTouchDevice__Position QTouchDevice__CapabilityFlag = 1
const QTouchDevice__Pressure QTouchDevice__CapabilityFlag = 4
const QTouchDevice__RawPositions QTouchDevice__CapabilityFlag = 16
const QTouchDevice__Velocity QTouchDevice__CapabilityFlag = 8

type QTouchDevice__DeviceType

type QTouchDevice__DeviceType = int

This enum represents the type of device that generated a QTouchEvent.

const QTouchDevice__TouchPad QTouchDevice__DeviceType = 1

In this type of device, the touch surface is separate from the display. There is not a direct relationship between the physical touch location and the on-screen coordinates. Instead, they are calculated relative to the current mouse position, and the user must use the touch-pad to move this reference point. Unlike touch-screens, Qt allows users to only interact with a single QWidget or QGraphicsItem at a time.

const QTouchDevice__TouchScreen QTouchDevice__DeviceType = 0

In this type of device, the touch surface and display are integrated. This means the surface and display typically have the same size, such that there is a direct relationship between the touch points' physical positions and the coordinate reported by QTouchEvent::TouchPoint. As a result, Qt allows the user to interact directly with multiple QWidgets and QGraphicsItems at the same time.

type QTouchEvent

type QTouchEvent struct {
	*QInputEvent
}

func NewQTouchEventFromPointer

func NewQTouchEventFromPointer(cthis unsafe.Pointer) *QTouchEvent

func (*QTouchEvent) Device

func (this *QTouchEvent) Device() *QTouchDevice

func (*QTouchEvent) GetCthis

func (this *QTouchEvent) GetCthis() unsafe.Pointer

func (*QTouchEvent) NewFromPointer

func (*QTouchEvent) NewFromPointer(cthis unsafe.Pointer) *QTouchEvent

func (*QTouchEvent) QTouchEvent_PTR

func (ptr *QTouchEvent) QTouchEvent_PTR() *QTouchEvent

func (*QTouchEvent) SetCthis

func (this *QTouchEvent) SetCthis(cthis unsafe.Pointer)

func (*QTouchEvent) SetDevice

func (this *QTouchEvent) SetDevice(adevice QTouchDevice_ITF)

func (*QTouchEvent) SetTarget

func (this *QTouchEvent) SetTarget(atarget qtcore.QObject_ITF)

func (*QTouchEvent) SetTouchPointStates

func (this *QTouchEvent) SetTouchPointStates(aTouchPointStates int)

func (*QTouchEvent) SetWindow

func (this *QTouchEvent) SetWindow(awindow QWindow_ITF)

func (*QTouchEvent) Target

func (this *QTouchEvent) Target() *qtcore.QObject

func (*QTouchEvent) TouchPointStates

func (this *QTouchEvent) TouchPointStates() int

func (*QTouchEvent) Window

func (this *QTouchEvent) Window() *QWindow

type QTouchEvent_ITF

type QTouchEvent_ITF interface {
	QInputEvent_ITF
	QTouchEvent_PTR() *QTouchEvent
}

type QTransform

type QTransform struct {
	*qtrt.CObject
}

func NewQTransform

func NewQTransform(arg0 int) *QTransform

func NewQTransform1

func NewQTransform1() *QTransform

func NewQTransform2

func NewQTransform2(h11 float64, h12 float64, h13 float64, h21 float64, h22 float64, h23 float64, h31 float64, h32 float64, h33 float64) *QTransform

func NewQTransform2p

func NewQTransform2p(h11 float64, h12 float64, h13 float64, h21 float64, h22 float64, h23 float64, h31 float64, h32 float64) *QTransform

func NewQTransform3

func NewQTransform3(h11 float64, h12 float64, h21 float64, h22 float64, dx float64, dy float64) *QTransform

func NewQTransform4

func NewQTransform4(mtx QMatrix_ITF) *QTransform

func NewQTransformFromPointer

func NewQTransformFromPointer(cthis unsafe.Pointer) *QTransform

func QImage_TrueMatrix1

func QImage_TrueMatrix1(arg0 QTransform_ITF, w int, h int) *QTransform

func QPixmap_TrueMatrix1

func QPixmap_TrueMatrix1(m QTransform_ITF, w int, h int) *QTransform

func QTransform_FromScale

func QTransform_FromScale(dx float64, dy float64) *QTransform

func QTransform_FromTranslate

func QTransform_FromTranslate(dx float64, dy float64) *QTransform

func (*QTransform) Adjoint

func (this *QTransform) Adjoint() *QTransform

Returns the adjoint of this matrix.

func (*QTransform) Det

func (this *QTransform) Det() float64

func (*QTransform) Determinant

func (this *QTransform) Determinant() float64

Returns the matrix's determinant.

func (*QTransform) Dx

func (this *QTransform) Dx() float64

Returns the horizontal translation factor.

See also m31(), translate(), and Basic Matrix Operations.

func (*QTransform) Dy

func (this *QTransform) Dy() float64

Returns the vertical translation factor.

See also translate() and Basic Matrix Operations.

func (*QTransform) FromScale

func (this *QTransform) FromScale(dx float64, dy float64) *QTransform

Creates a matrix which corresponds to a scaling of sx horizontally and sy vertically. This is the same as QTransform().scale(sx, sy) but slightly faster.

This function was introduced in Qt 4.5.

func (*QTransform) FromTranslate

func (this *QTransform) FromTranslate(dx float64, dy float64) *QTransform

Creates a matrix which corresponds to a translation of dx along the x axis and dy along the y axis. This is the same as QTransform().translate(dx, dy) but slightly faster.

This function was introduced in Qt 4.5.

func (*QTransform) GetCthis

func (this *QTransform) GetCthis() unsafe.Pointer

func (*QTransform) Inverted

func (this *QTransform) Inverted(invertible *bool) *QTransform

Returns an inverted copy of this matrix.

If the matrix is singular (not invertible), the returned matrix is the identity matrix. If invertible is valid (i.e. not 0), its value is set to true if the matrix is invertible, otherwise it is set to false.

See also isInvertible().

func (*QTransform) Invertedp

func (this *QTransform) Invertedp() *QTransform

Returns an inverted copy of this matrix.

If the matrix is singular (not invertible), the returned matrix is the identity matrix. If invertible is valid (i.e. not 0), its value is set to true if the matrix is invertible, otherwise it is set to false.

See also isInvertible().

func (*QTransform) IsAffine

func (this *QTransform) IsAffine() bool

Returns true if the matrix represent an affine transformation, otherwise returns false.

func (*QTransform) IsIdentity

func (this *QTransform) IsIdentity() bool

Returns true if the matrix is the identity matrix, otherwise returns false.

See also reset().

func (*QTransform) IsInvertible

func (this *QTransform) IsInvertible() bool

Returns true if the matrix is invertible, otherwise returns false.

See also inverted().

func (*QTransform) IsRotating

func (this *QTransform) IsRotating() bool

Returns true if the matrix represents some kind of a rotating transformation, otherwise returns false.

Note: A rotation transformation of 180 degrees and/or 360 degrees is treated as a scaling transformation.

See also reset().

func (*QTransform) IsScaling

func (this *QTransform) IsScaling() bool

Returns true if the matrix represents a scaling transformation, otherwise returns false.

See also reset().

func (*QTransform) IsTranslating

func (this *QTransform) IsTranslating() bool

Returns true if the matrix represents a translating transformation, otherwise returns false.

See also reset().

func (*QTransform) M11

func (this *QTransform) M11() float64

Returns the horizontal scaling factor.

See also scale() and Basic Matrix Operations.

func (*QTransform) M12

func (this *QTransform) M12() float64

Returns the vertical shearing factor.

See also shear() and Basic Matrix Operations.

func (*QTransform) M13

func (this *QTransform) M13() float64

Returns the horizontal projection factor.

See also translate() and Basic Matrix Operations.

func (*QTransform) M21

func (this *QTransform) M21() float64

Returns the horizontal shearing factor.

See also shear() and Basic Matrix Operations.

func (*QTransform) M22

func (this *QTransform) M22() float64

Returns the vertical scaling factor.

See also scale() and Basic Matrix Operations.

func (*QTransform) M23

func (this *QTransform) M23() float64

Returns the vertical projection factor.

See also translate() and Basic Matrix Operations.

func (*QTransform) M31

func (this *QTransform) M31() float64

Returns the horizontal translation factor.

See also dx(), translate(), and Basic Matrix Operations.

func (*QTransform) M32

func (this *QTransform) M32() float64

Returns the vertical translation factor.

See also dy(), translate(), and Basic Matrix Operations.

func (*QTransform) M33

func (this *QTransform) M33() float64

Returns the division factor.

See also translate() and Basic Matrix Operations.

func (*QTransform) Map

func (this *QTransform) Map(p qtcore.QPoint_ITF) *qtcore.QPoint

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map1

func (this *QTransform) Map1(p qtcore.QPointF_ITF) *qtcore.QPointF

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map2

func (this *QTransform) Map2(l qtcore.QLine_ITF) *qtcore.QLine

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map3

func (this *QTransform) Map3(l qtcore.QLineF_ITF) *qtcore.QLineF

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map4

func (this *QTransform) Map4(a QPolygonF_ITF) *QPolygonF

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map5

func (this *QTransform) Map5(a QPolygon_ITF) *QPolygon

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map6

func (this *QTransform) Map6(r QRegion_ITF) *QRegion

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map7

func (this *QTransform) Map7(p QPainterPath_ITF) *QPainterPath

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map8

func (this *QTransform) Map8(x int, y int, tx unsafe.Pointer, ty unsafe.Pointer)

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) Map9

func (this *QTransform) Map9(x float64, y float64, tx unsafe.Pointer, ty unsafe.Pointer)

Maps the given coordinates x and y into the coordinate system defined by this matrix. The resulting values are put in *tx and *ty, respectively.

The coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

The point (x, y) is the original point, and (x', y') is the transformed point.

See also Basic Matrix Operations.

func (*QTransform) MapRect

func (this *QTransform) MapRect(arg0 qtcore.QRect_ITF) *qtcore.QRect

Creates and returns a QRectF object that is a copy of the given rectangle, mapped into the coordinate system defined by this matrix.

The rectangle's coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

If rotation or shearing has been specified, this function returns the bounding rectangle. To retrieve the exact region the given rectangle maps to, use the mapToPolygon() function instead.

See also mapToPolygon() and Basic Matrix Operations.

func (*QTransform) MapRect1

func (this *QTransform) MapRect1(arg0 qtcore.QRectF_ITF) *qtcore.QRectF

Creates and returns a QRectF object that is a copy of the given rectangle, mapped into the coordinate system defined by this matrix.

The rectangle's coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

If rotation or shearing has been specified, this function returns the bounding rectangle. To retrieve the exact region the given rectangle maps to, use the mapToPolygon() function instead.

See also mapToPolygon() and Basic Matrix Operations.

func (*QTransform) MapToPolygon

func (this *QTransform) MapToPolygon(r qtcore.QRect_ITF) *QPolygon

Creates and returns a QPolygon representation of the given rectangle, mapped into the coordinate system defined by this matrix.

The rectangle's coordinates are transformed using the following formulas:

x' = m11*x + m21*y + dx
y' = m22*y + m12*x + dy
if (is not affine) {
    w' = m13*x + m23*y + m33
    x' /= w'
    y' /= w'
}

Polygons and rectangles behave slightly differently when transformed (due to integer rounding), so matrix.map(QPolygon(rectangle)) is not always the same as matrix.mapToPolygon(rectangle).

See also mapRect() and Basic Matrix Operations.

func (*QTransform) NewForInherit

func (*QTransform) NewForInherit(arg0 int) *QTransform

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale) and m33 which are set to 1.

See also reset().

func (*QTransform) NewForInherit1

func (*QTransform) NewForInherit1() *QTransform

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale) and m33 which are set to 1.

See also reset().

func (*QTransform) NewForInherit2

func (*QTransform) NewForInherit2(h11 float64, h12 float64, h13 float64, h21 float64, h22 float64, h23 float64, h31 float64, h32 float64, h33 float64) *QTransform

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale) and m33 which are set to 1.

See also reset().

func (*QTransform) NewForInherit2p

func (*QTransform) NewForInherit2p(h11 float64, h12 float64, h13 float64, h21 float64, h22 float64, h23 float64, h31 float64, h32 float64) *QTransform

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale) and m33 which are set to 1.

See also reset().

func (*QTransform) NewForInherit3

func (*QTransform) NewForInherit3(h11 float64, h12 float64, h21 float64, h22 float64, dx float64, dy float64) *QTransform

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale) and m33 which are set to 1.

See also reset().

func (*QTransform) NewForInherit4

func (*QTransform) NewForInherit4(mtx QMatrix_ITF) *QTransform

Constructs an identity matrix.

All elements are set to zero except m11 and m22 (specifying the scale) and m33 which are set to 1.

See also reset().

func (*QTransform) NewFromPointer

func (*QTransform) NewFromPointer(cthis unsafe.Pointer) *QTransform

func (*QTransform) Operator_add_equal

func (this *QTransform) Operator_add_equal(div float64) *QTransform

func (*QTransform) Operator_div_equal

func (this *QTransform) Operator_div_equal(div float64) *QTransform

func (*QTransform) Operator_equal

func (this *QTransform) Operator_equal(other unsafe.Pointer) *QTransform

func (*QTransform) Operator_equal1

func (this *QTransform) Operator_equal1(arg0 QTransform_ITF) *QTransform

func (*QTransform) Operator_equal_equal

func (this *QTransform) Operator_equal_equal(arg0 QTransform_ITF) bool

func (*QTransform) Operator_minus_equal

func (this *QTransform) Operator_minus_equal(div float64) *QTransform

func (*QTransform) Operator_mul

func (this *QTransform) Operator_mul(o QTransform_ITF) *QTransform

func (*QTransform) Operator_mul_equal

func (this *QTransform) Operator_mul_equal(arg0 QTransform_ITF) *QTransform

func (*QTransform) Operator_mul_equal1

func (this *QTransform) Operator_mul_equal1(div float64) *QTransform

func (*QTransform) Operator_not_equal

func (this *QTransform) Operator_not_equal(arg0 QTransform_ITF) bool

func (*QTransform) QTransform_PTR

func (ptr *QTransform) QTransform_PTR() *QTransform

func (*QTransform) QuadToQuad

func (this *QTransform) QuadToQuad(one QPolygonF_ITF, two QPolygonF_ITF, result QTransform_ITF) bool

Creates a transformation matrix, trans, that maps a four-sided polygon, one, to another four-sided polygon, two. Returns true if the transformation is possible; otherwise returns false.

This is a convenience method combining quadToSquare() and squareToQuad() methods. It allows the input quad to be transformed into any other quad.

See also squareToQuad() and quadToSquare().

func (*QTransform) QuadToSquare

func (this *QTransform) QuadToSquare(quad QPolygonF_ITF, result QTransform_ITF) bool

Creates a transformation matrix, trans, that maps a four-sided polygon, quad, to a unit square. Returns true if the transformation is constructed or false if such a transformation does not exist.

See also squareToQuad() and quadToQuad().

func (*QTransform) Reset

func (this *QTransform) Reset()

Resets the matrix to an identity matrix, i.e. all elements are set to zero, except m11 and m22 (specifying the scale) and m33 which are set to 1.

See also QTransform(), isIdentity(), and Basic Matrix Operations.

func (*QTransform) Rotate

func (this *QTransform) Rotate(a float64, axis int) *QTransform

Rotates the coordinate system counterclockwise by the given angle about the specified axis and returns a reference to the matrix.

Note that if you apply a QTransform to a point defined in widget coordinates, the direction of the rotation will be clockwise because the y-axis points downwards.

The angle is specified in degrees.

See also setMatrix().

func (*QTransform) RotateRadians

func (this *QTransform) RotateRadians(a float64, axis int) *QTransform

Rotates the coordinate system counterclockwise by the given angle about the specified axis and returns a reference to the matrix.

Note that if you apply a QTransform to a point defined in widget coordinates, the direction of the rotation will be clockwise because the y-axis points downwards.

The angle is specified in radians.

See also setMatrix().

func (*QTransform) RotateRadiansp

func (this *QTransform) RotateRadiansp(a float64) *QTransform

Rotates the coordinate system counterclockwise by the given angle about the specified axis and returns a reference to the matrix.

Note that if you apply a QTransform to a point defined in widget coordinates, the direction of the rotation will be clockwise because the y-axis points downwards.

The angle is specified in radians.

See also setMatrix().

func (*QTransform) Rotatep

func (this *QTransform) Rotatep(a float64) *QTransform

Rotates the coordinate system counterclockwise by the given angle about the specified axis and returns a reference to the matrix.

Note that if you apply a QTransform to a point defined in widget coordinates, the direction of the rotation will be clockwise because the y-axis points downwards.

The angle is specified in degrees.

See also setMatrix().

func (*QTransform) Scale

func (this *QTransform) Scale(sx float64, sy float64) *QTransform

Scales the coordinate system by sx horizontally and sy vertically, and returns a reference to the matrix.

See also setMatrix().

func (*QTransform) SetCthis

func (this *QTransform) SetCthis(cthis unsafe.Pointer)

func (*QTransform) SetMatrix

func (this *QTransform) SetMatrix(m11 float64, m12 float64, m13 float64, m21 float64, m22 float64, m23 float64, m31 float64, m32 float64, m33 float64)

Sets the matrix elements to the specified values, m11, m12, m13 m21, m22, m23 m31, m32 and m33. Note that this function replaces the previous values. QTransform provides the translate(), rotate(), scale() and shear() convenience functions to manipulate the various matrix elements based on the currently defined coordinate system.

See also QTransform().

func (*QTransform) Shear

func (this *QTransform) Shear(sh float64, sv float64) *QTransform

Shears the coordinate system by sh horizontally and sv vertically, and returns a reference to the matrix.

See also setMatrix().

func (*QTransform) SquareToQuad

func (this *QTransform) SquareToQuad(square QPolygonF_ITF, result QTransform_ITF) bool

Creates a transformation matrix, trans, that maps a unit square to a four-sided polygon, quad. Returns true if the transformation is constructed or false if such a transformation does not exist.

See also quadToSquare() and quadToQuad().

func (*QTransform) ToAffine

func (this *QTransform) ToAffine() *QMatrix

Returns the QTransform as an affine matrix.

Warning: If a perspective transformation has been specified, then the conversion will cause loss of data.

func (*QTransform) TransformationTypeItemName

func (this *QTransform) TransformationTypeItemName(val int) string

func (*QTransform) Translate

func (this *QTransform) Translate(dx float64, dy float64) *QTransform

Moves the coordinate system dx along the x axis and dy along the y axis, and returns a reference to the matrix.

See also setMatrix().

func (*QTransform) Transposed

func (this *QTransform) Transposed() *QTransform

Returns the transpose of this matrix.

func (*QTransform) Type

func (this *QTransform) Type() int

Returns the transformation type of this matrix.

The transformation type is the highest enumeration value capturing all of the matrix's transformations. For example, if the matrix both scales and shears, the type would be TxShear, because TxShear has a higher enumeration value than TxScale.

Knowing the transformation type of a matrix is useful for optimization: you can often handle specific types more optimally than handling the generic case.

type QTransform_ITF

type QTransform_ITF interface {
	QTransform_PTR() *QTransform
}

type QTransform__TransformationType

type QTransform__TransformationType = int

ConstantValue

const QTransform__TxNone QTransform__TransformationType = 0
const QTransform__TxProject QTransform__TransformationType = 16
const QTransform__TxRotate QTransform__TransformationType = 4
const QTransform__TxScale QTransform__TransformationType = 2
const QTransform__TxShear QTransform__TransformationType = 8
const QTransform__TxTranslate QTransform__TransformationType = 1

type QValidator

type QValidator struct {
	*qtcore.QObject
}

func NewQValidator

func NewQValidator(parent qtcore.QObject_ITF) *QValidator

func NewQValidatorFromPointer

func NewQValidatorFromPointer(cthis unsafe.Pointer) *QValidator

func NewQValidatorp

func NewQValidatorp() *QValidator

func (*QValidator) Changed

func (this *QValidator) Changed()

This signal is emitted when any property that may affect the validity of a string has changed.

func (*QValidator) Fixup

func (this *QValidator) Fixup(arg0 string)

This function attempts to change input to be valid according to this validator's rules. It need not result in a valid string: callers of this function must re-test afterwards; the default does nothing.

Reimplementations of this function can change input even if they do not produce a valid string. For example, an ISBN validator might want to delete every character except digits and "-", even if the result is still not a valid ISBN; a surname validator might want to remove whitespace from the start and end of the string, even if the resulting string is not in the list of accepted surnames.

func (*QValidator) GetCthis

func (this *QValidator) GetCthis() unsafe.Pointer

func (*QValidator) Locale

func (this *QValidator) Locale() *qtcore.QLocale

Returns the locale for the validator. The locale is by default initialized to the same as QLocale().

See also setLocale() and QLocale::QLocale().

func (*QValidator) MetaObject

func (this *QValidator) MetaObject() *qtcore.QMetaObject

func (*QValidator) NewForInherit

func (*QValidator) NewForInherit(parent qtcore.QObject_ITF) *QValidator

Sets up the validator. The parent parameter is passed on to the QObject constructor.

func (*QValidator) NewForInheritp

func (*QValidator) NewForInheritp() *QValidator

Sets up the validator. The parent parameter is passed on to the QObject constructor.

func (*QValidator) NewFromPointer

func (*QValidator) NewFromPointer(cthis unsafe.Pointer) *QValidator

func (*QValidator) QValidator_PTR

func (ptr *QValidator) QValidator_PTR() *QValidator

func (*QValidator) SetCthis

func (this *QValidator) SetCthis(cthis unsafe.Pointer)

func (*QValidator) SetLocale

func (this *QValidator) SetLocale(locale qtcore.QLocale_ITF)

Sets the locale that will be used for the validator. Unless setLocale has been called, the validator will use the default locale set with QLocale::setDefault(). If a default locale has not been set, it is the operating system's locale.

See also locale() and QLocale::setDefault().

func (*QValidator) StateItemName

func (this *QValidator) StateItemName(val int) string

func (*QValidator) Validate

func (this *QValidator) Validate(arg0 string, arg1 int) int

This virtual function returns Invalid if input is invalid according to this validator's rules, Intermediate if it is likely that a little more editing will make the input acceptable (e.g. the user types "4" into a widget which accepts integers between 10 and 99), and Acceptable if the input is valid.

The function can change both input and pos (the cursor position) if required.

type QValidator_ITF

type QValidator_ITF interface {
	qtcore.QObject_ITF
	QValidator_PTR() *QValidator
}

type QValidator__State

type QValidator__State = int

This enum type defines the states in which a validated string can exist.

const QValidator__Acceptable QValidator__State = 2

The string is acceptable as a final result; i.e. it is valid.

const QValidator__Intermediate QValidator__State = 1

The string is a plausible intermediate value.

const QValidator__Invalid QValidator__State = 0

The string is clearly invalid.

type QVector2D

type QVector2D struct {
	*qtrt.CObject
}

func NewQVector2D

func NewQVector2D() *QVector2D

func NewQVector2D1

func NewQVector2D1(arg0 int) *QVector2D

func NewQVector2D2

func NewQVector2D2(xpos float32, ypos float32) *QVector2D

func NewQVector2D3

func NewQVector2D3(point qtcore.QPoint_ITF) *QVector2D

func NewQVector2D4

func NewQVector2D4(point qtcore.QPointF_ITF) *QVector2D

func NewQVector2D5

func NewQVector2D5(vector QVector3D_ITF) *QVector2D

func NewQVector2D6

func NewQVector2D6(vector QVector4D_ITF) *QVector2D

func NewQVector2DFromPointer

func NewQVector2DFromPointer(cthis unsafe.Pointer) *QVector2D

func (*QVector2D) DistanceToLine

func (this *QVector2D) DistanceToLine(point QVector2D_ITF, direction QVector2D_ITF) float32

Returns the distance that this vertex is from a line defined by point and the unit vector direction.

If direction is a null vector, then it does not define a line. In that case, the distance from point to this vertex is returned.

This function was introduced in Qt 5.1.

See also distanceToPoint().

func (*QVector2D) DistanceToPoint

func (this *QVector2D) DistanceToPoint(point QVector2D_ITF) float32

Returns the distance from this vertex to a point defined by the vertex point.

This function was introduced in Qt 5.1.

See also distanceToLine().

func (*QVector2D) DotProduct

func (this *QVector2D) DotProduct(v1 QVector2D_ITF, v2 QVector2D_ITF) float32

Returns the dot product of v1 and v2.

func (*QVector2D) GetCthis

func (this *QVector2D) GetCthis() unsafe.Pointer

func (*QVector2D) IsNull

func (this *QVector2D) IsNull() bool

Returns true if the x and y coordinates are set to 0.0, otherwise returns false.

func (*QVector2D) Length

func (this *QVector2D) Length() float32

Returns the length of the vector from the origin.

See also lengthSquared() and normalized().

func (*QVector2D) LengthSquared

func (this *QVector2D) LengthSquared() float32

Returns the squared length of the vector from the origin. This is equivalent to the dot product of the vector with itself.

See also length() and dotProduct().

func (*QVector2D) NewForInherit

func (*QVector2D) NewForInherit() *QVector2D

Constructs a null vector, i.e. with coordinates (0, 0).

func (*QVector2D) NewForInherit1

func (*QVector2D) NewForInherit1(arg0 int) *QVector2D

Constructs a null vector, i.e. with coordinates (0, 0).

func (*QVector2D) NewForInherit2

func (*QVector2D) NewForInherit2(xpos float32, ypos float32) *QVector2D

Constructs a null vector, i.e. with coordinates (0, 0).

func (*QVector2D) NewForInherit3

func (*QVector2D) NewForInherit3(point qtcore.QPoint_ITF) *QVector2D

Constructs a null vector, i.e. with coordinates (0, 0).

func (*QVector2D) NewForInherit4

func (*QVector2D) NewForInherit4(point qtcore.QPointF_ITF) *QVector2D

Constructs a null vector, i.e. with coordinates (0, 0).

func (*QVector2D) NewForInherit5

func (*QVector2D) NewForInherit5(vector QVector3D_ITF) *QVector2D

Constructs a null vector, i.e. with coordinates (0, 0).

func (*QVector2D) NewForInherit6

func (*QVector2D) NewForInherit6(vector QVector4D_ITF) *QVector2D

Constructs a null vector, i.e. with coordinates (0, 0).

func (*QVector2D) NewFromPointer

func (*QVector2D) NewFromPointer(cthis unsafe.Pointer) *QVector2D

func (*QVector2D) Normalize

func (this *QVector2D) Normalize()

Normalizes the currect vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1.

See also length() and normalized().

func (*QVector2D) Normalized

func (this *QVector2D) Normalized() *QVector2D

Returns the normalized unit vector form of this vector.

If this vector is null, then a null vector is returned. If the length of the vector is very close to 1, then the vector will be returned as-is. Otherwise the normalized form of the vector of length 1 will be returned.

See also length() and normalize().

func (*QVector2D) Operator_add_equal

func (this *QVector2D) Operator_add_equal(vector QVector2D_ITF) *QVector2D

func (*QVector2D) Operator_div_equal

func (this *QVector2D) Operator_div_equal(divisor float32) *QVector2D

func (*QVector2D) Operator_div_equal1

func (this *QVector2D) Operator_div_equal1(vector QVector2D_ITF) *QVector2D

func (*QVector2D) Operator_get_index

func (this *QVector2D) Operator_get_index(i int) float32

func (*QVector2D) Operator_get_index1

func (this *QVector2D) Operator_get_index1(i int) float32

func (*QVector2D) Operator_minus_equal

func (this *QVector2D) Operator_minus_equal(vector QVector2D_ITF) *QVector2D

func (*QVector2D) Operator_mul_equal

func (this *QVector2D) Operator_mul_equal(factor float32) *QVector2D

func (*QVector2D) Operator_mul_equal1

func (this *QVector2D) Operator_mul_equal1(vector QVector2D_ITF) *QVector2D

func (*QVector2D) QVector2D_PTR

func (ptr *QVector2D) QVector2D_PTR() *QVector2D

func (*QVector2D) SetCthis

func (this *QVector2D) SetCthis(cthis unsafe.Pointer)

func (*QVector2D) SetX

func (this *QVector2D) SetX(x float32)

Sets the x coordinate of this point to the given x coordinate.

See also x() and setY().

func (*QVector2D) SetY

func (this *QVector2D) SetY(y float32)

Sets the y coordinate of this point to the given y coordinate.

See also y() and setX().

func (*QVector2D) ToPoint

func (this *QVector2D) ToPoint() *qtcore.QPoint

Returns the QPoint form of this 2D vector.

See also toPointF() and toVector3D().

func (*QVector2D) ToPointF

func (this *QVector2D) ToPointF() *qtcore.QPointF

Returns the QPointF form of this 2D vector.

See also toPoint() and toVector3D().

func (*QVector2D) ToVector3D

func (this *QVector2D) ToVector3D() *QVector3D

Returns the 3D form of this 2D vector, with the z coordinate set to zero.

See also toVector4D() and toPoint().

func (*QVector2D) ToVector4D

func (this *QVector2D) ToVector4D() *QVector4D

Returns the 4D form of this 2D vector, with the z and w coordinates set to zero.

See also toVector3D() and toPoint().

func (*QVector2D) X

func (this *QVector2D) X() float32

Returns the x coordinate of this point.

See also setX() and y().

func (*QVector2D) Y

func (this *QVector2D) Y() float32

Returns the y coordinate of this point.

See also setY() and x().

type QVector2D_ITF

type QVector2D_ITF interface {
	QVector2D_PTR() *QVector2D
}

type QVector3D

type QVector3D struct {
	*qtrt.CObject
}

func NewQVector3D

func NewQVector3D() *QVector3D

func NewQVector3D1

func NewQVector3D1(arg0 int) *QVector3D

func NewQVector3D2

func NewQVector3D2(xpos float32, ypos float32, zpos float32) *QVector3D

func NewQVector3D3

func NewQVector3D3(point qtcore.QPoint_ITF) *QVector3D

func NewQVector3D4

func NewQVector3D4(point qtcore.QPointF_ITF) *QVector3D

func NewQVector3D5

func NewQVector3D5(vector QVector2D_ITF) *QVector3D

func NewQVector3D6

func NewQVector3D6(vector QVector2D_ITF, zpos float32) *QVector3D

func NewQVector3D7

func NewQVector3D7(vector QVector4D_ITF) *QVector3D

func NewQVector3DFromPointer

func NewQVector3DFromPointer(cthis unsafe.Pointer) *QVector3D

func QVector3D_CrossProduct

func QVector3D_CrossProduct(v1 QVector3D_ITF, v2 QVector3D_ITF) *QVector3D

func QVector3D_Normal

func QVector3D_Normal(v1 QVector3D_ITF, v2 QVector3D_ITF) *QVector3D

func QVector3D_Normal1

func QVector3D_Normal1(v1 QVector3D_ITF, v2 QVector3D_ITF, v3 QVector3D_ITF) *QVector3D

func (*QVector3D) CrossProduct

func (this *QVector3D) CrossProduct(v1 QVector3D_ITF, v2 QVector3D_ITF) *QVector3D

Returns the cross-product of vectors v1 and v2, which corresponds to the normal vector of a plane defined by v1 and v2.

See also normal().

func (*QVector3D) DistanceToLine

func (this *QVector3D) DistanceToLine(point QVector3D_ITF, direction QVector3D_ITF) float32

Returns the distance that this vertex is from a line defined by point and the unit vector direction.

If direction is a null vector, then it does not define a line. In that case, the distance from point to this vertex is returned.

See also distanceToPlane().

func (*QVector3D) DistanceToPlane

func (this *QVector3D) DistanceToPlane(plane QVector3D_ITF, normal QVector3D_ITF) float32

Returns the distance from this vertex to a plane defined by the vertex plane and a normal unit vector. The normal parameter is assumed to have been normalized to a unit vector.

The return value will be negative if the vertex is below the plane, or zero if it is on the plane.

See also normal() and distanceToLine().

func (*QVector3D) DistanceToPlane1

func (this *QVector3D) DistanceToPlane1(plane1 QVector3D_ITF, plane2 QVector3D_ITF, plane3 QVector3D_ITF) float32

Returns the distance from this vertex to a plane defined by the vertex plane and a normal unit vector. The normal parameter is assumed to have been normalized to a unit vector.

The return value will be negative if the vertex is below the plane, or zero if it is on the plane.

See also normal() and distanceToLine().

func (*QVector3D) DistanceToPoint

func (this *QVector3D) DistanceToPoint(point QVector3D_ITF) float32

Returns the distance from this vertex to a point defined by the vertex point.

This function was introduced in Qt 5.1.

See also distanceToPlane() and distanceToLine().

func (*QVector3D) DotProduct

func (this *QVector3D) DotProduct(v1 QVector3D_ITF, v2 QVector3D_ITF) float32

Returns the dot product of v1 and v2.

func (*QVector3D) GetCthis

func (this *QVector3D) GetCthis() unsafe.Pointer

func (*QVector3D) IsNull

func (this *QVector3D) IsNull() bool

Returns true if the x, y, and z coordinates are set to 0.0, otherwise returns false.

func (*QVector3D) Length

func (this *QVector3D) Length() float32

Returns the length of the vector from the origin.

See also lengthSquared() and normalized().

func (*QVector3D) LengthSquared

func (this *QVector3D) LengthSquared() float32

Returns the squared length of the vector from the origin. This is equivalent to the dot product of the vector with itself.

See also length() and dotProduct().

func (*QVector3D) NewForInherit

func (*QVector3D) NewForInherit() *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewForInherit1

func (*QVector3D) NewForInherit1(arg0 int) *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewForInherit2

func (*QVector3D) NewForInherit2(xpos float32, ypos float32, zpos float32) *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewForInherit3

func (*QVector3D) NewForInherit3(point qtcore.QPoint_ITF) *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewForInherit4

func (*QVector3D) NewForInherit4(point qtcore.QPointF_ITF) *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewForInherit5

func (*QVector3D) NewForInherit5(vector QVector2D_ITF) *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewForInherit6

func (*QVector3D) NewForInherit6(vector QVector2D_ITF, zpos float32) *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewForInherit7

func (*QVector3D) NewForInherit7(vector QVector4D_ITF) *QVector3D

Constructs a null vector, i.e. with coordinates (0, 0, 0).

func (*QVector3D) NewFromPointer

func (*QVector3D) NewFromPointer(cthis unsafe.Pointer) *QVector3D

func (*QVector3D) Normal

func (this *QVector3D) Normal(v1 QVector3D_ITF, v2 QVector3D_ITF) *QVector3D

Returns the normal vector of a plane defined by vectors v1 and v2, normalized to be a unit vector.

Use crossProduct() to compute the cross-product of v1 and v2 if you do not need the result to be normalized to a unit vector.

See also crossProduct() and distanceToPlane().

func (*QVector3D) Normal1

func (this *QVector3D) Normal1(v1 QVector3D_ITF, v2 QVector3D_ITF, v3 QVector3D_ITF) *QVector3D

Returns the normal vector of a plane defined by vectors v1 and v2, normalized to be a unit vector.

Use crossProduct() to compute the cross-product of v1 and v2 if you do not need the result to be normalized to a unit vector.

See also crossProduct() and distanceToPlane().

func (*QVector3D) Normalize

func (this *QVector3D) Normalize()

Normalizes the currect vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1.

See also length() and normalized().

func (*QVector3D) Normalized

func (this *QVector3D) Normalized() *QVector3D

Returns the normalized unit vector form of this vector.

If this vector is null, then a null vector is returned. If the length of the vector is very close to 1, then the vector will be returned as-is. Otherwise the normalized form of the vector of length 1 will be returned.

See also length() and normalize().

func (*QVector3D) Operator_add_equal

func (this *QVector3D) Operator_add_equal(vector QVector3D_ITF) *QVector3D

func (*QVector3D) Operator_div_equal

func (this *QVector3D) Operator_div_equal(divisor float32) *QVector3D

func (*QVector3D) Operator_div_equal1

func (this *QVector3D) Operator_div_equal1(vector QVector3D_ITF) *QVector3D

func (*QVector3D) Operator_get_index

func (this *QVector3D) Operator_get_index(i int) float32

func (*QVector3D) Operator_get_index1

func (this *QVector3D) Operator_get_index1(i int) float32

func (*QVector3D) Operator_minus_equal

func (this *QVector3D) Operator_minus_equal(vector QVector3D_ITF) *QVector3D

func (*QVector3D) Operator_mul_equal

func (this *QVector3D) Operator_mul_equal(factor float32) *QVector3D

func (*QVector3D) Operator_mul_equal1

func (this *QVector3D) Operator_mul_equal1(vector QVector3D_ITF) *QVector3D

func (*QVector3D) Project

func (this *QVector3D) Project(modelView QMatrix4x4_ITF, projection QMatrix4x4_ITF, viewport qtcore.QRect_ITF) *QVector3D

Returns the window coordinates of this vector initially in object/model coordinates using the model view matrix modelView, the projection matrix projection and the viewport dimensions viewport.

When transforming from clip to normalized space, a division by the w component on the vector components takes place. To prevent dividing by 0 if w equals to 0, it is set to 1.

Note: the returned y coordinates are in OpenGL orientation. OpenGL expects the bottom to be 0 whereas for Qt top is 0.

This function was introduced in Qt 5.5.

See also unproject().

func (*QVector3D) QVector3D_PTR

func (ptr *QVector3D) QVector3D_PTR() *QVector3D

func (*QVector3D) SetCthis

func (this *QVector3D) SetCthis(cthis unsafe.Pointer)

func (*QVector3D) SetX

func (this *QVector3D) SetX(x float32)

Sets the x coordinate of this point to the given x coordinate.

See also x(), setY(), and setZ().

func (*QVector3D) SetY

func (this *QVector3D) SetY(y float32)

Sets the y coordinate of this point to the given y coordinate.

See also y(), setX(), and setZ().

func (*QVector3D) SetZ

func (this *QVector3D) SetZ(z float32)

Sets the z coordinate of this point to the given z coordinate.

See also z(), setX(), and setY().

func (*QVector3D) ToPoint

func (this *QVector3D) ToPoint() *qtcore.QPoint

Returns the QPoint form of this 3D vector. The z coordinate is dropped.

See also toPointF() and toVector2D().

func (*QVector3D) ToPointF

func (this *QVector3D) ToPointF() *qtcore.QPointF

Returns the QPointF form of this 3D vector. The z coordinate is dropped.

See also toPoint() and toVector2D().

func (*QVector3D) ToVector2D

func (this *QVector3D) ToVector2D() *QVector2D

Returns the 2D vector form of this 3D vector, dropping the z coordinate.

See also toVector4D() and toPoint().

func (*QVector3D) ToVector4D

func (this *QVector3D) ToVector4D() *QVector4D

Returns the 4D form of this 3D vector, with the w coordinate set to zero.

See also toVector2D() and toPoint().

func (*QVector3D) Unproject

func (this *QVector3D) Unproject(modelView QMatrix4x4_ITF, projection QMatrix4x4_ITF, viewport qtcore.QRect_ITF) *QVector3D

Returns the object/model coordinates of this vector initially in window coordinates using the model view matrix modelView, the projection matrix projection and the viewport dimensions viewport.

When transforming from clip to normalized space, a division by the w component of the vector components takes place. To prevent dividing by 0 if w equals to 0, it is set to 1.

Note: y coordinates in viewport should use OpenGL orientation. OpenGL expects the bottom to be 0 whereas for Qt top is 0.

This function was introduced in Qt 5.5.

See also project().

func (*QVector3D) X

func (this *QVector3D) X() float32

Returns the x coordinate of this point.

See also setX(), y(), and z().

func (*QVector3D) Y

func (this *QVector3D) Y() float32

Returns the y coordinate of this point.

See also setY(), x(), and z().

func (*QVector3D) Z

func (this *QVector3D) Z() float32

Returns the z coordinate of this point.

See also setZ(), x(), and y().

type QVector3D_ITF

type QVector3D_ITF interface {
	QVector3D_PTR() *QVector3D
}

type QVector4D

type QVector4D struct {
	*qtrt.CObject
}

func NewQVector4D

func NewQVector4D() *QVector4D

func NewQVector4D1

func NewQVector4D1(arg0 int) *QVector4D

func NewQVector4D2

func NewQVector4D2(xpos float32, ypos float32, zpos float32, wpos float32) *QVector4D

func NewQVector4D3

func NewQVector4D3(point qtcore.QPoint_ITF) *QVector4D

func NewQVector4D4

func NewQVector4D4(point qtcore.QPointF_ITF) *QVector4D

func NewQVector4D5

func NewQVector4D5(vector QVector2D_ITF) *QVector4D

func NewQVector4D6

func NewQVector4D6(vector QVector2D_ITF, zpos float32, wpos float32) *QVector4D

func NewQVector4D7

func NewQVector4D7(vector QVector3D_ITF) *QVector4D

func NewQVector4D8

func NewQVector4D8(vector QVector3D_ITF, wpos float32) *QVector4D

func NewQVector4DFromPointer

func NewQVector4DFromPointer(cthis unsafe.Pointer) *QVector4D

func (*QVector4D) DotProduct

func (this *QVector4D) DotProduct(v1 QVector4D_ITF, v2 QVector4D_ITF) float32

Returns the dot product of v1 and v2.

func (*QVector4D) GetCthis

func (this *QVector4D) GetCthis() unsafe.Pointer

func (*QVector4D) IsNull

func (this *QVector4D) IsNull() bool

Returns true if the x, y, z, and w coordinates are set to 0.0, otherwise returns false.

func (*QVector4D) Length

func (this *QVector4D) Length() float32

Returns the length of the vector from the origin.

See also lengthSquared() and normalized().

func (*QVector4D) LengthSquared

func (this *QVector4D) LengthSquared() float32

Returns the squared length of the vector from the origin. This is equivalent to the dot product of the vector with itself.

See also length() and dotProduct().

func (*QVector4D) NewForInherit

func (*QVector4D) NewForInherit() *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit1

func (*QVector4D) NewForInherit1(arg0 int) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit2

func (*QVector4D) NewForInherit2(xpos float32, ypos float32, zpos float32, wpos float32) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit3

func (*QVector4D) NewForInherit3(point qtcore.QPoint_ITF) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit4

func (*QVector4D) NewForInherit4(point qtcore.QPointF_ITF) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit5

func (*QVector4D) NewForInherit5(vector QVector2D_ITF) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit6

func (*QVector4D) NewForInherit6(vector QVector2D_ITF, zpos float32, wpos float32) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit7

func (*QVector4D) NewForInherit7(vector QVector3D_ITF) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewForInherit8

func (*QVector4D) NewForInherit8(vector QVector3D_ITF, wpos float32) *QVector4D

Constructs a null vector, i.e. with coordinates (0, 0, 0, 0).

func (*QVector4D) NewFromPointer

func (*QVector4D) NewFromPointer(cthis unsafe.Pointer) *QVector4D

func (*QVector4D) Normalize

func (this *QVector4D) Normalize()

Normalizes the currect vector in place. Nothing happens if this vector is a null vector or the length of the vector is very close to 1.

See also length() and normalized().

func (*QVector4D) Normalized

func (this *QVector4D) Normalized() *QVector4D

Returns the normalized unit vector form of this vector.

If this vector is null, then a null vector is returned. If the length of the vector is very close to 1, then the vector will be returned as-is. Otherwise the normalized form of the vector of length 1 will be returned.

See also length() and normalize().

func (*QVector4D) Operator_add_equal

func (this *QVector4D) Operator_add_equal(vector QVector4D_ITF) *QVector4D

func (*QVector4D) Operator_div_equal

func (this *QVector4D) Operator_div_equal(divisor float32) *QVector4D

func (*QVector4D) Operator_div_equal1

func (this *QVector4D) Operator_div_equal1(vector QVector4D_ITF) *QVector4D

func (*QVector4D) Operator_get_index

func (this *QVector4D) Operator_get_index(i int) float32

func (*QVector4D) Operator_get_index1

func (this *QVector4D) Operator_get_index1(i int) float32

func (*QVector4D) Operator_minus_equal

func (this *QVector4D) Operator_minus_equal(vector QVector4D_ITF) *QVector4D

func (*QVector4D) Operator_mul_equal

func (this *QVector4D) Operator_mul_equal(factor float32) *QVector4D

func (*QVector4D) Operator_mul_equal1

func (this *QVector4D) Operator_mul_equal1(vector QVector4D_ITF) *QVector4D

func (*QVector4D) QVector4D_PTR

func (ptr *QVector4D) QVector4D_PTR() *QVector4D

func (*QVector4D) SetCthis

func (this *QVector4D) SetCthis(cthis unsafe.Pointer)

func (*QVector4D) SetW

func (this *QVector4D) SetW(w float32)

Sets the w coordinate of this point to the given w coordinate.

See also w(), setX(), setY(), and setZ().

func (*QVector4D) SetX

func (this *QVector4D) SetX(x float32)

Sets the x coordinate of this point to the given x coordinate.

See also x(), setY(), setZ(), and setW().

func (*QVector4D) SetY

func (this *QVector4D) SetY(y float32)

Sets the y coordinate of this point to the given y coordinate.

See also y(), setX(), setZ(), and setW().

func (*QVector4D) SetZ

func (this *QVector4D) SetZ(z float32)

Sets the z coordinate of this point to the given z coordinate.

See also z(), setX(), setY(), and setW().

func (*QVector4D) ToPoint

func (this *QVector4D) ToPoint() *qtcore.QPoint

Returns the QPoint form of this 4D vector. The z and w coordinates are dropped.

See also toPointF() and toVector2D().

func (*QVector4D) ToPointF

func (this *QVector4D) ToPointF() *qtcore.QPointF

Returns the QPointF form of this 4D vector. The z and w coordinates are dropped.

See also toPoint() and toVector2D().

func (*QVector4D) ToVector2D

func (this *QVector4D) ToVector2D() *QVector2D

Returns the 2D vector form of this 4D vector, dropping the z and w coordinates.

See also toVector2DAffine(), toVector3D(), and toPoint().

func (*QVector4D) ToVector2DAffine

func (this *QVector4D) ToVector2DAffine() *QVector2D

Returns the 2D vector form of this 4D vector, dividing the x and y coordinates by the w coordinate and dropping the z coordinate. Returns a null vector if w is zero.

See also toVector2D(), toVector3DAffine(), and toPoint().

func (*QVector4D) ToVector3D

func (this *QVector4D) ToVector3D() *QVector3D

Returns the 3D vector form of this 4D vector, dropping the w coordinate.

See also toVector3DAffine(), toVector2D(), and toPoint().

func (*QVector4D) ToVector3DAffine

func (this *QVector4D) ToVector3DAffine() *QVector3D

Returns the 3D vector form of this 4D vector, dividing the x, y, and z coordinates by the w coordinate. Returns a null vector if w is zero.

See also toVector3D(), toVector2DAffine(), and toPoint().

func (*QVector4D) W

func (this *QVector4D) W() float32

Returns the w coordinate of this point.

See also setW(), x(), y(), and z().

func (*QVector4D) X

func (this *QVector4D) X() float32

Returns the x coordinate of this point.

See also setX(), y(), z(), and w().

func (*QVector4D) Y

func (this *QVector4D) Y() float32

Returns the y coordinate of this point.

See also setY(), x(), z(), and w().

func (*QVector4D) Z

func (this *QVector4D) Z() float32

Returns the z coordinate of this point.

See also setZ(), x(), y(), and w().

type QVector4D_ITF

type QVector4D_ITF interface {
	QVector4D_PTR() *QVector4D
}

type QWhatsThisClickedEvent

type QWhatsThisClickedEvent struct {
	*qtcore.QEvent
}

func NewQWhatsThisClickedEvent

func NewQWhatsThisClickedEvent(href string) *QWhatsThisClickedEvent

func NewQWhatsThisClickedEventFromPointer

func NewQWhatsThisClickedEventFromPointer(cthis unsafe.Pointer) *QWhatsThisClickedEvent

func (*QWhatsThisClickedEvent) GetCthis

func (this *QWhatsThisClickedEvent) GetCthis() unsafe.Pointer

func (*QWhatsThisClickedEvent) Href

func (this *QWhatsThisClickedEvent) Href() string

func (*QWhatsThisClickedEvent) NewForInherit

func (*QWhatsThisClickedEvent) NewFromPointer

func (*QWhatsThisClickedEvent) QWhatsThisClickedEvent_PTR

func (ptr *QWhatsThisClickedEvent) QWhatsThisClickedEvent_PTR() *QWhatsThisClickedEvent

func (*QWhatsThisClickedEvent) SetCthis

func (this *QWhatsThisClickedEvent) SetCthis(cthis unsafe.Pointer)

type QWhatsThisClickedEvent_ITF

type QWhatsThisClickedEvent_ITF interface {
	qtcore.QEvent_ITF
	QWhatsThisClickedEvent_PTR() *QWhatsThisClickedEvent
}

type QWheelEvent

type QWheelEvent struct {
	*QInputEvent
}

func NewQWheelEvent

func NewQWheelEvent(pos qtcore.QPointF_ITF, delta int, buttons int, modifiers int, orient int) *QWheelEvent

func NewQWheelEvent1

func NewQWheelEvent1(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, delta int, buttons int, modifiers int, orient int) *QWheelEvent

func NewQWheelEvent1p

func NewQWheelEvent1p(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, delta int, buttons int, modifiers int) *QWheelEvent

func NewQWheelEvent2

func NewQWheelEvent2(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int) *QWheelEvent

func NewQWheelEvent3

func NewQWheelEvent3(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int, phase int) *QWheelEvent

func NewQWheelEvent4

func NewQWheelEvent4(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int, phase int, source int) *QWheelEvent

func NewQWheelEvent5

func NewQWheelEvent5(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int, phase int, source int, inverted bool) *QWheelEvent

func NewQWheelEvent6

func NewQWheelEvent6(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, buttons int, modifiers int, phase int, inverted bool, source int) *QWheelEvent

func NewQWheelEvent6p

func NewQWheelEvent6p(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, buttons int, modifiers int, phase int, inverted bool) *QWheelEvent

func NewQWheelEventFromPointer

func NewQWheelEventFromPointer(cthis unsafe.Pointer) *QWheelEvent

func NewQWheelEventp

func NewQWheelEventp(pos qtcore.QPointF_ITF, delta int, buttons int, modifiers int) *QWheelEvent

func (*QWheelEvent) AngleDelta

func (this *QWheelEvent) AngleDelta() *qtcore.QPoint

func (*QWheelEvent) Buttons

func (this *QWheelEvent) Buttons() int

func (*QWheelEvent) Delta

func (this *QWheelEvent) Delta() int

func (*QWheelEvent) GetCthis

func (this *QWheelEvent) GetCthis() unsafe.Pointer

func (*QWheelEvent) GlobalPos

func (this *QWheelEvent) GlobalPos() *qtcore.QPoint

func (*QWheelEvent) GlobalPosF

func (this *QWheelEvent) GlobalPosF() *qtcore.QPointF

func (*QWheelEvent) GlobalX

func (this *QWheelEvent) GlobalX() int

func (*QWheelEvent) GlobalY

func (this *QWheelEvent) GlobalY() int

func (*QWheelEvent) Inverted

func (this *QWheelEvent) Inverted() bool

func (*QWheelEvent) ItemName

func (this *QWheelEvent) ItemName(val int) string

func (*QWheelEvent) NewForInherit

func (*QWheelEvent) NewForInherit(pos qtcore.QPointF_ITF, delta int, buttons int, modifiers int, orient int) *QWheelEvent

func (*QWheelEvent) NewForInherit1

func (*QWheelEvent) NewForInherit1(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, delta int, buttons int, modifiers int, orient int) *QWheelEvent

func (*QWheelEvent) NewForInherit1p

func (*QWheelEvent) NewForInherit1p(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, delta int, buttons int, modifiers int) *QWheelEvent

func (*QWheelEvent) NewForInherit2

func (*QWheelEvent) NewForInherit2(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int) *QWheelEvent

func (*QWheelEvent) NewForInherit3

func (*QWheelEvent) NewForInherit3(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int, phase int) *QWheelEvent

func (*QWheelEvent) NewForInherit4

func (*QWheelEvent) NewForInherit4(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int, phase int, source int) *QWheelEvent

func (*QWheelEvent) NewForInherit5

func (*QWheelEvent) NewForInherit5(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, qt4Delta int, qt4Orientation int, buttons int, modifiers int, phase int, source int, inverted bool) *QWheelEvent

func (*QWheelEvent) NewForInherit6

func (*QWheelEvent) NewForInherit6(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, buttons int, modifiers int, phase int, inverted bool, source int) *QWheelEvent

func (*QWheelEvent) NewForInherit6p

func (*QWheelEvent) NewForInherit6p(pos qtcore.QPointF_ITF, globalPos qtcore.QPointF_ITF, pixelDelta qtcore.QPoint_ITF, angleDelta qtcore.QPoint_ITF, buttons int, modifiers int, phase int, inverted bool) *QWheelEvent

func (*QWheelEvent) NewForInheritp

func (*QWheelEvent) NewForInheritp(pos qtcore.QPointF_ITF, delta int, buttons int, modifiers int) *QWheelEvent

func (*QWheelEvent) NewFromPointer

func (*QWheelEvent) NewFromPointer(cthis unsafe.Pointer) *QWheelEvent

func (*QWheelEvent) Orientation

func (this *QWheelEvent) Orientation() int

func (*QWheelEvent) Phase

func (this *QWheelEvent) Phase() int

func (*QWheelEvent) PixelDelta

func (this *QWheelEvent) PixelDelta() *qtcore.QPoint

func (*QWheelEvent) Pos

func (this *QWheelEvent) Pos() *qtcore.QPoint

func (*QWheelEvent) PosF

func (this *QWheelEvent) PosF() *qtcore.QPointF

func (*QWheelEvent) QWheelEvent_PTR

func (ptr *QWheelEvent) QWheelEvent_PTR() *QWheelEvent

func (*QWheelEvent) SetCthis

func (this *QWheelEvent) SetCthis(cthis unsafe.Pointer)

func (*QWheelEvent) Source

func (this *QWheelEvent) Source() int

func (*QWheelEvent) X

func (this *QWheelEvent) X() int

func (*QWheelEvent) Y

func (this *QWheelEvent) Y() int

type QWheelEvent_ITF

type QWheelEvent_ITF interface {
	QInputEvent_ITF
	QWheelEvent_PTR() *QWheelEvent
}

type QWheelEvent__

type QWheelEvent__ = int
const QWheelEvent__DefaultDeltasPerStep QWheelEvent__ = 120

type QWindow

type QWindow struct {
	*qtcore.QObject
	*QSurface
}

func NewQWindow

func NewQWindow(screen QScreen_ITF) *QWindow

func NewQWindow1

func NewQWindow1(parent QWindow_ITF) *QWindow

func NewQWindowFromPointer

func NewQWindowFromPointer(cthis unsafe.Pointer) *QWindow

func NewQWindowp

func NewQWindowp() *QWindow

func QGuiApplication_FocusWindow

func QGuiApplication_FocusWindow() *QWindow

func QGuiApplication_ModalWindow

func QGuiApplication_ModalWindow() *QWindow

func QGuiApplication_TopLevelAt

func QGuiApplication_TopLevelAt(pos qtcore.QPoint_ITF) *QWindow

func QWindow_FromWinId

func QWindow_FromWinId(id uint64) *QWindow

func (*QWindow) AccessibleRoot

func (this *QWindow) AccessibleRoot() *QAccessibleInterface

func (*QWindow) ActiveChanged

func (this *QWindow) ActiveChanged()

func (*QWindow) Alert

func (this *QWindow) Alert(msec int)

Causes an alert to be shown for msec miliseconds. If msec is 0 (the default), then the alert is shown indefinitely until the window becomes active again. This function has no effect on an active window.

In alert state, the window indicates that it demands attention, for example by flashing or bouncing the taskbar entry.

This function was introduced in Qt 5.1.

func (*QWindow) AncestorModeItemName

func (this *QWindow) AncestorModeItemName(val int) string

func (*QWindow) BaseSize

func (this *QWindow) BaseSize() *qtcore.QSize

Returns the base size of the window.

See also setBaseSize().

func (*QWindow) Close

func (this *QWindow) Close() bool

Close the window.

This closes the window, effectively calling destroy(), and potentially quitting the application. Returns true on success, false if it has a parent window (in which case the top level window should be closed instead).

See also destroy() and QGuiApplication::quitOnLastWindowClosed().

func (*QWindow) ContentOrientation

func (this *QWindow) ContentOrientation() int

func (*QWindow) ContentOrientationChanged

func (this *QWindow) ContentOrientationChanged(orientation int)

func (*QWindow) Create

func (this *QWindow) Create()

Allocates the platform resources associated with the window.

It is at this point that the surface format set using setFormat() gets resolved into an actual native surface. However, the window remains hidden until setVisible() is called.

Note that it is not usually necessary to call this function directly, as it will be implicitly called by show(), setVisible(), and other functions that require access to the platform resources.

Call destroy() to free the platform resources if necessary.

See also destroy().

func (*QWindow) Cursor

func (this *QWindow) Cursor() *QCursor

the cursor shape for this window

See also setCursor() and unsetCursor().

func (*QWindow) Destroy

func (this *QWindow) Destroy()

Releases the native platform resources associated with this window.

See also create().

func (*QWindow) DevicePixelRatio

func (this *QWindow) DevicePixelRatio() float64

Returns the ratio between physical pixels and device-independent pixels for the window. This value is dependent on the screen the window is on, and may change when the window is moved.

Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays.

Note: For windows not backed by a platform window, meaning that create() was not called, the function will fall back to the associated QScreen's device pixel ratio.

See also QScreen::devicePixelRatio().

func (*QWindow) Event

func (this *QWindow) Event(arg0 qtcore.QEvent_ITF) bool

Reimplemented from QObject::event().

Override this to handle any event (ev) sent to the window. Return true if the event was recognized and processed.

Remember to call the base class version if you wish for mouse events, key events, resize events, etc to be dispatched as usual.

func (*QWindow) ExposeEvent

func (this *QWindow) ExposeEvent(arg0 QExposeEvent_ITF)

The expose event (ev) is sent by the window system whenever an area of the window is invalidated, for example due to the exposure in the windowing system changing.

The application can start rendering into the window with QBackingStore and QOpenGLContext as soon as it gets an exposeEvent() such that isExposed() is true.

If the window is moved off screen, is made totally obscured by another window, iconified or similar, this function might be called and the value of isExposed() might change to false. When this happens, an application should stop its rendering as it is no longer visible to the user.

A resize event will always be sent before the expose event the first time a window is shown.

See also isExposed().

func (*QWindow) FilePath

func (this *QWindow) FilePath() string

the file name this window is representing.

See also setFilePath().

func (*QWindow) Flags

func (this *QWindow) Flags() int

func (*QWindow) FocusInEvent

func (this *QWindow) FocusInEvent(arg0 QFocusEvent_ITF)

Override this to handle focus in events (ev).

Focus in events are sent when the window receives keyboard focus.

See also focusOutEvent().

func (*QWindow) FocusObject

func (this *QWindow) FocusObject() *qtcore.QObject

Returns the QObject that will be the final receiver of events tied focus, such as key events.

func (*QWindow) FocusObjectChanged

func (this *QWindow) FocusObjectChanged(object qtcore.QObject_ITF)

This signal is emitted when the final receiver of events tied to focus is changed to object.

See also focusObject().

func (*QWindow) FocusOutEvent

func (this *QWindow) FocusOutEvent(arg0 QFocusEvent_ITF)

Override this to handle focus out events (ev).

Focus out events are sent when the window loses keyboard focus.

See also focusInEvent().

func (*QWindow) Format

func (this *QWindow) Format() *QSurfaceFormat

Reimplemented from QSurface::format().

Returns the actual format of this window.

After the window has been created, this function will return the actual surface format of the window. It might differ from the requested format if the requested format could not be fulfilled by the platform. It might also be a superset, for example certain buffer sizes may be larger than requested.

Note: Depending on the platform, certain values in this surface format may still contain the requested values, that is, the values that have been passed to setFormat(). Typical examples are the OpenGL version, profile and options. These may not get updated during create() since these are context specific and a single window may be used together with multiple contexts over its lifetime. Use the QOpenGLContext's format() instead to query such values.

See also setFormat(), create(), requestedFormat(), and QOpenGLContext::format().

func (*QWindow) FrameGeometry

func (this *QWindow) FrameGeometry() *qtcore.QRect

Returns the geometry of the window, including its window frame.

The geometry is in relation to the virtualGeometry() of its screen.

See also geometry() and frameMargins().

func (*QWindow) FrameMargins

func (this *QWindow) FrameMargins() *qtcore.QMargins

Returns the window frame margins surrounding the window.

See also geometry() and frameGeometry().

func (*QWindow) FramePosition

func (this *QWindow) FramePosition() *qtcore.QPoint

Returns the top left position of the window, including its window frame.

This returns the same value as frameGeometry().topLeft().

See also setFramePosition(), geometry(), and frameGeometry().

func (*QWindow) FromWinId

func (this *QWindow) FromWinId(id uint64) *QWindow

Creates a local representation of a window created by another process or by using native libraries below Qt.

Given the handle id to a native window, this method creates a QWindow object which can be used to represent the window when invoking methods like setParent() and setTransientParent().

This can be used, on platforms which support it, to embed a QWindow inside a native window, or to embed a native window inside a QWindow.

If foreign windows are not supported or embedding the native window failed in the platform plugin, this function returns 0.

Note: The resulting QWindow should not be used to manipulate the underlying native window (besides re-parenting), or to observe state changes of the native window. Any support for these kind of operations is incidental, highly platform dependent and untested.

See also setParent() and setTransientParent().

func (*QWindow) Geometry

func (this *QWindow) Geometry() *qtcore.QRect

Returns the geometry of the window, excluding its window frame.

The geometry is in relation to the virtualGeometry() of its screen.

See also setGeometry(), frameMargins(), and frameGeometry().

func (*QWindow) GetCthis

func (this *QWindow) GetCthis() unsafe.Pointer

func (*QWindow) Height

func (this *QWindow) Height() int

func (*QWindow) HeightChanged

func (this *QWindow) HeightChanged(arg int)

func (*QWindow) Hide

func (this *QWindow) Hide()

Hides the window.

Equivalent to calling setVisible(false).

See also show() and setVisible().

func (*QWindow) HideEvent

func (this *QWindow) HideEvent(arg0 QHideEvent_ITF)

Override this to handle hide events (ev).

The function is called when the window has requested being hidden in the windowing system.

func (*QWindow) Icon

func (this *QWindow) Icon() *QIcon

Returns the window's icon in the windowing system

See also setIcon().

func (*QWindow) InheritEvent

func (this *QWindow) InheritEvent(f func(arg0 *qtcore.QEvent) bool)

bool event(QEvent *)

func (*QWindow) InheritExposeEvent

func (this *QWindow) InheritExposeEvent(f func(arg0 *QExposeEvent))

void exposeEvent(QExposeEvent *)

func (*QWindow) InheritFocusInEvent

func (this *QWindow) InheritFocusInEvent(f func(arg0 *QFocusEvent))

void focusInEvent(QFocusEvent *)

func (*QWindow) InheritFocusOutEvent

func (this *QWindow) InheritFocusOutEvent(f func(arg0 *QFocusEvent))

void focusOutEvent(QFocusEvent *)

func (*QWindow) InheritHideEvent

func (this *QWindow) InheritHideEvent(f func(arg0 *QHideEvent))

void hideEvent(QHideEvent *)

func (*QWindow) InheritKeyPressEvent

func (this *QWindow) InheritKeyPressEvent(f func(arg0 *QKeyEvent))

void keyPressEvent(QKeyEvent *)

func (*QWindow) InheritKeyReleaseEvent

func (this *QWindow) InheritKeyReleaseEvent(f func(arg0 *QKeyEvent))

void keyReleaseEvent(QKeyEvent *)

func (*QWindow) InheritMouseDoubleClickEvent

func (this *QWindow) InheritMouseDoubleClickEvent(f func(arg0 *QMouseEvent))

void mouseDoubleClickEvent(QMouseEvent *)

func (*QWindow) InheritMouseMoveEvent

func (this *QWindow) InheritMouseMoveEvent(f func(arg0 *QMouseEvent))

void mouseMoveEvent(QMouseEvent *)

func (*QWindow) InheritMousePressEvent

func (this *QWindow) InheritMousePressEvent(f func(arg0 *QMouseEvent))

void mousePressEvent(QMouseEvent *)

func (*QWindow) InheritMouseReleaseEvent

func (this *QWindow) InheritMouseReleaseEvent(f func(arg0 *QMouseEvent))

void mouseReleaseEvent(QMouseEvent *)

func (*QWindow) InheritMoveEvent

func (this *QWindow) InheritMoveEvent(f func(arg0 *QMoveEvent))

void moveEvent(QMoveEvent *)

func (*QWindow) InheritNativeEvent

func (this *QWindow) InheritNativeEvent(f func(eventType *qtcore.QByteArray, message unsafe.Pointer, result unsafe.Pointer) bool)

bool nativeEvent(const QByteArray &, void *, long *)

func (*QWindow) InheritResizeEvent

func (this *QWindow) InheritResizeEvent(f func(arg0 *QResizeEvent))

void resizeEvent(QResizeEvent *)

func (*QWindow) InheritShowEvent

func (this *QWindow) InheritShowEvent(f func(arg0 *QShowEvent))

void showEvent(QShowEvent *)

func (*QWindow) InheritTabletEvent

func (this *QWindow) InheritTabletEvent(f func(arg0 *QTabletEvent))

void tabletEvent(QTabletEvent *)

func (*QWindow) InheritTouchEvent

func (this *QWindow) InheritTouchEvent(f func(arg0 *QTouchEvent))

void touchEvent(QTouchEvent *)

func (*QWindow) InheritWheelEvent

func (this *QWindow) InheritWheelEvent(f func(arg0 *QWheelEvent))

void wheelEvent(QWheelEvent *)

func (*QWindow) IsActive

func (this *QWindow) IsActive() bool

Returns true if the window should appear active from a style perspective.

This is the case for the window that has input focus as well as windows that are in the same parent / transient parent chain as the focus window.

To get the window that currently has focus, use QGuiApplication::focusWindow().

Note: Getter function for property active.

func (*QWindow) IsAncestorOf

func (this *QWindow) IsAncestorOf(child QWindow_ITF, mode int) bool

Returns true if the window is an ancestor of the given child. If mode is IncludeTransients, then transient parents are also considered ancestors.

func (*QWindow) IsAncestorOfp

func (this *QWindow) IsAncestorOfp(child QWindow_ITF) bool

Returns true if the window is an ancestor of the given child. If mode is IncludeTransients, then transient parents are also considered ancestors.

func (*QWindow) IsExposed

func (this *QWindow) IsExposed() bool

Returns if this window is exposed in the windowing system.

When the window is not exposed, it is shown by the application but it is still not showing in the windowing system, so the application should minimize rendering and other graphical activities.

An exposeEvent() is sent every time this value changes.

See also exposeEvent().

func (*QWindow) IsModal

func (this *QWindow) IsModal() bool

Returns whether the window is modal.

A modal window prevents other windows from getting any input.

See also QWindow::modality.

func (*QWindow) IsTopLevel

func (this *QWindow) IsTopLevel() bool

Returns whether the window is top level, i.e. has no parent window.

func (*QWindow) IsVisible

func (this *QWindow) IsVisible() bool

func (*QWindow) KeyPressEvent

func (this *QWindow) KeyPressEvent(arg0 QKeyEvent_ITF)

Override this to handle key press events (ev).

See also keyReleaseEvent().

func (*QWindow) KeyReleaseEvent

func (this *QWindow) KeyReleaseEvent(arg0 QKeyEvent_ITF)

Override this to handle key release events (ev).

See also keyPressEvent().

func (*QWindow) Lower

func (this *QWindow) Lower()

Lower the window in the windowing system.

Requests that the window be lowered to appear below other windows.

func (*QWindow) MapFromGlobal

func (this *QWindow) MapFromGlobal(pos qtcore.QPoint_ITF) *qtcore.QPoint

Translates the global screen coordinate pos to window coordinates.

See also mapToGlobal().

func (*QWindow) MapToGlobal

func (this *QWindow) MapToGlobal(pos qtcore.QPoint_ITF) *qtcore.QPoint

Translates the window coordinate pos to global screen coordinates. For example, mapToGlobal(QPoint(0,0)) would give the global coordinates of the top-left pixel of the window.

See also mapFromGlobal().

func (*QWindow) Mask

func (this *QWindow) Mask() *QRegion

Returns the mask set on the window.

The mask is a hint to the windowing system that the application does not want to receive mouse or touch input outside the given region.

See also setMask().

func (*QWindow) MaximumHeight

func (this *QWindow) MaximumHeight() int

func (*QWindow) MaximumHeightChanged

func (this *QWindow) MaximumHeightChanged(arg int)

func (*QWindow) MaximumSize

func (this *QWindow) MaximumSize() *qtcore.QSize

Returns the maximum size of the window.

See also setMaximumSize().

func (*QWindow) MaximumWidth

func (this *QWindow) MaximumWidth() int

func (*QWindow) MaximumWidthChanged

func (this *QWindow) MaximumWidthChanged(arg int)

func (*QWindow) MetaObject

func (this *QWindow) MetaObject() *qtcore.QMetaObject

func (*QWindow) MinimumHeight

func (this *QWindow) MinimumHeight() int

func (*QWindow) MinimumHeightChanged

func (this *QWindow) MinimumHeightChanged(arg int)

func (*QWindow) MinimumSize

func (this *QWindow) MinimumSize() *qtcore.QSize

Returns the minimum size of the window.

See also setMinimumSize().

func (*QWindow) MinimumWidth

func (this *QWindow) MinimumWidth() int

func (*QWindow) MinimumWidthChanged

func (this *QWindow) MinimumWidthChanged(arg int)

func (*QWindow) Modality

func (this *QWindow) Modality() int

func (*QWindow) ModalityChanged

func (this *QWindow) ModalityChanged(modality int)

This signal is emitted when the Qwindow::modality property changes to modality.

Note: Notifier signal for property modality.

func (*QWindow) MouseDoubleClickEvent

func (this *QWindow) MouseDoubleClickEvent(arg0 QMouseEvent_ITF)

Override this to handle mouse double click events (ev).

See also mousePressEvent() and QStyleHints::mouseDoubleClickInterval().

func (*QWindow) MouseMoveEvent

func (this *QWindow) MouseMoveEvent(arg0 QMouseEvent_ITF)

Override this to handle mouse move events (ev).

func (*QWindow) MousePressEvent

func (this *QWindow) MousePressEvent(arg0 QMouseEvent_ITF)

Override this to handle mouse press events (ev).

See also mouseReleaseEvent().

func (*QWindow) MouseReleaseEvent

func (this *QWindow) MouseReleaseEvent(arg0 QMouseEvent_ITF)

Override this to handle mouse release events (ev).

See also mousePressEvent().

func (*QWindow) MoveEvent

func (this *QWindow) MoveEvent(arg0 QMoveEvent_ITF)

Override this to handle window move events (ev).

func (*QWindow) NativeEvent

func (this *QWindow) NativeEvent(eventType qtcore.QByteArray_ITF, message unsafe.Pointer, result unsafe.Pointer) bool

Override this to handle platform dependent events. Will be given eventType, message and result.

This might make your application non-portable.

Should return true only if the event was handled.

func (*QWindow) NewForInherit

func (*QWindow) NewForInherit(screen QScreen_ITF) *QWindow

Creates a window as a top level on the targetScreen.

The window is not shown until setVisible(true), show(), or similar is called.

See also setScreen().

func (*QWindow) NewForInherit1

func (*QWindow) NewForInherit1(parent QWindow_ITF) *QWindow

Creates a window as a top level on the targetScreen.

The window is not shown until setVisible(true), show(), or similar is called.

See also setScreen().

func (*QWindow) NewForInheritp

func (*QWindow) NewForInheritp() *QWindow

Creates a window as a top level on the targetScreen.

The window is not shown until setVisible(true), show(), or similar is called.

See also setScreen().

func (*QWindow) NewFromPointer

func (*QWindow) NewFromPointer(cthis unsafe.Pointer) *QWindow

func (*QWindow) Opacity

func (this *QWindow) Opacity() float64

func (*QWindow) OpacityChanged

func (this *QWindow) OpacityChanged(opacity float64)

func (*QWindow) Parent

func (this *QWindow) Parent(mode int) *QWindow

Returns the parent window, if any.

If mode is IncludeTransients, then the transient parent is returned if there is no parent.

A window without a parent is known as a top level window.

This function was introduced in Qt 5.9.

See also setParent().

func (*QWindow) Parent1

func (this *QWindow) Parent1() *QWindow

Returns the parent window, if any.

If mode is IncludeTransients, then the transient parent is returned if there is no parent.

A window without a parent is known as a top level window.

This function was introduced in Qt 5.9.

See also setParent().

func (*QWindow) Position

func (this *QWindow) Position() *qtcore.QPoint

Returns the position of the window on the desktop excluding any window frame

See also setPosition().

func (*QWindow) QWindow_PTR

func (ptr *QWindow) QWindow_PTR() *QWindow

func (*QWindow) Raise

func (this *QWindow) Raise()

Raise the window in the windowing system.

Requests that the window be raised to appear above other windows.

func (*QWindow) ReportContentOrientationChange

func (this *QWindow) ReportContentOrientationChange(orientation int)

func (*QWindow) RequestActivate

func (this *QWindow) RequestActivate()

Requests the window to be activated, i.e. receive keyboard focus.

See also isActive(), QGuiApplication::focusWindow(), and QWindowsWindowFunctions::setWindowActivationBehavior().

func (*QWindow) RequestUpdate

func (this *QWindow) RequestUpdate()

Schedules a QEvent::UpdateRequest event to be delivered to this window.

The event is delivered in sync with the display vsync on platforms where this is possible. Otherwise, the event is delivered after a delay of 5 ms. The additional time is there to give the event loop a bit of idle time to gather system events, and can be overridden using the QT_QPA_UPDATE_IDLE_TIME environment variable.

When driving animations, this function should be called once after drawing has completed. Calling this function multiple times will result in a single event being delivered to the window.

Subclasses of QWindow should reimplement event(), intercept the event and call the application's rendering code, then call the base class implementation.

Note: The subclass' reimplementation of event() must invoke the base class implementation, unless it is absolutely sure that the event does not need to be handled by the base class. For example, the default implementation of this function relies on QEvent::Timer events. Filtering them away would therefore break the delivery of the update events.

This function was introduced in Qt 5.5.

func (*QWindow) RequestedFormat

func (this *QWindow) RequestedFormat() *QSurfaceFormat

Returns the requested surface format of this window.

If the requested format was not supported by the platform implementation, the requestedFormat will differ from the actual window format.

This is the value set with setFormat().

See also setFormat() and format().

func (*QWindow) Resize

func (this *QWindow) Resize(newSize qtcore.QSize_ITF)

set the size of the window, excluding any window frame, to newSize

See also size() and geometry().

func (*QWindow) Resize1

func (this *QWindow) Resize1(w int, h int)

set the size of the window, excluding any window frame, to newSize

See also size() and geometry().

func (*QWindow) ResizeEvent

func (this *QWindow) ResizeEvent(arg0 QResizeEvent_ITF)

Override this to handle resize events (ev).

The resize event is called whenever the window is resized in the windowing system, either directly through the windowing system acknowledging a setGeometry() or resize() request, or indirectly through the user resizing the window manually.

func (*QWindow) Screen

func (this *QWindow) Screen() *QScreen

Returns the screen on which the window is shown, or null if there is none.

For child windows, this returns the screen of the corresponding top level window.

See also setScreen() and QScreen::virtualSiblings().

func (*QWindow) ScreenChanged

func (this *QWindow) ScreenChanged(screen QScreen_ITF)

This signal is emitted when a window's screen changes, either by being set explicitly with setScreen(), or automatically when the window's screen is removed.

func (*QWindow) SetBaseSize

func (this *QWindow) SetBaseSize(size qtcore.QSize_ITF)

Sets the base size of the window.

The base size is used to calculate a proper window size if the window defines sizeIncrement().

See also setMinimumSize(), setMaximumSize(), setSizeIncrement(), and baseSize().

func (*QWindow) SetCthis

func (this *QWindow) SetCthis(cthis unsafe.Pointer)

func (*QWindow) SetCursor

func (this *QWindow) SetCursor(arg0 QCursor_ITF)

set the cursor shape for this window

The mouse cursor will assume this shape when it is over this window, unless an override cursor is set. See the list of predefined cursor objects for a range of useful shapes.

If no cursor has been set, or after a call to unsetCursor(), the parent window's cursor is used.

By default, the cursor has the Qt::ArrowCursor shape.

Some underlying window implementations will reset the cursor if it leaves a window even if the mouse is grabbed. If you want to have a cursor set for all windows, even when outside the window, consider QGuiApplication::setOverrideCursor().

See also cursor() and QGuiApplication::setOverrideCursor().

func (*QWindow) SetFilePath

func (this *QWindow) SetFilePath(filePath string)

set the file name this window is representing.

The windowing system might use filePath to display the path of the document this window is representing in the tile bar.

See also filePath().

func (*QWindow) SetFlag

func (this *QWindow) SetFlag(arg0 int, on bool)

Sets the window flag flag on this window if on is true; otherwise clears the flag.

This function was introduced in Qt 5.9.

See also setFlags(), flags(), and type().

func (*QWindow) SetFlagp

func (this *QWindow) SetFlagp(arg0 int)

Sets the window flag flag on this window if on is true; otherwise clears the flag.

This function was introduced in Qt 5.9.

See also setFlags(), flags(), and type().

func (*QWindow) SetFlags

func (this *QWindow) SetFlags(flags int)

func (*QWindow) SetFormat

func (this *QWindow) SetFormat(format QSurfaceFormat_ITF)

Sets the window's surface format.

The format determines properties such as color depth, alpha, depth and stencil buffer size, etc. For example, to give a window a transparent background (provided that the window system supports compositing, and provided that other content in the window does not make it opaque again):

QSurfaceFormat format;
format.setAlphaBufferSize(8);
window.setFormat(format);

The surface format will be resolved in the create() function. Calling this function after create() has been called will not re-resolve the surface format of the native surface.

When the format is not explicitly set via this function, the format returned by QSurfaceFormat::defaultFormat() will be used. This means that when having multiple windows, individual calls to this function can be replaced by one single call to QSurfaceFormat::setDefaultFormat() before creating the first window.

See also format(), create(), destroy(), and QSurfaceFormat::setDefaultFormat().

func (*QWindow) SetFramePosition

func (this *QWindow) SetFramePosition(point qtcore.QPoint_ITF)

Sets the upper left position of the window (point) including its window frame.

The position is in relation to the virtualGeometry() of its screen.

See also framePosition(), setGeometry(), and frameGeometry().

func (*QWindow) SetGeometry

func (this *QWindow) SetGeometry(posx int, posy int, w int, h int)

Sets the geometry of the window, excluding its window frame, to a rectangle constructed from posx, posy, w and h.

The geometry is in relation to the virtualGeometry() of its screen.

See also geometry().

func (*QWindow) SetGeometry1

func (this *QWindow) SetGeometry1(rect qtcore.QRect_ITF)

Sets the geometry of the window, excluding its window frame, to a rectangle constructed from posx, posy, w and h.

The geometry is in relation to the virtualGeometry() of its screen.

See also geometry().

func (*QWindow) SetHeight

func (this *QWindow) SetHeight(arg int)

func (*QWindow) SetIcon

func (this *QWindow) SetIcon(icon QIcon_ITF)

Sets the window's icon in the windowing system

The window icon might be used by the windowing system for example to decorate the window, and/or in the task switcher.

Note: On macOS, the window title bar icon is meant for windows representing documents, and will only show up if a file path is also set.

See also icon() and setFilePath().

func (*QWindow) SetKeyboardGrabEnabled

func (this *QWindow) SetKeyboardGrabEnabled(grab bool) bool

Sets whether keyboard grab should be enabled or not (grab).

If the return value is true, the window receives all key events until setKeyboardGrabEnabled(false) is called; other windows get no key events at all. Mouse events are not affected. Use setMouseGrabEnabled() if you want to grab that.

See also setMouseGrabEnabled().

func (*QWindow) SetMask

func (this *QWindow) SetMask(region QRegion_ITF)

Sets the mask of the window.

The mask is a hint to the windowing system that the application does not want to receive mouse or touch input outside the given region.

The window manager may or may not choose to display any areas of the window not included in the mask, thus it is the application's responsibility to clear to transparent the areas that are not part of the mask.

See also mask().

func (*QWindow) SetMaximumHeight

func (this *QWindow) SetMaximumHeight(h int)

func (*QWindow) SetMaximumSize

func (this *QWindow) SetMaximumSize(size qtcore.QSize_ITF)

Sets the maximum size of the window.

This is a hint to the window manager to prevent resizing above the specified size.

See also setMinimumSize() and maximumSize().

func (*QWindow) SetMaximumWidth

func (this *QWindow) SetMaximumWidth(w int)

func (*QWindow) SetMinimumHeight

func (this *QWindow) SetMinimumHeight(h int)

func (*QWindow) SetMinimumSize

func (this *QWindow) SetMinimumSize(size qtcore.QSize_ITF)

Sets the minimum size of the window.

This is a hint to the window manager to prevent resizing below the specified size.

See also setMaximumSize() and minimumSize().

func (*QWindow) SetMinimumWidth

func (this *QWindow) SetMinimumWidth(w int)

func (*QWindow) SetModality

func (this *QWindow) SetModality(modality int)

func (*QWindow) SetMouseGrabEnabled

func (this *QWindow) SetMouseGrabEnabled(grab bool) bool

Sets whether mouse grab should be enabled or not (grab).

If the return value is true, the window receives all mouse events until setMouseGrabEnabled(false) is called; other windows get no mouse events at all. Keyboard events are not affected. Use setKeyboardGrabEnabled() if you want to grab that.

See also setKeyboardGrabEnabled().

func (*QWindow) SetOpacity

func (this *QWindow) SetOpacity(level float64)

func (*QWindow) SetParent

func (this *QWindow) SetParent(parent QWindow_ITF)

Sets the parent Window. This will lead to the windowing system managing the clip of the window, so it will be clipped to the parent window.

Setting parent to be 0 will make the window become a top level window.

If parent is a window created by fromWinId(), then the current window will be embedded inside parent, if the platform supports it.

See also parent().

func (*QWindow) SetPosition

func (this *QWindow) SetPosition(pt qtcore.QPoint_ITF)

set the position of the window on the desktop to pt

The position is in relation to the virtualGeometry() of its screen.

See also position().

func (*QWindow) SetPosition1

func (this *QWindow) SetPosition1(posx int, posy int)

set the position of the window on the desktop to pt

The position is in relation to the virtualGeometry() of its screen.

See also position().

func (*QWindow) SetScreen

func (this *QWindow) SetScreen(screen QScreen_ITF)

Sets the screen on which the window should be shown.

If the window has been created, it will be recreated on the newScreen.

Note: If the screen is part of a virtual desktop of multiple screens, the window will not move automatically to newScreen. To place the window relative to the screen, use the screen's topLeft() position.

This function only works for top level windows.

See also screen() and QScreen::virtualSiblings().

func (*QWindow) SetSizeIncrement

func (this *QWindow) SetSizeIncrement(size qtcore.QSize_ITF)

Sets the size increment (size) of the window.

When the user resizes the window, the size will move in steps of sizeIncrement().width() pixels horizontally and sizeIncrement().height() pixels vertically, with baseSize() as the basis.

By default, this property contains a size with zero width and height.

The windowing system might not support size increments.

See also sizeIncrement(), setBaseSize(), setMinimumSize(), and setMaximumSize().

func (*QWindow) SetSurfaceType

func (this *QWindow) SetSurfaceType(surfaceType int)

Sets the surfaceType of the window.

Specifies whether the window is meant for raster rendering with QBackingStore, or OpenGL rendering with QOpenGLContext.

The surfaceType will be used when the native surface is created in the create() function. Calling this function after the native surface has been created requires calling destroy() and create() to release the old native surface and create a new one.

See also surfaceType(), QBackingStore, QOpenGLContext, create(), and destroy().

func (*QWindow) SetTitle

func (this *QWindow) SetTitle(arg0 string)

func (*QWindow) SetTransientParent

func (this *QWindow) SetTransientParent(parent QWindow_ITF)

Sets the transient parent

This is a hint to the window manager that this window is a dialog or pop-up on behalf of the given window.

In order to cause the window to be centered above its transient parent by default, depending on the window manager, it may also be necessary to call setFlags() with a suitable Qt::WindowType (such as Qt::Dialog).

See also transientParent() and parent().

func (*QWindow) SetVisibility

func (this *QWindow) SetVisibility(v int)

func (*QWindow) SetVisible

func (this *QWindow) SetVisible(visible bool)

func (*QWindow) SetWidth

func (this *QWindow) SetWidth(arg int)

func (*QWindow) SetWindowState

func (this *QWindow) SetWindowState(state int)

set the screen-occupation state of the window

The window state represents whether the window appears in the windowing system as maximized, minimized, fullscreen, or normal.

The enum value Qt::WindowActive is not an accepted parameter.

See also windowState(), showNormal(), showFullScreen(), showMinimized(), showMaximized(), and setWindowStates().

func (*QWindow) SetWindowStates

func (this *QWindow) SetWindowStates(states int)

set the screen-occupation state of the window

The window state represents whether the window appears in the windowing system as maximized, minimized and/or fullscreen.

The window can be in a combination of several states. For example, if the window is both minimized and maximized, the window will appear minimized, but clicking on the task bar entry will restore it to the maximized state.

The enum value Qt::WindowActive should not be set.

This function was introduced in Qt 5.10.

See also windowStates(), showNormal(), showFullScreen(), showMinimized(), and showMaximized().

func (*QWindow) SetX

func (this *QWindow) SetX(arg int)

func (*QWindow) SetY

func (this *QWindow) SetY(arg int)

func (*QWindow) Show

func (this *QWindow) Show()

Shows the window.

This is equivalent to calling showFullScreen(), showMaximized(), or showNormal(), depending on the platform's default behavior for the window type and flags.

See also showFullScreen(), showMaximized(), showNormal(), hide(), QStyleHints::showIsFullScreen(), and flags().

func (*QWindow) ShowEvent

func (this *QWindow) ShowEvent(arg0 QShowEvent_ITF)

Override this to handle show events (ev).

The function is called when the window has requested becoming visible.

If the window is successfully shown by the windowing system, this will be followed by a resize and an expose event.

func (*QWindow) ShowFullScreen

func (this *QWindow) ShowFullScreen()

Shows the window as fullscreen.

Equivalent to calling setWindowStates(Qt::WindowFullScreen) and then setVisible(true).

See also setWindowStates() and setVisible().

func (*QWindow) ShowMaximized

func (this *QWindow) ShowMaximized()

Shows the window as maximized.

Equivalent to calling setWindowStates(Qt::WindowMaximized) and then setVisible(true).

See also setWindowStates() and setVisible().

func (*QWindow) ShowMinimized

func (this *QWindow) ShowMinimized()

Shows the window as minimized.

Equivalent to calling setWindowStates(Qt::WindowMinimized) and then setVisible(true).

See also setWindowStates() and setVisible().

func (*QWindow) ShowNormal

func (this *QWindow) ShowNormal()

Shows the window as normal, i.e. neither maximized, minimized, nor fullscreen.

Equivalent to calling setWindowStates(Qt::WindowNoState) and then setVisible(true).

See also setWindowStates() and setVisible().

func (*QWindow) Size

func (this *QWindow) Size() *qtcore.QSize

Reimplemented from QSurface::size().

Returns the size of the window excluding any window frame

See also resize().

func (*QWindow) SizeIncrement

func (this *QWindow) SizeIncrement() *qtcore.QSize

Returns the size increment of the window.

See also setSizeIncrement().

func (*QWindow) SurfaceType

func (this *QWindow) SurfaceType() int

Reimplemented from QSurface::surfaceType().

Returns the surface type of the window.

See also setSurfaceType().

func (*QWindow) TabletEvent

func (this *QWindow) TabletEvent(arg0 QTabletEvent_ITF)

Override this to handle tablet press, move, and release events (ev).

Proximity enter and leave events are not sent to windows, they are delivered to the application instance.

func (*QWindow) Title

func (this *QWindow) Title() string

func (*QWindow) TouchEvent

func (this *QWindow) TouchEvent(arg0 QTouchEvent_ITF)

Override this to handle touch events (ev).

func (*QWindow) TransientParent

func (this *QWindow) TransientParent() *QWindow

Returns the transient parent of the window.

See also setTransientParent() and parent().

func (*QWindow) Type

func (this *QWindow) Type() int

Returns the type of the window.

This returns the part of the window flags that represents whether the window is a dialog, tooltip, popup, regular window, etc.

See also flags() and setFlags().

func (*QWindow) UnsetCursor

func (this *QWindow) UnsetCursor()

Restores the default arrow cursor for this window.

func (*QWindow) Visibility

func (this *QWindow) Visibility() int

func (*QWindow) VisibilityChanged

func (this *QWindow) VisibilityChanged(visibility int)

func (*QWindow) VisibilityItemName

func (this *QWindow) VisibilityItemName(val int) string

func (*QWindow) VisibleChanged

func (this *QWindow) VisibleChanged(arg bool)

func (*QWindow) WheelEvent

func (this *QWindow) WheelEvent(arg0 QWheelEvent_ITF)

Override this to handle mouse wheel or other wheel events (ev).

func (*QWindow) Width

func (this *QWindow) Width() int

func (*QWindow) WidthChanged

func (this *QWindow) WidthChanged(arg int)

func (*QWindow) WinId

func (this *QWindow) WinId() uint64

Returns the window's platform id.

For platforms where this id might be useful, the value returned will uniquely represent the window inside the corresponding screen.

See also screen().

func (*QWindow) WindowState

func (this *QWindow) WindowState() int

the screen-occupation state of the window

See also setWindowState() and windowStates().

func (*QWindow) WindowStateChanged

func (this *QWindow) WindowStateChanged(windowState int)

This signal is emitted when the windowState changes, either by being set explicitly with setWindowStates(), or automatically when the user clicks one of the titlebar buttons or by other means.

func (*QWindow) WindowStates

func (this *QWindow) WindowStates() int

the screen-occupation state of the window

The window can be in a combination of several states. For example, if the window is both minimized and maximized, the window will appear minimized, but clicking on the task bar entry will restore it to the maximized state.

This function was introduced in Qt 5.10.

See also setWindowStates().

func (*QWindow) WindowTitleChanged

func (this *QWindow) WindowTitleChanged(title string)

func (*QWindow) X

func (this *QWindow) X() int

func (*QWindow) XChanged

func (this *QWindow) XChanged(arg int)

func (*QWindow) Y

func (this *QWindow) Y() int

func (*QWindow) YChanged

func (this *QWindow) YChanged(arg int)

type QWindowList

type QWindowList struct {
	*qtrt.CObject
}

body block begin

func NewQWindowListFromPointer

func NewQWindowListFromPointer(cthis unsafe.Pointer) *QWindowList

func QGuiApplication_AllWindows

func QGuiApplication_AllWindows() *QWindowList

func QGuiApplication_TopLevelWindows

func QGuiApplication_TopLevelWindows() *QWindowList

func (*QWindowList) Append0

func (this *QWindowList) Append0()

void append(const T &)

func (*QWindowList) Append1

func (this *QWindowList) Append1()

void append(const QList<T> &)

func (*QWindowList) At0

func (this *QWindowList) At0() *QWindow

const T & at(int)

func (*QWindowList) Back0

func (this *QWindowList) Back0() *QWindow

T & back()

func (*QWindowList) Back1

func (this *QWindowList) Back1() *QWindow

const T & back()

func (*QWindowList) Begin0

func (this *QWindowList) Begin0()

QList::iterator begin()

func (*QWindowList) Begin1

func (this *QWindowList) Begin1()

QList::const_iterator begin()

func (*QWindowList) Cbegin0

func (this *QWindowList) Cbegin0()

QList::const_iterator cbegin()

func (*QWindowList) Cend0

func (this *QWindowList) Cend0()

QList::const_iterator cend()

func (*QWindowList) Clear0

func (this *QWindowList) Clear0()

void clear()

func (*QWindowList) ConstBegin0

func (this *QWindowList) ConstBegin0()

QList::const_iterator constBegin()

func (*QWindowList) ConstEnd0

func (this *QWindowList) ConstEnd0()

QList::const_iterator constEnd()

func (*QWindowList) ConstFirst0

func (this *QWindowList) ConstFirst0() *QWindow

const T & constFirst()

func (*QWindowList) ConstLast0

func (this *QWindowList) ConstLast0() *QWindow

const T & constLast()

func (*QWindowList) Contains0

func (this *QWindowList) Contains0() bool

bool contains(const T &)

func (*QWindowList) Contains_impl0

func (this *QWindowList) Contains_impl0() bool

bool contains_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QWindowList) Contains_impl1

func (this *QWindowList) Contains_impl1() bool

bool contains_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QWindowList) Count0

func (this *QWindowList) Count0() int

int count(const T &)

func (*QWindowList) Count1

func (this *QWindowList) Count1() int

int count()

func (*QWindowList) Count_impl0

func (this *QWindowList) Count_impl0() int

int count_impl(const T &, QListData::NotArrayCompatibleLayout)

func (*QWindowList) Count_impl1

func (this *QWindowList) Count_impl1() int

int count_impl(const T &, QListData::ArrayCompatibleLayout)

func (*QWindowList) Crbegin0

func (this *QWindowList) Crbegin0()

QList::const_reverse_iterator crbegin()

func (*QWindowList) Crend0

func (this *QWindowList) Crend0()

QList::const_reverse_iterator crend()

func (*QWindowList) Dealloc0

func (this *QWindowList) Dealloc0()

void dealloc(QListData::Data *)

func (*QWindowList) Detach0

func (this *QWindowList) Detach0()

void detach()

func (*QWindowList) DetachShared0

func (this *QWindowList) DetachShared0()

void detachShared()

func (*QWindowList) Detach_helper0

func (this *QWindowList) Detach_helper0()

void detach_helper(int)

func (*QWindowList) Detach_helper1

func (this *QWindowList) Detach_helper1()

void detach_helper()

func (*QWindowList) Detach_helper_grow0

func (this *QWindowList) Detach_helper_grow0()

QList::Node * detach_helper_grow(int, int)

func (*QWindowList) Empty0

func (this *QWindowList) Empty0() bool

bool empty()

func (*QWindowList) End0

func (this *QWindowList) End0()

QList::iterator end()

func (*QWindowList) End1

func (this *QWindowList) End1()

QList::const_iterator end()

func (*QWindowList) EndsWith0

func (this *QWindowList) EndsWith0() bool

bool endsWith(const T &)

func (*QWindowList) Erase0

func (this *QWindowList) Erase0()

QList::iterator erase(QList::iterator)

func (*QWindowList) Erase1

func (this *QWindowList) Erase1()

QList::iterator erase(QList::iterator, QList::iterator)

func (*QWindowList) First0

func (this *QWindowList) First0() *QWindow

T & first()

func (*QWindowList) First1

func (this *QWindowList) First1() *QWindow

const T & first()

func (*QWindowList) FromSet0

func (this *QWindowList) FromSet0() *QWindowList

QList<T> fromSet(const QSet<T> &)

func (*QWindowList) FromStdList0

func (this *QWindowList) FromStdList0() *QWindowList

QList<T> fromStdList(const std::list<T> &)

func (*QWindowList) FromVector0

func (this *QWindowList) FromVector0() *QWindowList

QList<T> fromVector(const QVector<T> &)

func (*QWindowList) Front0

func (this *QWindowList) Front0() *QWindow

T & front()

func (*QWindowList) Front1

func (this *QWindowList) Front1() *QWindow

const T & front()

func (*QWindowList) IndexOf0

func (this *QWindowList) IndexOf0() int

int indexOf(const T &, int)

func (*QWindowList) Insert0

func (this *QWindowList) Insert0()

void insert(int, const T &)

func (*QWindowList) Insert1

func (this *QWindowList) Insert1()

QList::iterator insert(QList::iterator, const T &)

func (*QWindowList) IsDetached0

func (this *QWindowList) IsDetached0() bool

bool isDetached()

func (*QWindowList) IsEmpty0

func (this *QWindowList) IsEmpty0() bool

bool isEmpty()

func (*QWindowList) IsSharedWith0

func (this *QWindowList) IsSharedWith0() bool

bool isSharedWith(const QList<T> &)

func (*QWindowList) IsValidIterator0

func (this *QWindowList) IsValidIterator0() bool

bool isValidIterator(const QList::iterator &)

func (*QWindowList) Last0

func (this *QWindowList) Last0() *QWindow

T & last()

func (*QWindowList) Last1

func (this *QWindowList) Last1() *QWindow

const T & last()

func (*QWindowList) LastIndexOf0

func (this *QWindowList) LastIndexOf0() int

int lastIndexOf(const T &, int)

func (*QWindowList) Length0

func (this *QWindowList) Length0() int

int length()

func (*QWindowList) Mid0

func (this *QWindowList) Mid0() *QWindowList

QList<T> mid(int, int)

func (*QWindowList) Move0

func (this *QWindowList) Move0()

void move(int, int)

func (*QWindowList) Node_construct0

func (this *QWindowList) Node_construct0()

void node_construct(QList::Node *, const T &)

func (*QWindowList) Node_copy0

func (this *QWindowList) Node_copy0()

void node_copy(QList::Node *, QList::Node *, QList::Node *)

func (*QWindowList) Node_destruct0

func (this *QWindowList) Node_destruct0()

void node_destruct(QList::Node *)

func (*QWindowList) Node_destruct1

func (this *QWindowList) Node_destruct1()

void node_destruct(QList::Node *, QList::Node *)

func (*QWindowList) Op_eq_impl0

func (this *QWindowList) Op_eq_impl0() bool

bool op_eq_impl(const QList<T> &, QListData::NotArrayCompatibleLayout)

func (*QWindowList) Op_eq_impl1

func (this *QWindowList) Op_eq_impl1() bool

bool op_eq_impl(const QList<T> &, QListData::ArrayCompatibleLayout)

func (*QWindowList) Operator_add0

func (this *QWindowList) Operator_add0() *QWindowList

QList<T> operator+(const QList<T> &)

func (*QWindowList) Operator_add_equal0

func (this *QWindowList) Operator_add_equal0() *QWindowList

QList<T> & operator+=(const QList<T> &)

func (*QWindowList) Operator_add_equal1

func (this *QWindowList) Operator_add_equal1() *QWindowList

QList<T> & operator+=(const T &)

func (*QWindowList) Operator_equal0

func (this *QWindowList) Operator_equal0() *QWindowList

QList<T> & operator=(const QList<T> &)

func (*QWindowList) Operator_equal1

func (this *QWindowList) Operator_equal1() *QWindowList

QList<T> & operator=(QList<T> &&)

func (*QWindowList) Operator_equal_equal0

func (this *QWindowList) Operator_equal_equal0() bool

bool operator==(const QList<T> &)

func (*QWindowList) Operator_get_index0

func (this *QWindowList) Operator_get_index0() *QWindow

const T & operator[](int)

func (*QWindowList) Operator_get_index1

func (this *QWindowList) Operator_get_index1() *QWindow

T & operator[](int)

func (*QWindowList) Operator_left_shift0

func (this *QWindowList) Operator_left_shift0() *QWindowList

QList<T> & operator<<(const T &)

func (*QWindowList) Operator_left_shift1

func (this *QWindowList) Operator_left_shift1() *QWindowList

QList<T> & operator<<(const QList<T> &)

func (*QWindowList) Operator_not_equal0

func (this *QWindowList) Operator_not_equal0() bool

bool operator!=(const QList<T> &)

func (*QWindowList) Pop_back0

func (this *QWindowList) Pop_back0()

void pop_back()

func (*QWindowList) Pop_front0

func (this *QWindowList) Pop_front0()

void pop_front()

func (*QWindowList) Prepend0

func (this *QWindowList) Prepend0()

void prepend(const T &)

func (*QWindowList) Push_back0

func (this *QWindowList) Push_back0()

void push_back(const T &)

func (*QWindowList) Push_front0

func (this *QWindowList) Push_front0()

void push_front(const T &)

func (*QWindowList) Rbegin0

func (this *QWindowList) Rbegin0()

QList::reverse_iterator rbegin()

func (*QWindowList) Rbegin1

func (this *QWindowList) Rbegin1()

QList::const_reverse_iterator rbegin()

func (*QWindowList) RemoveAll0

func (this *QWindowList) RemoveAll0() int

int removeAll(const T &)

func (*QWindowList) RemoveAt0

func (this *QWindowList) RemoveAt0()

void removeAt(int)

func (*QWindowList) RemoveFirst0

func (this *QWindowList) RemoveFirst0()

void removeFirst()

func (*QWindowList) RemoveLast0

func (this *QWindowList) RemoveLast0()

void removeLast()

func (*QWindowList) RemoveOne0

func (this *QWindowList) RemoveOne0() bool

bool removeOne(const T &)

func (*QWindowList) Rend0

func (this *QWindowList) Rend0()

QList::reverse_iterator rend()

func (*QWindowList) Rend1

func (this *QWindowList) Rend1()

QList::const_reverse_iterator rend()

func (*QWindowList) Replace0

func (this *QWindowList) Replace0()

void replace(int, const T &)

func (*QWindowList) Reserve0

func (this *QWindowList) Reserve0()

void reserve(int)

func (*QWindowList) SetSharable0

func (this *QWindowList) SetSharable0()

void setSharable(bool)

func (*QWindowList) Size0

func (this *QWindowList) Size0() int

int size()

func (*QWindowList) StartsWith0

func (this *QWindowList) StartsWith0() bool

bool startsWith(const T &)

func (*QWindowList) Swap0

func (this *QWindowList) Swap0()

void swap(QList<T> &)

func (*QWindowList) Swap1

func (this *QWindowList) Swap1()

void swap(int, int)

func (*QWindowList) TakeAt0

func (this *QWindowList) TakeAt0() *QWindow

T takeAt(int)

func (*QWindowList) TakeFirst0

func (this *QWindowList) TakeFirst0() *QWindow

T takeFirst()

func (*QWindowList) TakeLast0

func (this *QWindowList) TakeLast0() *QWindow

T takeLast()

func (*QWindowList) ToSet0

func (this *QWindowList) ToSet0()

QSet<T> toSet()

func (*QWindowList) ToStdList0

func (this *QWindowList) ToStdList0()

std::list<T> toStdList()

func (*QWindowList) ToVector0

func (this *QWindowList) ToVector0()

QVector<T> toVector()

func (*QWindowList) Value0

func (this *QWindowList) Value0() *QWindow

T value(int)

func (*QWindowList) Value1

func (this *QWindowList) Value1() *QWindow

T value(int, const T &)

type QWindowListx

type QWindowListx struct {
	*qtrt.CObject
}

///

func NewQWindowListxFromPointer

func NewQWindowListxFromPointer(cthis unsafe.Pointer) *QWindowListx

func (*QWindowListx) At

func (this *QWindowListx) At(i int) *QWindow

func (*QWindowListx) ConvertFromSlice

func (*QWindowListx) ConvertFromSlice(lst []*QWindow) *QWindowListx

func (*QWindowListx) ConvertToSlice

func (this *QWindowListx) ConvertToSlice() (lst []*QWindow)

func (*QWindowListx) Count

func (this *QWindowListx) Count(that *QWindow) int

func (*QWindowListx) Count1

func (this *QWindowListx) Count1() int

func (*QWindowListx) GetCthis

func (this *QWindowListx) GetCthis() unsafe.Pointer

func (*QWindowListx) NewFromPointer

func (*QWindowListx) NewFromPointer(cthis unsafe.Pointer) *QWindowListx

func (*QWindowListx) SetCthis

func (this *QWindowListx) SetCthis(cthis unsafe.Pointer)

type QWindowStateChangeEvent

type QWindowStateChangeEvent struct {
	*qtcore.QEvent
}

func NewQWindowStateChangeEvent

func NewQWindowStateChangeEvent(aOldState int, isOverride bool) *QWindowStateChangeEvent

func NewQWindowStateChangeEventFromPointer

func NewQWindowStateChangeEventFromPointer(cthis unsafe.Pointer) *QWindowStateChangeEvent

func NewQWindowStateChangeEventp

func NewQWindowStateChangeEventp(aOldState int) *QWindowStateChangeEvent

func (*QWindowStateChangeEvent) GetCthis

func (this *QWindowStateChangeEvent) GetCthis() unsafe.Pointer

func (*QWindowStateChangeEvent) IsOverride

func (this *QWindowStateChangeEvent) IsOverride() bool

func (*QWindowStateChangeEvent) NewForInherit

func (*QWindowStateChangeEvent) NewForInherit(aOldState int, isOverride bool) *QWindowStateChangeEvent

func (*QWindowStateChangeEvent) NewForInheritp

func (*QWindowStateChangeEvent) NewForInheritp(aOldState int) *QWindowStateChangeEvent

func (*QWindowStateChangeEvent) NewFromPointer

func (*QWindowStateChangeEvent) OldState

func (this *QWindowStateChangeEvent) OldState() int

func (*QWindowStateChangeEvent) QWindowStateChangeEvent_PTR

func (ptr *QWindowStateChangeEvent) QWindowStateChangeEvent_PTR() *QWindowStateChangeEvent

func (*QWindowStateChangeEvent) SetCthis

func (this *QWindowStateChangeEvent) SetCthis(cthis unsafe.Pointer)

type QWindowStateChangeEvent_ITF

type QWindowStateChangeEvent_ITF interface {
	qtcore.QEvent_ITF
	QWindowStateChangeEvent_PTR() *QWindowStateChangeEvent
}

type QWindow_ITF

type QWindow_ITF interface {
	qtcore.QObject_ITF
	QSurface_ITF
	QWindow_PTR() *QWindow
}

type QWindow__AncestorMode

type QWindow__AncestorMode = int

This enum is used to control whether or not transient parents should be considered ancestors.

const QWindow__ExcludeTransients QWindow__AncestorMode = 0

Transient parents are not considered ancestors.

const QWindow__IncludeTransients QWindow__AncestorMode = 1

Transient parents are considered ancestors.

type QWindow__Visibility

type QWindow__Visibility = int

This enum describes what part of the screen the window occupies or should occupy.

This enum was introduced or modified in Qt 5.1.

const QWindow__AutomaticVisibility QWindow__Visibility = 1

This means to give the window a default visible state, which might be fullscreen or windowed depending on the platform. It can be given as a parameter to setVisibility but will never be read back from the visibility accessor.

const QWindow__FullScreen QWindow__Visibility = 5

The window occupies one entire screen, is not resizable, and there is no titlebar. On some platforms which do not support showing multiple simultaneous windows, this can be the usual visibility when the window is not hidden.

const QWindow__Hidden QWindow__Visibility = 0

The window is not visible in any way, however it may remember a latent visibility which can be restored by setting AutomaticVisibility.

const QWindow__Maximized QWindow__Visibility = 4

The window occupies one entire screen, and the titlebar is still visible. On most windowing systems this is the state achieved by clicking the maximize button on the toolbar.

const QWindow__Minimized QWindow__Visibility = 3

The window is reduced to an entry or icon on the task bar, dock, task list or desktop, depending on how the windowing system handles minimized windows.

const QWindow__Windowed QWindow__Visibility = 2

The window occupies part of the screen, but not necessarily the entire screen. This state will occur only on windowing systems which support showing multiple windows simultaneously. In this state it is possible for the user to move and resize the window manually, if WindowFlags permit it and if it is supported by the windowing system.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL