Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

ucursor.hpp

00001 /* ==================================================== ======== ======= *
00002  *
00003  *  ucursor.hpp
00004  *  Ubit Project [Elc][2003]
00005  *  Author: Eric Lecolinet
00006  *
00007  *  Part of the Ubit Toolkit: A Brick Construction Game Model for Creating GUIs
00008  *
00009  *  (C) 1999-2003 Eric Lecolinet @ ENST Paris
00010  *  WWW: http://www.enst.fr/~elc/ubit   Email: elc@enst.fr (subject: ubit)
00011  *
00012  * ***********************************************************************
00013  * COPYRIGHT NOTICE : 
00014  * THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY AND WITHOUT EVEN THE 
00015  * IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 
00016  * YOU CAN REDISTRIBUTE IT AND/OR MODIFY IT UNDER THE TERMS OF THE GNU 
00017  * GENERAL PUBLIC LICENSE AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION; 
00018  * EITHER VERSION 2 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
00019  * SEE FILES 'COPYRIGHT' AND 'COPYING' FOR MORE DETAILS.
00020  * ***********************************************************************
00021  *
00022  * ==================================================== [Elc:03] ======= *
00023  * ==================================================== ======== ======= */
00024 
00025 #ifndef _ucursor_hpp_
00026 #define _ucursor_hpp_
00027 //pragma ident  "@(#)ucursor.hpp                ubit:03.05.00"
00028 #include <ubit/uprop.hpp>
00029 
00030 
00033 class UCursor : public UProp {
00034 public:
00035   static UCursor arrow, xcross, crosshair, text, hand, 
00036     wait, question, kill, sizing, drag, add;
00038 
00039   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00040 
00041   UCursor(int shape_spec = 0, u_modes bmodes = 0);
00043 
00044   UCursor(const UCursor&);
00046 
00047   virtual ~UCursor() {destructs();}
00048 
00049   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00050 
00051   void set(const UCursor&);
00053 
00054   bool equals(const UCursor&) const;
00056 
00057   //const char* getName() const {return name;}
00058   int getShape() const {return shape;}
00059 
00060   virtual void update();
00061 
00062   std::vector<class UNatCursor*>& getNatCursors() const {return natcurs;}
00063 
00064 #ifndef NO_DOC
00065   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
00066   // implementation
00067 
00068   virtual void addingTo(class ULink *selflink, UGroup *parent);
00069   virtual void removingFrom(class ULink *selflink, UGroup *parent);
00071 
00072   virtual bool realize(class UDisp*);
00073   virtual void putProp(class UContext*, class UCtrl*);
00074 
00075 private:
00076   friend class UNatDisp;
00077   unsigned long shape;
00078   mutable std::vector<class UNatCursor*> natcurs;
00079 #endif
00080 };
00081 
00082 
00083 /* ==================================================== [TheEnd] ======= */
00084 /* ==================================================== [Elc:03] ======= */
00085 #endif

Generated on Thu May 19 12:40:16 2005 for Ubit[Eric.Lecolinet@enst.fr] by  doxygen 1.4.2