graphic.h
来自「GUI例程」· C头文件 代码 · 共 55 行
H
55 行
/* * $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 + =
减小字号Ctrl + -
显示快捷键?