-// Some of the easy to inline draw methods:
-
-inline
-void LyXScreen::drawPoint(GC gc, int x, int y)
-{
- XDrawPoint(fl_display, foreground, gc,
- x, y);
-}
-
-
-inline
-void LyXScreen::drawLine(GC gc, int a, int b, int c, int d)
-{
- XDrawLine(fl_display, foreground, gc, a, b, c, d);
-}
-
-
-inline
-void LyXScreen::drawLine(gc_type t, int baseline, int x, int length)
-{
- drawLine(getGC(t), x, baseline, x + length, baseline);
-}
-
-
-inline
-void LyXScreen::drawLines(GC gc, XPoint * p, int np)
-{
- XDrawLines(fl_display, foreground, gc, p, np, CoordModeOrigin);
-}
-
-
-inline
-void LyXScreen::drawVerticalLine(gc_type t, int x, int y1, int y2)
-{
- drawLine(getGC(t),
- x,
- y1,
- x,
- y2);
-}
-
-
-inline
-void LyXScreen::drawOnOffLine(int baseline, int x, int length)
-{
- drawLine(getGC(gc_on_off_line),
- x,
- baseline,
- x + length,
- baseline);
-}
-
-
-inline
-void LyXScreen::drawThickLine(int baseline, int x, int length)
-{
- drawLine(getGC(gc_thick_line),
- x,
- baseline,
- x + length,
- baseline);
-}
-
-
-inline
-void LyXScreen::drawVerticalOnOffLine(int x, int y1, int y2)
-{
- drawLine(getGC(gc_fill),
- x,
- y1,
- x,
- y2);
-}
-
-
-inline
-void LyXScreen::fillArc(GC gc, int x, int y,
- unsigned int w, unsigned int h,
- int a1, int a2)
-{
- XFillArc(fl_display, foreground, gc,
- x, y,
- w, h, a1, a2);
-}
-
-
-inline
-void LyXScreen::drawArc(GC gc, int x, int y,
- unsigned int w, unsigned int h,
- int a1, int a2)
-{
- XDrawArc(fl_display, foreground, gc,
- x, y,
- w, h, a1, a2);
-}
-
-
-inline
-void LyXScreen::drawSegments(GC gc, XSegment * s, int ns)
-{
- XDrawSegments(fl_display, foreground, gc, s, ns);
-}
-
-
-inline
-void LyXScreen::fillRectangle(gc_type t, int a, int b, int c, int d)
-{
- XFillRectangle(fl_display, foreground, getGC(t),
- a, b, c, d);
-}
-
-
-inline
-void LyXScreen::drawRectangle(gc_type t, int x, int y, int width, int height)
-{
- XDrawRectangle(fl_display, foreground, getGC(t),
- x, y, width, height);
-}
-
-
-inline
-int LyXScreen::drawText(LyXFont const & font, char const * fs,
- int n, int baseline, int x)
-{
- return font.drawText(fs, n, foreground, baseline, x);
-}
-
-
-inline
-int LyXScreen::drawString(LyXFont const & font, string const & str,
- int baseline, int x)
-{
- return font.drawString(str, foreground, baseline, x);
-}
-