Base accessibility API.
This commit is contained in:
parent
af2c713971
commit
b106dfd4f9
124 changed files with 7631 additions and 181 deletions
|
|
@ -35,6 +35,7 @@ void TextLine::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method(D_METHOD("set_direction", "direction"), &TextLine::set_direction);
|
||||
ClassDB::bind_method(D_METHOD("get_direction"), &TextLine::get_direction);
|
||||
ClassDB::bind_method(D_METHOD("get_inferred_direction"), &TextLine::get_inferred_direction);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "direction", PROPERTY_HINT_ENUM, "Auto,Left-to-right,Right-to-left"), "set_direction", "get_direction");
|
||||
|
||||
|
|
@ -200,6 +201,10 @@ TextServer::Direction TextLine::get_direction() const {
|
|||
return TS->shaped_text_get_direction(rid);
|
||||
}
|
||||
|
||||
TextServer::Direction TextLine::get_inferred_direction() const {
|
||||
return TS->shaped_text_get_inferred_direction(rid);
|
||||
}
|
||||
|
||||
void TextLine::set_orientation(TextServer::Orientation p_orientation) {
|
||||
TS->shaped_text_set_orientation(rid, p_orientation);
|
||||
dirty = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue