66 return static_cast<GR_DRAWMODE>( int( a ) | int( b ) );
71 return static_cast<GR_DRAWMODE>( int( a ) & int( b ) );
74 #define GR_M_LEFT_DOWN 0x10000000 75 #define GR_M_RIGHT_DOWN 0x20000000 76 #define GR_M_MIDDLE_DOWN 0x40000000 77 #define GR_M_DCLICK 0x80000000 95 void GRSetColorPen( wxDC* DC,
COLOR4D Color,
int width = 1, wxPenStyle stype = wxPENSTYLE_SOLID );
113 int x1,
int y1,
int x2,
int y2,
int width,
COLOR4D Color, wxPenStyle aStyle = wxPENSTYLE_SOLID );
122 int x,
int y,
int width,
COLOR4D Color );
128 int x3,
int y3,
int width,
COLOR4D Color );
130 int x3,
int y3,
int x4,
int y4,
int width,
COLOR4D Color );
198 void GRArc(
EDA_RECT* ClipBox, wxDC* DC,
int x,
int y,
double StAngle,
199 double EndAngle,
int r,
COLOR4D Color );
200 void GRArc(
EDA_RECT* ClipBox, wxDC* DC,
int x,
int y,
double StAngle,
201 double EndAngle,
int r,
int width,
COLOR4D Color );
202 void GRArc1(
EDA_RECT* ClipBox, wxDC* DC,
int x1,
int y1,
int x2,
int y2,
203 int xc,
int yc,
COLOR4D Color );
204 void GRArc1(
EDA_RECT* ClipBox, wxDC* DC,
int x1,
int y1,
int x2,
int y2,
205 int xc,
int yc,
int width,
COLOR4D Color );
209 double StAngle,
double EndAngle,
int r,
COLOR4D Color,
COLOR4D BgColor );
211 double EndAngle,
int r,
int width,
COLOR4D Color,
COLOR4D BgColor );
219 void GRCSegm(
EDA_RECT* ClipBox, wxDC* DC,
int x1,
int y1,
int x2,
int y2,
220 int width,
int aPenSize,
COLOR4D Color );
235 int x2,
int y2,
int width,
COLOR4D Color );
237 int aWidth,
COLOR4D aColor, wxPenStyle aStyle = wxPENSTYLE_SOLID );
void GRRect(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, COLOR4D Color)
void GRFilledSegment(EDA_RECT *aClipBox, wxDC *aDC, wxPoint aStart, wxPoint aEnd, int aWidth, COLOR4D aColor)
GR_DRAWMODE operator~(const GR_DRAWMODE &a)
void GRArc(EDA_RECT *ClipBox, wxDC *DC, int x, int y, double StAngle, double EndAngle, int r, COLOR4D Color)
void GRDottedLine(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, COLOR4D Color)
void GRSetColorPen(wxDC *DC, COLOR4D Color, int width=1, wxPenStyle stype=wxPENSTYLE_SOLID)
Function GRSetColorPen sets a pen style, width, color, and alpha into the given device context...
void GRPutPixel(EDA_RECT *ClipBox, wxDC *DC, int x, int y, COLOR4D color)
void GRArc1(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int xc, int yc, COLOR4D Color)
void GRResetPenAndBrush(wxDC *DC)
void GRDashedLine(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, COLOR4D Color)
void GRFilledCircle(EDA_RECT *ClipBox, wxDC *DC, int x, int y, int r, int width, COLOR4D Color, COLOR4D BgColor)
void GRSetColor(COLOR4D Color)
void GRForceBlackPen(bool flagforce)
Function GRForceBlackPen.
GR_DRAWMODE operator&(const GR_DRAWMODE &a, const GR_DRAWMODE &b)
void DrawModeAllowHighContrast(GR_DRAWMODE *mode)
void GRDrawAnchor(EDA_RECT *aClipBox, wxDC *aDC, int x, int y, int aSize, COLOR4D aColor)
void GRRectPs(EDA_RECT *aClipBox, wxDC *aDC, const EDA_RECT &aRect, int aWidth, COLOR4D aColor, wxPenStyle aStyle=wxPENSTYLE_SOLID)
void GRClosedPoly(EDA_RECT *ClipBox, wxDC *aDC, int aPointCount, wxPoint aPoints[], bool doFill, COLOR4D aPenColor, COLOR4D aFillColor)
Function GRClosedPoly draws a closed polygon onto the drawing context aDC and optionally fills and/or...
void GRDrawWrappedText(wxDC &aDC, wxString const &aText)
Draw text centered on a wxDC with wrapping.
GR_DRAWMODE operator|(const GR_DRAWMODE &a, const GR_DRAWMODE &b)
GR_DRAWMODE
Drawmode. Compositing mode plus a flag or two.
void GRBezier(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int x3, int y3, int width, COLOR4D Color)
void GRSetDrawMode(wxDC *DC, GR_DRAWMODE mode)
void GRSetDefaultPalette()
void GRPoly(EDA_RECT *ClipBox, wxDC *DC, int n, wxPoint Points[], bool Fill, int width, COLOR4D Color, COLOR4D BgColor)
bool GetGRForceBlackPenState(void)
Function GetGRForceBlackPenState.
void GRFilledArc(EDA_RECT *ClipBox, wxDC *DC, int x, int y, double StAngle, double EndAngle, int r, COLOR4D Color, COLOR4D BgColor)
void GRSetBrush(wxDC *DC, COLOR4D Color, bool fill=false)
void GRSFilledRect(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, COLOR4D Color, COLOR4D BgColor)
void GRFilledRect(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, COLOR4D Color, COLOR4D BgColor)
void GRLineArray(EDA_RECT *aClipBox, wxDC *aDC, std::vector< wxPoint > &aLines, int aWidth, COLOR4D aColor)
Function GRLineArray draws an array of lines (not a polygon).
Class EDA_RECT handles the component boundary box.
void GRFillCSegm(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, COLOR4D Color)
void GRMoveTo(int x, int y)
void DrawModeAddHighlight(GR_DRAWMODE *mode)
void GRLine(EDA_RECT *aClipBox, wxDC *aDC, wxPoint aStart, wxPoint aEnd, int aWidth, COLOR4D aColor, wxPenStyle aStyle=wxPENSTYLE_SOLID)
void GRLineTo(EDA_RECT *ClipBox, wxDC *DC, int x, int y, int width, COLOR4D Color)
void GRMixedLine(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, COLOR4D Color)
void GRCircle(EDA_RECT *ClipBox, wxDC *aDC, int x, int y, int aRadius, COLOR4D aColor)
Function GRCircle draws a circle onto the drawing context aDC centered at the user coordinates (x...
void GRCSegm(EDA_RECT *ClipBox, wxDC *DC, int x1, int y1, int x2, int y2, int width, COLOR4D Color)
GR_DRAWMODE GRGetDrawMode(wxDC *DC)
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.