From 32062c660307d5b34f46b1f7b75d17a184930e71 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 27 May 2016 04:03:00 +1000 Subject: Text buffers, access types and line lengths --- fltk-widgets.ads | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'fltk-widgets.ads') diff --git a/fltk-widgets.ads b/fltk-widgets.ads index de9afdb..9c696ed 100644 --- a/fltk-widgets.ads +++ b/fltk-widgets.ads @@ -1,14 +1,13 @@ with FLTK.Enums; use FLTK.Enums; -with Ada.Finalization; -private with System; package FLTK.Widgets is - type Widget is abstract new Ada.Finalization.Limited_Controlled with private; + type Widget is abstract new Wrapper with private; + type Widget_Access is access all Widget; type Font_Size is new Natural; @@ -67,14 +66,7 @@ package FLTK.Widgets is private - type Widget is abstract new Ada.Finalization.Limited_Controlled with - record - Void_Ptr : System.Address; - end record; - - - overriding procedure Initialize - (This : in out Widget); + type Widget is abstract new Wrapper with null record; end FLTK.Widgets; -- cgit