mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 01:18:01 -05:00
41 lines
1.7 KiB
C++
41 lines
1.7 KiB
C++
#pragma once
|
|
|
|
#include <Geode/DefaultInclude.hpp>
|
|
#include <Geode/binding/CCTextInputNode.hpp>
|
|
#include <cocos2d.h>
|
|
|
|
namespace geode {
|
|
class GEODE_DLL InputNode : public cocos2d::CCMenuItem {
|
|
protected:
|
|
cocos2d::extension::CCScale9Sprite* m_bgSprite;
|
|
CCTextInputNode* m_input;
|
|
|
|
bool init(float, float, char const*, char const*, std::string const&, int);
|
|
bool init(float, char const*, char const*, std::string const&, int);
|
|
|
|
public:
|
|
[[deprecated("Use geode::TextInput from the ui/TextInput.hpp header instead")]]
|
|
static InputNode* create(
|
|
float width, char const* placeholder, char const* fontFile, std::string const& filter,
|
|
int limit
|
|
);
|
|
[[deprecated("Use geode::TextInput from the ui/TextInput.hpp header instead")]]
|
|
static InputNode* create(
|
|
float width, char const* placeholder, std::string const& filter, int limit
|
|
);
|
|
[[deprecated("Use geode::TextInput from the ui/TextInput.hpp header instead")]]
|
|
static InputNode* create(float width, char const* placeholder, std::string const& filter);
|
|
[[deprecated("Use geode::TextInput from the ui/TextInput.hpp header instead")]]
|
|
static InputNode* create(float width, char const* placeholder, char const* fontFile);
|
|
[[deprecated("Use geode::TextInput from the ui/TextInput.hpp header instead")]]
|
|
static InputNode* create(float width, char const* placeholder);
|
|
|
|
CCTextInputNode* getInput() const;
|
|
cocos2d::extension::CCScale9Sprite* getBG() const;
|
|
|
|
void setEnabled(bool enabled) override;
|
|
|
|
void setString(std::string const&);
|
|
std::string getString();
|
|
};
|
|
}
|