Base accessibility API.

This commit is contained in:
Pāvels Nadtočajevs 2025-03-21 16:42:23 +02:00
parent af2c713971
commit b106dfd4f9
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
124 changed files with 7631 additions and 181 deletions

View file

@ -34,10 +34,25 @@
#include "scene/gui/range.h"
#include "scene/main/timer.h"
class SpinBoxLineEdit : public LineEdit {
GDCLASS(SpinBoxLineEdit, LineEdit);
protected:
void _notification(int p_what);
static void _bind_methods() {}
void _accessibility_action_inc(const Variant &p_data);
void _accessibility_action_dec(const Variant &p_data);
public:
SpinBoxLineEdit() {}
};
class SpinBox : public Range {
GDCLASS(SpinBox, Range);
LineEdit *line_edit = nullptr;
SpinBoxLineEdit *line_edit = nullptr;
bool update_on_text_changed = false;
bool accepted = true;