2015-10-24 18:18:24 +03:00
|
|
|
package gui
|
|
|
|
|
2015-12-06 02:56:16 +03:00
|
|
|
//#include "gui.h"
|
2015-10-24 18:18:24 +03:00
|
|
|
import "C"
|
|
|
|
import (
|
|
|
|
"github.com/therecipe/qt"
|
|
|
|
"github.com/therecipe/qt/core"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QPlatformSystemTrayIcon struct {
|
|
|
|
core.QObject
|
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
type QPlatformSystemTrayIcon_ITF interface {
|
|
|
|
core.QObject_ITF
|
|
|
|
QPlatformSystemTrayIcon_PTR() *QPlatformSystemTrayIcon
|
2015-10-24 18:18:24 +03:00
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
func PointerFromQPlatformSystemTrayIcon(ptr QPlatformSystemTrayIcon_ITF) unsafe.Pointer {
|
2015-10-24 18:18:24 +03:00
|
|
|
if ptr != nil {
|
2015-11-09 20:23:42 +03:00
|
|
|
return ptr.QPlatformSystemTrayIcon_PTR().Pointer()
|
2015-10-24 18:18:24 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
func NewQPlatformSystemTrayIconFromPointer(ptr unsafe.Pointer) *QPlatformSystemTrayIcon {
|
2015-10-24 18:18:24 +03:00
|
|
|
var n = new(QPlatformSystemTrayIcon)
|
|
|
|
n.SetPointer(ptr)
|
2015-12-06 02:56:16 +03:00
|
|
|
for len(n.ObjectName()) < len("QPlatformSystemTrayIcon_") {
|
2015-10-24 18:18:24 +03:00
|
|
|
n.SetObjectName("QPlatformSystemTrayIcon_" + qt.RandomIdentifier())
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
func (ptr *QPlatformSystemTrayIcon) QPlatformSystemTrayIcon_PTR() *QPlatformSystemTrayIcon {
|
2015-10-24 18:18:24 +03:00
|
|
|
return ptr
|
|
|
|
}
|
|
|
|
|
|
|
|
//QPlatformSystemTrayIcon::ActivationReason
|
2015-11-09 20:23:42 +03:00
|
|
|
type QPlatformSystemTrayIcon__ActivationReason int64
|
2015-10-24 18:18:24 +03:00
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
const (
|
2015-10-24 18:18:24 +03:00
|
|
|
QPlatformSystemTrayIcon__Unknown = QPlatformSystemTrayIcon__ActivationReason(0)
|
|
|
|
QPlatformSystemTrayIcon__Context = QPlatformSystemTrayIcon__ActivationReason(1)
|
|
|
|
QPlatformSystemTrayIcon__DoubleClick = QPlatformSystemTrayIcon__ActivationReason(2)
|
|
|
|
QPlatformSystemTrayIcon__Trigger = QPlatformSystemTrayIcon__ActivationReason(3)
|
|
|
|
QPlatformSystemTrayIcon__MiddleClick = QPlatformSystemTrayIcon__ActivationReason(4)
|
|
|
|
)
|
|
|
|
|
|
|
|
//QPlatformSystemTrayIcon::MessageIcon
|
2015-11-09 20:23:42 +03:00
|
|
|
type QPlatformSystemTrayIcon__MessageIcon int64
|
2015-10-24 18:18:24 +03:00
|
|
|
|
2015-11-09 20:23:42 +03:00
|
|
|
const (
|
2015-10-24 18:18:24 +03:00
|
|
|
QPlatformSystemTrayIcon__NoIcon = QPlatformSystemTrayIcon__MessageIcon(0)
|
|
|
|
QPlatformSystemTrayIcon__Information = QPlatformSystemTrayIcon__MessageIcon(1)
|
|
|
|
QPlatformSystemTrayIcon__Warning = QPlatformSystemTrayIcon__MessageIcon(2)
|
|
|
|
QPlatformSystemTrayIcon__Critical = QPlatformSystemTrayIcon__MessageIcon(3)
|
|
|
|
)
|