⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphic.h

📁 GUI例程
💻 H
字号:
/*  * $Id: graphic.h,v 1.2 1999/11/12 13:03:26 till Exp $ * * serverside graphics * * Copyright (C) 1999  Till Krech <till@snafu.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * */#ifndef GRAPHIC_H#define GRAPHIC_H#include "pixy.h"typedef struct {  unsigned short height;  UNIT data[0];} Pattern;extern void do_drawPixel(int x, int y, int color, GraphicsContext *gc);extern void do_drawLine(int x1, int y1, int x2, int y2, GraphicsContext *gc);extern void do_drawEllipse(int x, int y, int a, int b, GraphicsContext *gc);extern void do_drawRect(int x1, int y1, int x2, int y2, GraphicsContext *gc);extern void do_fillRect(int x1, int y1, int x2, int y2, GraphicsContext *gc);extern void bitblt(		 short src_x,		 short src_y,		 short w,		 short h,		 short dest_x,		 short dest_y, 		 UNIT *src,		 short src_units_per_line, 		 UNIT *dest,		 short dest_units_per_line, 		 GraphicsContext *gc);extern void patternfill(		 short dest_x,		 short dest_y, 		 short w,		 short h,		 UNIT *dest,		 short dest_units_per_line, GraphicsContext *gc);extern void do_drawChar(int x, int y, int c, GraphicsContext *gc);extern void do_drawString(int x, int y, int len, char *data, GraphicsContext *gc);#endif

⌨️ 快捷键说明

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