bx-lib : the Basic X11 Library tuned for C beginners
1.0
|
Functions | |
bx_mouse | bx_read_mouse (bx_window win) |
int | bx_mouse_x (bx_mouse mouse) |
int | bx_mouse_xcanvas (bx_mouse mouse) |
int | bx_mouse_xscreen (bx_mouse mouse) |
int | bx_mouse_xwindow (bx_mouse mouse) |
int | bx_mouse_y (bx_mouse mouse) |
int | bx_mouse_ycanvas (bx_mouse mouse) |
int | bx_mouse_yscreen (bx_mouse mouse) |
int | bx_mouse_ywindow (bx_mouse mouse) |
int | bx_mouse_b1 (bx_mouse mouse) |
int | bx_mouse_b2 (bx_mouse mouse) |
int | bx_mouse_b3 (bx_mouse mouse) |
int | bx_mouse_b4 (bx_mouse mouse) |
int | bx_mouse_b5 (bx_mouse mouse) |
int | bx_mouse_b (bx_mouse mouse, int b) |
int | bx_mouse_shift (bx_mouse mouse) |
int | bx_mouse_ctrl (bx_mouse mouse) |
int | bx_mouse_alt (bx_mouse mouse) |
int | bx_mouse_altgr (bx_mouse mouse) |
Takes a snapshot of the current state of the mouse (location and buttons).
win | the window to use as referential for the mouse location. |
int bx_mouse_x | ( | bx_mouse | mouse | ) |
Same as bx_mouse_xcanvas().
int bx_mouse_xcanvas | ( | bx_mouse | mouse | ) |
Gets the x-location of the mouse, relative to the canvas of the referential window
mouse | a snapshot of the state of the mouse. |
int bx_mouse_xscreen | ( | bx_mouse | mouse | ) |
Gets the x-location of the mouse, relative to the top left corner of screen
mouse | a snapshot of the state of the mouse. |
int bx_mouse_xwindow | ( | bx_mouse | mouse | ) |
Gets the x-location of the mouse, relative to the referential window
mouse | a snapshot of the state of the mouse. |
int bx_mouse_y | ( | bx_mouse | mouse | ) |
Same as bx_mouse_ycanvas().
int bx_mouse_ycanvas | ( | bx_mouse | mouse | ) |
Gets the y-location of the mouse, relative to the canvas of the referential window
mouse | a snapshot of the state of the mouse. |
int bx_mouse_yscreen | ( | bx_mouse | mouse | ) |
Gets the y-location of the mouse, relative to the top left corner of screen.
mouse | a snapshot of the state of the mouse. |
int bx_mouse_ywindow | ( | bx_mouse | mouse | ) |
Gets the y-location of the mouse, relative to the referential window.
mouse | a snapshot of the state of the mouse |
int bx_mouse_b1 | ( | bx_mouse | mouse | ) |
Gets the state of mouse button no 1 (usually left),
mouse | a snapshot of the state of the mouse. |
int bx_mouse_b2 | ( | bx_mouse | mouse | ) |
Gets the state of mouse button no 2 (middle),
mouse | a snapshot of the state of the mouse. |
int bx_mouse_b3 | ( | bx_mouse | mouse | ) |
Gets the state of mouse button no 3 (usually right),
mouse | a snapshot of the state of the mouse. |
int bx_mouse_b4 | ( | bx_mouse | mouse | ) |
Gets the state of mouse button no 4 (forward roll of mousewheel),
mouse | a snapshot of the state of the mouse. |
int bx_mouse_b5 | ( | bx_mouse | mouse | ) |
Gets the state of mouse button no 5 (backward roll of mousewheel),
mouse | a snapshot of the state of the mouse. |
int bx_mouse_b | ( | bx_mouse | mouse, |
int | b | ||
) |
Gets the state of mouse button number b.
mouse | a snapshot of the state of the mouse |
b | a number of mouse button in the range from 1 to 5 |
int bx_mouse_shift | ( | bx_mouse | mouse | ) |
Gets the state of the Shift key at the time of the snapshot of the state of the mouse.
mouse | a snapshot of the state of the mouse |
int bx_mouse_ctrl | ( | bx_mouse | mouse | ) |
Gets the state of the Ctrl key at the time of the snapshot of the state of the mouse.
mouse | a snapshot of the state of the mouse |
int bx_mouse_alt | ( | bx_mouse | mouse | ) |
Gets the state of the Alt key at the time of the snapshot of the state of the mouse.
mouse | a snapshot of the state of the mouse |
int bx_mouse_altgr | ( | bx_mouse | mouse | ) |
Gets the state of the AltGr key at the time of the snapshot of the state of the mouse.
mouse | a snapshot of the state of the mouse |