Add {cursor, page}-{up, down} support for panel.
[ibus.git] / ibus / interface / ipanel.py
blob618c5e3648a3a7b44c73a38840d17fba138a5b67
1 import dbus.service
2 from ibus.common import \
3 IBUS_PANEL_IFACE
5 class IPanel (dbus.service.Object):
6 # define method decorator.
7 method = lambda **args: \
8 dbus.service.method (dbus_interface = IBUS_PANEL_IFACE, \
9 **args)
11 # define signal decorator.
12 signal = lambda **args: \
13 dbus.service.signal (dbus_interface = IBUS_PANEL_IFACE, \
14 **args)
16 # define async method decorator.
17 async_method = lambda **args: \
18 dbus.service.method (dbus_interface = IBUS_PANE_IFACE, \
19 async_callbacks = ("reply_cb", "error_cb"), \
20 **args)
21 @method (in_signature="iiii")
22 def SetCursorLocation (self, x, y, w, h): pass
24 @method (in_signature="svu")
25 def SetPreeditString (self, text, attrs, cursor_pos): pass
27 @method ()
28 def ShowPreeditString (self): pass
30 @method ()
31 def HidePreeditString (self): pass
33 @method (in_signature="sv")
34 def SetAuxString (self, text, attrs): pass
36 @method ()
37 def ShowAuxString (self): pass
39 @method ()
40 def HideAuxString (self): pass
42 @method (in_signature="v")
43 def UpdateLookupTable (self, lookup_table): pass
45 @method ()
46 def ShowCandidateWindow (self): pass
48 @method ()
49 def HideCandidateWindow (self): pass
51 @method ()
52 def ShowLanguageBar (self): pass
54 @method ()
55 def HideLanguageBar (self): pass
57 @method ()
58 def Destroy (self): pass
60 #signals
61 @signal ()
62 def PageUp (self): pass
64 @signal ()
65 def PageDown (self): pass
67 @signal ()
68 def CursorUp (self): pass
70 @signal ()
71 def CursorDown (self): pass