avm2: Add Stage.softKeyboardRect

This commit is contained in:
Adrian Wielgosik 2024-04-24 20:15:24 +02:00 committed by Adrian Wielgosik
parent f30c04e8b4
commit 868ab45c98
1 changed files with 8 additions and 0 deletions

View File

@ -235,6 +235,14 @@ package flash.display {
public native function get stageFocusRect():Boolean;
public native function set stageFocusRect(value:Boolean):void;
[API("670")]
public function get softKeyboardRect() : Rectangle {
stub_getter("flash.display.Stage", "softKeyboardRect");
// This is technically a valid implementation most of the time,
// as 0x0 Rect is the expected value with no soft keyboard.
return new Rectangle(0, 0, 0, 0);
}
public native function get allowsFullScreen():Boolean;
public native function get allowsFullScreenInteractive():Boolean;