Documentation ¶
Index ¶
- Constants
- Variables
- func About() string
- func App() *app
- func CloseAllWindows()
- func DumpObject(obj IObject) string
- func DumpObjectInfo(obj iobj) string
- func Exit(code int)
- func FindObject(native uintptr) interface{}
- func InsertObject(obj IObject)
- func Main(fn func()) int
- func OnInsertObject(fn func(interface{}))
- func OnRemoveObject(fn func(interface{}))
- func RegisterClass(classname string, classid int, fn func() IObject)
- func RegisterClassNative(classid int, fn func(uintptr) IObject)
- func RemoveObject(native uintptr)
- func Run() int
- func SetKey(obj IObject, key string, attr string)
- func SetValue(key string, value interface{}) bool
- func Value(key string) interface{}
- func Version() string
- type Alignment
- type AspectRatioMode
- type BaseEvent
- type BrushStyle
- type CheckState
- type CloseEvent
- type DockWidgetArea
- type EchoMode
- type EnterEvent
- type Event
- type FileDeviceFileError
- type FileDevicePermission
- type FileDevicePermissions
- type FocusEvent
- type HeaderResizeMode
- type HideEvent
- type HoverEvent
- type ILayout
- type IODeviceOpenMode
- type IObject
- type IWidget
- type ItemFlag
- type ItemFlags
- type KeyEvent
- type LeaveEvent
- type Margins
- type MediaAvailabilityStatus
- type MediaEncodingMode
- type MediaEncodingQuality
- type MediaPlaylistError
- type MediaPlaylistPlaybackMode
- type MessageBoxIcon
- type MessageIconType
- type MouseEvent
- type MoveEvent
- type Orientation
- type PaintEvent
- type PenStyle
- type Point
- type PointF
- type Rect
- type RectF
- type ResizeEvent
- type ShowEvent
- type Size
- type SizeF
- type SizePolicyControlType
- type SizePolicyPolicy
- type SizePolicyPolicyFlag
- type StandardButton
- type StandardButtons
- type TickPosition
- type TimerEvent
- type ToolButtonPopupMode
- type ToolButtonStyle
- type TransformationMode
- type WheelEvent
Constants ¶
View Source
const ( PlainText = 0 RichText = 1 AutoText = 2 LogText = 3 )
View Source
const ( LightWeight = 25 NormalWeight = 50 DemiBoldWeight = 63 BoldWeight = 75 BlackWeight = 87 )
View Source
const ( NoModifier = 0x00000000 ShiftModifier = 0x02000000 ControlModifier = 0x04000000 AltModifier = 0x08000000 MetaModifier = 0x10000000 KeypadModifier = 0x20000000 GroupSwitchModifier = 0x40000000 // Do not extend the mask to include 0x01000000 KeyboardModifierMask = 0xfe000000 )
View Source
const ( META = MetaModifier SHIFT = ShiftModifier CTRL = ControlModifier ALT = AltModifier MODIFIER_MASK = KeyboardModifierMask UNICODE_ACCEL = 0x00000000 )
shorter names for shortcuts
View Source
const ( NoButton = 0x00000000 LeftButton = 0x00000001 RightButton = 0x00000002 MidButton = 0x00000004 // ### Qt 5: remove me MiddleButton = MidButton XButton1 = 0x00000008 XButton2 = 0x00000010 MouseButtonMask = 0x000000ff )
View Source
const ( Fixed SizePolicyPolicy = 0 Minimum = SizePolicyPolicy(GrowFlag) Maximum = SizePolicyPolicy(ShrinkFlag) Preferred = SizePolicyPolicy(GrowFlag | ShrinkFlag) Expanding = SizePolicyPolicy(GrowFlag | ShrinkFlag | ExpandFlag) MinimumExpanding = SizePolicyPolicy(GrowFlag | ExpandFlag) Ignored = SizePolicyPolicy(ShrinkFlag | GrowFlag | IgnoreFlag) )
Variables ¶
View Source
var (
EINVAL error = syscall.EINVAL
)
Functions ¶
func CloseAllWindows ¶
func CloseAllWindows()
func DumpObject ¶
func DumpObjectInfo ¶
func DumpObjectInfo(obj iobj) string
func FindObject ¶
func FindObject(native uintptr) interface{}
func InsertObject ¶
func InsertObject(obj IObject)
func OnInsertObject ¶
func OnInsertObject(fn func(interface{}))
func OnRemoveObject ¶
func OnRemoveObject(fn func(interface{}))
func RegisterClass ¶
func RegisterClassNative ¶
func RemoveObject ¶
func RemoveObject(native uintptr)
Types ¶
type Alignment ¶
type Alignment int
const ( AlignLeft Alignment = 0x0001 AlignRight Alignment = 0x0002 AlignHCenter Alignment = 0x0004 AlignJustify Alignment = 0x0008 AlignAbsolute Alignment = 0x0010 AlignHorizontal_Mask Alignment = AlignLeft | AlignRight | AlignHCenter | AlignJustify | AlignAbsolute AlignTop Alignment = 0x0020 AlignBottom Alignment = 0x0040 AlignVCenter Alignment = 0x0080 AlignVertical_Mask Alignment = AlignTop | AlignBottom | AlignVCenter AlignCenter Alignment = AlignVCenter | AlignHCenter )
type AspectRatioMode ¶
type AspectRatioMode int
const ( IgnoreAspectRatio AspectRatioMode = iota KeepAspectRatio KeepAspectRatioByExpanding )
type BrushStyle ¶
type BrushStyle int
const ( NoBrush BrushStyle = iota SolidPattern Dense1Pattern Dense2Pattern Dense3Pattern Dense4Pattern Dense5Pattern Dense6Pattern Dense7Pattern HorPattern VerPattern CrossPattern BDiagPattern FDiagPattern DiagCrossPattern LinearGradientPattern RadialGradientPattern ConicalGradientPattern TexturePattern BrushStyle = 24 )
type CheckState ¶
type CheckState int
const ( Unchecked CheckState = 0 PartiallyChecked CheckState = 1 Checked CheckState = 2 )
type CloseEvent ¶
type CloseEvent struct {
BaseEvent
}
type DockWidgetArea ¶
type DockWidgetArea int
const ( NoDockWidgetArea DockWidgetArea = 0 LeftDockWidgetArea DockWidgetArea = 0x01 RightDockWidgetArea DockWidgetArea = 0x02 TopDockWidgetArea DockWidgetArea = 0x04 BottomDockWidgetArea DockWidgetArea = 0x08 AllDockWidgetAreas DockWidgetArea = LeftDockWidgetArea | RightDockWidgetArea | TopDockWidgetArea | BottomDockWidgetArea )
type EnterEvent ¶
type EnterEvent struct {
BaseEvent
}
type FileDeviceFileError ¶
type FileDeviceFileError int
const ( FileDeviceNoError FileDeviceFileError = 0 FileDeviceReadError FileDeviceFileError = 1 FileDeviceWriteError FileDeviceFileError = 2 FileDeviceFatalError FileDeviceFileError = 3 FileDeviceResourceError FileDeviceFileError = 4 FileDeviceOpenError FileDeviceFileError = 5 FileDeviceAbortError FileDeviceFileError = 6 FileDeviceTimeOutError FileDeviceFileError = 7 FileDeviceUnspecifiedError FileDeviceFileError = 8 FileDeviceRemoveError FileDeviceFileError = 9 FileDeviceRenameError FileDeviceFileError = 10 FileDevicePositionError FileDeviceFileError = 11 FileDeviceResizeError FileDeviceFileError = 12 FileDevicePermissionsError FileDeviceFileError = 13 FileDeviceCopyError FileDeviceFileError = 14 )
type FileDevicePermission ¶
type FileDevicePermission int
const ( FileDeviceReadOwner FileDevicePermission = 0x4000 FileDeviceWriteOwner FileDevicePermission = 0x2000 FileDeviceExeOwner FileDevicePermission = 0x1000 FileDeviceReadUser FileDevicePermission = 0x0400 FileDeviceWriteUser FileDevicePermission = 0x0200 FileDeviceExeUser FileDevicePermission = 0x0100 FileDeviceReadGroup FileDevicePermission = 0x0040 FileDeviceWriteGroup FileDevicePermission = 0x0020 FileDeviceExeGroup FileDevicePermission = 0x0010 FileDeviceReadOther FileDevicePermission = 0x0004 FileDeviceWriteOther FileDevicePermission = 0x0002 FileDeviceExeOther FileDevicePermission = 0x0001 )
type FileDevicePermissions ¶
type FileDevicePermissions int
type FocusEvent ¶
type FocusEvent struct { BaseEvent // contains filtered or unexported fields }
func (*FocusEvent) Reason ¶
func (p *FocusEvent) Reason() int
type HeaderResizeMode ¶
type HeaderResizeMode int
const ( InteractiveHeader HeaderResizeMode = 0 StretchHeader HeaderResizeMode = 1 FixedHeader HeaderResizeMode = 2 ResizeHeaderToContents HeaderResizeMode = 3 )
type HoverEvent ¶
type HoverEvent struct { BaseEvent // contains filtered or unexported fields }
func (*HoverEvent) OldPos ¶
func (p *HoverEvent) OldPos() Point
func (*HoverEvent) Pos ¶
func (p *HoverEvent) Pos() Point
type IODeviceOpenMode ¶
type IODeviceOpenMode int
const ( OpenModeNotOpen IODeviceOpenMode = 0x0000 OpenModeReadOnly IODeviceOpenMode = 0x0001 OpenModeWriteOnly IODeviceOpenMode = 0x0002 OpenModeReadWrite = IODeviceOpenMode(OpenModeReadOnly | OpenModeWriteOnly) OpenModeAppend IODeviceOpenMode = 0x0004 OpenModeTruncate IODeviceOpenMode = 0x0008 OpenModeText IODeviceOpenMode = 0x0010 OpenModeUnbuffered IODeviceOpenMode = 0x0020 )
type IObject ¶
type IObject interface { Close() error IsValid() bool Name() string Native() uintptr String() string SetAttr(attr string, value interface{}) bool Attr(attr string) interface{} Key() (string, string) }
func FindObjectForKey ¶
func NewObjectWithId ¶
func NewObjectWithNative ¶
type KeyEvent ¶
type KeyEvent struct { BaseEvent // contains filtered or unexported fields }
func (*KeyEvent) IsAutoRepeat ¶
func (*KeyEvent) NativeModifiers ¶
func (*KeyEvent) NativeScanCode ¶
func (*KeyEvent) NativeVirtualKey ¶
type LeaveEvent ¶
type LeaveEvent struct {
BaseEvent
}
type MediaAvailabilityStatus ¶
type MediaAvailabilityStatus int
const ( MediaAvailable MediaAvailabilityStatus = 0 MediaServiceMissing MediaAvailabilityStatus = 1 MediaBusy MediaAvailabilityStatus = 2 MediaResourceError MediaAvailabilityStatus = 3 )
type MediaEncodingMode ¶
type MediaEncodingMode int
const ( MediaConstantQualityEncoding MediaEncodingMode = 0 MediaConstantBitRateEncoding MediaEncodingMode = 1 MediaAverageBitRateEncoding MediaEncodingMode = 2 MediaTwoPassEncoding MediaEncodingMode = 3 )
type MediaEncodingQuality ¶
type MediaEncodingQuality int
const ( MediaVeryLowQualityEncoding MediaEncodingQuality = 0 MediaLowQualityEncoding MediaEncodingQuality = 1 MediaNormalQualityEncoding MediaEncodingQuality = 2 MediaHighQualityEncoding MediaEncodingQuality = 3 MediaVeryHighQualityEncoding MediaEncodingQuality = 4 )
type MediaPlaylistError ¶
type MediaPlaylistError int
const ( MediaPlaylistNoError MediaPlaylistError = 0 MediaPlaylistFormatError MediaPlaylistError = 1 MediaPlaylistForNotSupportedError MediaPlaylistError = 2 MediaPlaylistNetworkError MediaPlaylistError = 3 MediaPlaylistAccessDeniedError MediaPlaylistError = 4 )
type MediaPlaylistPlaybackMode ¶
type MediaPlaylistPlaybackMode int
const ( MediaPlaylistPlayCurrentItemOnce MediaPlaylistPlaybackMode = 0 MediaPlaylistPlayCurrentIteminLoop MediaPlaylistPlaybackMode = 1 MediaPlaylistPlaySequential MediaPlaylistPlaybackMode = 2 MediaPlaylistPlayLoop MediaPlaylistPlaybackMode = 3 MediaPlaylistPlayRandom MediaPlaylistPlaybackMode = 4 )
type MessageBoxIcon ¶
type MessageBoxIcon MessageIconType
type MessageIconType ¶
type MessageIconType int
enum MessageIcon { NoIcon, Information, Warning, Critical };
const ( NoIcon MessageIconType = iota Information Warning Critical )
type MouseEvent ¶
type MouseEvent struct { BaseEvent // contains filtered or unexported fields }
func (*MouseEvent) Button ¶
func (p *MouseEvent) Button() int
func (*MouseEvent) Buttons ¶
func (p *MouseEvent) Buttons() int
func (*MouseEvent) GlobalPos ¶
func (p *MouseEvent) GlobalPos() Point
func (*MouseEvent) Modifiers ¶
func (p *MouseEvent) Modifiers() int
func (*MouseEvent) Pos ¶
func (p *MouseEvent) Pos() Point
type Orientation ¶
type Orientation int
const ( Horizontal Orientation = 0x1 Vertical Orientation = 0x2 )
type PaintEvent ¶
type PaintEvent struct { BaseEvent // contains filtered or unexported fields }
func (*PaintEvent) Rect ¶
func (p *PaintEvent) Rect() Rect
type ResizeEvent ¶
type ResizeEvent struct { BaseEvent // contains filtered or unexported fields }
func (*ResizeEvent) OldSize ¶
func (p *ResizeEvent) OldSize() Size
func (*ResizeEvent) Size ¶
func (p *ResizeEvent) Size() Size
type SizePolicyControlType ¶
type SizePolicyControlType int
const ( ControlTypeDefaultType SizePolicyControlType = 0x00000001 ControlTypeButtonBox SizePolicyControlType = 0x00000002 ControlTypeCheckBox SizePolicyControlType = 0x00000004 ControlTypeComboBox SizePolicyControlType = 0x00000008 ControlTypeFrame SizePolicyControlType = 0x00000010 ControlTypeGroupBox SizePolicyControlType = 0x00000020 ControlTypeLabel SizePolicyControlType = 0x00000040 ControlTypeLine SizePolicyControlType = 0x00000080 ControlTypeLineEdit SizePolicyControlType = 0x00000100 ControlTypePushButton SizePolicyControlType = 0x00000200 ControlTypeRadioButton SizePolicyControlType = 0x00000400 ControlTypeSlider SizePolicyControlType = 0x00000800 ControlTypeSpinBox SizePolicyControlType = 0x00001000 ControlTypeTabWidget SizePolicyControlType = 0x00002000 ControlTypeToolButton SizePolicyControlType = 0x00004000 )
type SizePolicyPolicy ¶
type SizePolicyPolicy int
type SizePolicyPolicyFlag ¶
type SizePolicyPolicyFlag int
const ( GrowFlag SizePolicyPolicyFlag = 1 ExpandFlag SizePolicyPolicyFlag = 2 ShrinkFlag SizePolicyPolicyFlag = 4 IgnoreFlag SizePolicyPolicyFlag = 8 )
type StandardButton ¶
type StandardButton int
const ( OkButton StandardButton = 0x00000400 OpenButton StandardButton = 0x00002000 SaveButton StandardButton = 0x00000800 CancelButton StandardButton = 0x00400000 CloseButton StandardButton = 0x00200000 DiscardButton StandardButton = 0x00800000 ApplyButton StandardButton = 0x02000000 ResetButton StandardButton = 0x04000000 RestoreDefaultsButton StandardButton = 0x08000000 HelpButton StandardButton = 0x01000000 SaveAllButton StandardButton = 0x00001000 YesButton StandardButton = 0x00004000 YesToAllButton StandardButton = 0x00008000 NoMessageButton StandardButton = 0x00010000 NoToAllButton StandardButton = 0x00020000 AbortButton StandardButton = 0x00040000 RetryButton StandardButton = 0x00080000 IgnoreButton StandardButton = 0x00100000 InvalidButton StandardButton = 0x00000000 )
type StandardButtons ¶
type StandardButtons int
type TickPosition ¶
type TickPosition int
const ( NoTicks TickPosition = iota TicksAbove TicksBelow TicksBothSides )
type TimerEvent ¶
type TimerEvent struct { BaseEvent // contains filtered or unexported fields }
func (*TimerEvent) TimerId ¶
func (p *TimerEvent) TimerId() int
type ToolButtonPopupMode ¶
type ToolButtonPopupMode int
const ( ToolButtonDelayedPopup ToolButtonPopupMode = iota ToolButtonMenuButtonPopup ToolButtonInstantPopup )
type ToolButtonStyle ¶
type ToolButtonStyle int
const ( ToolButtonIconOnly ToolButtonStyle = iota ToolButtonTextOnly ToolButtonTextBesideIcon ToolButtonTextUnderIcon ToolButtonFollowStyle )
type TransformationMode ¶
type TransformationMode int
const ( FastTransformation TransformationMode = iota SmoothTransformation )
type WheelEvent ¶
type WheelEvent struct { MouseEvent // contains filtered or unexported fields }
func (*WheelEvent) Orientation ¶
func (p *WheelEvent) Orientation() int
Click to show internal directories.
Click to hide internal directories.