Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the purpose of Graphics.UI.FLTK.LowLevel.Base.Button? #112

Closed
mitchellwrosen opened this issue Apr 22, 2019 · 2 comments
Closed

Comments

@mitchellwrosen
Copy link
Contributor

I see that Button extends Base.Button, but the four functions mentioned in its docs (handle, hide, resize, and showWidget) all exist at the Widget level.

@deech
Copy link
Owner

deech commented Apr 22, 2019

These are functions that can be overridden on the Haskell side and are typically the bits of the application that need the most debugging/optimizing. Having them "pinned" to Button makes for much nicer error messages on the Haskell side, makes it easier to work with gdb when needed and, maybe this is fixed now, but I found it makes for nicer memory/perf. profiling reports.

@mitchellwrosen
Copy link
Contributor Author

Gotcha, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants