mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Base accessibility API.
This commit is contained in:
parent
af2c713971
commit
b106dfd4f9
124 changed files with 7631 additions and 181 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue