-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEditBox.h
72 lines (51 loc) · 1.5 KB
/
EditBox.h
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#pragma once
#include "irrlicht.h"
#include "IrrManagers.h"
#include "Vector2D.h"
#include <string>
#include <unordered_map>
#include "Image2D.h"
#include "Vector4D.h"
class EditBox {
irr::gui::IGUIEditBox* box;
bool border;
wchar_t* charToWchar(const char* str);
public:
EditBox();
EditBox(std::string tx);
EditBox(std::string tx, const Vector2D& pos);
EditBox(std::string tx, const Vector2D& pos, const Vector2D& dimensions);
EditBox(const EditBox& other);
~EditBox();
std::string getText();
void setText(std::string tx);
void destroy();
bool getVisible();
void setVisible(bool vis);
void bringToFront();
void sendToBack();
Vector2D getSize();
void setSize(const Vector2D& size);
void setBorderAlignment(int a, int b, int c, int d);
void setTextAlignment(const Vector2D& align);
void setMaxSize(const Vector2D& max);
bool getWrap();
void setWrap(bool wrap);
Vector4D getTextColor();
void setTextColor(const Vector4D& col);
bool setFont(const std::string& fontName);
Vector2D getPosition();
void setPosition(const Vector2D& pos);
void setParent(const Image2D& other);
bool getDrawBorder();
void setDrawBorder(bool enable);
bool getIsPassword();
void setIsPassword(bool enable);
bool getIsEnabled();
void setIsEnabled(bool enable);
bool getMultiLine();
void setMultiLine(bool enable);
bool getAutoScroll();
void setAutoScroll(bool enable);
};
void bindEditBox();