## class XGrafport : public Grafport

> X11 grafport for Xlib drawing.

## Inheritance:

### Public Methods

  | XGrafport (Display *d, Window win, int wd, int ht)
  virtual | ~XGrafport ()
  bool | DrawsXor ()
  void | ClearArea (int x, int y, int wd, int ht)
  int | GetWidth ()
  int | GetHeight ()
  void | Redraw (int fromX, int fromY, int wd, int ht, int toX, int toY) redraw using rdPixmap.
  void | UpdateSize (int wd, int ht)
  void | SetBackgroundColor (const string *colorName)
  void | SetBackgroundColor (const char *colorName)
  void | SetForegroundColor (const string *colorName)
  void | SetForegroundColor (const char *colorName)
  void | SetFont (XFont *font)
  void | DrawRectangle (int x, int y, int wd, int ht)
  void | FillRectangle (int x, int y, int wd, int ht)
  void | DrawRoundedRectangle (int x, int y, int wd, int ht, int rd)
  void | FillRoundedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawEllipsedRectangle (int x, int y, int wd, int ht, int rd)
  void | FillEllipsedRectangle (int x, int y, int wd, int ht, int rd)
  void | DrawDisk (int x, int y, int wd, int ht, int ellipse_ht)
  void | FillDisk (int x, int y, int wd, int ht, int ellipse_ht)
  void | DrawEditDashedRectangle (int x, int y, int wt, int ht) not zoomed, not printed.
  void | DrawUnzoomedRectangle (int x, int y, int wt, int ht)
  void | DrawStringLeft (int x, int y, const char *str)
  void | DrawStringRight (int x, int y, const char *str)
  void | DrawStringCentered (int x, int y, const char *str)
  void | DrawStringLeftUnderlined (int x, int y, const char *str)
  void | DrawStringRightUnderlined (int x, int y, const char *str)
  void | DrawStringCenteredUnderlined (int x, int y, const char *str)
  void | DrawUnzoomedStringLeft (int, int, const char *) not zoomed
  void | DrawUnzoomedStringCentered (int, int, const char *)
  void | DrawLine (int x1, int y1, int x2, int y2)
  void | DrawLine (const Point *p1, const Point *p2)
  void | DrawCurve (const Point *p1, const Point *p2, const Point *p3, const Point *p4)
  void | DrawEditDottedGridLine (int x1, int y1, int x2, int y2) not zoomed. Uses different dot pattern.
  void | DrawEditDottedLine (int x1, int y1, int x2, int y2)
  void | DrawEditLine (int x1, int y1, int x2, int y2) not zoomed and not printed
  void | DrawEditPoint (int x1, int y2) not zoomed and not printed
  void | DrawEditLine (const Point *p1, const Point *p2) not zoomed and not printed
  void | DrawEditPoint (const Point *p) not zoomed and not printed
  void | DrawUnzoomedLine (int, int, int, int)
  void | DrawPoint (int x, int y)
  void | DrawPoint (const Point *p)
  void | DrawEllipse (int x, int y, int wd, int ht)
  void | FillEllipse (int x, int y, int wd, int ht)
  void | DrawArc (int x, int y, int wd, int ht, int arc1, int arc2)
  void | FillArc (int x, int y, int wd, int ht, int arc1, int arc2)
  void | DrawPolygon (const Point *points, int n)
  void | FillPolygon (const Point *points, int n)
  void | DrawActiveCaret (int x, int y)
  void | DrawDeactiveCaret (int x, int y)

### Protected Methods

  void | DrawXRectangle (GC gc, int x, int y, int wd, int ht)
  void | FillXRectangle (GC gc, int x, int y, int wd, int ht)
  void | DrawXRoundedRectangle (GC gc, int x, int y, int wd, int ht, int radius)
  void | FillXRoundedRectangle (GC gc, int x, int y, int wd, int ht, int radius)
  void | DrawXEllipsedRectangle (GC gc, int x, int y, int wd, int ht, int radius)
  void | FillXEllipsedRectangle (GC gc, int x, int y, int wd, int ht, int radius)
  void | DrawXDisk (GC gc, int x, int y, int wd, int ht, int ellipse_ht)
  void | FillXDisk (GC gc, int x, int y, int wd, int ht, int ellipse_ht)
  void | DrawXLine (GC gc, int x1, int y1, int x2, int y2)
  void | DrawXArc (GC gc, int x, int y, int wd, int ht, int arc1, int arc2)
  void | FillXArc (GC gc, int x, int y, int wd, int ht, int arc1, int arc2)
  void | DrawXPolygon (GC gc, const Point *points, int n)
  void | FillXPolygon (GC gc, const Point *points, int n)
  GC | CreateXorGC () X graphics context for xor drawing.
  GC | CreateCopyGC () X graphics context for copy drawing.
  GC | CreateDotGC () X gc for drawing xor dotted patterns.
  GC | CreateWideDotGC () X gc for drawing xor wide dotted patterns.
  GC | CreateDashGC () X gc for drawing xor dashed patterns.
  GC | GetCopyGC ()
  GC | GetXORGC ()
  GC | GetDotGC ()
  GC | GetWideDotGC ()
  GC | GetDashGC ()
  void | ColorInfo ()
  void | SetDots (GC gc)
  Pixel | GetWhitePixel ()
  Pixel | GetBlackPixel ()
  Pixel | GetForegroundPixel ()
  int | Px (double t)
  int | Py (double t)
  void | CalcCurvePoints (const Point *p1, const Point *p2, const Point *p3, const Point *p4)

### Inherited from Grafport:

### Public Methods

XFont* GetFont()
const string* GetBackgroundColor()
const string* GetForegroundColor()
List <Color *> * GetColors()
void SetLineStyle(LineStyle::Type s)
LineStyle::Type GetLineStyle()
void SetFillStyle(FillStyle::Type s)
FillStyle::Type GetFillStyle()
virtual void SetLineWidth(unsigned n)
unsigned GetLineWidth()
void SetZoomValue(double newValue)
double GetZoomValue()
int Zoom(int x)
int ZoomCorrect(int x)
void DrawRectangles(const Rectangle *rects, int n)
void FillRectangles(const Rectangle *rects, int n)
Point DrawStringsCentered(int x, int y, const string *str, bool ul, int cursor=0)
Point DrawStringsLeft( int topLeftx, int topLefty, const string *str, bool ul, int cursor=0)
Point DrawStringsRight( int topRightx, int topRighty, const string *str, bool ul, int cursor=0)
unsigned CursorPosition( int x, int y, const string *str, int hitX, int hitY)

### Public

### Protected Methods

Point CursorPosition(int x, int y, const string *buf, int cursor)
Color* LookupColor(const string *colorName)
Color* LookupColor(const char *colorName)
void AddColor(const string *colorName, unsigned long pixel)
void AddColor(const char *colorName, unsigned long pixel)
void AddColor(Color *c)
virtual void InitColors()
void RecalcPolygon(const Point *points, int nrPoints, Point *newPoints, int d)

## Documentation

> X11 grafport for Xlib drawing.

`XGrafport(Display *d, Window win, int wd, int ht)`

`virtual ~XGrafport()`

`bool DrawsXor()`

`void ClearArea(int x, int y, int wd, int ht)`

`int GetWidth()`

`int GetHeight()`

`void Redraw(int fromX, int fromY, int wd, int ht, int toX, int toY)`
  redraw using rdPixmap.

`void UpdateSize(int wd, int ht)`

`void SetBackgroundColor(const string *colorName)`

`void SetBackgroundColor(const char *colorName)`

`void SetForegroundColor(const string *colorName)`

`void SetForegroundColor(const char *colorName)`

`void SetFont(XFont *font)`

`void DrawRectangle(int x, int y, int wd, int ht)`

`void FillRectangle(int x, int y, int wd, int ht)`

`void DrawRoundedRectangle(int x, int y, int wd, int ht, int rd)`

`void FillRoundedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawEllipsedRectangle(int x, int y, int wd, int ht, int rd)`

`void FillEllipsedRectangle(int x, int y, int wd, int ht, int rd)`

`void DrawDisk(int x, int y, int wd, int ht, int ellipse_ht)`

`void FillDisk(int x, int y, int wd, int ht, int ellipse_ht)`

`void DrawEditDashedRectangle(int x, int y, int wt, int ht)`
  not zoomed, not printed.

`void DrawUnzoomedRectangle(int x, int y, int wt, int ht)`

`void DrawStringLeft(int x, int y, const char *str)`

`void DrawStringRight(int x, int y, const char *str)`

`void DrawStringCentered(int x, int y, const char *str)`

`void DrawStringLeftUnderlined(int x, int y, const char *str)`

`void DrawStringRightUnderlined(int x, int y, const char *str)`

`void DrawStringCenteredUnderlined(int x, int y, const char *str)`

`void DrawUnzoomedStringLeft(int, int, const char *)`
  not zoomed

`void DrawUnzoomedStringCentered(int, int, const char *)`

`void DrawLine(int x1, int y1, int x2, int y2)`

`void DrawLine(const Point *p1, const Point *p2)`

`void DrawCurve(const Point *p1, const Point *p2, const Point *p3, const Point *p4)`

`void DrawEditDottedGridLine(int x1, int y1, int x2, int y2)`
  not zoomed. Uses different dot pattern.

`void DrawEditDottedLine(int x1, int y1, int x2, int y2)`

`void DrawEditLine(int x1, int y1, int x2, int y2)`
  not zoomed and not printed

`void DrawEditPoint(int x1, int y2)`
  not zoomed and not printed

`void DrawEditLine(const Point *p1, const Point *p2)`
  not zoomed and not printed

`void DrawEditPoint(const Point *p)`
  not zoomed and not printed

`void DrawUnzoomedLine(int, int, int, int)`

`void DrawPoint(int x, int y)`

`void DrawPoint(const Point *p)`

`void DrawEllipse(int x, int y, int wd, int ht)`

`void FillEllipse(int x, int y, int wd, int ht)`

`void DrawArc(int x, int y, int wd, int ht, int arc1, int arc2)`

`void FillArc(int x, int y, int wd, int ht, int arc1, int arc2)`

`void DrawPolygon(const Point *points, int n)`

`void FillPolygon(const Point *points, int n)`

`void DrawActiveCaret(int x, int y)`

`void DrawDeactiveCaret(int x, int y)`

`void DrawXRectangle(GC gc, int x, int y, int wd, int ht)`

`void FillXRectangle(GC gc, int x, int y, int wd, int ht)`

`void DrawXRoundedRectangle(GC gc, int x, int y, int wd, int ht, int radius)`

`void FillXRoundedRectangle(GC gc, int x, int y, int wd, int ht, int radius)`

`void DrawXEllipsedRectangle(GC gc, int x, int y, int wd, int ht, int radius)`

`void FillXEllipsedRectangle(GC gc, int x, int y, int wd, int ht, int radius)`

`void DrawXDisk(GC gc, int x, int y, int wd, int ht, int ellipse_ht)`

`void FillXDisk(GC gc, int x, int y, int wd, int ht, int ellipse_ht)`

`void DrawXLine(GC gc, int x1, int y1, int x2, int y2)`

`void DrawXArc(GC gc, int x, int y, int wd, int ht, int arc1, int arc2)`

`void FillXArc(GC gc, int x, int y, int wd, int ht, int arc1, int arc2)`

`void DrawXPolygon(GC gc, const Point *points, int n)`

`void FillXPolygon(GC gc, const Point *points, int n)`

`GC CreateXorGC()`
  X graphics context for xor drawing.

`GC CreateCopyGC()`
  X graphics context for copy drawing.

`GC CreateDotGC()`
  X gc for drawing xor dotted patterns.

`GC CreateWideDotGC()`
  X gc for drawing xor wide dotted patterns.

`GC CreateDashGC()`
  X gc for drawing xor dashed patterns.

`GC GetCopyGC()`

`GC GetXORGC()`

`GC GetDotGC()`

`GC GetWideDotGC()`

`GC GetDashGC()`

`void ColorInfo()`

`void SetDots(GC gc)`

`Pixel GetWhitePixel()`

`Pixel GetBlackPixel()`

`Pixel GetForegroundPixel()`

`int Px(double t)`

`int Py(double t)`

`void CalcCurvePoints(const Point *p1, const Point *p2, const Point *p3, const Point *p4)`

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de