Documentation ¶
Index ¶
- Constants
- func ClipboardChangeCount() int
- func ClipboardClear()
- func ClipboardTypes() []string
- func CloseDisplay()
- func DefaultScreen() int
- func Flush()
- func GetClipboard(dataType string) []byte
- func Modifiers(state C.uint) keys.Modifiers
- func OpenDisplay()
- func ProcessSelectionClearEvent(evt *SelectionClearEvent)
- func ProcessSelectionRequestEvent(evt *SelectionRequestEvent)
- func Running() bool
- func SetClipboard(data []datatypes.Data)
- type Atom
- type ButtonEvent
- func (evt *ButtonEvent) Button() int
- func (evt *ButtonEvent) IsScrollWheel() bool
- func (evt *ButtonEvent) Modifiers() keys.Modifiers
- func (evt *ButtonEvent) ScrollWheelDirection() geom.Point
- func (evt *ButtonEvent) ToEvent() *Event
- func (evt *ButtonEvent) When() C.Time
- func (evt *ButtonEvent) Where() geom.Point
- func (evt *ButtonEvent) Window() Window
- type ClientMessageEvent
- type ConfigureEvent
- type CrossingEvent
- type Cursor
- type DestroyWindowEvent
- type Event
- func (evt *Event) ToButtonEvent() *ButtonEvent
- func (evt *Event) ToClientMessageEvent() *ClientMessageEvent
- func (evt *Event) ToConfigureEvent() *ConfigureEvent
- func (evt *Event) ToCrossingEvent() *CrossingEvent
- func (evt *Event) ToDestroyWindowEvent() *DestroyWindowEvent
- func (evt *Event) ToEvent() *Event
- func (evt *Event) ToExposeEvent() *ExposeEvent
- func (evt *Event) ToFocusChangeEvent() *FocusChangeEvent
- func (evt *Event) ToKeyEvent() *KeyEvent
- func (evt *Event) ToMapWindowEvent() *MapWindowEvent
- func (evt *Event) ToMotionEvent() *MotionEvent
- func (evt *Event) ToPropertyEvent() *PropertyEvent
- func (evt *Event) ToSelectionClearEvent() *SelectionClearEvent
- func (evt *Event) ToSelectionEvent() *SelectionEvent
- func (evt *Event) ToSelectionRequestEvent() *SelectionRequestEvent
- func (evt *Event) Type() int
- func (evt *Event) Window() Window
- type Eventable
- type ExposeEvent
- type FocusChangeEvent
- type KeyEvent
- type MapWindowEvent
- type MotionEvent
- type PropertyEvent
- type SelectionClearEvent
- type SelectionEvent
- type SelectionRequestEvent
- func (evt *SelectionRequestEvent) NewNotify(bad bool) *SelectionEvent
- func (evt *SelectionRequestEvent) Owner() Window
- func (evt *SelectionRequestEvent) Property() Atom
- func (evt *SelectionRequestEvent) Requestor() Window
- func (evt *SelectionRequestEvent) Selection() Atom
- func (evt *SelectionRequestEvent) Target() Atom
- func (evt *SelectionRequestEvent) ToEvent() *Event
- func (evt *SelectionRequestEvent) When() C.Time
- type SystemCursorID
- type Visual
- type Window
- func (wnd Window) ChangeProperty(property Atom, propertyType Atom, format, mode int, data unsafe.Pointer, ...)
- func (wnd Window) ContentFrame() geom.Rect
- func (wnd Window) DeleteProperty(property Atom)
- func (wnd Window) Destroy()
- func (wnd Window) FrameDecorationSpace() (top, left, bottom, right float64)
- func (wnd Window) InvokeTask(id uint64)
- func (wnd Window) Minimize()
- func (wnd Window) Move(where geom.Point)
- func (wnd Window) NewSurface(size geom.Size) *draw.Surface
- func (wnd Window) NextEventOfType(eventType int) *Event
- func (wnd Window) Property(property Atom, requestedType Atom) (actualType Atom, actualFormat, count int, data unsafe.Pointer)
- func (wnd Window) Raise()
- func (wnd Window) Repaint(bounds geom.Rect)
- func (wnd Window) RequestFocus()
- func (wnd Window) SelectInput(mask int)
- func (wnd Window) Send(eventMask int, evt Eventable)
- func (wnd Window) SetCursor(cursor Cursor)
- func (wnd Window) SetFrame(bounds geom.Rect)
- func (wnd Window) SetProtocols(protocols ...Atom)
- func (wnd Window) SetTitle(title string)
- func (wnd Window) Show()
- func (wnd Window) Title() string
- func (wnd Window) Zoom()
Constants ¶
View Source
const ( KeyPressMask = 1 << iota KeyReleaseMask ButtonPressMask ButtonReleaseMask EnterWindowMask LeaveWindowMask PointerMotionMask PointerMotionHintMask Button1MotionMask Button2MotionMask Button3MotionMask Button4MotionMask Button5MotionMask ButtonMotionMask KeymapStateMask ExposureMask VisibilityChangeMask StructureNotifyMask ResizeRedirectMask SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask PropertyChangeMask ColormapChangeMask OwnerGrabButtonMask NoEventMask = 0 )
View Source
const ( KeyPressType = 2 + iota KeyReleaseType ButtonPressType ButtonReleaseType MotionNotifyType EnterNotifyType LeaveNotifyType FocusInType FocusOutType KeymapNotifyType ExposeType GraphicsExposeType NoExposeType VisibilityNotifyType CreateNotifyType DestroyNotifyType UnmapNotifyType MapNotifyType MapRequestType ReparentNotifyType ConfigureNotifyType ConfigureRequestType GravityNotifyType ResizeRequestType CirculateNotifyType CirculateRequestType PropertyNotifyType SelectionClearType SelectionRequestType SelectionNotifyType ColormapNotifyType ClientMessageType MappingNotifyType GenericEventType LASTEventType )
View Source
const ( PropModeReplace = iota PropModePrepend PropModeAppend )
View Source
const ( CWBackPixmap = 1 << iota CWBackPixel CWBorderPixmap CWBorderPixel CWBitGravity CWWinGravity CWBackingStore CWBackingPlanes CWBackingPixel CWOverrideRedirect CWSaveUnder CWEventMask CWDontPropagate CWColormap CWCursor )
Variables ¶
This section is empty.
Functions ¶
func ClipboardChangeCount ¶
func ClipboardChangeCount() int
func ClipboardClear ¶
func ClipboardClear()
func ClipboardTypes ¶
func ClipboardTypes() []string
func CloseDisplay ¶
func CloseDisplay()
func DefaultScreen ¶
func DefaultScreen() int
func GetClipboard ¶
func OpenDisplay ¶
func OpenDisplay()
func ProcessSelectionClearEvent ¶
func ProcessSelectionClearEvent(evt *SelectionClearEvent)
func ProcessSelectionRequestEvent ¶
func ProcessSelectionRequestEvent(evt *SelectionRequestEvent)
func SetClipboard ¶
Types ¶
type ButtonEvent ¶
type ButtonEvent C.XButtonEvent
func (*ButtonEvent) Button ¶
func (evt *ButtonEvent) Button() int
func (*ButtonEvent) IsScrollWheel ¶
func (evt *ButtonEvent) IsScrollWheel() bool
func (*ButtonEvent) Modifiers ¶
func (evt *ButtonEvent) Modifiers() keys.Modifiers
func (*ButtonEvent) ScrollWheelDirection ¶
func (evt *ButtonEvent) ScrollWheelDirection() geom.Point
func (*ButtonEvent) ToEvent ¶
func (evt *ButtonEvent) ToEvent() *Event
func (*ButtonEvent) When ¶
func (evt *ButtonEvent) When() C.Time
func (*ButtonEvent) Where ¶
func (evt *ButtonEvent) Where() geom.Point
func (*ButtonEvent) Window ¶
func (evt *ButtonEvent) Window() Window
type ClientMessageEvent ¶
type ClientMessageEvent C.XClientMessageEvent
func NewClientMessageEvent ¶
func NewClientMessageEvent(wnd Window, subType Atom, format int) *ClientMessageEvent
func (*ClientMessageEvent) Format ¶
func (evt *ClientMessageEvent) Format() int
func (*ClientMessageEvent) Protocol ¶
func (evt *ClientMessageEvent) Protocol() Atom
func (*ClientMessageEvent) SubType ¶
func (evt *ClientMessageEvent) SubType() Atom
func (*ClientMessageEvent) TaskID ¶
func (evt *ClientMessageEvent) TaskID() uint64
func (*ClientMessageEvent) ToEvent ¶
func (evt *ClientMessageEvent) ToEvent() *Event
func (*ClientMessageEvent) Window ¶
func (evt *ClientMessageEvent) Window() Window
type ConfigureEvent ¶
type ConfigureEvent C.XConfigureEvent
func (*ConfigureEvent) ToEvent ¶
func (evt *ConfigureEvent) ToEvent() *Event
func (*ConfigureEvent) Window ¶
func (evt *ConfigureEvent) Window() Window
type CrossingEvent ¶
type CrossingEvent C.XCrossingEvent
func (*CrossingEvent) Modifiers ¶
func (evt *CrossingEvent) Modifiers() keys.Modifiers
func (*CrossingEvent) ToEvent ¶
func (evt *CrossingEvent) ToEvent() *Event
func (*CrossingEvent) Where ¶
func (evt *CrossingEvent) Where() geom.Point
func (*CrossingEvent) Window ¶
func (evt *CrossingEvent) Window() Window
type Cursor ¶
func SystemCursor ¶
func SystemCursor(id SystemCursorID) Cursor
type DestroyWindowEvent ¶
type DestroyWindowEvent C.XDestroyWindowEvent
func (*DestroyWindowEvent) ToEvent ¶
func (evt *DestroyWindowEvent) ToEvent() *Event
func (*DestroyWindowEvent) Window ¶
func (evt *DestroyWindowEvent) Window() Window
type Event ¶
func (*Event) ToButtonEvent ¶
func (evt *Event) ToButtonEvent() *ButtonEvent
func (*Event) ToClientMessageEvent ¶
func (evt *Event) ToClientMessageEvent() *ClientMessageEvent
func (*Event) ToConfigureEvent ¶
func (evt *Event) ToConfigureEvent() *ConfigureEvent
func (*Event) ToCrossingEvent ¶
func (evt *Event) ToCrossingEvent() *CrossingEvent
func (*Event) ToDestroyWindowEvent ¶
func (evt *Event) ToDestroyWindowEvent() *DestroyWindowEvent
func (*Event) ToExposeEvent ¶
func (evt *Event) ToExposeEvent() *ExposeEvent
func (*Event) ToFocusChangeEvent ¶
func (evt *Event) ToFocusChangeEvent() *FocusChangeEvent
func (*Event) ToKeyEvent ¶
func (*Event) ToMapWindowEvent ¶
func (evt *Event) ToMapWindowEvent() *MapWindowEvent
func (*Event) ToMotionEvent ¶
func (evt *Event) ToMotionEvent() *MotionEvent
func (*Event) ToPropertyEvent ¶
func (evt *Event) ToPropertyEvent() *PropertyEvent
func (*Event) ToSelectionClearEvent ¶
func (evt *Event) ToSelectionClearEvent() *SelectionClearEvent
func (*Event) ToSelectionEvent ¶
func (evt *Event) ToSelectionEvent() *SelectionEvent
func (*Event) ToSelectionRequestEvent ¶
func (evt *Event) ToSelectionRequestEvent() *SelectionRequestEvent
type ExposeEvent ¶
type ExposeEvent C.XExposeEvent
func NewExposeEvent ¶
func NewExposeEvent(wnd Window, bounds geom.Rect) *ExposeEvent
func (*ExposeEvent) Bounds ¶
func (evt *ExposeEvent) Bounds() geom.Rect
func (*ExposeEvent) ToEvent ¶
func (evt *ExposeEvent) ToEvent() *Event
func (*ExposeEvent) Window ¶
func (evt *ExposeEvent) Window() Window
type FocusChangeEvent ¶
type FocusChangeEvent C.XFocusChangeEvent
func (*FocusChangeEvent) ToEvent ¶
func (evt *FocusChangeEvent) ToEvent() *Event
func (*FocusChangeEvent) Window ¶
func (evt *FocusChangeEvent) Window() Window
type KeyEvent ¶
func (*KeyEvent) CodeAndChar ¶
type MapWindowEvent ¶
func (*MapWindowEvent) ToEvent ¶
func (evt *MapWindowEvent) ToEvent() *Event
func (*MapWindowEvent) Window ¶
func (evt *MapWindowEvent) Window() Window
type MotionEvent ¶
type MotionEvent C.XMotionEvent
func (*MotionEvent) Modifiers ¶
func (evt *MotionEvent) Modifiers() keys.Modifiers
func (*MotionEvent) ToEvent ¶
func (evt *MotionEvent) ToEvent() *Event
func (*MotionEvent) Where ¶
func (evt *MotionEvent) Where() geom.Point
func (*MotionEvent) Window ¶
func (evt *MotionEvent) Window() Window
type PropertyEvent ¶
type PropertyEvent C.XPropertyEvent
func (*PropertyEvent) Time ¶
func (evt *PropertyEvent) Time() C.Time
func (*PropertyEvent) ToEvent ¶
func (evt *PropertyEvent) ToEvent() *Event
type SelectionClearEvent ¶
type SelectionClearEvent C.XSelectionClearEvent
func (*SelectionClearEvent) Selection ¶
func (evt *SelectionClearEvent) Selection() C.Atom
func (*SelectionClearEvent) ToEvent ¶
func (evt *SelectionClearEvent) ToEvent() *Event
func (*SelectionClearEvent) When ¶
func (evt *SelectionClearEvent) When() C.Time
func (*SelectionClearEvent) Window ¶
func (evt *SelectionClearEvent) Window() Window
type SelectionEvent ¶
type SelectionEvent C.XSelectionEvent
func (*SelectionEvent) Property ¶
func (evt *SelectionEvent) Property() Atom
func (*SelectionEvent) Requestor ¶
func (evt *SelectionEvent) Requestor() Window
func (*SelectionEvent) Selection ¶
func (evt *SelectionEvent) Selection() Atom
func (*SelectionEvent) Target ¶
func (evt *SelectionEvent) Target() Atom
func (*SelectionEvent) ToEvent ¶
func (evt *SelectionEvent) ToEvent() *Event
func (*SelectionEvent) When ¶
func (evt *SelectionEvent) When() C.Time
type SelectionRequestEvent ¶
type SelectionRequestEvent C.XSelectionRequestEvent
func (*SelectionRequestEvent) NewNotify ¶
func (evt *SelectionRequestEvent) NewNotify(bad bool) *SelectionEvent
func (*SelectionRequestEvent) Owner ¶
func (evt *SelectionRequestEvent) Owner() Window
func (*SelectionRequestEvent) Property ¶
func (evt *SelectionRequestEvent) Property() Atom
func (*SelectionRequestEvent) Requestor ¶
func (evt *SelectionRequestEvent) Requestor() Window
func (*SelectionRequestEvent) Selection ¶
func (evt *SelectionRequestEvent) Selection() Atom
func (*SelectionRequestEvent) Target ¶
func (evt *SelectionRequestEvent) Target() Atom
func (*SelectionRequestEvent) ToEvent ¶
func (evt *SelectionRequestEvent) ToEvent() *Event
func (*SelectionRequestEvent) When ¶
func (evt *SelectionRequestEvent) When() C.Time
type SystemCursorID ¶
type SystemCursorID int
const ( ArrowID SystemCursorID = C.XC_left_ptr TextID SystemCursorID = C.XC_xterm VerticalTextID SystemCursorID = -1 CrossHairID SystemCursorID = C.XC_crosshair ClosedHandID SystemCursorID = -2 OpenHandID SystemCursorID = -3 PointingHandID SystemCursorID = -4 ResizeLeftID SystemCursorID = C.XC_left_side ResizeRightID SystemCursorID = C.XC_right_side ResizeLeftRightID SystemCursorID = -5 ResizeUpID SystemCursorID = C.XC_top_side ResizeDownID SystemCursorID = C.XC_bottom_side ResizeUpDownID SystemCursorID = C.XC_double_arrow DisappearingItemID SystemCursorID = -6 NotAllowedID SystemCursorID = -7 DragLinkID SystemCursorID = -8 DragCopyID SystemCursorID = -9 ContextMenuID SystemCursorID = -10 )
type Window ¶
func DefaultRootWindow ¶
func DefaultRootWindow() Window
func InputFocus ¶
func InputFocus() Window
func (Window) ChangeProperty ¶
func (Window) ContentFrame ¶
func (Window) DeleteProperty ¶
func (Window) FrameDecorationSpace ¶
func (Window) InvokeTask ¶
func (Window) NextEventOfType ¶
func (Window) RequestFocus ¶
func (wnd Window) RequestFocus()
func (Window) SelectInput ¶
func (Window) SetProtocols ¶
Source Files ¶
- atom_linux.go
- button_event_linux.go
- client_message_event_linux.go
- clipboard_linux.go
- configure_event_linux.go
- crossing_event_linux.go
- cursor_linux.go
- destroy_window_event_linux.go
- display_linux.go
- event_linux.go
- expose_event_linux.go
- focus_change_event_linux.go
- key_event_linux.go
- map_window_event_linux.go
- motion_event_linux.go
- property_event_linux.go
- selection_clear_event_linux.go
- selection_event_linux.go
- selection_request_event_linux.go
- window_linux.go
Click to show internal directories.
Click to hide internal directories.