| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef Maus_H
- #define Maus_H
- #include "OperatingSystem.h"
- #include "ReferenceCounter.h"
- namespace Framework
- {
- class Image; //! from Image.h
- class Maus; //! from this file
- namespace MausId
- {
- const int nichts = 0;
- const int normal = 1;
- const int hand = 2;
- const int warten = 3;
- const int verschieben = 4;
- const int text = 5;
- const int wahgerecht = 6;
- const int senkrecht = 7;
- const int diagonal1 = 8;
- const int diagonal2 = 9;
- const int verboten = 10;
- } // namespace MausId
- //! This class manages the mouse cursor image.
- //! It is used internally by the framework.
- //! See Globals.h MausZeiger
- class Maus : public virtual ReferenceCounter
- {
- private:
- HCURSOR hMaus;
- public:
- //! Constructor
- DLLEXPORT Maus();
- //! Loads a mouse cursor from Windows
- //! \param mausId Values from the MausId namespace
- //! Example: ladeMaus( MausId::hand );
- DLLEXPORT void ladeMaus(int mausId);
- //! Copies an image and uses it as mouse cursor.
- //! \param maus The image to use as mouse cursor
- DLLEXPORT void ladeMaus(Image* maus);
- //! Updates the mouse. Called by the framework itself
- DLLEXPORT void update();
- //! returns a handle to the mouse cursor.
- DLLEXPORT HCURSOR getMausHandle();
- };
- } // namespace Framework
- #endif
|