unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* bindings for fltk or tk?...
@ 2015-10-13 22:34 Robert lewko
  2015-10-13 22:51 ` Mike Gran
  2015-10-15 20:42 ` Arne Babenhauserheide
  0 siblings, 2 replies; 7+ messages in thread
From: Robert lewko @ 2015-10-13 22:34 UTC (permalink / raw)
  To: guile-user

Are there any bindings for graphical tool kits such as FLTK or TK?
The only set of bindings are for GNOME and I am not a fan of GNOME.
Nor to I wish to install all the dependencies that GNOME relies on
(OK, I am an old unix guy and I normally just install enlightenment,
so I don't have GNOME installed - call em weird).

If one were to be inclined to create such a binding to FLTK, what
would be the method that one would take?   From reading section on
"Foreign Function Interface" in the guile docs I think it could be
most easily done as follows:

for the C++ calls I would use the 'extern "c"' declaration to create c
functions for each call in the FLTK API and since C doesn't have
function overloading where the C++ method is overloaded the function
name would have to be modified to allow for multiple C functions that
call the overloaded C++ functions.

For the guile interface each function in the above interface would
have to have a top level guile object like (define fltk-func
(pointer->procedure ....)) to create the guile interface to the C
defined interface.

So, here;s my question.  As outlined above, is this the best way to
provide an API for FLTK?

-- 
“Many people, especially ignorant people, want to punish you for
speaking the truth, for being correct, for being you. Never apologize
for being correct, or for being years ahead of your time.” - Mahatma
Gandhi

All criteria fully governing this message and implied relationship may
be found at: newcommerce.me/robertlewko



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bindings for fltk or tk?...
  2015-10-13 22:34 bindings for fltk or tk? Robert lewko
@ 2015-10-13 22:51 ` Mike Gran
  2015-10-14 20:33   ` tomas
  2015-10-15 20:42 ` Arne Babenhauserheide
  1 sibling, 1 reply; 7+ messages in thread
From: Mike Gran @ 2015-10-13 22:51 UTC (permalink / raw)
  To: Robert lewko, guile-user@gnu.org




> On Tuesday, October 13, 2015 3:35 PM, Robert lewko <lewkor@gmail.com> wrote:
> > Are there any bindings for graphical tool kits such as FLTK or TK?

The last real update to Guile TK in the official Guile CVS repo was 18 years ago.
I'm sure that version is no longer working.
 
-Mike 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bindings for fltk or tk?...
  2015-10-13 22:51 ` Mike Gran
@ 2015-10-14 20:33   ` tomas
  0 siblings, 0 replies; 7+ messages in thread
From: tomas @ 2015-10-14 20:33 UTC (permalink / raw)
  To: Mike Gran; +Cc: guile-user@gnu.org, Robert lewko

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Oct 13, 2015 at 10:51:51PM +0000, Mike Gran wrote:
> 
> 
> 
> > On Tuesday, October 13, 2015 3:35 PM, Robert lewko <lewkor@gmail.com> wrote:
> > > Are there any bindings for graphical tool kits such as FLTK or TK?
> 
> The last real update to Guile TK in the official Guile CVS repo was 18 years ago.
> I'm sure that version is no longer working.

Tcl and Tk changed a lot since then. Among other things, much of Tk relies on
Tcl these days (which makes sense): binding Tk would imply to carry around an
embedded Tcl, I guess. (One would have to peek at how Perl and Python do it).

Alternatively you can set up a widget "server" in TclTk and talk to it (AFAIK
some Lisp does it this way).

Yes, I'd find such a beast interesting too (whichever implementation makes
more sense).

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlYevAMACgkQBcgs9XrR2kYT6wCeLFBLdgdjDo1X6Y3i36GBfvNA
1ssAnRHFT8WdGf4sg+7iLnOB6nLKd2jw
=PZ33
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bindings for fltk or tk?...
  2015-10-13 22:34 bindings for fltk or tk? Robert lewko
  2015-10-13 22:51 ` Mike Gran
@ 2015-10-15 20:42 ` Arne Babenhauserheide
  2015-10-15 22:49   ` Amirouche Boubekki
  2015-10-16  6:16   ` tomas
  1 sibling, 2 replies; 7+ messages in thread
From: Arne Babenhauserheide @ 2015-10-15 20:42 UTC (permalink / raw)
  To: guile-user; +Cc: Robert lewko

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]

Am Dienstag, 13. Oktober 2015, 16:34:24 schrieb Robert lewko:
> Are there any bindings for graphical tool kits such as FLTK or TK?
> The only set of bindings are for GNOME and I am not a fan of GNOME.
> Nor to I wish to install all the dependencies that GNOME relies on
> (OK, I am an old unix guy and I normally just install enlightenment,
> so I don't have GNOME installed - call em weird).

There are quite a few who try that. I did, too, and only stopped when
I realized that avoiding gnome tools just made my computer harder to
use.

> So, here;s my question.  As outlined above, is this the best way to
> provide an API for FLTK?

I don’t have experience with that, so I can’t really help, but it
would be interesting for me to see it — in the way you rightfully
called weird above :)

Best wishes,
Arne

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 299 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bindings for fltk or tk?...
  2015-10-15 20:42 ` Arne Babenhauserheide
@ 2015-10-15 22:49   ` Amirouche Boubekki
  2015-10-16  6:16   ` tomas
  1 sibling, 0 replies; 7+ messages in thread
From: Amirouche Boubekki @ 2015-10-15 22:49 UTC (permalink / raw)
  To: Arne Babenhauserheide
  Cc: guile-user, Robert lewko,
	guile-user-bounces+amirouche=hypermove.net

Le 2015-10-15 22:42, Arne Babenhauserheide a écrit :
> Am Dienstag, 13. Oktober 2015, 16:34:24 schrieb Robert lewko:
>> Are there any bindings for graphical tool kits such as FLTK or TK?
>> The only set of bindings are for GNOME and I am not a fan of GNOME.
>> Nor to I wish to install all the dependencies that GNOME relies on
>> (OK, I am an old unix guy and I normally just install enlightenment,
>> so I don't have GNOME installed - call em weird).

AFAIK, using gnome clutter doesn't require all gnome desktop. The only 
dependencies is glib and cogl. Clutter provides only low level widgets 
aka. actors. There is a library called clutter-mx that provides higher 
level actors but I've read that it's not maintained.

Otherwise if you want to bind FLTK to guile, there is ffi bindings 
included in guile, maybe you will be better served by the method used in 
guile-clutter. There's various examples of guile bindings among which 
guile-wiredtiger [1].



[1] 
https://git.framasoft.org/a-guile-mind/guile-wiredtiger/blob/master/wiredtiger.scm#L68



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bindings for fltk or tk?...
  2015-10-15 20:42 ` Arne Babenhauserheide
  2015-10-15 22:49   ` Amirouche Boubekki
@ 2015-10-16  6:16   ` tomas
  2015-10-16 15:47     ` Robert lewko
  1 sibling, 1 reply; 7+ messages in thread
From: tomas @ 2015-10-16  6:16 UTC (permalink / raw)
  To: Arne Babenhauserheide; +Cc: guile-user, Robert lewko

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Oct 15, 2015 at 10:42:40PM +0200, Arne Babenhauserheide wrote:
> Am Dienstag, 13. Oktober 2015, 16:34:24 schrieb Robert lewko:
> > Are there any bindings for graphical tool kits such as FLTK or TK?
> > The only set of bindings are for GNOME and I am not a fan of GNOME.
> > Nor to I wish to install all the dependencies that GNOME relies on
> > (OK, I am an old unix guy and I normally just install enlightenment,
> > so I don't have GNOME installed - call em weird).
> 
> There are quite a few who try that. I did, too, and only stopped when
> I realized that avoiding gnome tools just made my computer harder to
> use.

Seriously off-topic: yes those weirdos are out there, believe me (I'm
one of them :-)

- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlYgliQACgkQBcgs9XrR2kZZ2QCfWUR96TU8nHYEvJ2rlntjoKv8
ATcAn0qgVu/Gh1XTZJpAYazvf3vs07Lm
=SPdE
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: bindings for fltk or tk?...
  2015-10-16  6:16   ` tomas
@ 2015-10-16 15:47     ` Robert lewko
  0 siblings, 0 replies; 7+ messages in thread
From: Robert lewko @ 2015-10-16 15:47 UTC (permalink / raw)
  To: tomas; +Cc: guile-user

Actually, if you want the specifics, I use KDE for my desktop on my
laptop and my personal desktop computer.  On my personal server at
home I install something light, like enlightenment.  If I deploy a
server on the internet I try to keep it as lean as possible.

On Fri, Oct 16, 2015 at 12:16 AM,  <tomas@tuxteam.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, Oct 15, 2015 at 10:42:40PM +0200, Arne Babenhauserheide wrote:
>> Am Dienstag, 13. Oktober 2015, 16:34:24 schrieb Robert lewko:
>> > Are there any bindings for graphical tool kits such as FLTK or TK?
>> > The only set of bindings are for GNOME and I am not a fan of GNOME.
>> > Nor to I wish to install all the dependencies that GNOME relies on
>> > (OK, I am an old unix guy and I normally just install enlightenment,
>> > so I don't have GNOME installed - call em weird).
>>
>> There are quite a few who try that. I did, too, and only stopped when
>> I realized that avoiding gnome tools just made my computer harder to
>> use.
>
> Seriously off-topic: yes those weirdos are out there, believe me (I'm
> one of them :-)
>
> - -- t
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlYgliQACgkQBcgs9XrR2kZZ2QCfWUR96TU8nHYEvJ2rlntjoKv8
> ATcAn0qgVu/Gh1XTZJpAYazvf3vs07Lm
> =SPdE
> -----END PGP SIGNATURE-----



-- 
“If a nation expects to be ignorant and free, it expects what never
was and never will be.” - Thomas Jefferson

All criteria fully governing this message and implied relationship may
be found at: newcommerce.me/robertlewko



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-16 15:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-13 22:34 bindings for fltk or tk? Robert lewko
2015-10-13 22:51 ` Mike Gran
2015-10-14 20:33   ` tomas
2015-10-15 20:42 ` Arne Babenhauserheide
2015-10-15 22:49   ` Amirouche Boubekki
2015-10-16  6:16   ` tomas
2015-10-16 15:47     ` Robert lewko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).