- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
reader_gui.h
资源名称:lread.rar [点击查看]
上传用户:holyzs
上传日期:2022-06-29
资源大小:2335k
文件大小:1k
源码类别:
编辑器/阅读器
开发平台:
C/C++
- #ifndef __READER_GUI_H__
- #define __READER_GUI_H__ 1
- #include <reader_types.h>
- #ifdef WIN32
- #define PA_RGB(r,g,b) ((1 << 15) + (r) + ((g)<<5) + ((b)<<10))
- #endif
- #define READER_RGB(r, g, b) PA_RGB((r), (g), (b))
- #define READER_COLOR_WHITE ((color_t)READER_RGB(28, 28, 28))
- #define READER_COLOR_BLACK ((color_t)READER_RGB(0, 0, 0))
- #define READER_COLOR_RED ((color_t)READER_RGB(31, 0, 0))
- #define READER_COLOR_GREEN ((color_t)READER_RGB(0, 31, 0))
- #define READER_COLOR_BLUE ((color_t)READER_RGB(0, 0, 31))
- #define READER_COLOR_YELLOW ((color_t)READER_RGB(31, 31, 0))
- #define READER_COLOR_THIN_BLUE ((color_t)READER_RGB(2, 22, 28))
- #define READER_COLOR_GREY ((color_t)READER_RGB(13, 13, 7))
- //only draw horizontally or vertically
- void reader_rectangle(screen_t screen, int x1, int y1, int x2, int y2, color_t color, int fill);
- //only draw horizontally or vertically
- void reader_lineto(screen_t screen, int x1, int y1, int x2, int y2, color_t color);
- //show caption
- void reader_caption(screen_t screen, unsigned short *str);
- //draw arrow
- typedef enum {
- LEFT_POINTER,
- RIGHT_POINTER
- } arrow_pointer_t;
- void reader_arrow(screen_t screen, int x, int y, int size, arrow_pointer_t ap, color_t color);
- #endif