adi_graph.h
来自「BlackFin DSP(ADSP) LCD 文字overlay 显示源码」· C头文件 代码 · 共 39 行
H
39 行
#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 + =
减小字号Ctrl + -
显示快捷键?