本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQByteArray函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQByteArray函数的具体用法?Golang PointerFromQByteArray怎么用?Golang PointerFromQByteArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQByteArray函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: BinaryFrameReceived
func (ptr *QWebSocket) BinaryFrameReceived(frame core.QByteArray_ITF, isLastFrame bool) {
defer qt.Recovering("QWebSocket::binaryFrameReceived")
if ptr.Pointer() != nil {
C.QWebSocket_BinaryFrameReceived(ptr.Pointer(), core.PointerFromQByteArray(frame), C.int(qt.GoBoolToInt(isLastFrame)))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:websockets.go
示例2: BinaryMessageReceived
func (ptr *QWebSocket) BinaryMessageReceived(message core.QByteArray_ITF) {
defer qt.Recovering("QWebSocket::binaryMessageReceived")
if ptr.Pointer() != nil {
C.QWebSocket_BinaryMessageReceived(ptr.Pointer(), core.PointerFromQByteArray(message))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:websockets.go
示例3: Ping
func (ptr *QWebSocket) Ping(payload core.QByteArray_ITF) {
defer qt.Recovering("QWebSocket::ping")
if ptr.Pointer() != nil {
C.QWebSocket_Ping(ptr.Pointer(), core.PointerFromQByteArray(payload))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:7,代码来源:websockets.go
示例4: SendBinaryMessage
func (ptr *QWebSocket) SendBinaryMessage(data core.QByteArray_ITF) int64 {
defer qt.Recovering("QWebSocket::sendBinaryMessage")
if ptr.Pointer() != nil {
return int64(C.QWebSocket_SendBinaryMessage(ptr.Pointer(), core.PointerFromQByteArray(data)))
}
return 0
}
开发者ID:mouse225,项目名称:qt,代码行数:8,代码来源:websockets.go
示例5: WriteDescriptor
func (ptr *QLowEnergyService) WriteDescriptor(descriptor QLowEnergyDescriptor_ITF, newValue core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QLowEnergyService_WriteDescriptor(ptr.Pointer(), PointerFromQLowEnergyDescriptor(descriptor), core.PointerFromQByteArray(newValue))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qlowenergyservice.go
示例6: NewQNetworkCookie
func NewQNetworkCookie(name core.QByteArray_ITF, value core.QByteArray_ITF) *QNetworkCookie {
return NewQNetworkCookieFromPointer(C.QNetworkCookie_NewQNetworkCookie(core.PointerFromQByteArray(name), core.PointerFromQByteArray(value)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qnetworkcookie.go
示例7: WriteCharacteristic
func (ptr *QLowEnergyService) WriteCharacteristic(characteristic QLowEnergyCharacteristic_ITF, newValue core.QByteArray_ITF, mode QLowEnergyService__WriteMode) {
if ptr.Pointer() != nil {
C.QLowEnergyService_WriteCharacteristic(ptr.Pointer(), PointerFromQLowEnergyCharacteristic(characteristic), core.PointerFromQByteArray(newValue), C.int(mode))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qlowenergyservice.go
示例8: SetFormat
func (ptr *QTextDocumentWriter) SetFormat(format core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QTextDocumentWriter_SetFormat(ptr.Pointer(), core.PointerFromQByteArray(format))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qtextdocumentwriter.go
示例9: SetValue
func (ptr *QNetworkCookie) SetValue(value core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QNetworkCookie_SetValue(ptr.Pointer(), core.PointerFromQByteArray(value))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qnetworkcookie.go
示例10: ToHtml
func (ptr *QTextDocument) ToHtml(encoding core.QByteArray_ITF) string {
if ptr.Pointer() != nil {
return C.GoString(C.QTextDocument_ToHtml(ptr.Pointer(), core.PointerFromQByteArray(encoding)))
}
return ""
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qtextdocument.go
示例11: LoadData
func (ptr *QQmlApplicationEngine) LoadData(data core.QByteArray_ITF, url core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QQmlApplicationEngine_LoadData(ptr.Pointer(), core.PointerFromQByteArray(data), core.PointerFromQUrl(url))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qqmlapplicationengine.go
示例12: SetBody
func (ptr *QHttpPart) SetBody(body core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QHttpPart_SetBody(ptr.Pointer(), core.PointerFromQByteArray(body))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qhttppart.go
示例13: SetData
func (ptr *QQmlComponent) SetData(data core.QByteArray_ITF, url core.QUrl_ITF) {
if ptr.Pointer() != nil {
C.QQmlComponent_SetData(ptr.Pointer(), core.PointerFromQByteArray(data), core.PointerFromQUrl(url))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qqmlcomponent.go
示例14: NewQTextDocumentWriter3
func NewQTextDocumentWriter3(fileName string, format core.QByteArray_ITF) *QTextDocumentWriter {
return NewQTextDocumentWriterFromPointer(C.QTextDocumentWriter_NewQTextDocumentWriter3(C.CString(fileName), core.PointerFromQByteArray(format)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qtextdocumentwriter.go
示例15: NewQTextDocumentWriter2
func NewQTextDocumentWriter2(device core.QIODevice_ITF, format core.QByteArray_ITF) *QTextDocumentWriter {
return NewQTextDocumentWriterFromPointer(C.QTextDocumentWriter_NewQTextDocumentWriter2(core.PointerFromQIODevice(device), core.PointerFromQByteArray(format)))
}
开发者ID:xland,项目名称:qt,代码行数:3,代码来源:qtextdocumentwriter.go
示例16: SetContent
func (ptr *QDomDocument) SetContent(data core.QByteArray_ITF, namespaceProcessing bool, errorMsg string, errorLine int, errorColumn int) bool {
if ptr.Pointer() != nil {
return C.QDomDocument_SetContent(ptr.Pointer(), core.PointerFromQByteArray(data), C.int(qt.GoBoolToInt(namespaceProcessing)), C.CString(errorMsg), C.int(errorLine), C.int(errorColumn)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qdomdocument.go
示例17: SetContent6
func (ptr *QDomDocument) SetContent6(buffer core.QByteArray_ITF, errorMsg string, errorLine int, errorColumn int) bool {
if ptr.Pointer() != nil {
return C.QDomDocument_SetContent6(ptr.Pointer(), core.PointerFromQByteArray(buffer), C.CString(errorMsg), C.int(errorLine), C.int(errorColumn)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qdomdocument.go
示例18: RestoreState
func (ptr *QFileDialog) RestoreState(state core.QByteArray_ITF) bool {
if ptr.Pointer() != nil {
return C.QFileDialog_RestoreState(ptr.Pointer(), core.PointerFromQByteArray(state)) != 0
}
return false
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qfiledialog.go
示例19: DeviceDescription
func (ptr *QMediaServiceSupportedDevicesInterface) DeviceDescription(service core.QByteArray_ITF, device core.QByteArray_ITF) string {
if ptr.Pointer() != nil {
return C.GoString(C.QMediaServiceSupportedDevicesInterface_DeviceDescription(ptr.Pointer(), core.PointerFromQByteArray(service), core.PointerFromQByteArray(device)))
}
return ""
}
开发者ID:xland,项目名称:qt,代码行数:6,代码来源:qmediaservicesupporteddevicesinterface.go
示例20: SetRawHeader
func (ptr *QNetworkProxy) SetRawHeader(headerName core.QByteArray_ITF, headerValue core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QNetworkProxy_SetRawHeader(ptr.Pointer(), core.PointerFromQByteArray(headerName), core.PointerFromQByteArray(headerValue))
}
}
开发者ID:xland,项目名称:qt,代码行数:5,代码来源:qnetworkproxy.go
注:本文中的github.com/therecipe/qt/core.PointerFromQByteArray函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论