00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef LIBCVAUTOMATION_XTEST_H
00019 #define LIBCVAUTOMATION_XTEST_H
00020
00021 #include <libcvautomation/libcvautomation.h>
00022
00023 #define IS_CMD( x, y ) strncmp( x, y, strlen( y ) ) == 0
00024 #define COMMAND_STR_LEN 512
00025
00026
00027
00028 Bool xte_XTestSupported ( Display *displayLocation );
00029
00030
00031 cvaPoint xte_pointerLocation ( Display *displayLocation );
00032
00033
00034 void xte_clickMouse ( Display *displayLocation, int mouseButton );
00035
00036
00037 void xte_clickMouseXY ( Display *displayLocation, int xLocation, int yLocation, int mouseButton );
00038
00039
00040 void xte_clickMouseRXY ( Display *displayLocation, int xIncrement, int yIncrement, int mouseButton );
00041
00042
00043 cvaPoint xte_clickMouseImage ( Display *displayLocation, IplImage *subImage, int mouseButton, int searchMethod, int tolerance );
00044
00045
00046
00047 cvaPoint xte_clickMouseImage_location ( Display *displayLocation, const char *fileName, int mouseButton, int searchMethod, int tolerance );
00048
00049
00050 cvaPoint xte_clickMouseImage_center ( Display *displayLocation, IplImage *subImage, int mouseButton, int searchMethod, int tolerance );
00051
00052
00053
00054 cvaPoint xte_clickMouseImage_location_center ( Display *displayLocation, const char *fileName, int mouseButton, int searchMethod, int tolerance );
00055
00056
00057 void xte_hoverMouseXY ( Display *displayLocation, int xLocation, int yLocation );
00058
00059
00060 void xte_hoverMouseRXY ( Display *displayLocation, int xIncrement, int yIncrement );
00061
00062
00063
00064 cvaPoint xte_hoverMouseImage ( Display *displayLocation, IplImage *subImage, int searchMethod, int tolerance );
00065
00066
00067
00068 cvaPoint xte_hoverMouseImage_location ( Display *displayLocation, const char *filename, int searchMethod, int tolerance );
00069
00070
00071
00072 cvaPoint xte_hoverMouseImage_center ( Display *displayLocation, IplImage *subImage, int searchMethod, int tolerance );
00073
00074
00075
00076 cvaPoint xte_hoverMouseImage_location_center ( Display *displayLocation, const char *fileName, int searchMethod, int tolerance );
00077
00078
00079 void xte_mouseDown ( Display *displayLocation, int mouseButton );
00080
00081
00082 void xte_mouseUp ( Display *displayLocation, int mouseButton );
00083
00084
00085 void xte_mouseJiggle ( Display *displayLocation );
00086
00087
00088 void xte_mouseScrollUp ( Display *displayLocation );
00089
00090
00091 void xte_mouseScrollDown ( Display *displayLocation );
00092
00093
00094
00095 void xte_clickKey ( Display *displayLocation, char *key );
00096
00097
00098 void xte_clickKeyStr ( Display *displayLocation, char *string );
00099
00100
00101 void xte_keyDown ( Display *displayLocation, char *key );
00102
00103
00104 void xte_keyUp ( Display *displayLocation, char *key );
00105
00106
00107 cvaPoint xte_commandString ( Display *displayLocation, char *commandString, int mouseButton, int searchMethod, int tolerance );
00108
00109 #endif
00110
00111