本文整理汇总了Golang中github.com/therecipe/qt/core.PointerFromQObject函数的典型用法代码示例。如果您正苦于以下问题:Golang PointerFromQObject函数的具体用法?Golang PointerFromQObject怎么用?Golang PointerFromQObject使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PointerFromQObject函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: RegisterObject
func (ptr *QWebChannel) RegisterObject(id string, object core.QObject_ITF) {
defer qt.Recovering("QWebChannel::registerObject")
if ptr.Pointer() != nil {
C.QWebChannel_RegisterObject(ptr.Pointer(), C.CString(id), core.PointerFromQObject(object))
}
}
示例2: DeregisterObject
func (ptr *QWebChannel) DeregisterObject(object core.QObject_ITF) {
defer qt.Recovering("QWebChannel::deregisterObject")
if ptr.Pointer() != nil {
C.QWebChannel_DeregisterObject(ptr.Pointer(), core.PointerFromQObject(object))
}
}
示例3: CreateAction
func (ptr *QUiLoader) CreateAction(parent core.QObject_ITF, name string) *widgets.QAction {
defer qt.Recovering("QUiLoader::createAction")
if ptr.Pointer() != nil {
return widgets.NewQActionFromPointer(C.QUiLoader_CreateAction(ptr.Pointer(), core.PointerFromQObject(parent), C.CString(name)))
}
return nil
}
示例4: RegisterNdefMessageHandler2
func (ptr *QNearFieldManager) RegisterNdefMessageHandler2(typeNameFormat QNdefRecord__TypeNameFormat, ty core.QByteArray_ITF, object core.QObject_ITF, method string) int {
if ptr.Pointer() != nil {
return int(C.QNearFieldManager_RegisterNdefMessageHandler2(ptr.Pointer(), C.int(typeNameFormat), core.PointerFromQByteArray(ty), core.PointerFromQObject(object), C.CString(method)))
}
return 0
}
示例5: NewQQmlApplicationEngine2
func NewQQmlApplicationEngine2(url core.QUrl_ITF, parent core.QObject_ITF) *QQmlApplicationEngine {
return NewQQmlApplicationEngineFromPointer(C.QQmlApplicationEngine_NewQQmlApplicationEngine2(core.PointerFromQUrl(url), core.PointerFromQObject(parent)))
}
示例6: NewQQmlApplicationEngine
func NewQQmlApplicationEngine(parent core.QObject_ITF) *QQmlApplicationEngine {
return NewQQmlApplicationEngineFromPointer(C.QQmlApplicationEngine_NewQQmlApplicationEngine(core.PointerFromQObject(parent)))
}
示例7: NewQMediaPlaylist
func NewQMediaPlaylist(parent core.QObject_ITF) *QMediaPlaylist {
return NewQMediaPlaylistFromPointer(C.QMediaPlaylist_NewQMediaPlaylist(core.PointerFromQObject(parent)))
}
示例8: AreaMonitor
func (ptr *QGeoPositionInfoSourceFactory) AreaMonitor(parent core.QObject_ITF) *QGeoAreaMonitorSource {
if ptr.Pointer() != nil {
return NewQGeoAreaMonitorSourceFromPointer(C.QGeoPositionInfoSourceFactory_AreaMonitor(ptr.Pointer(), core.PointerFromQObject(parent)))
}
return nil
}
示例9: Notify
func (ptr *QGuiApplication) Notify(object core.QObject_ITF, event core.QEvent_ITF) bool {
if ptr.Pointer() != nil {
return C.QGuiApplication_Notify(ptr.Pointer(), core.PointerFromQObject(object), core.PointerFromQEvent(event)) != 0
}
return false
}
示例10: NewQAudioOutput2
func NewQAudioOutput2(audioDevice QAudioDeviceInfo_ITF, format QAudioFormat_ITF, parent core.QObject_ITF) *QAudioOutput {
return NewQAudioOutputFromPointer(C.QAudioOutput_NewQAudioOutput2(PointerFromQAudioDeviceInfo(audioDevice), PointerFromQAudioFormat(format), core.PointerFromQObject(parent)))
}
示例11: NewQMediaPlayer
func NewQMediaPlayer(parent core.QObject_ITF, flags QMediaPlayer__Flag) *QMediaPlayer {
return NewQMediaPlayerFromPointer(C.QMediaPlayer_NewQMediaPlayer(core.PointerFromQObject(parent), C.int(flags)))
}
示例12: NewQScriptEngineDebugger
func NewQScriptEngineDebugger(parent core.QObject_ITF) *QScriptEngineDebugger {
defer qt.Recovering("QScriptEngineDebugger::QScriptEngineDebugger")
return newQScriptEngineDebuggerFromPointer(C.QScriptEngineDebugger_NewQScriptEngineDebugger(core.PointerFromQObject(parent)))
}
示例13: NewQVideoProbe
func NewQVideoProbe(parent core.QObject_ITF) *QVideoProbe {
return NewQVideoProbeFromPointer(C.QVideoProbe_NewQVideoProbe(core.PointerFromQObject(parent)))
}
示例14: NewQRadioTuner
func NewQRadioTuner(parent core.QObject_ITF) *QRadioTuner {
return NewQRadioTunerFromPointer(C.QRadioTuner_NewQRadioTuner(core.PointerFromQObject(parent)))
}
示例15: NewQHelpEngineCore
func NewQHelpEngineCore(collectionFile string, parent core.QObject_ITF) *QHelpEngineCore {
return NewQHelpEngineCoreFromPointer(C.QHelpEngineCore_NewQHelpEngineCore(C.CString(collectionFile), core.PointerFromQObject(parent)))
}