NEURON
grglyph.h
Go to the documentation of this file.
1 #ifndef grglyph_h
2 #define grglyph_h
3 
4 #include <InterViews/transformer.h>
5 #include "graph.h"
6 
7 struct Object;
8 class GrGlyph;
9 
10 class GrGlyphItem: public GraphItem {
11  public:
12  GrGlyphItem(Glyph* g, float scalex, float scaley, float rot);
13  virtual ~GrGlyphItem();
14  virtual void allocate(Canvas*, const Allocation&, Extension&);
15  virtual void draw(Canvas*, const Allocation&) const;
16  virtual void print(Printer*, const Allocation&) const;
17 
18  private:
20 };
21 
22 class GrGlyph: public Glyph {
23  public:
25  virtual ~GrGlyph();
26 
27  virtual void request(Requisition&) const;
28  virtual void draw(Canvas*, const Allocation&) const;
29 
30  void new_path();
35  void close_path();
36  void circle(Coord x, Coord y, Coord r);
37  void stroke(int color, int brush);
38  void fill(int color);
39  void erase();
40  void gif(const char*);
41 
43 
44  private:
48  Object* obj_;
50 };
51 
52 #endif
#define Transformer
Definition: _defines.h:316
#define Canvas
Definition: _defines.h:65
#define Coord
Definition: _defines.h:19
#define Printer
Definition: _defines.h:211
#define Glyph
Definition: _defines.h:132
Definition: graph.h:200
virtual void draw(Canvas *, const Allocation &) const
DataVec * y_
Definition: grglyph.h:47
void fill(int color)
void line_to(Coord, Coord)
void move_to(Coord, Coord)
Object * obj_
Definition: grglyph.cpp:23
void circle(Coord x, Coord y, Coord r)
void new_path()
Object ** temp_objvar()
void erase()
Glyph * gif_
Definition: grglyph.h:49
DataVec * x_
Definition: grglyph.h:46
void stroke(int color, int brush)
virtual void request(Requisition &) const
GrGlyph(Object *)
void close_path()
void control_point(Coord, Coord)
DataVec * type_
Definition: grglyph.h:45
virtual ~GrGlyph()
void gif(const char *)
void curve_to(Coord, Coord, Coord, Coord, Coord, Coord)
virtual void allocate(Canvas *, const Allocation &, Extension &)
virtual ~GrGlyphItem()
virtual void draw(Canvas *, const Allocation &) const
Transformer t_
Definition: grglyph.h:19
GrGlyphItem(Glyph *g, float scalex, float scaley, float rot)
virtual void print(Printer *, const Allocation &) const
#define g
Definition: passive0.cpp:21
#define color
Definition: rbtqueue.cpp:50
Definition: hocdec.h:227