From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c32fe290813aec20 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!out03b.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!news.ecp.fr!club-internet.fr!feedme-small.clubint.net!feeder1-1.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: New Ada portable GUI Library? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <6d63c543-0a35-4c39-a330-98c63a24f64d@i3g2000hsf.googlegroups.com> <1365533.nRhg4MZKNK@linux1.krischik.com> <4e5ffa74-e1d6-4e80-9dd9-824df475a60c@e10g2000prf.googlegroups.com> <970df333-8c12-4f5d-b32b-ded6a84a0195@v4g2000hsf.googlegroups.com> Date: Sun, 13 Jan 2008 09:13:24 +0100 Message-ID: <187iruircnfuu$.oc2g47zys18k.dlg@40tude.net> NNTP-Posting-Date: 13 Jan 2008 09:13:26 CET NNTP-Posting-Host: ce164961.newsspool4.arcor-online.net X-Trace: DXC=2ERAe7IbU2ZI?44J>Z[:RQ4IUK\BH3YRQ]`]oVgPUXQDNcfSJ;bb[UIRnRBaCd On Sat, 12 Jan 2008 15:01:43 -0800 (PST), Lucretia wrote: > Like I said, a thin C layer abstraction which is then imported into an > Ada library and turned into a proper Ada GUI with native controls, > this is the best way. For example: > > Ada GUI Thick bindings > ------------------------ > Ada GUI Thin bindings > ------------------------ > C abstraction layer <- Can be provided via C or Ada depending on > lowest layer > ------------------------ > X11 | GtkAda | QT > > I know three is an X11 binding to Ada but it is old and uses > preprocessing and if you want this library to be portable, you've no > hope where that's concerned. Hence the use of a set of C calls whether > these are written in C or Ada (with export(C, ...) pragmas). Gtk and Qt are themselves thick bindings. It makes no sense to use them as a low-level rendering platform. An all-Ada GUI design should IMO look like: Ada GUI library ---------------------------------------- Ada rendering platform abstraction layer | Ada | Ada native bindings, engine-specific -------- | ----------------------------- X11 | Win32 GUI API The major problem is a good abstraction layer with a working concept of inter-tasking signal handler composition. This is a weakness of most known Ada GUI libraries. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de