1 #include <../../nrnconf.h>
4 #include <InterViews/session.h>
5 #include <InterViews/display.h>
6 #include <InterViews/color.h>
7 #include <InterViews/brush.h>
8 #include <InterViews/canvas.h>
9 #include <InterViews/printer.h>
10 #include <InterViews/window.h>
11 #include <InterViews/transformer.h>
23 printf(
"no help for this Rubberband action\n");
29 printf(
"no help for this handler\n");
61 t_ =
c->transformer();
87 e.window()->grab_pointer();
106 e.window()->ungrab_pointer();
145 Coord x1, y1, x2, y2;
150 if (x1 < x2 && y1 < y2) {
163 printf(
"RubberRect::help\n");
175 t.inverse_transform(x1, y1);
176 t.inverse_transform(x2, y2);
185 printf(
"RubberRect::help\n");
207 t.inverse_transform(x1, y1);
208 t.inverse_transform(x2, y2);
virtual void unref() const
virtual void execute(Rubberband *)
virtual void get_line(Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
virtual void draw(Coord, Coord)
RubberLine(RubberAction *=NULL, Canvas *=NULL)
virtual void get_line_canvas(Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
virtual void get_rect(Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
virtual void get_rect_canvas(Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
virtual void draw(Coord, Coord)
RubberRect(RubberAction *=NULL, Canvas *=NULL)
static const Brush * brush_
void rubber_off(Canvas *)
const Event & event() const
virtual void undraw(Coord x, Coord y)
Rubberband(RubberAction *=NULL, Canvas *=NULL)
static const Color * xor_color_
virtual void drag(Event &)
virtual void release(Event &)
static const Color * color()
virtual void snapshot(Printer *)
static Rubberband * current_
const Transformer & transformer() const
static const Brush * brush()
virtual void press(Event &)
virtual void draw(Coord x, Coord y)
static void pr(N_Vector x)