graph.h
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 406 行 · 第 1/2 页
H
406 行
short _WCI86FAR _CGRAPH _remapallpalette( long _WCI86FAR * );
short _WCI86FAR _CGRAPH _selectpalette( short );
/* Colour Values for _setbkcolor and _remappalette */
#define _BLACK 0x000000L
#define _BLUE 0x2a0000L
#define _GREEN 0x002a00L
#define _CYAN 0x2a2a00L
#define _RED 0x00002aL
#define _MAGENTA 0x2a002aL
#define _BROWN 0x00152aL
#define _WHITE 0x2a2a2aL
#define _GRAY 0x151515L
#define _LIGHTBLUE 0x3F1515L
#define _LIGHTGREEN 0x153f15L
#define _LIGHTCYAN 0x3f3f15L
#define _LIGHTRED 0x15153fL
#define _LIGHTMAGENTA 0x3f153fL
#define _YELLOW 0x153f3fL
#define _BRIGHTWHITE 0x3f3f3fL
#define _LIGHTYELLOW _YELLOW
/* Shape and Curve Drawing Functions */
short _WCI86FAR _CGRAPH _lineto( short, short );
short _WCI86FAR _CGRAPH _lineto_w( double, double );
short _WCI86FAR _CGRAPH _rectangle( short, short, short, short, short );
short _WCI86FAR _CGRAPH _rectangle_w( short, double, double, double, double );
short _WCI86FAR _CGRAPH _rectangle_wxy( short, struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR * );
short _WCI86FAR _CGRAPH _arc( short, short, short, short, short, short,
short, short );
short _WCI86FAR _CGRAPH _arc_w( double, double, double, double, double,
double, double, double );
short _WCI86FAR _CGRAPH _arc_wxy( struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR * );
short _WCI86FAR _CGRAPH _ellipse( short, short, short, short, short );
short _WCI86FAR _CGRAPH _ellipse_w( short, double, double, double, double );
short _WCI86FAR _CGRAPH _ellipse_wxy( short, struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR * );
short _WCI86FAR _CGRAPH _pie( short, short, short, short, short, short,
short, short, short );
short _WCI86FAR _CGRAPH _pie_w( short, double, double, double, double,
double, double, double, double );
short _WCI86FAR _CGRAPH _pie_wxy( short, struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR * );
short _WCI86FAR _CGRAPH _polygon( short, short, struct xycoord _WCI86FAR * );
short _WCI86FAR _CGRAPH _polygon_w( short, short, double _WCI86FAR * );
short _WCI86FAR _CGRAPH _polygon_wxy( short, short, struct _wxycoord _WCI86FAR * );
short _WCI86FAR _CGRAPH _floodfill( short, short, short );
short _WCI86FAR _CGRAPH _floodfill_w( double, double, short );
short _WCI86FAR _CGRAPH _setpixel( short, short );
short _WCI86FAR _CGRAPH _setpixel_w( double, double );
short _WCI86FAR _CGRAPH _getpixel( short, short );
short _WCI86FAR _CGRAPH _getpixel_w( double, double );
short _WCI86FAR _CGRAPH _getarcinfo( struct xycoord _WCI86FAR *,
struct xycoord _WCI86FAR *,
struct xycoord _WCI86FAR * );
/* Position Determination Functions */
struct xycoord _WCI86FAR _CGRAPH _getcurrentposition( void );
struct _wxycoord _WCI86FAR _CGRAPH _getcurrentposition_w( void );
struct xycoord _WCI86FAR _CGRAPH _getviewcoord( short, short );
struct xycoord _WCI86FAR _CGRAPH _getviewcoord_w( double, double );
struct xycoord _WCI86FAR _CGRAPH _getviewcoord_wxy( struct _wxycoord _WCI86FAR * );
struct xycoord _WCI86FAR _CGRAPH _getphyscoord( short, short );
struct _wxycoord _WCI86FAR _CGRAPH _getwindowcoord( short, short );
struct xycoord _WCI86FAR _CGRAPH _moveto( short, short );
struct _wxycoord _WCI86FAR _CGRAPH _moveto_w( double, double );
struct xycoord _WCI86FAR _CGRAPH _setvieworg( short, short );
#define _getlogcoord _getviewcoord /* for compatibility */
#define _setlogorg _setvieworg
/* Output Determination Functions */
void _WCI86FAR _CGRAPH _setfillmask( unsigned char _WCI86FAR * );
unsigned char _WCI86FAR * _WCI86FAR _CGRAPH
_getfillmask( unsigned char _WCI86FAR * );
void _WCI86FAR _CGRAPH _setlinestyle( unsigned short );
unsigned short _WCI86FAR _CGRAPH _getlinestyle( void );
short _WCI86FAR _CGRAPH _setplotaction( short );
short _WCI86FAR _CGRAPH _getplotaction( void );
short _WCI86FAR _CGRAPH _settransparency( short );
short _WCI86FAR _CGRAPH _setstylewrap( short );
short _WCI86FAR _CGRAPH _setclip( short );
#define _setwritemode _setplotaction /* for compatibility */
#define _getwritemode _getplotaction
enum { /* plotting action */
_GOR, _GAND, _GPRESET, _GPSET, _GXOR
};
/* Screen Manipulation Functions */
void _WCI86FAR _CGRAPH _clearscreen( short );
void _WCI86FAR _CGRAPH _setviewport( short, short, short, short );
void _WCI86FAR _CGRAPH _setcliprgn( short, short, short, short );
void _WCI86FAR _CGRAPH _getcliprgn( short _WCI86FAR *, short _WCI86FAR *,
short _WCI86FAR *, short _WCI86FAR * );
short _WCI86FAR _CGRAPH _displaycursor( short );
short _WCI86FAR _CGRAPH _wrapon( short );
short _WCI86FAR _CGRAPH _setwindow( short, double, double, double, double );
#define _GCLEARSCREEN 0
#define _GVIEWPORT 1
#define _GWINDOW 2
#define _GBORDER 2
#define _GFILLINTERIOR 3
enum { /* cursor display */
_GCURSOROFF, _GCURSORON
};
enum { /* text wrapping */
_GWRAPOFF, _GWRAPON
};
/* Graphics Text Manipulation Functions and Constants */
struct textsettings _WCI86FAR * _WCI86FAR _CGRAPH
_gettextsettings( struct textsettings _WCI86FAR * );
void _WCI86FAR _CGRAPH _gettextextent( short, short, char _WCI86FAR *,
struct xycoord _WCI86FAR *, struct xycoord _WCI86FAR * );
void _WCI86FAR _CGRAPH _setcharsize( short, short );
void _WCI86FAR _CGRAPH _setcharsize_w( double, double );
void _WCI86FAR _CGRAPH _settextalign( short, short );
void _WCI86FAR _CGRAPH _settextpath( short );
void _WCI86FAR _CGRAPH _settextorient( short, short );
void _WCI86FAR _CGRAPH _setcharspacing( short );
void _WCI86FAR _CGRAPH _setcharspacing_w( double );
short _WCI86FAR _CGRAPH _grtext( short, short, char _WCI86FAR * );
short _WCI86FAR _CGRAPH _grtext_w( double, double, char _WCI86FAR * );
enum { /* horizontal alignment */
_NORMAL, _LEFT, _CENTER, _RIGHT
};
enum { /* vertical alignment */
_TOP=1, _CAP, _HALF, _BASE, _BOTTOM
};
enum { /* text path */
_PATH_RIGHT, _PATH_LEFT, _PATH_UP, _PATH_DOWN
};
/* Text Manipulation Functions */
#define _GSCROLLUP 1
#define _GSCROLLDOWN (-1)
#define _MAXTEXTROWS (-1)
void _WCI86FAR _CGRAPH _settextwindow( short, short, short, short );
void _WCI86FAR _CGRAPH _outtext( char _WCI86FAR * );
short _WCI86FAR _CGRAPH _settextcolor( short );
short _WCI86FAR _CGRAPH _gettextcolor( void );
struct rccoord _WCI86FAR _CGRAPH _settextposition( short, short );
struct rccoord _WCI86FAR _CGRAPH _gettextposition( void );
void _WCI86FAR _CGRAPH _scrolltextwindow( short );
void _WCI86FAR _CGRAPH _gettextwindow( short _WCI86FAR *, short _WCI86FAR *,
short _WCI86FAR *, short _WCI86FAR * );
short _WCI86FAR _CGRAPH _gettextcursor( void );
short _WCI86FAR _CGRAPH _settextcursor( short );
void _WCI86FAR _CGRAPH _outmem( unsigned char _WCI86FAR *, short );
short _WCI86FAR _CGRAPH _settextrows( short );
/* Image Manipulation Functions */
void _WCI86FAR _CGRAPH _getimage( short, short, short, short, char _WCI86HUGE * );
void _WCI86FAR _CGRAPH _getimage_w( double, double, double, double, char _WCI86HUGE * );
void _WCI86FAR _CGRAPH _getimage_wxy( struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR *, char _WCI86HUGE * );
void _WCI86FAR _CGRAPH _putimage( short, short, char _WCI86HUGE *, short );
void _WCI86FAR _CGRAPH _putimage_w( double, double, char _WCI86HUGE *, short );
long _WCI86FAR _CGRAPH _imagesize( short, short, short, short );
long _WCI86FAR _CGRAPH _imagesize_w( double, double, double, double );
long _WCI86FAR _CGRAPH _imagesize_wxy( struct _wxycoord _WCI86FAR *,
struct _wxycoord _WCI86FAR * );
/* Font Manipulation Functions */
short _WCI86FAR _CGRAPH _registerfonts( char _WCI86FAR * );
void _WCI86FAR _CGRAPH _unregisterfonts( void );
short _WCI86FAR _CGRAPH _setfont( char _WCI86FAR * );
short _WCI86FAR _CGRAPH _getfontinfo( struct _fontinfo _WCI86FAR * );
void _WCI86FAR _CGRAPH _outgtext( char _WCI86FAR * );
short _WCI86FAR _CGRAPH _getgtextextent( char _WCI86FAR * );
struct xycoord _WCI86FAR _CGRAPH _setgtextvector( short, short );
struct xycoord _WCI86FAR _CGRAPH _getgtextvector( void );
#pragma pack(__pop);
#ifdef __cplusplus
};
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?