NEURON
grglyph.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <InterViews/transformer.h>
4 #include "graph.h"
5 
6 struct Object;
7 class GrGlyph;
8 
9 class GrGlyphItem: public GraphItem {
10  public:
11  GrGlyphItem(Glyph* g, float scalex, float scaley, float rot);
12  virtual ~GrGlyphItem();
13  virtual void allocate(Canvas*, const Allocation&, Extension&);
14  virtual void draw(Canvas*, const Allocation&) const;
15  virtual void print(Printer*, const Allocation&) const;
16 
17  private:
19 };
20 
21 class GrGlyph: public Glyph {
22  public:
24  virtual ~GrGlyph();
25 
26  virtual void request(Requisition&) const;
27  virtual void draw(Canvas*, const Allocation&) const;
28 
29  void new_path();
34  void close_path();
35  void circle(Coord x, Coord y, Coord r);
36  void stroke(int color, int brush);
37  void fill(int color);
38  void erase();
39  void gif(const char*);
40 
42 
43  private:
47  Object* obj_;
49 };
#define Transformer
Definition: _defines.h:313
#define Canvas
Definition: _defines.h:63
#define Coord
Definition: _defines.h:17
#define Printer
Definition: _defines.h:209
#define Glyph
Definition: _defines.h:130
Definition: graph.h:196
virtual void draw(Canvas *, const Allocation &) const
DataVec * y_
Definition: grglyph.h:46
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:48
DataVec * x_
Definition: grglyph.h:45
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:44
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:18
GrGlyphItem(Glyph *g, float scalex, float scaley, float rot)
virtual void print(Printer *, const Allocation &) const
Definition: hocdec.h:173