-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTextBox.h
More file actions
33 lines (27 loc) · 725 Bytes
/
TextBox.h
File metadata and controls
33 lines (27 loc) · 725 Bytes
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
#pragma once
#include "Control.h"
class TextBox : public Control
{
private:
string path;
string input;
bool isTakingInput;
Clock cursorInterval;
static Font textBoxfont;
static Texture textCursor;
void loadResources();
static bool isResourcesLoaded;
public:
void draw(RenderTarget & target, RenderStates states)const override;
TextBox();
void setPath(string str);
string getPath() const;
bool getIsTakingInput();
void setIsInputInProgress(bool i);
void setInputString(string s);
string getInputString();
virtual ~TextBox();
virtual FloatRect getGlobalBounds() const;
virtual Control * handleEvent(Event event, Vector2f mousePos);
virtual Control * clone() const;
};