Versions in this module Expand all Collapse all v1 v1.1.1 May 18, 2022 v1.1.0 May 18, 2022 v1.0.1 May 18, 2022 v1.0.0 May 16, 2022 Changes in this version + const ButtonType + const LabelType + const NameAlt + const NameBack + const NameCommand + const NameCtrl + const NameDeleteBackward + const NameDeleteForward + const NameDownArrow + const NameEnd + const NameEnter + const NameEscape + const NameF1 + const NameF10 + const NameF11 + const NameF12 + const NameF2 + const NameF3 + const NameF4 + const NameF5 + const NameF6 + const NameF7 + const NameF8 + const NameF9 + const NameHome + const NameLeftArrow + const NamePageDown + const NamePageUp + const NameReturn + const NameRightArrow + const NameShift + const NameSpace + const NameSuper + const NameTab + const NameUpArrow + const TextboxType + var LabelNum uint8 = 0 + func WordWrap(text string, wrapAt int) (rows []string) + type Context struct + Ctx *C.struct_xkb_context + var KeyContext *Context + func New() (*Context, error) + func (x *Context) Destroy() + func (x *Context) DestroyKeymapState() + func (x *Context) DispatchKey(keyCode uint32) string + func (x *Context) Modifiers() Modifiers + func (x *Context) SetKeymap(xkbKeyMap, xkbState unsafe.Pointer) + func (x *Context) UpdateKeymap() error + type Modifiers uint32 + const ModAlt + const ModCommand + const ModCtrl + const ModShift + const ModSuper + type UIElementStruct struct + Buttons []*UIEvent + Labels []*UIEvent + Textboxes []*UIEvent + func (v UIElementStruct) GetByID(ID uint8, FindType int8) *UIEvent + type UITextboxSubmitEvent struct + Event *UIEvent + Name string + func (v UITextboxSubmitEvent) String() string type Window + Height uint16 + Width uint16 + func (win *Window) DrawUIButtons() + func (win *Window) DrawUILabel(i uint8) + func (win *Window) DrawUILabels() + func (win *Window) DrawUITextboxes() + func (win *Window) Label(Name string, ID int16, Width uint16, Height uint16, X int16, Y int16, ...) + func (win *Window) NewUIEventWithPresetState(Name string, ID int16, Width uint16, Height uint16, X int16, Y int16, ...) *UIEvent + func (win *Window) PercentOfHeight(per uint16) int16 + func (win *Window) PercentOfWidth(per uint16) int16 v0 v0.0.1 May 2, 2022 v0.0.0 Apr 26, 2022 Changes in this version + var ButtonNum uint8 = 0 + var HoldingAlt int8 = -1 + var HoldingAltGr int8 = -1 + var HoldingCtrl int8 = -1 + var HoldingShift int8 = -1 + var MousePos struct + var TextboxNum uint8 = 0 + var UIElements struct + var UIEventNum uint8 = 0 + var UIEvents []*UIEvent = make([]*UIEvent, 255) + func DecodeKey(kc xproto.Keycode) string + type Event interface + String func() string + type UIEvent struct + Height uint16 + ID int16 + Name string + State int8 + Type int8 + Width uint16 + X int16 + Y int16 + type UIHoverEvent struct + Event *UIEvent + Name string + func (v UIHoverEvent) String() string + type UIPressEvent struct + Event *UIEvent + Name string + func (v UIPressEvent) String() string + type UIReleaseEvent struct + Event *UIEvent + Name string + func (v UIReleaseEvent) String() string + type Window struct + Conn *xgb.Conn + Screen *xproto.ScreenInfo + Window xproto.Window + func NewWindow(Width uint16, Height uint16, Flags []uint32) (Window Window, Errors [3]error) + func NewWindowComplex(Width uint16, Height uint16, BorderWidth uint16, Mask uint32, Flags []uint32) (win Window, errors [3]error) + func (win *Window) Base(Width uint16, Height uint16, X int16, Y int16, colors [5]uint32) + func (win *Window) BaseRaised(Width uint16, Height uint16, X int16, Y int16) + func (win *Window) BaseSunken(Width uint16, Height uint16, X int16, Y int16) + func (win *Window) Button(Name string, ID int16, Width uint16, Height uint16, X int16, Y int16) + func (win *Window) CheckKeyPress(ev xgb.Event) + func (win *Window) CheckKeyRelease(ev xgb.Event) + func (win *Window) CheckMouseHover(ev xgb.Event) + func (win *Window) CheckMousePress(ev xgb.Event) + func (win *Window) CheckMouseRelease(ev xgb.Event) + func (win *Window) DefaultListeners(ev xgb.Event) + func (win *Window) DrawText(Text string, X int16, Y int16, Size int16, FGColor uint32, BGColor uint32) error + func (win *Window) DrawUIButton(i uint8) + func (win *Window) DrawUIElement(ev *UIEvent) + func (win *Window) DrawUIElements() + func (win *Window) DrawUITextbox(i uint8) + func (win *Window) NewUIEvent(Name string, ID int16, Width uint16, Height uint16, X int16, Y int16, ...) *UIEvent + func (win *Window) NoMoreUIEvents() bool + func (win *Window) Square(Width uint16, Height uint16, X int16, Y int16, color uint32) + func (win *Window) Textbox(Name string, ID int16, Width uint16, Height uint16, X int16, Y int16) + func (win *Window) TextboxBase(Width uint16, Height uint16, X int16, Y int16) + func (win *Window) WaitForUIEvent() Event