123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef ToolTip_H
- #define ToolTip_H
- #include "Array.h"
- #include "Zeichnung.h"
- #include <functional>
- namespace Framework
- {
- class Schrift;
- class Bild;
- class AlphaFeld;
- class Text;
- class Rahmen;
- struct MausEreignis;
- class Bildschirm;
- #ifdef WIN32
- #pragma vtordisp(push, 2)
- #endif
- class ToolTip : public ZeichnungHintergrund
- {
- private:
- RCArray< Zeichnung > *members;
- Punkt size;
- double animationSpeed;
- double warten;
- double wartenCount;
- double tval;
- bool mausIn;
- unsigned char alpha;
- bool sichtbar;
- bool zeichnen;
- bool mausIn2;
- Bildschirm *bildschirm;
- std::function< void( ToolTip * ) > onShow;
- std::function< void( ToolTip * ) > onHide;
-
-
- DLLEXPORT void doMausEreignis( MausEreignis &me, bool userRet ) override;
- public:
-
- DLLEXPORT ToolTip( Bildschirm *zSceen );
-
- DLLEXPORT ~ToolTip();
-
-
- DLLEXPORT void addMember( Zeichnung *m );
-
-
- DLLEXPORT void removeMember( Zeichnung *zM );
-
-
- DLLEXPORT void removeMember( int i );
-
-
- DLLEXPORT void setShowEvent( std::function< void( ToolTip * ) > onShow );
-
-
- DLLEXPORT void setHideEvent( std::function< void( ToolTip * ) > onHide );
-
-
- DLLEXPORT void setWarten( double warten );
-
-
- DLLEXPORT void setAnimationSpeed( double speed );
-
-
- DLLEXPORT void setMausIn( bool mausIn );
-
- DLLEXPORT void wartenReset();
-
- DLLEXPORT void setZeichnen();
-
-
-
- DLLEXPORT bool tick( double tickVal ) override;
-
-
- DLLEXPORT void render( Bild &zRObj ) override;
-
- DLLEXPORT Bildschirm *zBildschirm() const;
-
-
- DLLEXPORT Zeichnung *zMember( int i ) const;
-
-
- DLLEXPORT Zeichnung *getMember( int i ) const;
-
- DLLEXPORT int getMemberAnzahl() const;
-
- DLLEXPORT Zeichnung *dublizieren() const override;
- };
- #ifdef WIN32
- #pragma vtordisp(pop)
- #endif
- }
- #endif
|