本文整理汇总了Golang中github.com/therecipe/qt.GetSignal函数的典型用法代码示例。如果您正苦于以下问题:Golang GetSignal函数的具体用法?Golang GetSignal怎么用?Golang GetSignal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetSignal函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: callbackQMacToolBarItemActivated
//export callbackQMacToolBarItemActivated
func callbackQMacToolBarItemActivated(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QMacToolBarItem::activated")
if signal := qt.GetSignal(C.GoString(ptrName), "activated"); signal != nil {
signal.(func())()
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:macextras.go
示例2: callbackQWebChannelBlockUpdatesChanged
//export callbackQWebChannelBlockUpdatesChanged
func callbackQWebChannelBlockUpdatesChanged(ptr unsafe.Pointer, ptrName *C.char, block C.int) {
defer qt.Recovering("callback QWebChannel::blockUpdatesChanged")
if signal := qt.GetSignal(C.GoString(ptrName), "blockUpdatesChanged"); signal != nil {
signal.(func(bool))(int(block) != 0)
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:webchannel.go
示例3: callbackQWebSocketStateChanged
//export callbackQWebSocketStateChanged
func callbackQWebSocketStateChanged(ptr unsafe.Pointer, ptrName *C.char, state C.int) {
defer qt.Recovering("callback QWebSocket::stateChanged")
if signal := qt.GetSignal(C.GoString(ptrName), "stateChanged"); signal != nil {
signal.(func(network.QAbstractSocket__SocketState))(network.QAbstractSocket__SocketState(state))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例4: callbackQWebChannelAbstractTransportMessageReceived
//export callbackQWebChannelAbstractTransportMessageReceived
func callbackQWebChannelAbstractTransportMessageReceived(ptr unsafe.Pointer, ptrName *C.char, message unsafe.Pointer, transport unsafe.Pointer) {
defer qt.Recovering("callback QWebChannelAbstractTransport::messageReceived")
if signal := qt.GetSignal(C.GoString(ptrName), "messageReceived"); signal != nil {
signal.(func(*core.QJsonObject, *QWebChannelAbstractTransport))(core.NewQJsonObjectFromPointer(message), NewQWebChannelAbstractTransportFromPointer(transport))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:webchannel.go
示例5: callbackQWebSocketBinaryFrameReceived
//export callbackQWebSocketBinaryFrameReceived
func callbackQWebSocketBinaryFrameReceived(ptr unsafe.Pointer, ptrName *C.char, frame unsafe.Pointer, isLastFrame C.int) {
defer qt.Recovering("callback QWebSocket::binaryFrameReceived")
if signal := qt.GetSignal(C.GoString(ptrName), "binaryFrameReceived"); signal != nil {
signal.(func(*core.QByteArray, bool))(core.NewQByteArrayFromPointer(frame), int(isLastFrame) != 0)
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例6: callbackQWebSocketBinaryMessageReceived
//export callbackQWebSocketBinaryMessageReceived
func callbackQWebSocketBinaryMessageReceived(ptr unsafe.Pointer, ptrName *C.char, message unsafe.Pointer) {
defer qt.Recovering("callback QWebSocket::binaryMessageReceived")
if signal := qt.GetSignal(C.GoString(ptrName), "binaryMessageReceived"); signal != nil {
signal.(func(*core.QByteArray))(core.NewQByteArrayFromPointer(message))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例7: callbackQWebSocketAboutToClose
//export callbackQWebSocketAboutToClose
func callbackQWebSocketAboutToClose(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QWebSocket::aboutToClose")
if signal := qt.GetSignal(C.GoString(ptrName), "aboutToClose"); signal != nil {
signal.(func())()
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例8: callbackQWebSocketServerOriginAuthenticationRequired
//export callbackQWebSocketServerOriginAuthenticationRequired
func callbackQWebSocketServerOriginAuthenticationRequired(ptr unsafe.Pointer, ptrName *C.char, authenticator unsafe.Pointer) {
defer qt.Recovering("callback QWebSocketServer::originAuthenticationRequired")
if signal := qt.GetSignal(C.GoString(ptrName), "originAuthenticationRequired"); signal != nil {
signal.(func(*QWebSocketCorsAuthenticator))(NewQWebSocketCorsAuthenticatorFromPointer(authenticator))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例9: callbackQWebSocketServerNewConnection
//export callbackQWebSocketServerNewConnection
func callbackQWebSocketServerNewConnection(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QWebSocketServer::newConnection")
if signal := qt.GetSignal(C.GoString(ptrName), "newConnection"); signal != nil {
signal.(func())()
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例10: callbackQWebSocketBytesWritten
//export callbackQWebSocketBytesWritten
func callbackQWebSocketBytesWritten(ptr unsafe.Pointer, ptrName *C.char, bytes C.longlong) {
defer qt.Recovering("callback QWebSocket::bytesWritten")
if signal := qt.GetSignal(C.GoString(ptrName), "bytesWritten"); signal != nil {
signal.(func(int64))(int64(bytes))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例11: callbackQWebSocketDisconnected
//export callbackQWebSocketDisconnected
func callbackQWebSocketDisconnected(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QWebSocket::disconnected")
if signal := qt.GetSignal(C.GoString(ptrName), "disconnected"); signal != nil {
signal.(func())()
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例12: callbackQScriptEngineDebuggerEvaluationSuspended
//export callbackQScriptEngineDebuggerEvaluationSuspended
func callbackQScriptEngineDebuggerEvaluationSuspended(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QScriptEngineDebugger::evaluationSuspended")
if signal := qt.GetSignal(C.GoString(ptrName), "evaluationSuspended"); signal != nil {
signal.(func())()
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:scripttools.go
示例13: callbackQWebSocketServerClosed
//export callbackQWebSocketServerClosed
func callbackQWebSocketServerClosed(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QWebSocketServer::closed")
if signal := qt.GetSignal(C.GoString(ptrName), "closed"); signal != nil {
signal.(func())()
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例14: callbackQWebSocketTextMessageReceived
//export callbackQWebSocketTextMessageReceived
func callbackQWebSocketTextMessageReceived(ptr unsafe.Pointer, ptrName *C.char, message *C.char) {
defer qt.Recovering("callback QWebSocket::textMessageReceived")
if signal := qt.GetSignal(C.GoString(ptrName), "textMessageReceived"); signal != nil {
signal.(func(string))(C.GoString(message))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例15: callbackQWebSocketTextFrameReceived
//export callbackQWebSocketTextFrameReceived
func callbackQWebSocketTextFrameReceived(ptr unsafe.Pointer, ptrName *C.char, frame *C.char, isLastFrame C.int) {
defer qt.Recovering("callback QWebSocket::textFrameReceived")
if signal := qt.GetSignal(C.GoString(ptrName), "textFrameReceived"); signal != nil {
signal.(func(string, bool))(C.GoString(frame), int(isLastFrame) != 0)
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例16: callbackQWebSocketReadChannelFinished
//export callbackQWebSocketReadChannelFinished
func callbackQWebSocketReadChannelFinished(ptr unsafe.Pointer, ptrName *C.char) {
defer qt.Recovering("callback QWebSocket::readChannelFinished")
if signal := qt.GetSignal(C.GoString(ptrName), "readChannelFinished"); signal != nil {
signal.(func())()
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例17: callbackQWebSocketError2
//export callbackQWebSocketError2
func callbackQWebSocketError2(ptr unsafe.Pointer, ptrName *C.char, error C.int) {
defer qt.Recovering("callback QWebSocket::error")
if signal := qt.GetSignal(C.GoString(ptrName), "error2"); signal != nil {
signal.(func(network.QAbstractSocket__SocketError))(network.QAbstractSocket__SocketError(error))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:9,代码来源:websockets.go
示例18: callbackQMaskGeneratorTimerEvent
//export callbackQMaskGeneratorTimerEvent
func callbackQMaskGeneratorTimerEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QMaskGenerator::timerEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "timerEvent"); signal != nil {
signal.(func(*core.QTimerEvent))(core.NewQTimerEventFromPointer(event))
} else {
NewQMaskGeneratorFromPointer(ptr).TimerEventDefault(core.NewQTimerEventFromPointer(event))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:10,代码来源:websockets.go
示例19: callbackQWebSocketChildEvent
//export callbackQWebSocketChildEvent
func callbackQWebSocketChildEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QWebSocket::childEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "childEvent"); signal != nil {
signal.(func(*core.QChildEvent))(core.NewQChildEventFromPointer(event))
} else {
NewQWebSocketFromPointer(ptr).ChildEventDefault(core.NewQChildEventFromPointer(event))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:10,代码来源:websockets.go
示例20: callbackQWebChannelAbstractTransportCustomEvent
//export callbackQWebChannelAbstractTransportCustomEvent
func callbackQWebChannelAbstractTransportCustomEvent(ptr unsafe.Pointer, ptrName *C.char, event unsafe.Pointer) {
defer qt.Recovering("callback QWebChannelAbstractTransport::customEvent")
if signal := qt.GetSignal(C.GoString(ptrName), "customEvent"); signal != nil {
signal.(func(*core.QEvent))(core.NewQEventFromPointer(event))
} else {
NewQWebChannelAbstractTransportFromPointer(ptr).CustomEventDefault(core.NewQEventFromPointer(event))
}
}
开发者ID:mouse225,项目名称:qt,代码行数:10,代码来源:webchannel.go
注:本文中的github.com/therecipe/qt.GetSignal函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论