wookay/Poptart.jl

Future plans

Opened this issue · 4 comments

I have been improving Poptart recently.

The improvements I have made so far is mainly for my project https://github.com/Eggiverse/ComoniconGUI.jl.

I hope we can have a plan deciding what functions to add in the near future.

The controls that exist in CImgui that haven't been wrapped in Poptart should be the main part.

thanks for your contribution about this project!

I'm currently working for a personal project that drawing the human motions.
and now, I'm very interested in Pluto project as you might already know that.
It's nice to be compatible with Pluto and Poptart in some way.

Are you interested in code generation?

In my project, Poptart GUI is generated based on given function.

I am thinking about making an independent package for Poptart code generation alone.
Functions in this package gives expressions that generate a piece of GUI.

A simple example in this package is:

function XButton(;title)
    quote
        Poptart.Desktop.Button(title=$title)
    end
end

function XButton(button_name::Symbol; title)
    quote
        $button_name = Poptart.Desktop.Button(title=$title)
    end
end

About Pluto. I think it is quite hard to migrate Poptart directly to a web based GUI, but it would be nice if we can have a unified API for web and non-web based GUI.

Another thing I am thinking about is to provide an API to define a control and its event in one place.

It is probably a macro.

If you find it necessary to do so, I will make a pull request.