Maths functions scripting api
This commit is contained in:
31
Nuake/src/UI/Nodes/TextInput.h
Normal file
31
Nuake/src/UI/Nodes/TextInput.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#include <string>
|
||||
#include "Node.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
namespace UI
|
||||
{
|
||||
class TextInput : public Node
|
||||
{
|
||||
private:
|
||||
std::string content = "";
|
||||
bool IsFocus = false;
|
||||
|
||||
Ref<Node> Background;
|
||||
public:
|
||||
TextInput()
|
||||
{
|
||||
Background = CreateRef<Node>();
|
||||
Background->NormalStyle.MinWidth = {200, Layout::Unit::PIXEL };
|
||||
Background->NormalStyle.MinHeight = { 30, Layout::Unit::PIXEL };
|
||||
|
||||
Childrens.push_back(Background);
|
||||
}
|
||||
|
||||
void Draw()
|
||||
{
|
||||
Renderer2D::DrawRect()
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user