1 #include <../../nrnconf.h>
5 #include <InterViews/color.h>
6 #include <InterViews/brush.h>
12 class HocMarkP:
public HocMark {
14 HocMarkP(
char,
float,
const Color*,
const Brush*);
49 for (
long i = count() - 1;
i >= 0; --
i) {
62 m =
new HocMarkP(style, size,
c, b);
67 m->append(
new Circle(size / 2,
false,
c, b));
72 m->append(
new Rectangle(size, size,
false,
c, b));
77 m->append(
new Triangle(size,
false,
c, b));
82 m->append(
new Circle(size / 2,
true,
c, b));
87 m->append(
new Rectangle(size, size,
true,
c, b));
92 m->append(
new Triangle(size,
true,
c, b));
97 m->append(
new Line(0, size, .5, .5,
c, b));
102 m->append(
new Line(size, 0, .5, .5,
c, b));
105 hoc_execerror(
"implemented styles are + o t s O T S | -; waiting on x *", 0);
125 m =
check(style, size,
c, b);
131 m =
check(style, size,
c, b);
151 HocMarkP::HocMarkP(
char style,
float size,
const Color*
c,
const Brush* b)
157 HocMarkP::~HocMarkP(){};
void set(Canvas *, const Allocation &)
static HocMark * search(char style, float size, const Color *, const Brush *)
static HocMark * check(char style, float size, const Color *, const Brush *)
static HocMark * most_recent_
HocMark(char style, float size, const Color *, const Brush *)
virtual void draw(Canvas *, const Allocation &) const
virtual void request(Requisition &) const
static HocMark * instance(char style, float size, const Color *, const Brush *)
static void add(HocMark *)
static PolyGlyph * mark_list_
virtual void allocate(Canvas *, const Allocation &, Extension &)
void require_x(const Requirement &)
void require_y(const Requirement &)
virtual void unref() const
void append(Item *ql, Item *q)
void hoc_execerror(const char *s1, const char *s2)
static HocReturnType component(PyHocObject *po)