1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/********************************************************************
*
*	File:		fsICursor.h
*
*	Purpose:	Interface to all things cursor like
*
*********************************************************************/

#ifndef fsICursorhdr
#define fsICursorhdr

#include <fsCore/fsBaseTypes.h>

#include "src/components/fsIMessageListenerComponent.h"

class fsCEntity;
class fsIComponent;

class fsICursor : public fsIMessageListenerComponent
{
    friend class fsCAppCoreMain;

public:

    virtual void posSet(const fsVec2d& pPos) {};

    static void customCursorActiveSet(fsBool pVal);
    static void leftHandedCursorActiveSet(fsBool pVal);

    virtual ~fsICursor();<--- Destructor in derived class

protected:

    void listenersRegisterDo() override {}
    void listenersDeregisterDo() override {}
    fsBool messageProcessDo(const fsCUniqueId& pMessageType,
                            const fsIMessageDispatcher::sMessageParameters& pParam) override { return false;}

    static fsBool customCursorActiveGet();
    fsBool leftHandedCursorActiveGet();

    static fsICursor* instance(fsINode* const pParent, fsCEntityFactory* const pEntityFactory);
    static fsIComponent* create(fsINode* const pParent);
    fsICursor(fsCEntity* const pParent);

private:

};

#endif