ELENA-LANG / elena-lang

ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers, run-time interfaces
https://elena-lang.github.io/
MIT License
236 stars 26 forks source link

GUI markup script / library #315

Open arakov opened 7 years ago

arakov commented 7 years ago

A new UI library to be similar to .NET WPF

arakov commented 7 years ago

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

bencz commented 7 years ago

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

arakov commented 7 years ago

yes, exactly like in WPF.

bencz commented 7 years ago

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

bencz commented 7 years ago

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

arakov commented 7 years ago

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

bencz commented 7 years ago

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

arakov commented 7 years ago

thanks, I will look

bencz commented 7 years ago

Will the system support something like XAML?

arakov commented 7 years ago

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

bencz commented 7 years ago

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 ?

arakov commented 7 years ago

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