Documentation ¶
Index ¶
- Constants
- func GetAddress() string
- func GetLocalMachineId() string
- func GetSocketPath(useWayland bool) string
- func GetUserAuth() []dbus.Auth
- func GetUserConfigDir() string
- func GetWaylandSocketPath(display string) string
- func GetX11SocketPath() string
- func PublishEngine(conn *dbus.Conn, objectPath dbus.ObjectPath, userEngine interface{})
- type AttrList
- type Attribute
- type Bus
- type Component
- type Engine
- func (e *Engine) CandidateClicked(index uint32, button uint32, state uint32) *dbus.Error
- func (e *Engine) CommitText(text *Text)
- func (e *Engine) CursorDown() *dbus.Error
- func (e *Engine) CursorDownLookupTable()
- func (e *Engine) CursorUp() *dbus.Error
- func (e *Engine) CursorUpLookupTable()
- func (e *Engine) DeleteSurroundingText(offset_from_cursor int32, nchars uint32)
- func (e *Engine) Destroy() *dbus.Error
- func (e *Engine) Disable() *dbus.Error
- func (e *Engine) Enable() *dbus.Error
- func (e *Engine) FocusIn() *dbus.Error
- func (e *Engine) FocusOut() *dbus.Error
- func (e *Engine) ForwardKeyEvent(keyval uint32, keycode uint32, state uint32)
- func (e *Engine) GetAll(iface string) (map[string]dbus.Variant, *dbus.Error)
- func (e *Engine) HideAuxiliaryText()
- func (e *Engine) HideLookupTable()
- func (e *Engine) HidePreeditText()
- func (e *Engine) PageDown() *dbus.Error
- func (e *Engine) PageDownLookupTable()
- func (e *Engine) PageUp() *dbus.Error
- func (e *Engine) PageUpLookupTable()
- func (e *Engine) ProcessKeyEvent(keyval uint32, keycode uint32, state uint32) (bool, *dbus.Error)
- func (e *Engine) PropertyActivate(prop_name string, prop_state uint32) *dbus.Error
- func (e *Engine) PropertyHide(prop_name string) *dbus.Error
- func (e *Engine) PropertyShow(prop_name string) *dbus.Error
- func (e *Engine) RegisterProperties(props *PropList)
- func (e *Engine) RequireSurroundingText()
- func (e *Engine) Reset() *dbus.Error
- func (e *Engine) SetCapabilities(cap uint32) *dbus.Error
- func (e *Engine) SetCursorLocation(x int32, y int32, w int32, h int32) *dbus.Error
- func (e *Engine) SetSurroundingText(text dbus.Variant, cursor_index uint32, anchor_pos uint32) *dbus.Error
- func (e *Engine) ShowAuxiliaryText()
- func (e *Engine) ShowLookupTable()
- func (e *Engine) ShowPreeditText()
- func (e *Engine) UpdateAuxiliaryText(text *Text, visible bool)
- func (e *Engine) UpdateLookupTable(lookup_table *LookupTable, visible bool)
- func (e *Engine) UpdatePreeditText(text *Text, cursor_pos uint32, visible bool)
- func (e *Engine) UpdatePreeditTextWithMode(text *Text, cursor_pos uint32, visible bool, mode uint32)
- func (e *Engine) UpdateProperty(prop *Property)
- type EngineDesc
- func FullEngineDesc(name string, longname string, desc string, lang string, license string, ...) *EngineDesc
- func SmallEngineDesc(name string, longname string, desc string, lang string, license string, ...) *EngineDesc
- func TinyEngineDesc(name string, longname string, desc string, lang string, license string, ...) *EngineDesc
- type Factory
- type LookupTable
- func (lt *LookupTable) AppendCandidate(text string)
- func (lt *LookupTable) AppendLabel(label string)
- func (lt *LookupTable) Clean()
- func (lt *LookupTable) CursorDown() bool
- func (lt *LookupTable) CursorUp() bool
- func (lt *LookupTable) GetCursorPos() uint32
- func (lt *LookupTable) GetCursorPosInCurrentPage() uint32
- func (lt *LookupTable) PageDown() bool
- func (lt *LookupTable) PageUp() bool
- func (lt *LookupTable) SetCursorPos(pos uint32) bool
- func (lt *LookupTable) SetCursorPosInCurrentPage(pos uint32) bool
- type PropList
- type Property
- type Text
Constants ¶
View Source
const ( BUS_DAEMON_NAME = "org.freedesktop.DBus" BUS_DAEMON_PATH = "/org/freedesktop/DBus" BUS_PROPERTIES_NAME = "org.freedesktop.DBus.Properties" IBUS_IFACE_IBUS = "org.freedesktop.IBus" IBUS_PATH_IBUS = "/org/freedesktop/IBus" IBUS_SERVICE_IBUS = "org.freedesktop.IBus" IBUS_IFACE_PANEL = "org.freedesktop.IBus.Panel" IBUS_IFACE_CONFIG = "org.freedesktop.IBus.Config" IBUS_IFACE_SERVICE = "org.freedesktop.IBus.Service" IBUS_IFACE_ENGINE = "org.freedesktop.IBus.Engine" IBUS_IFACE_ENGINE_FACTORY = "org.freedesktop.IBus.Factory" IBUS_IFACE_INPUT_CONTEXT = "org.freedesktop.IBus.InputContext" IBUS_IFACE_NOTIFICATIONS = "org.freedesktop.IBus.Notifications" IBUS_ENGINE_PREEDIT_CLEAR uint32 = 0 IBUS_ENGINE_PREEDIT_COMMIT uint32 = 1 ORIENTATION_HORIZONTAL int32 = 0 ORIENTATION_VERTICAL int32 = 1 ORIENTATION_SYSTEM int32 = 2 PROP_TYPE_NORMAL uint32 = 0 PROP_TYPE_TOGGLE uint32 = 1 PROP_TYPE_RADIO uint32 = 2 PROP_TYPE_MENU uint32 = 3 PROP_TYPE_SEPARATOR uint32 = 4 PROP_STATE_UNCHECKED uint32 = 0 PROP_STATE_CHECKED uint32 = 1 PROP_STATE_INCONSISTENT uint32 = 2 IBUS_ATTR_TYPE_NONE uint32 = 0 IBUS_ATTR_TYPE_UNDERLINE uint32 = 1 IBUS_ATTR_TYPE_FOREGROUND uint32 = 2 IBUS_ATTR_TYPE_BACKGROUND uint32 = 3 IBUS_ATTR_UNDERLINE_NONE uint32 = 0 IBUS_ATTR_UNDERLINE_SINGLE uint32 = 1 IBUS_ATTR_UNDERLINE_DOUBLE uint32 = 2 IBUS_ATTR_UNDERLINE_LOW uint32 = 3 IBUS_ATTR_UNDERLINE_ERROR uint32 = 4 )
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetAddress() string
func GetLocalMachineId ¶
func GetLocalMachineId() string
func GetSocketPath ¶
func GetUserAuth ¶
func GetUserConfigDir ¶
func GetUserConfigDir() string
func GetWaylandSocketPath ¶ added in v0.6.6
func GetX11SocketPath ¶ added in v0.6.6
func GetX11SocketPath() string
func PublishEngine ¶
func PublishEngine(conn *dbus.Conn, objectPath dbus.ObjectPath, userEngine interface{})
Types ¶
type Attribute ¶
type Attribute struct { Name string Attachments map[string]dbus.Variant Type uint32 Value uint32 StartIndex uint32 EndIndex uint32 }
func NewAttribute ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
func (*Bus) CallMethod ¶
func (*Bus) GetDbusConn ¶
func (*Bus) RegisterComponent ¶
func (*Bus) RequestName ¶
func (bus *Bus) RequestName(name string, flags dbus.RequestNameFlags) (dbus.RequestNameReply, error)
type Component ¶
type Component struct { XMLName xml.Name `xml:"component" dbus:"-"` Name string `xml:"-"` Attachments map[string]dbus.Variant `xml:"-"` ComponentName string `xml:"name"` Description string `xml:"description"` Version string `xml:"version"` License string `xml:"license"` Author string `xml:"author"` Homepage string `xml:"homepage"` Exec string `xml:"exec"` Textdomain string `xml:"textdomain"` ObservedPaths []dbus.Variant `xml:"-"` EngineList []dbus.Variant `xml:"-"` Engines []*EngineDesc `xml:"engines>engine" dbus:"-"` }
func NewComponent ¶
func (*Component) AddEngine ¶
func (c *Component) AddEngine(e *EngineDesc)
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func BaseEngine ¶
func BaseEngine(conn *dbus.Conn, objectPath dbus.ObjectPath) Engine
func (*Engine) CandidateClicked ¶
@method(in_signature="uuu")
func (*Engine) DeleteSurroundingText ¶
@signal(signature="iu")
func (*Engine) ForwardKeyEvent ¶
@signal(signature="uuu")
func (*Engine) ProcessKeyEvent ¶
@method(in_signature="uuu", out_signature="b")
func (*Engine) PropertyActivate ¶
@method(in_signature="su")
func (*Engine) PropertyHide ¶
@method(in_signature="s")
func (*Engine) PropertyShow ¶
@method(in_signature="s")
func (*Engine) RegisterProperties ¶
@signal(signature="v")
func (*Engine) SetCapabilities ¶
@method(in_signature="u")
func (*Engine) SetCursorLocation ¶
@method(in_signature="iiii")
func (*Engine) SetSurroundingText ¶
func (e *Engine) SetSurroundingText(text dbus.Variant, cursor_index uint32, anchor_pos uint32) *dbus.Error
@method(in_signature="vuu")
func (*Engine) UpdateAuxiliaryText ¶
@signal(signature="vb")
func (*Engine) UpdateLookupTable ¶
func (e *Engine) UpdateLookupTable(lookup_table *LookupTable, visible bool)
@signal(signature="vb")
func (*Engine) UpdatePreeditText ¶
@signal(signature="vubu")
func (*Engine) UpdatePreeditTextWithMode ¶
func (*Engine) UpdateProperty ¶
@signal(signature="v")
type EngineDesc ¶
type EngineDesc struct { Name string `xml:"-"` Attachments map[string]dbus.Variant `xml:"-"` EngineName string `xml:"name"` LongName string `xml:"longname"` Description string `xml:"description"` Language string `xml:"language"` License string `xml:"license"` Author string `xml:"author"` Icon string `xml:"icon"` Layout string `xml:"layout"` Rank uint32 `xml:"rank"` Hotkeys string `xml:"hotkeys,omitempty"` Symbol string `xml:"symbol,omitempty"` Setup string `xml:"setup,omitempty"` LayoutVariant string `xml:"layout-variant,omitempty"` LayoutOption string `xml:"layout-option,omitempty"` Version string `xml:"version,omitempty"` Textdomain string `xml:"textdomain,omitempty"` }
func FullEngineDesc ¶
func SmallEngineDesc ¶
type Factory ¶
type Factory struct { EngineCreator func(conn *dbus.Conn, engineName string) dbus.ObjectPath // contains filtered or unexported fields }
func NewFactory ¶
func (*Factory) CreateEngine ¶
# Create an input context and return the id of the context. # If failed, it will return "" or None. @method(in_signature="s", out_signature="o")
type LookupTable ¶
type LookupTable struct { Name string Attachments map[string]dbus.Variant PageSize uint32 CursorPos uint32 CursorVisible bool Round bool Orientation int32 Candidates []dbus.Variant Labels []dbus.Variant }
func NewLookupTable ¶
func NewLookupTable() *LookupTable
func (*LookupTable) AppendCandidate ¶
func (lt *LookupTable) AppendCandidate(text string)
func (*LookupTable) AppendLabel ¶
func (lt *LookupTable) AppendLabel(label string)
func (*LookupTable) Clean ¶ added in v0.3.4
func (lt *LookupTable) Clean()
func (*LookupTable) CursorDown ¶ added in v0.3.4
func (lt *LookupTable) CursorDown() bool
func (*LookupTable) CursorUp ¶ added in v0.3.4
func (lt *LookupTable) CursorUp() bool
func (*LookupTable) GetCursorPos ¶ added in v0.3.4
func (lt *LookupTable) GetCursorPos() uint32
func (*LookupTable) GetCursorPosInCurrentPage ¶ added in v0.3.4
func (lt *LookupTable) GetCursorPosInCurrentPage() uint32
func (*LookupTable) PageDown ¶ added in v0.3.4
func (lt *LookupTable) PageDown() bool
func (*LookupTable) PageUp ¶ added in v0.3.4
func (lt *LookupTable) PageUp() bool
func (*LookupTable) SetCursorPos ¶ added in v0.3.4
func (lt *LookupTable) SetCursorPos(pos uint32) bool
func (*LookupTable) SetCursorPosInCurrentPage ¶ added in v0.3.4
func (lt *LookupTable) SetCursorPosInCurrentPage(pos uint32) bool
type PropList ¶
type PropList struct { Name string Attachments map[string]dbus.Variant PropertyList []dbus.Variant }
func NewPropList ¶
Click to show internal directories.
Click to hide internal directories.