19 #include "umserver.hpp" 29 int getID()
const {
return id;}
30 virtual WindowID getPointer()
const {
return 0;}
45 long getX()
const {
return mx;}
46 long getY()
const {
return my;}
47 bool isPressed(
int btn_id)
const {
return (btn_mask & btn_id) != 0;}
50 WindowID getPointer()
const {
return pointer_win;}
51 void movePointer(
long x,
long y);
52 void showPointer(
bool);
54 void changePointer(
const char* fgcolor,
const char* bgcolor);
58 void pressMouse(
int btn_id);
59 void releaseMouse(
int btn_id);
61 void releaseMouse(
const class UMSbutton*);
64 void pressKey(
unsigned long keysym);
65 void releaseKey(
unsigned long keysym);
70 void moveMouse(
long x,
long y,
bool absolute_coords);
74 bool moveMouseOutsideDisplay(
long x,
long y);
77 void syncMouse(
long x,
long y);
80 bool isOutside(
long x,
long y,
long& n_x,
long& n_y,
class UMService*&);
83 void keepMouseInsideScreen(
long& mx,
long& my);
92 WindowID last_entered_win;
93 bool last_entered_in_ubitwin;
94 int last_entered_winsock;
int mod_mask
current modifier mask
Definition: flow.hpp:90
UMService: Ubit Mouse/Message Service.
Definition: umservice.hpp:25
UMS mouse event flow.
Definition: flow.hpp:40
UMS event flow.
Definition: flow.hpp:24
long my
absolute pos of the mouse
Definition: flow.hpp:88
UMS server main class.
Definition: umserver.hpp:152
bool isPressed(int btn_id) const
btn_mask is a combination of Button1Mask, etc and can be ORed.
Definition: flow.hpp:47
int btn_mask
current button mask
Definition: flow.hpp:89