elena-lang icon indicating copy to clipboard operation
elena-lang copied to clipboard

GUI markup script / library

Open arakov opened this issue 7 years ago • 12 comments

A new UI library to be similar to .NET WPF

arakov avatar Jun 19 '17 07:06 arakov

It will use DirectX for Windows version and potentially OpenGL for Linux

arakov avatar Jun 19 '17 08:06 arakov

The DX or OpenGL will be used to drawn buttons, menus, textbox and etc ?

bencz avatar Jun 19 '17 12:06 bencz

yes, exactly like in WPF.

arakov avatar Jun 19 '17 13:06 arakov

I see... This will be really interesting!! I'm ready to help with whatever is possible

bencz avatar Jun 19 '17 13:06 bencz

This can be usefull: http://www.chadvernon.com/blog/resources/managed-directx-2/creating-a-gui-part-1/

bencz avatar Jun 19 '17 19:06 bencz

Yes, I have seen it. Unfortunately it is in C#, I need native library. I found this - https://github.com/Microsoft/DirectX-Graphics-Samples

arakov avatar Jun 19 '17 20:06 arakov

Oh.... ok, I found this: https://github.com/ocornut/imgui

bencz avatar Jun 20 '17 12:06 bencz

thanks, I will look

arakov avatar Jun 21 '17 05:06 arakov

Will the system support something like XAML?

bencz avatar Jun 23 '17 12:06 bencz

Yes, I started this exactly for that reason: declarative UI

arakov avatar Jun 23 '17 12:06 arakov

I see... Will be interesting...

<button>
    <text>Click-me</text>
    <event>{{ call elena method }}</event>
</button>

The event part will be interesting.... will be used something like the ecode ? Or will be possible to call a method directly ?

bencz avatar Jun 23 '17 13:06 bencz

It will use ELENA Script Engine. So for the dynamic version it will create a dynamic tape, for the static one it will compile it directly

arakov avatar Jun 23 '17 13:06 arakov