mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 14:45:04 -06:00
Some checks are pending
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux.sh, gcc, rpcs3/rpcs3-ci-jammy:1.1, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (a1d35836e8d45bfc6f63c26f0a3e5d46ef622fe1, rpcs3/rpcs3-binaries-linux-arm64, /rpcs3/.ci/build-linux-aarch64.sh, clang, rpcs3/rpcs3-ci-jammy-aarch64:1.1, ubuntu-24.04-arm) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (d812f1254a1157c80fd402f94446310560f54e5f, rpcs3/rpcs3-binaries-linux, /rpcs3/.ci/build-linux.sh, clang, rpcs3/rpcs3-ci-jammy:1.1, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
43 lines
729 B
C++
43 lines
729 B
C++
#pragma once
|
|
|
|
#include "overlay_controls.h"
|
|
|
|
namespace rsx
|
|
{
|
|
namespace overlays
|
|
{
|
|
struct edit_text : public label
|
|
{
|
|
enum class direction
|
|
{
|
|
up,
|
|
down,
|
|
left,
|
|
right
|
|
};
|
|
|
|
usz caret_position = 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();
|
|
void del();
|
|
|
|
compiled_resource& get_compiled() override;
|
|
};
|
|
}
|
|
}
|