## class Cell

> (table) cell class.

### Public Methods

  | Cell (Grafport *g, XFont *ft, CellRow *row, CellColumn *column, int x, int y, int wd, int ht)
  virtual | ~Cell ()
  friend int | operator== (const Cell &c1, const Cell &c2) alphabetical text comparison.
  void | Draw () draw the cell.
  void | Undraw () erase the cell.
  void | UpdatePosition (const Point *pt) reposition and redraw
  void | UpdateSize (int wd, int ht) resize and redraw.
  void | UpdateSelect (bool) (de)select and redraw.
  void | UpdateFont (XFont *ft) update text font and redraw.
  void | UpdateTextPosition () recalculate text position and redraw.
  void | SetTextSize () recalculate text size.
  void | SetPosition (const Point *pt) reposition cell + text
  void | SetSize (int wd, int ht) resize cell.
  void | SetGrafport (Grafport *g) change grafport
  bool | ContainsPt (int x, int y) const true iff (x,y) is inside cell.
  void | Write (OutputFile *f) write cell attributes to output stream (file).
  bool | Read (InputFile *f, double format) read cell attributes from input stream (file).
  void | UpdateText (const string *) update cell text and redraw.
  void | ClearText () make cell text empty.
  bool | HasText (const string *s) const true iff celltext is 's'.
  bool | HasText (const string *s, bool c1, bool c2) true iff celltext contains 's' (c1: case sensitive).
  void | SetRow (CellRow *r)
  void | SetColumn (CellColumn *c)
  CellRow* | GetRow () const
  CellColumn* | GetColumn () const
  const Point* | GetPosition () const
  const Point* | GetTopLeft () const
  int | GetWidth () const
  int | GetHeight () const
  bool | IsSelected () const
  bool | IsEditable () const
  void | SetEditable (bool b)
  bool | IsVisible () const
  void | SetVisible (bool b)
  CellText* | GetCellText () const
  const string* | GetText () const
  void | SetFont (XFont *ft)
  XFont* | GetFont () const
  void | SetXLFD (const char *descr)
  int | GetTextWidth () const
  int | GetTextHeight () const
  TextAlign::Type | GetColumnAlignment () const
  void | CalcCellTextPosition () set cell text pos. given row/column alignment + margin width/height.
  void | SetAnnotation (const string *s)
  const string* | GetAnnotation () const

## Documentation

> (table) cell class.

`Cell(Grafport *g, XFont *ft, CellRow *row, CellColumn *column, int x, int y, int wd, int ht)`

`virtual ~Cell()`

`friend int operator==(const Cell &c1, const Cell &c2)`
  alphabetical text comparison.

`void Draw()`
  draw the cell.

`void Undraw()`
  erase the cell.

`void UpdatePosition(const Point *pt)`
  reposition and redraw

`void UpdateSize(int wd, int ht)`
  resize and redraw.

`void UpdateSelect(bool)`
  (de)select and redraw.

`void UpdateFont(XFont *ft)`
  update text font and redraw.

`void UpdateTextPosition()`
  recalculate text position and redraw.

`void SetTextSize()`
  recalculate text size.

`void SetPosition(const Point *pt)`
  reposition cell + text

`void SetSize(int wd, int ht)`
  resize cell.

`void SetGrafport(Grafport *g)`
  change grafport

`bool ContainsPt(int x, int y) const`
  true iff (x,y) is inside cell.

`void Write(OutputFile *f)`
  write cell attributes to output stream (file).

`bool Read(InputFile *f, double format)`
  read cell attributes from input stream (file).

`void UpdateText(const string *)`
  update cell text and redraw.

`void ClearText()`
  make cell text empty.

`bool HasText(const string *s) const`
  true iff celltext is 's'.

`bool HasText(const string *s, bool c1, bool c2)`
  true iff celltext contains 's' (c1: case sensitive).

`void SetRow(CellRow *r)`

`void SetColumn(CellColumn *c)`

`CellRow* GetRow() const`

`CellColumn* GetColumn() const`

`const Point* GetPosition() const`

`const Point* GetTopLeft() const`

`int GetWidth() const`

`int GetHeight() const`

`bool IsSelected() const`

`bool IsEditable() const`

`void SetEditable(bool b)`

`bool IsVisible() const`

`void SetVisible(bool b)`

`CellText* GetCellText() const`

`const string* GetText() const`

`void SetFont(XFont *ft)`

`XFont* GetFont() const`

`void SetXLFD(const char *descr)`

`int GetTextWidth() const`

`int GetTextHeight() const`

`TextAlign::Type GetColumnAlignment() const`

`void CalcCellTextPosition()`
  set cell text pos. given row/column alignment + margin width/height.

`void SetAnnotation(const string *s)`

`const string* GetAnnotation() const`

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