本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQByteArray函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQByteArray函数的具体用法?Golang PointerFromQByteArray怎么用?Golang PointerFromQByteArray使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQByteArray函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)))
}
}
示例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))
}
}
示例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))
}
}
示例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
}
示例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))
}
}
示例6: NewQNetworkCookie
func NewQNetworkCookie(name core.QByteArray_ITF, value core.QByteArray_ITF) *QNetworkCookie {
return NewQNetworkCookieFromPointer(C.QNetworkCookie_NewQNetworkCookie(core.PointerFromQByteArray(name), core.PointerFromQByteArray(value)))
}
示例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))
}
}
示例8: SetFormat
func (ptr *QTextDocumentWriter) SetFormat(format core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QTextDocumentWriter_SetFormat(ptr.Pointer(), core.PointerFromQByteArray(format))
}
}
示例9: SetValue
func (ptr *QNetworkCookie) SetValue(value core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QNetworkCookie_SetValue(ptr.Pointer(), core.PointerFromQByteArray(value))
}
}
示例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 ""
}
示例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))
}
}
示例12: SetBody
func (ptr *QHttpPart) SetBody(body core.QByteArray_ITF) {
if ptr.Pointer() != nil {
C.QHttpPart_SetBody(ptr.Pointer(), core.PointerFromQByteArray(body))
}
}
示例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))
}
}
示例14: NewQTextDocumentWriter3
func NewQTextDocumentWriter3(fileName string, format core.QByteArray_ITF) *QTextDocumentWriter {
return NewQTextDocumentWriterFromPointer(C.QTextDocumentWriter_NewQTextDocumentWriter3(C.CString(fileName), core.PointerFromQByteArray(format)))
}
示例15: NewQTextDocumentWriter2
func NewQTextDocumentWriter2(device core.QIODevice_ITF, format core.QByteArray_ITF) *QTextDocumentWriter {
return NewQTextDocumentWriterFromPointer(C.QTextDocumentWriter_NewQTextDocumentWriter2(core.PointerFromQIODevice(device), core.PointerFromQByteArray(format)))
}