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

Constraint based layout #3

Closed
ghost opened this issue Nov 29, 2017 · 3 comments
Closed

Constraint based layout #3

ghost opened this issue Nov 29, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2017

I don't think raygui has one ?

Facebook as a full CSS flexbox one we could use.

Am thinking if trying to integrate but want to check others thoughts in the usefulness

@raysan5
Copy link
Owner

raysan5 commented Nov 30, 2017

raygui doesn't has one but I try to keep the library small and single-file.

@ghost
Copy link
Author

ghost commented Nov 30, 2017

Hey @raysan5

Could you have a look and see if its not too bulky ??
It also looks very well supported..

The facebook code compiles to a small file.
https://github.com/facebook/yoga

There is also a golang port.
https://github.com/kjk/flex

A nice blog about it:
https://blog.kowalczyk.info/article/wN9R/experience-porting-4.5k-loc-of-c-to-go-facebooks-css-flexbox-implementation-yoga.html

The reason i bring this up is because i am playing around with raygui for golang, since i prefer golang. But i think its makes more sense to use the c yoga lib, so everyone gets it rather than doing it at the golang level.

That of course precludes this being useful. I think it is because:

  • GUI control layout is a very tough problem, and a good maths lib that can do it using a well known paradigm seems like a good approach
  • Will work anyway, even the with the html5 output from raylib, since its not DOM dependent.

Interested in hearing your thoughts.

@raysan5
Copy link
Owner

raysan5 commented Jan 1, 2018

Hi @gedw99,

Yoga seems a very interesting library but integrating it with raygui is out of my scope, I try to keep raygui small and single-file, also I'm working on abstracting it enough to avoid external dependencies like raylib (used for graphics drawing and inputs).

Just closing this issue for now.

@raysan5 raysan5 closed this as completed Jan 1, 2018
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

1 participant