📄 adi_graph.h
字号:
#ifndef __ADI_GRAPH_H__
#define __ADI_GRAPH_H__
typedef struct
{
void *canvas;
int x1, y1, x2, y2;
int clip_x1, clip_y1, clip_x2, clip_y2;
int canvas_x, canvas_y;
int fg_color;
int bg_color;
void *font;
unsigned char line_pattern[8];
void *reserved1;
void *reserved2;
} ADI_sGraphPrim;
#define ADI_Swap(v1,v2) { int swap = v1; v1 = v2; v2 = swap; }
#define ADI_SwapIfGreaterThan(v1,v2) if ( v1 > v2 ) ADI_Swap ( v1, v2 )
/* Function Prototypes */
void ADI_Arc ( ADI_sGraphPrim *, double, double ) ;
int ADI_LookupCommonColor ( const char *, int *, int *, int * );
void ADI_Line ( ADI_sGraphPrim * );
void ADI_CanvasCopyArea ( ADI_sGraphPrim *, ADI_sGraphPrim * );
void ADI_CanvasDelete ( void * );
void *ADI_CanvasGetScreenCanvas ();
void *ADI_CanvasNew ( int, int );
void ADI_Point ( ADI_sGraphPrim * );
void ADI_Rect ( ADI_sGraphPrim * );
void ADI_RectFill ( ADI_sGraphPrim * );
void ADI_Text ( ADI_sGraphPrim *, const char * );
void ADI_TextGetExtent ( ADI_sGraphPrim *, const char * );
#define ADI_COSINE_TABLE_SIZE 256
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -