# InterfaceArea Interface area is the area where {ref}`MainScreen` interfaces can occupy. - - - (EInterfaceType)= ## EInterfaceType enum ```pascal EInterfaceType = enum(CLASSIC, PAPER, ANY); ``` Enum representing the types of {ref}`MainScreen` interfaces. - - - (TInterfaceArea)= ## TInterfaceArea type Type responsible to handle thefor handling general {ref}`MainScreen` interfaces. - - - ## MSInterface.IsOpen ```pascal function TInterfaceArea.IsOpen(typ: EInterfaceType = EInterfaceType.ANY): Boolean; ``` Returns True/False if any interface is found open. - - - ## MSInterface.WaitOpen ```pascal function TInterfaceArea.WaitOpen( typ: EInterfaceType = EInterfaceType.ANY; time: Integer = TICK; interval: Integer = -1 ): Boolean; ``` Returns True/False if any interface is found open within `time` milliseconds. - - - ## MSInterface.GetCloseButton function TInterfaceArea.GetCloseButton(): TBox; ``` Returns a TBox of the close button. Example: ```pascal {$I WaspLib/main.simba} begin ShowOnTarget(MSInterface.GetCloseButton()); end. ``` - - - ## MSInterface.Close function TInterfaceArea.Close(escape: Boolean): Boolean; function TInterfaceArea.Close(escapeProbability: Single = -1): Boolean; overload; ``` Attempts to close any interface currently open, depending on `escape` or `escapeProbability the function will either click the button or press escape key. Example: ```pascal WriteLn MSInterface.Close(); ``` - - - ## MSInterface variable Global {ref}`TInterfaceArea` variable.