mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
41 lines
735 B
C++
41 lines
735 B
C++
#include "overlay_controls.h"
|
|
|
|
namespace rsx
|
|
{
|
|
namespace overlays
|
|
{
|
|
struct edit_text : public label
|
|
{
|
|
enum class direction
|
|
{
|
|
up,
|
|
down,
|
|
left,
|
|
right
|
|
};
|
|
|
|
u16 caret_position = 0;
|
|
u16 vertical_scroll_offset = 0;
|
|
|
|
bool m_reset_caret_pulse = false;
|
|
bool password_mode = false;
|
|
|
|
std::u32string value;
|
|
std::u32string placeholder;
|
|
|
|
using label::label;
|
|
|
|
void set_text(const std::string& text) override;
|
|
void set_unicode_text(const std::u32string& text) override;
|
|
|
|
void set_placeholder(const std::u32string& placeholder_text);
|
|
|
|
void move_caret(direction dir);
|
|
void insert_text(const std::u32string& str);
|
|
void erase();
|
|
|
|
compiled_resource& get_compiled() override;
|
|
};
|
|
}
|
|
}
|