Nice codes from the tip (that nobody told you about)

Sometimes the Juce Team adds useful functionalities/codes, but they are not trumpeting about it, and you may miss them if you don’t follow the develop branch closely.

I start this thread so that we can mention them here.

The objective is to learn about some cool code snippets that have been added to Juce but slipped under our radar. That also might motivate people to use/test the tip, or update more frequently.

8 Likes

I’ll start with this really useful and recent addition from Jules :

3 Likes

damn, that is handy!

1 Like

We’ve just added a lambda parameterisation of NormalisableRange, which makes it much more flexible.

4 Likes

Grid layouts!

https://github.com/WeAreROLI/JUCE/commit/2bbd2b9785ea285d509cd5a521a077b13fbe8671

Implemented from the CSS Grid Layout specification as described at:
https://css-tricks.com/snippets/css/complete-guide-grid/

(note that there is a ‘GridDemo’ in the juceDemo app)

3 Likes

https://github.com/WeAreROLI/JUCE/commit/ab4013e289d83799003de07ec53463e46b3c197e

and

https://github.com/WeAreROLI/JUCE/commit/9d692d0d8b557db80fa66e76d95ec93ef4b7d942

Rail

2 Likes

Aligning or resizing a multiple-selection of components in the PROJUCER GUI Editor is now possible.

Also works in the Graphics tab.

https://github.com/WeAreROLI/JUCE/commit/a457eb8ad1413ad787d0e4671d952f63b3047448

8 Likes

There was a small bug in that commit, you’ll want this fix before you use it.