Jump to page: 1 2
Thread overview
Dynamic Bindings to libui (x-platform GUI)
May 24, 2016
extrawurst
May 24, 2016
Basile B.
May 25, 2016
Zekereth
May 25, 2016
Basile B.
May 25, 2016
Mike Parker
May 25, 2016
extrawurst
May 25, 2016
Nick Sabalausky
May 25, 2016
extrawurst
Nov 16, 2016
Kagamin
Nov 16, 2016
Nick Sabalausky
May 26, 2016
ketmar
May 26, 2016
Basile B.
May 28, 2016
ketmar
Jan 09
helxi
May 24, 2016
Hey folks,

libui is a crossplatform GUI lib written in C. This makes it a perfect candidate to be used in D!

What they say about libui on their site:
"Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports."

find libui on github:
https://github.com/andlabs/libui

So here are the inofficial Derelict Bindings to it: https://github.com/Extrawurst/DerelictLibui

I tested them on both windows and mac osx so far. Any linux user is welcome to test it on there aswell.

Let me know if you find any issues.

-Stephan
May 24, 2016
On Tuesday, 24 May 2016 at 20:52:54 UTC, extrawurst wrote:
> Hey folks,
>
> libui is a crossplatform GUI lib written in C. This makes it a perfect candidate to be used in D!
>
> What they say about libui on their site:
> "Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports."
>
> find libui on github:
> https://github.com/andlabs/libui
>
> So here are the inofficial Derelict Bindings to it: https://github.com/Extrawurst/DerelictLibui

Thx !

>
> I tested them on both windows and mac osx so far. Any linux user is welcome to test it on there aswell.

Look at the pull requests ;)

>
> Let me know if you find any issues.
>
> -Stephan


May 25, 2016
On Tuesday, 24 May 2016 at 20:52:54 UTC, extrawurst wrote:
> Hey folks,
>
> libui is a crossplatform GUI lib written in C. This makes it a perfect candidate to be used in D!
>
> What they say about libui on their site:
> "Simple and portable (but not inflexible) GUI library in C that uses the native GUI technologies of each platform it supports."
>
> find libui on github:
> https://github.com/andlabs/libui
>
> So here are the inofficial Derelict Bindings to it: https://github.com/Extrawurst/DerelictLibui
>
> I tested them on both windows and mac osx so far. Any linux user is welcome to test it on there aswell.
>
> Let me know if you find any issues.
>
> -Stephan

I had to comment out instances of uiControlVerifyDestroy on Linux. Seems libui was updated and removed/moved that function:

Removed uiControlVerifyDestroy(); that is now part of uiFreeControl() itself.

Other than that it seems to work great on Linux. Thanks for this!
May 25, 2016
On Wednesday, 25 May 2016 at 00:56:00 UTC, Zekereth wrote:
> I had to comment out instances of uiControlVerifyDestroy on Linux. Seems libui was updated and removed/moved that function:
>
> Removed uiControlVerifyDestroy(); that is now part of uiFreeControl() itself.

There's no problem when you build libui from the git submodule. Actually I think it's safer to do this because the C shared lib and the bindings are in sync.
May 25, 2016
On Tuesday, 24 May 2016 at 20:52:54 UTC, extrawurst wrote:
> Hey folks,

>
> So here are the inofficial Derelict Bindings to it: https://github.com/Extrawurst/DerelictLibui
>
> I tested them on both windows and mac osx so far. Any linux user is welcome to test it on there aswell.
>
> Let me know if you find any issues.
>
> -Stephan

Cool. I've got this project on my github watchlist and have had a Derelict binding on my TODO list. I was waiting for it to get out of alpha status. I don't particularly like maintaining bindings to libraries I can' t be sure are going to keep a stable API. Doesn't look like it's been changing too much though.


May 25, 2016
On Wednesday, 25 May 2016 at 02:34:03 UTC, Mike Parker wrote:
> On Tuesday, 24 May 2016 at 20:52:54 UTC, extrawurst wrote:
>> Hey folks,
>
>>
>> So here are the inofficial Derelict Bindings to it: https://github.com/Extrawurst/DerelictLibui
>>
>> I tested them on both windows and mac osx so far. Any linux user is welcome to test it on there aswell.
>>
>> Let me know if you find any issues.
>>
>> -Stephan
>
> Cool. I've got this project on my github watchlist and have had a Derelict binding on my TODO list. I was waiting for it to get out of alpha status. I don't particularly like maintaining bindings to libraries I can' t be sure are going to keep a stable API. Doesn't look like it's been changing too much though.

Yeah I know what you mean about stability but thats the reason why I am not using a specific release of libui but simply submodule to the exact version I am compatible with.

Also some other libs I am having on my rodadmap do use use any tags/versions ;( like nuklear wich is next on my list: https://github.com/vurtun/nuklear

Cheers,
Stephan
May 25, 2016
On 05/24/2016 04:52 PM, extrawurst wrote:
>
> So here are the inofficial Derelict Bindings to it:
> https://github.com/Extrawurst/DerelictLibui
>

Some D-oriented docs and example code would be nice.

>
> find libui on github:
> https://github.com/andlabs/libui

Hmm:

> uses the native GUI technologies of each platform it supports
> ...
> Windows: Windows Vista SP2 with Platform Update or newer
> Unix: GTK+ 3.4 or newer
> Mac OS X: OS X 10.7 or newer

Drives me nuts when people count "Always uses GTK on Linux" as "Native UI". It's like those programs that do everything completely Ubuntu-centric whenever possible and then advertise "Linux Support". I *really* wish GTK would just die already.

May 25, 2016
On Wednesday, 25 May 2016 at 16:47:30 UTC, Nick Sabalausky wrote:
> On 05/24/2016 04:52 PM, extrawurst wrote:
>>
>> So here are the inofficial Derelict Bindings to it:
>> https://github.com/Extrawurst/DerelictLibui
>>
>
> Some D-oriented docs and example code would be nice.

There is a plain conversion of the libui example:
https://github.com/Extrawurst/DerelictLibui/blob/master/source/app.d

>
> [..snip GTK rage..]
May 26, 2016
great lib (libui). sadly, no GNU/Linux support in there yet. gtk+3 is complete crap, and it doesn't even *have* to present in system (it isn't in my case). and libui cannot fallback to gtk+2. it's sad: i was very excited by the nice C UI library (even if it is actually a wrapper).

let's hope libui author will make a working GNU/Linux version.
May 26, 2016
On Thursday, 26 May 2016 at 17:17:00 UTC, ketmar wrote:
> great lib (libui). sadly, no GNU/Linux support in there yet. gtk+3 is complete crap, and it doesn't even *have* to present in system (it isn't in my case). and libui cannot fallback to gtk+2. it's sad: i was very excited by the nice C UI library (even if it is actually a wrapper).
>
> let's hope libui author will make a working GNU/Linux version.

Mmmh...it works on linux. You just have to install gtk3-devel (>3.10 is OK) from the official package manager of your distro, then run make in the libui submodule folder. It's even probably the platform where it's the easyer to setup.
« First   ‹ Prev
1 2