1 #include <../../nrnconf.h>
8 #include <InterViews/printer.h>
9 #include <InterViews/image.h>
13 extern Image* gif_image(
const char*);
55 g->append_viewfixed(ggi);
58 g->move(
g->count() - 1, x, y);
72 return g->temp_objvar();
83 return g->temp_objvar();
94 return g->temp_objvar();
105 return g->temp_objvar();
116 return g->temp_objvar();
129 return g->temp_objvar();
140 return g->temp_objvar();
152 return g->temp_objvar();
163 return g->temp_objvar();
174 return g->temp_objvar();
185 return g->temp_objvar();
265 t.translate(a.
x(), a.
y());
281 gif_ = gif_image(file);
309 const Coord p0 = 1.00000000 * r;
310 const Coord p1 = 0.89657547 * r;
311 const Coord p2 = 0.70710678 * r;
312 const Coord p3 = 0.51763809 * r;
313 const Coord p4 = 0.26794919 * r;
316 curve_to(x + p2, y + p2, x + p0, y + p4, x + p1, y + p3);
317 curve_to(x, y + p0, x + p3, y + p1, x + p4, y + p0);
318 curve_to(x - p2, y + p2, x - p4, y + p0, x - p3, y + p1);
319 curve_to(x - p0, y, x - p1, y + p3, x - p0, y + p4);
320 curve_to(x - p2, y - p2, x - p0, y - p4, x - p1, y - p3);
321 curve_to(x, y - p0, x - p3, y - p1, x - p4, y - p0);
322 curve_to(x + p2, y - p2, x + p4, y - p0, x + p3, y - p1);
323 curve_to(x + p0, y, x + p1, y - p3, x + p0, y - p4);
413 c->transformer().transform(x, y);
const Brush * brush(int) const
const Color * color(int) const
float get_val(int i) const
virtual void draw(Canvas *, const Allocation &) const
void line_to(Coord, Coord)
void move_to(Coord, Coord)
void circle(Coord x, Coord y, Coord r)
void stroke(int color, int brush)
virtual void request(Requisition &) const
void control_point(Coord, Coord)
void curve_to(Coord, Coord, Coord, Coord, Coord, Coord)
virtual void allocate(Canvas *, const Allocation &, Extension &)
virtual void draw(Canvas *, const Allocation &) const
GrGlyphItem(Glyph *g, float scalex, float scaley, float rot)
virtual void print(Printer *, const Allocation &) const
const Requirement & x_requirement() const
const Requirement & y_requirement() const
virtual void unref() const
double chkarg(int, double low, double high)
static Object ** g_erase(void *v)
static Object ** g_stroke(void *v)
Member_ret_obj_func objmembers[]
static Object ** g_move_to(void *v)
static Object ** g_gif(void *v)
double(* nrnpy_object_to_double_)(Object *)
static void destruct(void *v)
static Object ** g_fill(void *v)
double gr_addglyph(void *v)
static Object ** g_circle(void *v)
static Object ** g_curve_to(void *v)
static void * cons(Object *o)
static Object ** g_control_point(void *v)
static Object ** g_new_path(void *v)
static Object ** g_line_to(void *v)
static Object ** g_close_path(void *v)
Symbol * hoc_lookup(const char *)
#define TRY_GUI_REDIRECT_ACTUAL_DOUBLE(name, obj)
#define TRY_GUI_REDIRECT_NO_RETURN(name, obj)
#define TRY_GUI_REDIRECT_OBJ(name, obj)
#define TRY_GUI_REDIRECT_ACTUAL_OBJ(name, obj)
Object ** hoc_objgetarg(int)
Object ** hoc_temp_objptr(Object *)
void class2oc(const char *, void *(*cons)(Object *), void(*destruct)(void *), Member_func *, int(*checkpoint)(void **), Member_ret_obj_func *, Member_ret_str_func *)
check_obj_type(o, "SectionList")