smd pad in high-contrast mode enhancement
This commit is contained in:
+46
-46
@@ -1,6 +1,6 @@
|
||||
/**************/
|
||||
/* gr_basic.h */
|
||||
/**************/
|
||||
/**************/
|
||||
/* gr_basic.h */
|
||||
/**************/
|
||||
|
||||
#ifndef GR_BASIC
|
||||
#define GR_BASIC
|
||||
@@ -13,42 +13,42 @@
|
||||
|
||||
/* Constantes utiles */
|
||||
|
||||
#define GR_COPY 0
|
||||
#define GR_OR 0x1000000
|
||||
#define GR_XOR 0x2000000
|
||||
#define GR_AND 0x4000000
|
||||
#define GR_NXOR 0x8000000
|
||||
#define GR_COPY 0
|
||||
#define GR_OR 0x01000000
|
||||
#define GR_XOR 0x02000000
|
||||
#define GR_AND 0x04000000
|
||||
#define GR_NXOR 0x08000000
|
||||
|
||||
#define GR_SURBRILL 0x80000000
|
||||
#define GR_SURBRILL 0x80000000
|
||||
|
||||
#define GR_M_LEFT_DOWN 0x10000000
|
||||
#define GR_M_RIGHT_DOWN 0x20000000
|
||||
#define GR_M_MIDDLE_DOWN 0x40000000
|
||||
#define GR_M_DCLICK 0x80000000
|
||||
#define GR_M_LEFT_DOWN 0x10000000
|
||||
#define GR_M_RIGHT_DOWN 0x20000000
|
||||
#define GR_M_MIDDLE_DOWN 0x40000000
|
||||
#define GR_M_DCLICK 0x80000000
|
||||
|
||||
|
||||
/* variables generales */
|
||||
COMMON_GLOBL int g_XorMode // = GR_XOR ou GR_NXOR selon couleur de fond
|
||||
#ifdef EDA_BASE // pour les tracés en mode XOR
|
||||
COMMON_GLOBL int g_XorMode // = GR_XOR ou GR_NXOR selon couleur de fond
|
||||
#ifdef EDA_BASE // pour les tracés en mode XOR
|
||||
= GR_NXOR
|
||||
#endif
|
||||
;
|
||||
COMMON_GLOBL int g_DrawBgColor // couleur de fond de la frame de dessin
|
||||
COMMON_GLOBL int g_DrawBgColor // couleur de fond de la frame de dessin
|
||||
#ifdef EDA_BASE
|
||||
= WHITE
|
||||
#endif
|
||||
;
|
||||
|
||||
|
||||
typedef enum { /* Line styles for Get/SetLineStyle. */
|
||||
GR_SOLID_LINE = 0,
|
||||
GR_DOTTED_LINE = 1,
|
||||
GR_DASHED_LINE = 3
|
||||
typedef enum { /* Line styles for Get/SetLineStyle. */
|
||||
GR_SOLID_LINE = 0,
|
||||
GR_DOTTED_LINE = 1,
|
||||
GR_DASHED_LINE = 3
|
||||
} GRLineStypeType;
|
||||
|
||||
typedef enum { /* Line widths for Get/SetLineStyle. */
|
||||
GR_NORM_WIDTH = 1,
|
||||
GR_THICK_WIDTH = 3
|
||||
typedef enum { /* Line widths for Get/SetLineStyle. */
|
||||
GR_NORM_WIDTH = 1,
|
||||
GR_THICK_WIDTH = 3
|
||||
} GRLineWidthType;
|
||||
|
||||
|
||||
@@ -87,42 +87,42 @@ void GRSMoveRel(int x, int y);
|
||||
void GRLineRel(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int width, int Color);
|
||||
void GRSLineRel(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int width, int Color);
|
||||
void GRPoly(EDA_Rect * ClipBox, wxDC * DC, int n, int *Points,
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
void GRClosedPoly(EDA_Rect * ClipBox, wxDC * DC, int n, int *Points,
|
||||
int Fill, int Color, int BgColor);
|
||||
int Fill, int Color, int BgColor);
|
||||
void GRClosedPoly(EDA_Rect * ClipBox, wxDC * DC, int n, int *Points,
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
void GRSPoly(EDA_Rect * ClipBox, wxDC * DC, int n, int *Points,
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
void GRSClosedPoly(EDA_Rect * ClipBox, wxDC * DC, int n, int *Points,
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
int Fill, int width, int Color, int BgColor);
|
||||
void GRCircle(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int r, int Color);
|
||||
void GRCircle(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int r, int width, int Color);
|
||||
void GRFilledCircle(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int r,
|
||||
int width, int Color, int BgColor);
|
||||
int width, int Color, int BgColor);
|
||||
void GRSCircle(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int r, int width, int Color);
|
||||
void GRSFilledCircle(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int r,
|
||||
int width, int Color, int BgColor);
|
||||
int width, int Color, int BgColor);
|
||||
void GRArc(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int StAngle, int EndAngle, int r, int Color);
|
||||
void GRArc(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int StAngle, int EndAngle, int r, int width, int Color);
|
||||
void GRArc1(EDA_Rect * ClipBox,wxDC * DC, int x1, int y1, int x2, int y2,
|
||||
int xc, int yc, int Color);
|
||||
int xc, int yc, int Color);
|
||||
void GRArc1(EDA_Rect * ClipBox,wxDC * DC, int x1, int y1, int x2, int y2,
|
||||
int xc, int yc, int width, int Color);
|
||||
int xc, int yc, int width, int Color);
|
||||
void GRSArc1(EDA_Rect * ClipBox,wxDC * DC, int x1, int y1, int x2, int y2,
|
||||
int xc, int yc, int width, int Color);
|
||||
int xc, int yc, int width, int Color);
|
||||
void GRSArc(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int StAngle, int EndAngle, int r, int width, int Color);
|
||||
void GRFilledArc(EDA_Rect * ClipBox, wxDC * DC, int x, int y,
|
||||
int StAngle, int EndAngle, int r, int Color, int BgColor);
|
||||
int StAngle, int EndAngle, int r, int Color, int BgColor);
|
||||
void GRFilledArc(EDA_Rect * ClipBox, wxDC * DC, int x, int y,
|
||||
int StAngle, int EndAngle, int r, int width, int Color, int BgColor);
|
||||
int StAngle, int EndAngle, int r, int width, int Color, int BgColor);
|
||||
void GRSFilledArc(EDA_Rect * ClipBox, wxDC * DC, int x, int y,
|
||||
int StAngle, int EndAngle, int r, int width, int Color, int BgColor);
|
||||
int StAngle, int EndAngle, int r, int width, int Color, int BgColor);
|
||||
void GRCSegm(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1, int x2, int y2, int width, int Color);
|
||||
void GRFillCSegm(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1, int x2, int y2, int width, int Color);
|
||||
void GRSCSegm(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1, int x2, int y2, int width, int Color);
|
||||
void GRSFillCSegm(EDA_Rect * ClipBox, wxDC * DC,
|
||||
int x1, int y1, int x2, int y2, int width, int Color);
|
||||
int x1, int y1, int x2, int y2, int width, int Color);
|
||||
|
||||
void GRSetColor(int Color);
|
||||
void GRSetDefaultPalette();
|
||||
@@ -131,21 +131,21 @@ void GRPutPixel(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int color);
|
||||
void GRSPutPixel(EDA_Rect * ClipBox, wxDC * DC, int x, int y, int color);
|
||||
int GRGetPixel(wxDC * DC, int x, int y);
|
||||
void GRFilledRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int Color, int BgColor);
|
||||
int x2, int y2, int Color, int BgColor);
|
||||
void GRFilledRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int width, int Color, int BgColor);
|
||||
int x2, int y2, int width, int Color, int BgColor);
|
||||
void GRSFilledRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int Color, int BgColor);
|
||||
int x2, int y2, int Color, int BgColor);
|
||||
void GRSFilledRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int width, int Color, int BgColor);
|
||||
int x2, int y2, int width, int Color, int BgColor);
|
||||
void GRRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int Color);
|
||||
int x2, int y2, int Color);
|
||||
void GRRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int width, int Color);
|
||||
int x2, int y2, int width, int Color);
|
||||
void GRSRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int Color);
|
||||
int x2, int y2, int Color);
|
||||
void GRSRect(EDA_Rect * ClipBox, wxDC * DC, int x1, int y1,
|
||||
int x2, int y2, int width, int Color);
|
||||
int x2, int y2, int width, int Color);
|
||||
|
||||
/* Routines relatives a l'affichage des textes */
|
||||
void GRSetFont(wxDC * DC, wxFont * Font);
|
||||
@@ -158,5 +158,5 @@ void GRSetTextBgColor(wxDC * DC, wxFont * Font, int Color);
|
||||
int GRGetTextBgColor(wxDC * DC, wxFont * Font);
|
||||
void GRGetTextExtent(wxDC * DC, const wxChar * Text, long * width, long * height);
|
||||
|
||||
#endif /* define GR_BASIC */
|
||||
#endif /* define GR_BASIC */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user