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
51
52
53
/********************************************************************
*
*	File:		fsCTextEntry.h
*
*	Purpose:	Marmalade implementation for text entry
*
*********************************************************************/

#ifndef fsCTextEntryhdr
#define fsCTextEntryhdr

#include <fsCore/fsBaseTypes.h>

#if !defined(fsKeyboard)

#include <memory>

#include <fsCore/fsStr.h>

#include "../fsITextEntryRenderData.h"
#include "../fsIRenderableQuantum.h"

class fsCTextEntryComponent;


class fsCTextEntry : public fsIRenderableQuantum
{
	friend class fsCTextEntryComponent;

public:

	void update(fsS32 pDeltaMs);
	virtual ~fsCTextEntry();<--- Destructor in derived class

protected:

	virtual void matrixApplyDo(const fsAffineMtx2d& pRenderMatrix) override;
	virtual void renderDo() override;

	void virtualKeyboardActivate(const fsStr& pPrompt, fsS32 pMaxStingLength);

	virtual fsITextEntryRenderData* renderDataGet() const override;

	fsCTextEntry(fsCTextEntryComponent* const pParent);

private:

	fsCTextEntryComponent* const mParent;
};

#endif

#endif