100+ results results for 'XDrawLine' (767 ms)
285 int x = (_width * i) / _numTotalTests; 286 XDrawLine( _display, _window, _gc, x, 0, x, _height); 287 }Annotation.c https://github.com/cim-unito/MITK.git | C | 379 lines
219 for( i = 0; i < w->core.width/6; i++ ) 220 XDrawLine( XtDisplay(w), 221 shape_mask, 225 226 XDrawLine( XtDisplay(w), 227 shape_mask, 230 w->core.width-4-i, w->core.height-4 ); 231 XDrawLine( XtDisplay(w), 232 shape_mask, 271 for( i = 0; i < w->core.width/6; i++ ) 272 XDrawLine( XtDisplay(w), 273 shape_mask, 347 1 ); 348 /*XDrawLine( XtDisplay(w), 349 XtWindow(w),gfx_func.h https://bitbucket.org/bvrijkorte/openttd-cyclic-timetables.git | C Header | 219 lines
119void GfxFillRect(int left, int top, int right, int bottom, int colour, FillRectMode mode = FILLRECT_OPAQUE); 120void GfxDrawLine(int left, int top, int right, int bottom, int colour, int width = 1); 121void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3);gui.sc git://github.com/qobi/R6RS-AD.git | Scala | 163 lines
146 (let ((l (line-segment-3d->2d l))) 147 (xdrawline *display* *display-pane* *thin-gc* 148 (+ 320 (x (line-segment-p l)))scrollbar-rxvt.c https://gitlab.com/Jehan_ZeMarmot/mrxvt | C | 271 lines
81 CHOOSE_GC_FG (r, (dirn == UP) ? bot : top); 82 XDrawLine(r->Xdisplay, r->scrollBar.win, r->scrollBar.gc, 83 pt[0].x, pt[0].y, pt[1].x, pt[1].y); 88 CHOOSE_GC_FG (r, top); 89 XDrawLine(r->Xdisplay, r->scrollBar.win, r->scrollBar.gc, 90 pt[0].x, pt[0].y, pt[1].x, pt[1].y); 102 CHOOSE_GC_FG (r, top); 103 XDrawLine(r->Xdisplay, r->scrollBar.win, r->scrollBar.gc, 104 pt[0].x, pt[0].y, pt[1].x, pt[1].y); 111 CHOOSE_GC_FG (r, bot); 112 XDrawLine(r->Xdisplay, r->scrollBar.win, r->scrollBar.gc, 113 pt[2].x, pt[2].y, pt[1].x, pt[1].y); 124 CHOOSE_GC_FG (r, bot); 125 XDrawLine(r->Xdisplay, r->scrollBar.win, r->scrollBar.gc, 126 pt[2].x, pt[2].y, pt[1].x, pt[1].y);ShapeWidg.c git://pkgs.fedoraproject.org/nx | C | 252 lines
140 rad = width >> 1; 141 XDrawLine(dpy, p, gc, rad, rad, rad, height - rad - 1); 142 } 145 rad = height >> 1; 146 XDrawLine(dpy, p, gc, rad, rad, width - rad - 1, rad); 147 } 160 rad = w->core.width >> 1; 161 XDrawLine(dpy, p, gc, rad, rad, rad, w->core.height - rad - 1); 162 } 165 rad = w->core.height >> 1; 166 XDrawLine(dpy, p, gc, rad, rad, w->core.width - rad - 1, rad); 167 }pango_x.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 294 lines
157 { 158 XDrawLine( wxGlobalDisplay(), drawable, gc, 159 x + (x_off + ink_rect.x) / PANGO_SCALE - 1,scrollbar-xterm.c git://pkgs.fedoraproject.org/mrxvt | C | 168 lines
157 CHOOSE_GC_FG(r, r->scrollBar.xterm_shadow); 158 XDrawLine(r->Xdisplay, r->scrollBar.win, r->scrollBar.gc, 159 xsb ? r->sb_shadow : r->sb_shadow + sbwidth, r->scrollBar.beg,psxx.def https://gitlab.com/dj-tech/reactos | Module-Definition | 631 lines
126XDrawImageString16 127XDrawLine 128XDrawLinesdecayscreen.c git://pkgs.fedoraproject.org/xscreensaver | C | 381 lines
185 /* make sure screen eventually turns background color */ 186 XDrawLine (st->dpy, st->window, st->gc, 0, 0, st->sizex, 0); 187synttree.sty https://github.com/trunghlt/nltk.git | TeX | 438 lines
44\def\@AfterElseFi#1\else#2\fi{\fi#1} 45\def\MTr@latexdrawline(#1,#2)(#3,#4){% 46 {% 51} 52\def\MTr@etexdrawline(#1,#2)(#3,#4){% 53 {% 65\DeclareOption{specials}{ 66 \let\MTr@drawline\MTr@etexdrawline% 67} 68\DeclareOption{nospecials}{ 69 \let\MTr@drawline\MTr@latexdrawline% 70}freedraw.c git://git.savannah.nongnu.org/xforms.git | C | 450 lines
122 xpoint[ 3 ].y = xpoint[ 0 ].y; 123 XDrawLines( dpy, win, gc, xpoint, 4, CoordModeOrigin ); 124 }draw.c https://bitbucket.org/HongboZhang/ocaml.git | C | 123 lines
55 if(caml_gr_remember_modeflag) 56 XDrawLine(caml_gr_display, caml_gr_bstore.win, caml_gr_bstore.gc, 57 caml_gr_x, Bcvt(caml_gr_y), x, Bcvt(y)); 58 if(caml_gr_display_modeflag) { 59 XDrawLine(caml_gr_display, caml_gr_window.win, caml_gr_window.gc, 60 caml_gr_x, Wcvt(caml_gr_y), x, Wcvt(y));xminuto.c https://bitbucket.org/x31eq/binaryclock.git | C | 232 lines
64 if (! (bits & (cols == 3? 0xa8: 0xaa))) { 65 XDrawLine(display, window, gc, (1 + width) / 2, 1, 66 (1 + width) / 2, height / 4); 68 if (! (bits & (cols == 3? 0x54: 0x55))) { 69 XDrawLine(display, window, gc, (1 + width) / 2, 1 + 3 * height / 4, 70 (1 + width) / 2, 1 + height); 72 if (! (bits & 0xc0)) { 73 XDrawLine(display, window, gc, 1, 1 + height / 2, 74 width / 8, 1 + height/2); 76 if (! (bits & (cols == 3? 0xc: 3))) { 77 XDrawLine(display, window, gc, 1 + 7 * width / 8, 1 + height / 2, 78 1 + width, 1 + height/2); 81 XSetForeground(display, gc, white); 82 XDrawLine(display, window, gc, 0, 0, width + 1, 0); 83 XDrawLine(display, window, gc, 0, 0, 0, height + 1);winbatch.vim https://github.com/kewinwang/macvim.git | Vim Script | 187 lines
63syn keyword winbatchImplicit boxdataclear boxdatatag 64syn keyword winbatchImplicit boxdestroy boxdrawcircle boxdrawline boxdrawrect boxdrawtext 65syn keyword winbatchImplicit boxesup boxmapmode boxnew boxopen boxpen boxshut boxtext boxtextcolorwxTurtleGraphics.h git://pkgs.fedoraproject.org/ucblogo | C Header | 262 lines
244extern "C" NODE lclearscreen(NODE *); 245extern "C" void wxDrawLine(int x1, int y1, int x2, int y2, int vis); 246extern "C" void wxSplitScreen();batch.py https://github.com/astory/RankPanda.git | Python | 151 lines
74 "boxbuttonwait boxcaption boxcolor boxdataclear " 75 "boxdatatag boxdestroy boxdrawcircle boxdrawline " 76 "boxdrawrect boxdrawtext boxesup boxmapmode boxnew "graphics.c https://rxvt.svn.sourceforge.net/svnroot/rxvt | C | 548 lines
253 } 254 XDrawLines(Xdisplay, 255 grwin->win, TermWin.gc, xdata.pt, n, CoordModeOrigin);tixUnixDraw.c https://gitlab.com/OpenSourceMirror/sourcenav | C | 307 lines
76 gc = XCreateGC(Tk_Display(tkwin), winId, valuemask, &values); 77 XDrawLine(Tk_Display(tkwin), winId, gc, x1, y1, x2, y2); 78 XFreeGC(Tk_Display(tkwin), gc);buttons.c http://segin-utils.googlecode.com/svn/trunk/ | C | 215 lines
63 if(b->action == B_EXPAND) { 64 XDrawLine(dpy, b->w, (c == current) ? gc : igc, button_size / 2, 3, button_size / 2, button_size - 3); 65 XDrawLine(dpy, b->w, (c == current) ? gc : igc, 3, button_size / 2, button_size - 3, button_size / 2); 71 XDrawRectangle(dpy, b->w, (c == current) ? gc : igc, 2, 4, button_size - 7, button_size - 7); 72 XDrawLine(dpy, b->w, (c == current) ? gc : igc, 4, 4, 4, 2); 73 XDrawLine(dpy, b->w, (c == current) ? gc : igc, 4, 2, button_size - 3, 2); 73 XDrawLine(dpy, b->w, (c == current) ? gc : igc, 4, 2, button_size - 3, 2); 74 XDrawLine(dpy, b->w, (c == current) ? gc : igc, button_size - 3, 2, button_size - 3, button_size - 5); 75 XDrawLine(dpy, b->w, (c == current) ? gc : igc, button_size - 2, button_size - 5, button_size - 5, button_size - 5); 78 if(b->action == B_CLOSE) { 79 XDrawLine(dpy, b->w, (c == current) ? gc : igc, 2, 2, button_size - 2, button_size - 2); 80 XDrawLine(dpy, b->w, (c == current) ? gc : igc, 2, button_size - 3, button_size - 2, 1); 87 if(b->action == B_ONTOP) { 88 XDrawLine(dpy, b->w, (c == current) ? gc : igc, 2, button_size / 2, button_size / 2, 2); 89 XDrawLine(dpy, b->w, (c == current) ? gc : igc, button_size - 2, (button_size / 2) + 1, button_size / 2, 2);canvas.c https://gitlab.com/willemmali-c/iup | C | 440 lines
204 w = 600; /* virtual size */ 205 XDrawLine(dpy, wnd, gc, -posx, 0, w-posx, h); 206 XDrawLine(dpy, wnd, gc, -posx, h, w-posx, 0);graphics.d https://github.com/bradk/djehuty.git | D | 246 lines
37// Draw a line 38extern(C) void _OSXDrawLine(_OSXViewPlatformVars* viewVars, int fromWindow, int x, int y, int x2, int y2); 39void drawLine(ViewPlatformVars* viewVars, int x, int y, int x2, int y2) { 39void drawLine(ViewPlatformVars* viewVars, int x, int y, int x2, int y2) { 40 _OSXDrawLine(viewVars.vars, viewVars.fromWindow == 1, x, y, x2, y2); 41}Xlib.m https://bitbucket.org/preining/tex-live.git | Objective C | 661 lines
174#ifndef XDrawLine 175# define XDrawLine (*XlibVptr->V_XDrawLine) 176#endif 178#ifndef XDrawLines 179# define XDrawLines (*XlibVptr->V_XDrawLines) 180#endifpopup.cpp https://github.com/gromacs/gromacs.git | C++ | 251 lines
68 int y = x11->font->ascent; 69 XDrawLine(x11->disp, w, x11->gc, 2, (y * 2) / 3, 6, y); 70 XDrawLine(x11->disp, w, x11->gc, 3, (y * 2) / 3, 7, y); 70 XDrawLine(x11->disp, w, x11->gc, 3, (y * 2) / 3, 7, y); 71 XDrawLine(x11->disp, w, x11->gc, 7, y, 12, 2); 72 }Xw_set_soft_cursor.cxx https://github.com/hmeyer/oce.git | C++ | 256 lines
249 points[0].x += _X ; points[0].y += _Y ; 250 XDrawLines(_DISPLAY,_DROOT,_DGC,points,npoint,CoordModePrevious) ; 251 points[0].x = xs ; points[0].y = ys ; 252 } else { 253 XDrawLines(_DISPLAY,_WINDOW,pwindow->qgwind.gchigh, 254 points,npoint,CoordModePrevious) ;main.c https://github.com/ereslibre/x11.git | C | 75 lines
49 if (e.type == ConfigureNotify || e.type == VisibilityNotify || e.type == Expose) { 50 XDrawLine(dpy, window, gc, 10, 60, 180, 20); 51 XDrawLine(dpy, window, gc, 10, 20, 180, 60);iupmot_draw.c https://gitlab.com/willemmali-c/iup | C | 282 lines
153 154 XDrawLine(iupmot_display, dc->pixmap, dc->pixmap_gc, x1, y1, x2, y2); 155} 192 193 XDrawLines(iupmot_display, dc->pixmap, dc->pixmap_gc, pnt, count, CoordModeOrigin); 194 }third.c https://github.com/koushik2506/exp.git | C | 133 lines
102 103 XDrawLine(display,win,gc,50,0,50,200); 104 XDrawLine(display,win,gc,0,100,200,100); 117 118 XDrawLines(display,win,gc,points,npoints,CoordModeOrigin); 119S3DRect.cpp https://github.com/AVGP/Simple3D.git | C++ | 155 lines
100 { 101 XDrawLine(d,w,g, 102 PLANAR_DISTANCE*(vertices[i].x/vertices[i].z),xmesa_x.h git://pkgs.fedoraproject.org/mesa-libGLw | C++ Header | 86 lines
66#define XMesaDrawPoints XDrawPoints 67#define XMesaDrawLine XDrawLine 68#define XMesaFillRectangle XFillRectangleGMX_grid.c git://pkgs.fedoraproject.org/alliance | C | 317 lines
296 { 297 XDrawLine( DrealGraphicDisplay, 298 XtWindow( DrealGraphicWindow ), 302 303 XDrawLine( DrealGraphicDisplay, 304 XtWindow( DrealGraphicWindow ),ButtonArray.c https://github.com/tonnerre/fvwm.git | C | 253 lines
169 XClearArea(dpy,win,x,y,w,h,False); 170 XDrawLine(dpy,win,(up) ? hilite : shadow,x,y,x+w-1,y); 171 XDrawLine(dpy,win,(up) ? hilite : shadow,x,y+1,x+w-2,y+1); 172 173 XDrawLine(dpy,win,(up) ? hilite : shadow,x,y,x,y+h-1); 174 XDrawLine(dpy,win,(up) ? hilite : shadow,x+1,y,x+1,y+h-2); 175 176 XDrawLine(dpy,win,(up) ? shadow : hilite,x,y+h,x+w,y+h); 177 XDrawLine(dpy,win,(up) ? shadow : hilite,x+1,y+h-1,x+w,y+h-1); 178 179 XDrawLine(dpy,win,(up) ? shadow : hilite,x+w,y+h,x+w,y); 180 XDrawLine(dpy,win,(up) ? shadow : hilite,x+w-1,y+h,x+w-1,y+1);scrollbar-xterm.c https://rxvt.svn.sourceforge.net/svnroot/rxvt | C | 85 lines
78 79 XDrawLine(r->Xdisplay, r->scrollBar.win, r->h->ShadowGC, 80 xsb ? 0 : SB_WIDTH_USE, r->scrollBar.beg, xsb ? 0 : SB_WIDTH_USE,grid.c https://github.com/kastur/ECGCS.git | C | 125 lines
89 if (0 < y && y < canvas_height) 90 XDrawLine(display, osb, 91 (ghflag > 1) ? draw_cgrd : draw_grd, 95 yy = y + ii*dyfine; 96 XDrawLine(display, osb, draw_grd, 97 0, yy, canvas_width, yy); 104 if (0 < x && x < canvas_width) 105 XDrawLine(display, osb, 106 (gvflag > 1) ? draw_cgrd : draw_grd, 110 xx = x + ii*dxfine; 111 XDrawLine(display, osb, draw_grd, 112 xx, 0, xx, canvas_height);XVumeter.cxx https://github.com/ejgarcia/isabel.git | C++ | 403 lines
285 XSetForeground(display, gc, grey); 286 XDrawLine(display, myframe, gc, 0, height-i, width, height-i); 287 } else { 288 XSetForeground(display, gc, black); 289 XDrawLine(display, myframe, gc, 0, height-i, width, height-i); 290 } 291 // XSetForeground(display, gc, grey); 292 // XDrawLine(display, myframe, gc, 0, height-i, width, height-i); 293 } else { 296 XSetForeground(display, gc, percent > 80?red: percent > 60?yellow: percent > 0 ?green:black); 297 XDrawLine(display, myframe, gc, 0, height-i, width, height-i); 298 } else { 299 XSetForeground(display, gc, black); 300 XDrawLine(display, myframe, gc, 0, height-i, width, height-i); 301 }Xstuff.h https://github.com/aastr/GROMACS.git | C Header | 173 lines
87 int angle2); 88extern void XDrawLine(Display *display,Drawable d,GC gc,int x1,int y1, 89 int x2,int y2); 89 int x2,int y2); 90extern void XDrawLines(Display *display,Drawable d,GC gc,XPoint *points, 91 int npoints, int mode); 112 char *string,int length); 113extern void XDrawLine(Display *display,Drawable d,GC gc, 114 int x1,int y1,int x2,int y2);frame.c.html https://gitlab.com/steinret/CodeVault | HTML | 123 lines
73<a name="line69"> 69: </a> <font color="#4169E1">if</font> (o <= 1) 74<a name="line70"> 70: </a> XDrawLines(XiWin->disp,XiDrawable(XiWin),XiWin->gc.set, 75<a name="line71"> 71: </a> high,7,CoordModeOrigin); 80<a name="line76"> 76: </a> <font color="#4169E1">if</font> (o <= 1) 81<a name="line77"> 77: </a> XDrawLines(XiWin->disp,XiDrawable(XiWin),XiWin->gc.set, 82<a name="line78"> 78: </a> low,7,CoordModeOrigin);pangox11.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 277 lines
139 { 140 XDrawLine( wxGlobalDisplay(), drawable, gc, 141 x + (x_off + ink_rect.x) / PANGO_SCALE - 1,xhello.el https://github.com/emacsmirror/ohio-archive.git | Emacs Lisp | 122 lines
94 (let ((dpy (X-window-get-display win))) 95 (XDrawLine dpy win Xhello-gc-2 5 5 100 50) 96 (XDrawPoint dpy win Xhello-gc-1 20 5)deltaT.c https://gitlab.com/fossht/irsim-9.7 | C | 253 lines
237 y2 = (t2->top + t2->bot) / 2; 238 XDrawLine( display, window, gcs.hilite, x1, y1, x2, y2 ); 239 WaitForRelease(); 239 WaitForRelease(); 240 XDrawLine( display, window, gcs.unhilite, x1, y1, x2, y2 ); 241checkbox.c https://github.com/jff/mathspad.git | C | 154 lines
56 if (cbinfo->check) { 57 XDrawLine(display, cbinfo->win_id, get_GC(Normal, 0,0), 58 0, 0, CHECKBOXSIZE-1, CHECKBOXSIZE-1); 58 0, 0, CHECKBOXSIZE-1, CHECKBOXSIZE-1); 59 XDrawLine(display, cbinfo->win_id, get_GC(Normal, 0,0), 60 0, CHECKBOXSIZE-1, CHECKBOXSIZE-1, 0);main.c https://github.com/abderrahim/anjuta.git | C | 78 lines
58 case Expose: 59 XDrawLine(dpy, win, gc, 0, 0, 100, 100); 60 XDrawRectangle(dpy, win, gc, 140, 140, 50, 50);gfx_func.h https://github.com/bodhi/OpenTTD.git | C Header | 199 lines
113void GfxFillRect(int left, int top, int right, int bottom, int colour, FillRectMode mode = FILLRECT_OPAQUE); 114void GfxDrawLine(int left, int top, int right, int bottom, int colour); 115void DrawBox(int x, int y, int dx1, int dy1, int dx2, int dy2, int dx3, int dy3);controlpoints_client.lua http://mtasa-resources-rcg.googlecode.com/svn/trunk/ | Lua | 185 lines
17 for i = 1, n do 18 dxDrawLine(centerX + math.cos(angle) * radius, 19 centerY + math.sin(angle) * radius, 155 156 dxDrawLine(screenPositions[1][1] + math.cos(math.rad(angles[1][1])) * unitSizes[1] * controlPointOutsideRadius, 157 screenPositions[1][2] + math.sin(math.rad(angles[1][1])) * unitSizes[1] * controlPointOutsideRadius, 161 controlPointOutsideWidth) 162 dxDrawLine(screenPositions[1][1] + math.cos(math.rad(angles[1][2])) * unitSizes[1] * controlPointOutsideRadius, 163 screenPositions[1][2] + math.sin(math.rad(angles[1][2])) * unitSizes[1] * controlPointOutsideRadius, 167 controlPointOutsideWidth) 168 dxDrawLine(screenPositions[2][1] + math.cos(math.rad(angles[2][1])) * unitSizes[2] * controlPointOutsideRadius, 169 screenPositions[2][2] + math.sin(math.rad(angles[2][1])) * unitSizes[2] * controlPointOutsideRadius, 173 controlPointOutsideWidth) 174 dxDrawLine(screenPositions[2][1] + math.cos(math.rad(angles[3][2])) * unitSizes[2] * controlPointOutsideRadius, 175 screenPositions[2][2] + math.sin(math.rad(angles[3][2])) * unitSizes[2] * controlPointOutsideRadius,vik1.c https://bitbucket.org/c00kiemon5ter/ioccc-obfuscated-c-contest.git | C | 63 lines
20#define X(a)\ 21XDrawLine J M,N,D+l a m,o,D+l a n,o), 22XEvent O I p=E/5; --S&~1?bitmap.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 1622 lines
182 { 183 XDrawLine( xdisplay, (Pixmap) m_bitmap, gc, start_x, j, i-1, j ); 184 start_x = -1; 189 if (start_x != -1) 190 XDrawLine( xdisplay, (Pixmap) m_bitmap, gc, start_x, j, i, j ); 191 }XsMotifWindow.C https://bitbucket.org/lennonchan/cafu.git | C | 2415 lines
174 assert (_base != 0); 175 XDrawLine (XtDisplay (_base), XtWindow (_base), gc, x1, y1, x2, y2); 176}vms_x_fix.h https://bitbucket.org/lennonchan/cafu.git | C Header | 1186 lines
106#define XDrawImageString16 XDRAWIMAGESTRING16 107#define XDrawLine XDRAWLINE 108#define XDrawLines XDRAWLINESdraw.c https://github.com/kakaroto/e17.git | C | 238 lines
42 for (w += x - 1, h += y - 1; shadow > 0; shadow--, w--, h--) { 43 XDrawLine(Xdisplay, d, gc_top, x, y, w, y); 44 XDrawLine(Xdisplay, d, gc_top, x, y, x, h); 46 y++; 47 XDrawLine(Xdisplay, d, gc_bottom, w, h, w, y); 48 XDrawLine(Xdisplay, d, gc_bottom, w, h, x, h); 75 for (; shadow > 0; shadow--, x++, y++, w--) { 76 XDrawLine(Xdisplay, d, gc_top, x, y + w, x + w / 2, y); 77 XDrawLine(Xdisplay, d, gc_bottom, x + w, y + w, x + w / 2, y); 77 XDrawLine(Xdisplay, d, gc_bottom, x + w, y + w, x + w / 2, y); 78 XDrawLine(Xdisplay, d, gc_bottom, x + w, y + w, x, y + w); 79 } 82 for (; shadow > 0; shadow--, x++, y++, w--) { 83 XDrawLine(Xdisplay, d, gc_top, x, y, x + w / 2, y + w); 84 XDrawLine(Xdisplay, d, gc_top, x, y, x + w, y);main.c https://github.com/liu-chong/micropolis.git | C | 334 lines
204 Tk_MakeWindowExist(w); 205 XDrawLine(Tk_Display(w), Tk_WindowId(w), 206 DefaultGCOfScreen(Tk_Screen(w)), x, y, newX, newY);draw.h https://github.com/xorg62/wmfs.git | C Header | 134 lines
112{ 113 XDrawLine(W->dpy, d, W->gc, x1, y1, x2, y2); 114}buttonmatrix.c https://github.com/drafnel/Vis5d.git | C | 465 lines
80 81 XDrawLine( LUI_Display, bm->mainwindow, LUI_GC_black, 82 x, y+height-1, x+width-1, y+height-1 ); 82 x, y+height-1, x+width-1, y+height-1 ); 83 XDrawLine( LUI_Display, bm->mainwindow, LUI_GC_black, 84 x+width-1, y, x+width-1, y+height-1 );utilsgui.cpp https://gitlab.com/Hexexpeck/dolphin-emulator | C++ | 276 lines
255 256void wxDrawLine(HDC hdc, int x1, int y1, int x2, int y2) 257{tkIntXlibDecls.h https://gitlab.com/OpenSourceMirror/sourcenav | C Header | 1134 lines
138/* 31 */ 139EXTERN void XDrawLines _ANSI_ARGS_((Display* d, Drawable dr, 140 GC g, XPoint* x, int i1, int i2)); 357/* 104 */ 358EXTERN void XDrawLine _ANSI_ARGS_((Display* d, Drawable dr, GC g, 359 int x1, int y1, int x2, int y2));tk.def https://gitlab.com/OpenSourceMirror/sourcenav | Module-Definition | 1056 lines
2EXPORTS 3_XDrawLine 4XDrawLine 94XDrawArc 95_XDrawLines 96XDrawLinesnatGC.cc https://github.com/joekoolade/JEI.git | C++ | 262 lines
125 ::GC gc = (::GC) structure; 126 XDrawLine(dpy, drawableXID, gc, x1, y1, x2, y2); 127 // no fast failCLuaFunctionDefs.Drawing.cpp https://github.com/rameshj03/multitheftauto.git | C++ | 557 lines
21 22int CLuaFunctionDefs::dxDrawLine ( lua_State* luaVM ) 23{ 23{ 24 // dxDrawLine ( int x,int y,int x2,int y2,int color, [float width=1,bool postGUI=false] ) 25 // Grab all argument types 40 { 41 m_pScriptDebugging->LogBadType ( luaVM, "dxDrawLine" ); 42 lua_pushboolean ( luaVM, false ); 75 76int CLuaFunctionDefs::dxDrawLine3D ( lua_State* luaVM ) 77{ 77{ 78 // dxDrawLine3D ( float x,float y,float z,float x2,float y2,float z2,int color, [float width,bool postGUI,float zBuffer] ) 79xops.c https://bitbucket.org/memmett/petsc-memmett-old.git | C | 867 lines
52 if (x1 == x2 && y_1 == y2) PetscFunctionReturn(0); 53 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 54 PetscFunctionReturn(0); 68 if (x1 == x2 && y_1 == y2) PetscFunctionReturn(0); 69 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 70 if (x1 == x2 && PetscAbs(y_1 - y2) > 7) { 71 if (y2 > y_1) { 72 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2-3,y2-3); 73 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2+3,y2-3); 74 } else { 75 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2-3,y2+3); 76 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2+3,y2+3);gcl_dwimportsb.lsp git://pkgs.fedoraproject.org/gcl | Lisp | 77 lines
46xlib::XsetLineAttributes xlib::LineSolid xlib::CapButt xlib::JoinMiter 47xlib::XDrawLine xlib::XdrawArc xlib::XClearArea xlib::XCopyArea 48xlib::XFillRectangle xlib::XdrawImageString xlib::XTextExtentslines.c https://bitbucket.org/dpgrote/pygist.git | C | 109 lines
41 if (n<nmx) nmx = n; 42 XDrawLines(dpy, w->d, gc, x_pt_list, nmx, CoordModeOrigin); 43 n -= nmx;fl_rect.cxx https://github.com/paniwani/OTB.git | C++ | 688 lines
100#else 101 XDrawLine(fl_display, fl_window, fl_gc, x, y, x1, y); 102#endif 126 p[1].x = p[2].x = x1; p[2].y = y2; 127 XDrawLines(fl_display, fl_window, fl_gc, p, 3, 0); 128#endif 156 p[3].x = x3; 157 XDrawLines(fl_display, fl_window, fl_gc, p, 4, 0); 158#endif 174#else 175 XDrawLine(fl_display, fl_window, fl_gc, x, y, x, y1); 176#endif 200 p[1].y = p[2].y = y1; p[2].x = x2; 201 XDrawLines(fl_display, fl_window, fl_gc, p, 3, 0); 202#endifxops.c.html https://bitbucket.org/alexei-matveev/petsc-debian-pkg.git | HTML | 519 lines
36<a name="line28"> 28: </a> <font color="#4169E1">if</font> (x1 == x2 && y_1 == y2) <font color="#4169E1">return</font>(0); 37<a name="line29"> 29: </a> XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 38<a name="line30"> 30: </a> <font color="#4169E1">return</font>(0); 49<a name="line44"> 44: </a> <font color="#4169E1">if</font> (x1 == x2 && y_1 == y2) <font color="#4169E1">return</font>(0); 50<a name="line45"> 45: </a> XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 51<a name="line46"> 46: </a> <font color="#4169E1">if</font> (x1 == x2 && PetscAbs(y_1 - y2) > 7) { 52<a name="line47"> 47: </a> <font color="#4169E1">if</font> (y2 > y_1) { 53<a name="line48"> 48: </a> XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2-3,y2-3); 54<a name="line49"> 49: </a> XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2+3,y2-3); 55<a name="line50"> 50: </a> } <font color="#4169E1">else</font> { 56<a name="line51"> 51: </a> XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2-3,y2+3); 57<a name="line52"> 52: </a> XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2+3,y2+3);xops.c https://bitbucket.org/alexei-matveev/petsc-debian-pkg.git | C | 820 lines
28 if (x1 == x2 && y_1 == y2) PetscFunctionReturn(0); 29 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 30 PetscFunctionReturn(0); 44 if (x1 == x2 && y_1 == y2) PetscFunctionReturn(0); 45 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 46 if (x1 == x2 && PetscAbs(y_1 - y2) > 7) { 47 if (y2 > y_1) { 48 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2-3,y2-3); 49 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2+3,y2-3); 50 } else { 51 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2-3,y2+3); 52 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x2,y2,x2+3,y2+3);xops.c.html https://gitlab.com/steinret/CodeVault | HTML | 528 lines
38<a name="line31"> 31: </a> y_1 = YTRANS(draw,XiWin,yl); y2 = YTRANS(draw,XiWin,yr); 39<a name="line32"> 32: </a> XDrawLine(XiWin->disp,XiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 40<a name="line33"> 33: </a> <font color="#4169E1">return</font>(0);predialogs.c https://gitlab.com/willemmali-c/iup | C | 624 lines
103 104 XDrawLine(dpy, wnd, gc, 0, 0, w-1, h-1); 105 XDrawLine(dpy, wnd, gc, 0, h-1, w-1, 0);xops.c https://gitlab.com/pheinzlr/CodeVault | C | 775 lines
31 y_1 = YTRANS(draw,XiWin,yl); y2 = YTRANS(draw,XiWin,yr); 32 XDrawLine(XiWin->disp,XiDrawable(XiWin),XiWin->gc.set,x1,y_1,x2,y2); 33 PetscFunctionReturn(0);scrollbar-next.c https://rxvt.svn.sourceforge.net/svnroot/rxvt | C | 290 lines
215/* white top and left */ 216 XDrawLine(r->Xdisplay, d, r->h->whiteGC, x1, y1, x2, y1); 217 XDrawLine(r->Xdisplay, d, r->h->whiteGC, x1, y1, x1, y2); 218/* black bottom and right */ 219 XDrawLine(r->Xdisplay, d, r->h->blackGC, x1, y2, x2, y2); 220 XDrawLine(r->Xdisplay, d, r->h->blackGC, x2, y1, x2, y2); 222 x1++, y1++, x2--, y2--; /* move in one point */ 223 XDrawLine(r->Xdisplay, d, r->h->darkGC, x1, y2, x2, y2); 224 XDrawLine(r->Xdisplay, d, r->h->darkGC, x2, y1, x2, y2);Xlib.h https://bitbucket.org/preining/tex-live.git | C Header | 151 lines
52extern int XDrawArc _ANSI_ARGS_((Display *, Drawable, GC, int, int, unsigned int, unsigned int, int, int)); 53extern int XDrawLine _ANSI_ARGS_((Display *, Drawable, GC, int, int, int, int)); 54extern int XDrawLines _ANSI_ARGS_((Display *, Drawable, GC, XPoint *, int, int));X11Renderer.c https://github.com/ikeji/openjdk7-jdk.git | C | 989 lines
218 * Class: sun_java2d_x11_X11Renderer 219 * Method: XDrawLine 220 * Signature: (IJIIII)V 221 */ 222JNIEXPORT void JNICALL Java_sun_java2d_x11_X11Renderer_XDrawLine 223 (JNIEnv *env, jobject xr, 233 234 XDrawLine(awt_display, xsdo->drawable, (GC) xgc, 235 CLAMP_TO_SHORT(x1), CLAMP_TO_SHORT(y1), 350 if (tx1 <= tx2) { 351 XDrawLine(awt_display, xsdo->drawable, (GC) xgc, 352 tx1, cy, tx2, cy); 353 if (h > 0) { 354 XDrawLine(awt_display, xsdo->drawable, (GC) xgc, 355 tx1, cyh, tx2, cyh);X11Renderer.java https://github.com/ikeji/openjdk7-jdk.git | Java | 525 lines
80 81 native void XDrawLine(long pXSData, long xgc, 82 int x1, int y1, int x2, int y2); 89 int transy = sg2d.transY; 90 XDrawLine(sg2d.surfaceData.getNativeOps(), xgc, 91 x1+transx, y1+transy, x2+transx, y2+transy);edf_client_cp_lines.lua https://gitlab.com/yasin3223/mtasa-resources | Lua | 206 lines
102 103 dxDrawLine3D ( line.s.x,line.s.y,line.s.z, line.d.x,line.d.y,line.d.z, color, width, postGui ) 104 dxDrawLine3D ( line.d.x,line.d.y,line.d.z, line.p1.x,line.p1.y,line.p1.z, color, width, postGui ) 104 dxDrawLine3D ( line.d.x,line.d.y,line.d.z, line.p1.x,line.p1.y,line.p1.z, color, width, postGui ) 105 dxDrawLine3D ( line.d.x,line.d.y,line.d.z, line.p2.x,line.p2.y,line.p2.z, color, width, postGui ) 106 endttkDefaultTheme.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 1165 lines
16#if defined(WIN32) 17static const int WIN32_XDRAWLINE_HACK = 1; 18#else 18#else 19static const int WIN32_XDRAWLINE_HACK = 0; 20#endif 84 85 XDrawLines(Tk_Display(tkwin), d, gc, points, 3, CoordModeOrigin); 86} 213 XFillPolygon(display, d, gc, points, 3, Convex, CoordModeOrigin); 214 XDrawLines(display, d, gc, points, 4, CoordModeOrigin); 215} 222 ArrowPoints(b, dir, points); 223 XDrawLines(display, d, gc, points, 4, CoordModeOrigin); 224}ttkClamTheme.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 973 lines
12/* 13 * Under windows, the Tk-provided XDrawLine and XDrawArc have an 14 * off-by-one error in the end point. This is especially apparent with this 16 */ 17#if defined(WIN32) && !defined(WIN32_XDRAWLINE_HACK) 18# define WIN32_XDRAWLINE_HACK 1 19#else 20# define WIN32_XDRAWLINE_HACK 0 21#endif 65 int y1 = b.y, y2 = b.y + b.height - 1; 66 const int w = WIN32_XDRAWLINE_HACK; 67 GC gc; 71 { 72 XDrawLine(display,d,gc, x1+1,y1, x2-1+w,y1); /* N */ 73 XDrawLine(display,d,gc, x1+1,y2, x2-1+w,y2); /* S */tkIntXlibDecls.h https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C Header | 1369 lines
218#endif 219#ifndef XDrawLines_TCL_DECLARED 220#define XDrawLines_TCL_DECLARED 221/* 31 */ 222EXTERN void XDrawLines (Display * d, Drawable dr, GC g, 223 XPoint * x, int i1, int i2);tkIntXlibDecls.h https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C Header | 1374 lines
228#endif 229#ifndef XDrawLines_TCL_DECLARED 230#define XDrawLines_TCL_DECLARED 231/* 31 */ 232EXTERN void XDrawLines _ANSI_ARGS_((Display * d, Drawable dr, 233 GC g, XPoint * x, int i1, int i2));tkIntXlibDecls.h https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C Header | 1180 lines
135/* 31 */ 136EXTERN void XDrawLines _ANSI_ARGS_((Display* d, Drawable dr, 137 GC g, XPoint* x, int i1, int i2)); 354/* 104 */ 355EXTERN void XDrawLine _ANSI_ARGS_((Display* d, Drawable dr, GC g, 356 int x1, int y1, int x2, int y2)); 433/* 23 */ 434EXTERN void XDrawLines _ANSI_ARGS_((Display* d, Drawable dr, 435 GC g, XPoint* x, int i1, int i2));tkIntXlibDecls.h https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C Header | 1364 lines
216#endif 217#ifndef XDrawLines_TCL_DECLARED 218#define XDrawLines_TCL_DECLARED 219/* 31 */ 220EXTERN void XDrawLines(Display *d, Drawable dr, GC g, XPoint *x, 221 int i1, int i2);client.lua https://bitbucket.org/anylastwords/skc-wip.git | Lua | 299 lines
20 21 dxDrawLine3D (1979.0999755859, -160.69999694824, 30, 1979.2758789063, -165.79136657715, 30, tocolor (0, 255, 255, 255), 20) 22 dxDrawLine3D (1979.8024902344, -170.85845947266, 30, 1980.6774902344, -175.87715148926, 30, tocolor (0, 255, 255, 255), 20) 22 dxDrawLine3D (1979.8024902344, -170.85845947266, 30, 1980.6774902344, -175.87715148926, 30, tocolor (0, 255, 255, 255), 20) 23 dxDrawLine3D (1981.8967285156, -180.82351684570, 30, 1983.4542236328, -185.67399597168, 30, tocolor (0, 255, 255, 255), 20) 24 dxDrawLine3D (1985.3426513672, -190.40544128418, 30, 1987.5529785156, -194.99534606934, 30, tocolor (0, 255, 255, 255), 20) 24 dxDrawLine3D (1985.3426513672, -190.40544128418, 30, 1987.5529785156, -194.99534606934, 30, tocolor (0, 255, 255, 255), 20) 25 dxDrawLine3D (1990.0748291016, -199.42179870605, 30, 1992.8959960938, -203.66374206543, 30, tocolor (0, 255, 255, 255), 20) 26 dxDrawLine3D (1996.0030517578, -207.70092773438, 30, 1999.3812255859, -211.51414489746, 30, tocolor (0, 255, 255, 255), 20) 26 dxDrawLine3D (1996.0030517578, -207.70092773438, 30, 1999.3812255859, -211.51414489746, 30, tocolor (0, 255, 255, 255), 20) 27 dxDrawLine3D (2003.0145263672, -215.08520507813, 30, 2006.8853759766, -218.39709472656, 30, tocolor (0, 255, 255, 255), 20) 28 dxDrawLine3D (2010.9757080078, -221.43403625488, 30, 2015.2656250000, -224.18154907227, 30, tocolor (0, 255, 255, 255), 20) 28 dxDrawLine3D (2010.9757080078, -221.43403625488, 30, 2015.2656250000, -224.18154907227, 30, tocolor (0, 255, 255, 255), 20) 29 dxDrawLine3D (2019.7349853516, -226.62652587891, 30, 2024.3623046875, -228.75735473633, 30, tocolor (0, 255, 255, 255), 20) 30 dxDrawLine3D (2029.1257324219, -230.56387329102, 30, 2034.0023193359, -232.03742980957, 30, tocolor (0, 255, 255, 255), 20)vecxg77.c https://github.com/chaako/sceptic3D.git | C | 323 lines
199 } else { 200 XDrawLine(XtDisplay(accis_drawing),XtWindow(accis_drawing), accis_gc, 201 px1,py1,px2,py2); 201 px1,py1,px2,py2); 202 XDrawLine(XtDisplay(accis_drawing),accis_pixmap, accis_gc, 203 px1,py1,px2,py2); 297 298 XDrawLine(display, window, gc, 10, 10, 400, 400); 299 XDrawRectangle(display, window, gc, 75, 110, 150, 100);toledo.c https://bitbucket.org/c00kiemon5ter/ioccc-obfuscated-c-contest.git | C | 64 lines
2#include <X11/keysym.h> 3#define I XDrawLine(W,X,Y, 4#define l rand()%dmxconsole.c https://github.com/dmitriy103/androix-xserver.git | C | 1029 lines
158 159 XDrawLine(priv->display, priv->pixmap, priv->gcCur, 160 x = scalex(priv, priv->globalX) - size, 163 scaley(priv, priv->globalY)); 164 XDrawLine(priv->display, priv->pixmap, priv->gcCur, 165 scalex(priv, priv->globalX), 169 if (priv->grabbed) { 170 XDrawLine(priv->display, priv->pixmap, priv->gcCur, 171 scalex(priv, priv->globalX) - (int)(size / 1.4), 174 scaley(priv, priv->globalY) + (int)(size / 1.4)); 175 XDrawLine(priv->display, priv->pixmap, priv->gcCur, 176 scalex(priv, priv->globalX) - (int)(size / 1.4),nuklear_xlib.h https://gitlab.com/OpenMusicKontrollers/nk_pugl | C Header | 957 lines
177 XSetLineAttributes(surf->dpy, surf->gc, line_thickness, LineSolid, CapButt, JoinMiter); 178 XDrawLine(surf->dpy, surf->drawable, surf->gc, (int)x0, (int)y0, (int)x1, (int)y1); 179 XSetLineAttributes(surf->dpy, surf->gc, 1, LineSolid, CapButt, JoinMiter); 195 196 XDrawLine(surf->dpy, surf->drawable, surf->gc, xc, y, xc+wc, y); 197 XDrawLine(surf->dpy, surf->drawable, surf->gc, x+w, yc, x+w, yc+hc); 197 XDrawLine(surf->dpy, surf->drawable, surf->gc, x+w, yc, x+w, yc+hc); 198 XDrawLine(surf->dpy, surf->drawable, surf->gc, xc, y+h, xc+wc, y+h); 199 XDrawLine(surf->dpy, surf->drawable, surf->gc, x, yc, x, yc+hc); 287 XSetLineAttributes(surf->dpy, surf->gc, line_thickness, LineSolid, CapButt, JoinMiter); 288 XDrawLine(surf->dpy, surf->drawable, surf->gc, x0, y0, x1, y1); 289 XDrawLine(surf->dpy, surf->drawable, surf->gc, x1, y1, x2, y2); 289 XDrawLine(surf->dpy, surf->drawable, surf->gc, x1, y1, x2, y2); 290 XDrawLine(surf->dpy, surf->drawable, surf->gc, x2, y2, x0, y0); 291 XSetLineAttributes(surf->dpy, surf->gc, 1, LineSolid, CapButt, JoinMiter);xwem-battery.el git://pkgs.fedoraproject.org/xemacs-packages-extra | Emacs Lisp | 374 lines
209 1 2 (- xwem-batt-width 3) (- xwem-batt-height 4)) 210 (XDrawLine xdpy xpix (xwem-face-get-gc 'xwem-face-black) 211 3 1 (- xwem-batt-width 4) 1) 225 (when (< dheight (- xwem-batt-height 5)) 226 (XDrawLine xdpy xpix (xwem-face-get-gc 'xwem-face-black) 227 2 (- xwem-batt-height 2 dheight) 239 (XChangeGC xdpy acgc) 240 (XDrawLine xdpy xpix acgc 241 xwem-batt-width xwem-batt-ac-line-widthXw_draw_poly.cxx https://github.com/hmeyer/oce.git | C++ | 583 lines
236 if( gcline && (gcpoly != gcline) && (npathpoint > 3) ) { 237 XDrawLines(_DISPLAY,_DRAWABLE,gcline, 238 ppoint,npathpoint,CoordModeOrigin) ;xlib.vim https://github.com/vim-scripts/clibs.vim.git | Vim Script | 49 lines
25 syn keyword cLibFunction contained XCellsOfScreen XChangeActivePointerGrab XChangeGC XChangeKeyboardControl XChangeKeyboardMapping XChangePointerControl XChangeProperty XChangeSaveSet XChangeWindowAttributes XCheckIfEvent XCheckMaskEvent XCheckTypedEvent XCheckTypedWindowEvent XCheckWindowEvent XCirculateSubwindows XCirculateSubwindowsDown XCirculateSubwindowsUp XClearArea XClearWindow XCloseDisplay XCloseIM XCloseOM XConfigureWindow XConnectionNumber XContextDependentDrawing XContextualDrawing XConvertSelection XCopyArea XCopyColormapAndFree XCopyGC XCopyPlane XCreateBitmapFromData XCreateColormap XCreateFontCursor XCreateFontSet XCreateGC XCreateGlyphCursor XCreateIC XCreateImage XCreateOC XCreatePixmap XCreatePixmapCursor XCreatePixmapFromBitmapData XCreateSimpleWindow XCreateWindow 26 syn keyword cLibFunction contained XDefaultColormap XDefaultColormapOfScreen XDefaultDepth XDefaultDepthOfScreen XDefaultGC XDefaultGCOfScreen XDefaultRootWindow XDefaultScreen XDefaultScreenOfDisplay XDefaultVisual XDefaultVisualOfScreen XDefineCursor XDeleteModifiermapEntry XDeleteProperty XDestroyIC XDestroyOC XDestroySubwindows XDestroyWindow XDirectionalDependentDrawing XDisableAccessControl XDisplayCells XDisplayHeight XDisplayHeightMM XDisplayKeycodes XDisplayMotionBufferSize XDisplayName XDisplayOfIM XDisplayOfOM XDisplayOfScreen XDisplayPlanes XDisplayString XDisplayWidth XDisplayWidthMM XDoesBackingStore XDoesSaveUnders XDrawArc XDrawArcs XDrawImageString XDrawImageString16 XDrawLine XDrawLines XDrawPoint XDrawPoints XDrawRectangle XDrawRectangles XDrawSegments XDrawString XDrawString16 XDrawText XDrawText16 27 syn keyword cLibFunction contained XEHeadOfExtensionList XEnableAccessControl XEventMaskOfScreen XEventsQueued XExtendedMaxRequestSize XExtentsOfFontSetxops.c https://bitbucket.org/tferma/petsc.git | C | 865 lines
102 y_1 = YTRANS(draw,XiWin,yl); y_2 = YTRANS(draw,XiWin,yr); 103 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_1,y_1,x_2,y_2); 104 PetscFunctionReturn(0); 117 y_1 = YTRANS(draw,XiWin,yl); y_2 = YTRANS(draw,XiWin,yr); 118 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_1,y_1,x_2,y_2); 119 if (x_1 == x_2 && y_1 == y_2) PetscFunctionReturn(0); 121 if (y_2 > y_1) { 122 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_2,y_2,x_2-3,y_2-3); 123 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_2,y_2,x_2+3,y_2-3); 124 } else { 125 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_2,y_2,x_2-3,y_2+3); 126 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_2,y_2,x_2+3,y_2+3); 130 if (x_2 > x_1) { 131 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_2-3,y_2-3,x_2,y_2); 132 XDrawLine(XiWin->disp,PetscDrawXiDrawable(XiWin),XiWin->gc.set,x_2-3,y_2+3,x_2,y_2);tkIntXlibDecls.h https://bitbucket.org/preining/tex-live.git | C Header | 1125 lines
142/* 31 */ 143EXTERN void XDrawLines _ANSI_ARGS_((Display* d, Drawable dr, 144 GC g, XPoint* x, int i1, int i2)); 361/* 104 */ 362EXTERN void XDrawLine _ANSI_ARGS_((Display* d, Drawable dr, GC g, 363 int x1, int y1, int x2, int y2));xgraphics.h git://pkgs.fedoraproject.org/ucblogo | C Header | 207 lines
67#define line_to(a,b) if(xgr_pen.vis==0)\ 68 XDrawLine(dpy,win,xgr_pen.pm,\ 69 xgr_pen.xpos,xgr_pen.ypos,\draw.c https://bitbucket.org/whitelynx/notion.git | C | 707 lines
102 103 XDrawLines(ioncore_g.dpy, win, gc, points, 3, CoordModeOrigin); 104 } 121 122 XDrawLines(ioncore_g.dpy, win, gc, points, 3, CoordModeOrigin); 123 }xp_pw.c https://github.com/jeremysalwen/ESPS.git | C | 682 lines
72 } 73 XDrawLine(display, d, gc, x0, y0, x1, y1); 74 XpFreeGC(display, gc);SDL_x11sym.h https://github.com/LeifAndersen/Android-Supertux.git | C Header | 242 lines
53SDL_X11_SYM(int,XDisplayKeycodes,(Display* a,int* b,int* c),(a,b,c),return) 54SDL_X11_SYM(int,XDrawLines,(Display* a, Drawable b, GC c, XPoint* d, int e, int f),(a,b,c,d,e,f),return) 55SDL_X11_SYM(int,XDrawPoint,(Display* a, Drawable b, GC c, int d, int e),(a,b,c,d,e),return)sig.c https://github.com/kastur/ECGCS.git | C | 538 lines
67 p->y += ybase; 68 XDrawLines(display, osb, gc, p, q-p, CoordModePrevious); 69 if (mode) 69 if (mode) 70 XDrawLines(display, xid, gc, p, q-p, CoordModePrevious); 71 p->x = xp;scope.c https://github.com/kastur/ECGCS.git | C | 883 lines
141 tbuf[0].x = tbuf[1].x = i; 142 XDrawLines(scope_display, scope_xid, plot_sig, tbuf, 2, 143 CoordModeOrigin);scrollbar-sgi.c https://gitlab.com/Jehan_ZeMarmot/mrxvt | C | 575 lines
237 CHOOSE_GC_FG(r, r->scrollBar.sgi_fg); 238 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x, y, x+w, y); 239 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x, y, x, y+h); 240 241 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x+1, y+1, x+w-1, y+1); 242 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x+1, y+1, x+1, y+h-1); 244 CHOOSE_GC_FG(r, r->scrollBar.sgi_dark); 245 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x+w, y+1, x+w, y+h); 246 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x+1, y+h, x+w, y+h); 247 248 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x+w-1, y+2, x+w-1, y+h-1); 249 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x+2, y+h-1, x+w-1, y+h-1); 273 /* right vertical border line */ 274 XDrawLine (r->Xdisplay, r->scrollBar.win, r->scrollBar.gc, 275 SB_WIDTH_SGI-1, 0,scrollbar-next.c https://gitlab.com/Jehan_ZeMarmot/mrxvt | C | 530 lines
338 CHOOSE_GC_FG(r, r->scrollBar.next_white); 339 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x1, y1, x2, y1); 340 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x1, y1, x1, y2); 343 CHOOSE_GC_FG(r, r->scrollBar.next_fg); 344 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x1, y2, x2, y2); 345 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x2, y1, x2, y2); 349 x1++, y1++, x2--, y2--; /* move in one point */ 350 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x1, y2, x2, y2); 351 XDrawLine(r->Xdisplay, d, r->scrollBar.gc, x2, y1, x2, y2);stroke-draw.c https://bitbucket.org/pidgin/main | C | 412 lines
73#if 1 74 XDrawLine(gstroke_disp, gstroke_window, gstroke_gc, 75 last_mouse_position.last_point.x,newslider.c https://github.com/drafnel/Vis5d.git | C | 454 lines
104 LUI_GC_bottom, pts, 4, Convex, CoordModeOrigin); 105 XDrawLines(LUI_Display, s->window, 106 LUI_GC_black, pts, 4, CoordModeOrigin); 114 LUI_GC_top, pts, 4, Convex, CoordModeOrigin); 115 XDrawLines(LUI_Display, s->window, 116 LUI_GC_black, pts, 4, CoordModeOrigin);swarm.cpp git://pkgs.fedoraproject.org/kdeartwork | C++ | 436 lines
204 XSetForeground(dsp, Scr[screen].gc, BlackPixel(dsp, screen)); 205 XDrawLine(dsp, win, Scr[screen].gc, 206 sp->wx[1], sp->wy[1], sp->wx[2], sp->wy[2]); 209 XSetForeground(dsp, Scr[screen].gc, WhitePixel(dsp, screen)); 210 XDrawLine(dsp, win, Scr[screen].gc, 211 sp->wx[0], sp->wy[0], sp->wx[1], sp->wy[1]);nuklear_xlib.c https://gitlab.com/oytunistrator/nuklear | C | 609 lines
93 XSetLineAttributes(surf->dpy, surf->gc, line_thickness, LineSolid, CapButt, JoinMiter); 94 XDrawLine(surf->dpy, surf->drawable, surf->gc, (int)x0, (int)y0, (int)x1, (int)y1); 95 XSetLineAttributes(surf->dpy, surf->gc, 1, LineSolid, CapButt, JoinMiter); 112 113 XDrawLine(surf->dpy, surf->drawable, surf->gc, xc, y, xc+wc, y); 114 XDrawLine(surf->dpy, surf->drawable, surf->gc, x+w, yc, x+w, yc+wc); 114 XDrawLine(surf->dpy, surf->drawable, surf->gc, x+w, yc, x+w, yc+wc); 115 XDrawLine(surf->dpy, surf->drawable, surf->gc, xc, y+h, xc+wc, y+h); 116 XDrawLine(surf->dpy, surf->drawable, surf->gc, x, yc, yc+hc, x); 208 XSetLineAttributes(surf->dpy, surf->gc, line_thickness, LineSolid, CapButt, JoinMiter); 209 XDrawLine(surf->dpy, surf->drawable, surf->gc, x0, y0, x1, y1); 210 XDrawLine(surf->dpy, surf->drawable, surf->gc, x1, y1, x2, y2); 210 XDrawLine(surf->dpy, surf->drawable, surf->gc, x1, y1, x2, y2); 211 XDrawLine(surf->dpy, surf->drawable, surf->gc, x2, y2, x0, y0); 212 XSetLineAttributes(surf->dpy, surf->gc, 1, LineSolid, CapButt, JoinMiter);Makefile https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | Makefile | 109 lines
31 XDestroyWindowEvent.3 XDrawArc.3 XDrawImageString.3 \ 32 XDrawLine.3 XDrawPoint.3 XDrawRectangle.3 \ 33 XDrawString.3 XDrawText.3 XEmptyRegion.3 \GCOps.c https://github.com/dmitriy103/androix-xserver.git | C | 327 lines
200{ 201 XDrawLines(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC), 202 (XPoint *)pPoints, nPoints, mode);selectpt.c https://github.com/pkgw/atnf-miriad.git | C | 467 lines
122 case SelectTypeRband: /* Rubber band line. */ 123 XDrawLine(dpy, window, xorgc, x0, y0, x1, y1); 124 break; 137 yv = r->vbandy; 138 XDrawLine(dpy, window, xorgc, x0, y0, x1, y1); 139 XDrawLine(dpy, window, xorgc, x1, y1, xv, yv);slider.c https://github.com/pkgw/carma-miriad.git | C | 614 lines
144 xpos = (slider_width / 2) - 1; 145 XDrawLine(XtDisplay(w), sliderPixmap, slider->bottom_shadow_GC, 146 xpos, ((slider_height / 2) + 1), xpos, (slider_height - 2)); 148 xpos = slider_width / 2; 149 XDrawLine(XtDisplay(w), sliderPixmap, slider->top_shadow_GC, 150 xpos, ((slider_height / 2) + 1), xpos, (slider_height - 2)); 153 xpos = (slider_width / 2) - slider->slider_gap - 1; 154 XDrawLine(XtDisplay(w), sliderPixmap, slider->bottom_shadow_GC, 155 xpos, 1, xpos, (slider_height - 2)); 157 xpos = (slider_width / 2) - slider->slider_gap; 158 XDrawLine(XtDisplay(w), sliderPixmap, slider->top_shadow_GC, 159 xpos, 1, xpos, (slider_height - 2)); 161 xpos = (slider_width / 2) + slider->slider_gap - 1; 162 XDrawLine(XtDisplay(w), sliderPixmap, slider->bottom_shadow_GC, 163 xpos, 1, xpos, (slider_height - 2));qplot.c https://github.com/gjvdhazel/antelope_contrib.git | C | 805 lines
617 ntot += n; 618 if (n > 1) XDrawLines (display, drawable, gcl, 619 xps, n,CoordModeOrigin); 626 ntot += n; 627 if (n > 1) XDrawLines (display, drawable, gcl, xps, 628 n, CoordModeOrigin);xdraw.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 82 lines
19 * 20 * XDrawLine -- 21 * 33void 34XDrawLine(display, d, gc, x1, y1, x2, y2) 35 Display* display; 45 points[1].y = y2; 46 XDrawLines(display, d, gc, points, 2, CoordModeOrigin); 47}NotebookTab.C git://pkgs.fedoraproject.org/dx | C | 381 lines
229 gc = XtGetGC (w, GCForeground|GCBackground, &values); 230 XDrawLine (d, this->dbl_buffer, gc, 0,s,0,height-1); 231 234 // 235 XDrawLine (d, this->dbl_buffer, gc, s,0,width-(s+1),0); 236 XtReleaseGC (w, gc); 248 gc = XtGetGC (w, GCForeground|GCBackground, &values); 249 XDrawLine (d, this->dbl_buffer, gc, width-1,s,width-1,height-1); 250 XtReleaseGC(w, gc);MSWidgetOutput.H git://pkgs.fedoraproject.org/aplus-fsf | C Header | 212 lines
77 void XDrawArcs(Display *,Window,GC,XArc *,int); 78 void XDrawLine(Display *,Window,GC,int,int,int,int); 79 void XDrawLines(Display *,Window,GC,XPoint *,int,int);admin_color.lua https://gitlab.com/yasin3223/mtasa-resources | Lua | 260 lines
167 168 dxDrawLine ( x + 133, y + 10, x + 200, y + 10, tocolor ( color.r, color.g, color.b, 255 ), 20, true ) 169 173 local c = tocolor ( 0, 0, 0, 255 ) 174 dxDrawLine ( x - 7, y, x - 2, y, c, 2, true) 175 dxDrawLine ( x + 2, y, x + 7, y, c, 2, true) 175 dxDrawLine ( x + 2, y, x + 7, y, c, 2, true) 176 dxDrawLine ( x, y - 7, x, y - 2, c, 2, true) 177 dxDrawLine ( x, y + 2, x, y + 7, c, 2, true)traffic_client.lua https://gitlab.com/yasin3223/mtasa-resources | Lua | 650 lines
109 if DEBUG then 110 dxDrawLine3D ( x, y, z, nx, ny, nz, tocolor ( 255, 0, 255, 255 ), 10 ) 111 end 172 173 -- dxDrawLine3D( matrix[4][1], matrix[4][2], matrix[4][3], matrix[4][1] + matrix[1][1], matrix[4][2] + matrix[2][1], matrix[4][3] + matrix[3][1], tocolor ( 0, 255, 0), 3) 174 -- dxDrawLine3D( matrix[4][1], matrix[4][2], matrix[4][3], matrix[4][1] + matrix[1][2], matrix[4][2] + matrix[2][2], matrix[4][3] + matrix[3][2], tocolor ( 0, 255, 0), 3) 174 -- dxDrawLine3D( matrix[4][1], matrix[4][2], matrix[4][3], matrix[4][1] + matrix[1][2], matrix[4][2] + matrix[2][2], matrix[4][3] + matrix[3][2], tocolor ( 0, 255, 0), 3) 175 -- dxDrawLine3D( matrix[4][1], matrix[4][2], matrix[4][3], matrix[4][1] + matrix[1][3], matrix[4][2] + matrix[2][3], matrix[4][3] + matrix[3][3], tocolor ( 0, 255, 0), 3) 176 187 if DEBUG then 188 dxDrawLine3D( x, y, z, tx, ty, tz, tocolor ( 255, 255, 255), 3) 189 end 284 if DEBUG then 285 dxDrawLine3D( x, y, z, tx, ty, tz, tocolor ( 255, 0, 0), 3) 286 endXlib.h https://gitlab.com/mezozoysky/gras | C Header | 46 lines
39inline int XFillRectangle( Display *, Window, GC, int, int, int, int ) { return 0; } 40inline int XDrawLine( Display *, Window, GC, int, int, int, int ) { return 0; } 41inline int XDrawString( Display *, Window, GC, int, int, const char *, int ) { return 0; }bindings-x11-functions.ads https://github.com/joewing/tabfx.git | Ada | 215 lines
152 153 procedure XDrawLine(display : Display_Pointer; 154 d : Drawable_Type; g : GC_Type; 155 x1, y1, x2, y2 : int); 156 pragma Import(C, XDrawLine, "XDrawLine"); 157lcdscrub.c https://github.com/mmehnert/xscreensaver.git | C | 241 lines
118 for (i = count; i < st->xgwa.height; i += st->spread) 119 XDrawLine (st->dpy, st->window, fg, 0, i, st->xgwa.width, i); 120 break; 125 for (i = count; i < st->xgwa.width; i += st->spread) 126 XDrawLine (st->dpy, st->window, fg, i, 0, i, st->xgwa.height); 127 break; 132 for (i = count; i < st->xgwa.width; i += st->spread) 133 XDrawLine (st->dpy, st->window, fg, i, 0, 134 i + st->xgwa.width, st->xgwa.width); 135 for (i = -count; i < st->xgwa.height; i += st->spread) 136 XDrawLine (st->dpy, st->window, fg, 0, i, 137 st->xgwa.height, i + st->xgwa.height);draw.c git://pkgs.fedoraproject.org/e16 | C | 513 lines
70 { 71 XDrawLine(disp, dr, gc, x1, y1, x1 + 6, y1 - 3); 72 XDrawLine(disp, dr, gc, x1, y1, x1 + 6, y1 + 3); 72 XDrawLine(disp, dr, gc, x1, y1, x1 + 6, y1 + 3); 73 XDrawLine(disp, dr, gc, x2, y1, x2 - 6, y1 - 3); 74 XDrawLine(disp, dr, gc, x2, y1, x2 - 6, y1 + 3); 77 { 78 XDrawLine(disp, dr, gc, x1, y1, x2, y1); 79 Esnprintf(str, sizeof(str), "%i", x2 - x1 + 1); 90 { 91 XDrawLine(disp, dr, gc, x1, y1, x1 + 3, y1 + 6); 92 XDrawLine(disp, dr, gc, x1, y1, x1 - 3, y1 + 6); 92 XDrawLine(disp, dr, gc, x1, y1, x1 - 3, y1 + 6); 93 XDrawLine(disp, dr, gc, x1, y2, x1 + 3, y2 - 6); 94 XDrawLine(disp, dr, gc, x1, y2, x1 - 3, y2 - 6);