ourmouse.h

来自「一个在tc3.0下面写的棋类游戏 很经典 值得好好研究」· C头文件 代码 · 共 21 行

H
21
字号
#include<DOS.h>
#include<graphics.h>
#ifndef __OURMOUSE_H
#define __OURMOUSE_H
/*-----------------four functions for mouse using--------------------*/
/* initial mouse*/
int initmouse();
void showmouse();
 void hidemouse() ;
void readmouse(int *f,int *x,int *y);
void newbutton(int startx,int starty,int endx,int endy);
/* draw a new button when it is pushed */
void pushbutton(int startx,int starty,int endx,int endy);
 /*----------------A struct for Buttons----------*/
struct BUTTON{
int x,y,width,height;
char *name;
};


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?