本文整理汇总了Golang中github.com/therecipe/qt.GetSignal函数的典型用法代码示例。如果您正苦于以下问题:Golang GetSignal函数的具体用法?Golang GetSignal怎么用?Golang GetSignal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetSignal函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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())()
}
}
示例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)
}
}
示例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))
}
}
示例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))
}
}
示例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)
}
}
示例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))
}
}
示例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())()
}
}
示例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))
}
}
示例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())()
}
}
示例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))
}
}
示例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())()
}
}
示例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())()
}
}
示例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())()
}
}
示例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))
}
}
示例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)
}
}