wookay / Poptart.jl

🏂 GUI programming in Julia based on CImGui.jl
46 stars 6 forks source link

Improve window closing logic and add more functionalities #20

Closed Eggiverse closed 4 years ago

Eggiverse commented 4 years ago

I improved the logic of closing window and add two exported functions: OpenWindow and CloseWindow.

An example is added how they work.

wookay commented 4 years ago

we can extend these functions for Window.

Base.isopen
Base.open
Base.close
Eggiverse commented 4 years ago

we can extend these functions for Window.

Base.isopen
Base.open
Base.close

If we do this for Window, perhaps we should do this for Popup as well.

wookay commented 4 years ago

there's CImGui.OpenPopup and not exists the CImGui.ClosePopup. but could be allowing open(popup).