Category : C Source Code
Archive   : XLIB06.ZIP
Filename : XMOUSE.H

 
Output of file : XMOUSE.H contained in archive : XLIB06.ZIP
/*-----------------------------------------------------------------------
;
; XMOUSE - header file
;
;
;
; ****** XLIB - Mode X graphics library ****************
; ****** ****************
; ****** Written By Themie Gouthas ****************
;
; [email protected]
; [email protected]
;
; Terminology & notes:
; VRAM == Video RAM
; SRAM == System RAM
; X coordinates are in pixels unless explicitly stated
;
;-----------------------------------------------------------------------*/

#ifndef _XMOUSE_H_
#define _XMOUSE_H_

#define LEFT_PRESSED 1
#define RIGHT_PRESSED 2

/* GLOBAL VARS ========================================================= */

extern WORD MouseInstalled; /* Indicates whether mouse handler installed */
extern WORD MouseHidden; /* Indicates whether mouse cursor is hidden */
extern WORD MouseButtonStatus;/* Holds the mouse button status */
extern WORD MouseX; /* Current X position of mouse cursor */
extern WORD MouseY; /* Current Y position of mouse cursor */
extern BYTE MouseFrozen; /* Disallows position updates if TRUE */
extern BYTE MouseColor; /* The mouse cursors colour */

/* FUNCTIONS =========================================================== */

#ifdef __cplusplus
extern "C" {
#endif



void x_mouse_init(void); /* Initialize mouse cursor */

void x_define_mouse_cursor( /* Define and set a cursor shape */
char far MouseDef,
int color);

void x_update_mouse(void); /* Force mouse cursor position update */

void x_show_mouse(void); /* Show mouse cursor if hidden */

void x_hide_mouse(void); /* Hide mouse cursor if visible */

void x_mouse_remove(void); /* Remove installed mouse handler */

void x_position_mouse( /* Set the mouse position */
int x,
int y);

void x_put_cursor( /* Draw the mouse cursor (NOT FOR */
int x, /* general use) */
int y,
int topclip,
int botclip,
WORD ScrnOff);


void x_mouse_window(int x0, /* Define a mouse window */
int y0,
int x1,
int y1);

#ifdef __cplusplus
}
#endif

#endif


  3 Responses to “Category : C Source Code
Archive   : XLIB06.ZIP
Filename : XMOUSE.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/