package body Editors is function Create (X, Y, W, H : in Integer; Label_Text : in String) return Editor_Window is begin return This : Editor_Window := (Double_Window'(Create (X, Y, W, H, Label_Text)) with The_Editor => Text_Editor'(Create (0, 30, 640, 370, ""))) do This.Add (This.The_Editor); end return; end Create; function Create (W, H : in Integer) return Editor_Window is begin return Create (0, 0, W, H, "AdaPad"); end Create; function Get_Buffer (This : in Editor_Window) return Text_Buffer_Cursor is begin return This.The_Editor.Get_Buffer; end Get_Buffer; procedure Set_Buffer (This : in out Editor_Window; Buff : in out Text_Buffer) is begin This.The_Editor.Set_Buffer (Buff); end Set_Buffer; end Editors;