ubit
Public Member Functions | Public Attributes | Friends | List of all members
MouseFlow Class Reference

UMS mouse event flow. More...

#include <flow.hpp>

Inheritance diagram for MouseFlow:
EventFlow

Public Member Functions

 MouseFlow (class UMServer *, int flow_id, bool create_pointer)
 
long getX () const
 
long getY () const
 
bool isPressed (int btn_id) const
 btn_mask is a combination of Button1Mask, etc and can be ORed.
 
WindowID getPointer () const
 
void movePointer (long x, long y)
 
void showPointer (bool)
 
void createPointer ()
 
void changePointer (const char *fgcolor, const char *bgcolor)
 
void pressMouse (int btn_id)
 
void releaseMouse (int btn_id)
 
void pressMouse (const class UMSbutton *)
 
void releaseMouse (const class UMSbutton *)
 btn_mask is ONE of Button1Mask, etc and must NOT be ORed.
 
void pressKey (unsigned long keysym)
 
void releaseKey (unsigned long keysym)
 
void releaseAll ()
 releases all mouses and keys (when leaving a remote display)
 
void moveMouse (long x, long y, bool absolute_coords)
 x and y are screen coordinates if 'absolute_coords' is true and relative translations from the previous position otherwise. More...
 
bool moveMouseOutsideDisplay (long x, long y)
 returns false if not outside or no connection.
 
void syncMouse (long x, long y)
 synchronizes this flow with the actual pos of the mouse (and send events).
 
bool isOutside (long x, long y, long &n_x, long &n_y, class UMService *&)
 returns true if mouse is outside the home screen.
 
void keepMouseInsideScreen (long &mx, long &my)
 
- Public Member Functions inherited from EventFlow
 EventFlow (class UMServer *, int flow_id)
 
int getID () const
 

Public Attributes

long mx
 
long my
 absolute pos of the mouse
 
int btn_mask
 current button mask
 
int mod_mask
 current modifier mask
 
WindowID pointer_win
 
WindowID last_entered_win
 
bool last_entered_in_ubitwin
 
int last_entered_winsock
 
bool h_out
 
bool v_out
 
- Public Attributes inherited from EventFlow
class UMServerums
 
class Eventsevents
 
const int id
 

Friends

class UMServer
 

Detailed Description

UMS mouse event flow.

Member Function Documentation

§ moveMouse()

void MouseFlow::moveMouse ( long  x,
long  y,
bool  absolute_coords 
)

x and y are screen coordinates if 'absolute_coords' is true and relative translations from the previous position otherwise.


The documentation for this class was generated from the following files: