UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ZtRubberRect.H
1 // ZtRubberRect.H
2 // $Id: ZtRubberRect.H,v 1.5 2004/02/17 13:53:37 vlad Exp $
3 
4 #if !defined __ZtRubberRect_H
5 
6 #define __ZtRubberRect_H
7 
8 #include <zm/ZtObject.H>
9 
10 
16 class ZtRubberRect : public ZtObject
17 {
18 private:
19 
21  void construct ();
22 
23  ZPoint start;
24  ZPoint current;
26 protected:
27 
28  ZGroupId ext_pxid, ext_pyid;
29  Logic drawn;
32  int sens_area[2];
33 
35  void draw_rubber_rect (ZRect r);
36 
37 public:
38 
39  ZtRubberRect (ZtMain* pManager,
40  ZGroupId pxid_int, ZGroupId pyid_int,
41  ZGroupId pxid_ext, ZGroupId pyid_ext,
42  ZGroupId nxid, ZGroupId nyid);
43 
45  ZtRubberRect (ZtMain* pManager,
46  ZGroupId pxid, ZGroupId pyid,
47  ZGroupId nxid, ZGroupId nyid);
48 
51  ZtRubberRect (ZtMain* pManager,
52  ZGroupId pxid, ZGroupId pyid,
53  ZDimension dim, ZGroupId nid);
54 
56  virtual void box (float size_x[2], float size_y[2]);
57 
62  virtual ZInputStatus input (const XEvent* xev);
63 
64  virtual void redraw ()
65  {};
66 
68  void set_sensitive_area (const int psa[2] = NULL);
69 
71  void get_sensitive_area (int psa[2]) const;
72 
74  virtual const char* class_id () const;
75 
76 };
77 
78 
79 #endif // ZtRubberRect.H
void set_sensitive_area(const int psa[2]=NULL)
Definition: ZBase.H:87
virtual void box(float size_x[2], float size_y[2])
Definition: ZtMain.H:32
virtual ZInputStatus input(const XEvent *xev)
void draw_rubber_rect(ZRect r)
ZGroupId ext_pyid
Definition: ZtRubberRect.H:28
Definition: ZBase.H:30
Definition: ZtObject.H:57
Logic drawn
Definition: ZtRubberRect.H:29
int sens_area[2]
Definition: ZtRubberRect.H:32
virtual void redraw()
Definition: ZtRubberRect.H:64
virtual const char * class_id() const
void get_sensitive_area(int psa[2]) const
Definition: ZtRubberRect.H:16