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


#1

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.


#2

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


#3

damn, that is handy!


#4

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


#5

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)


#6

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

and

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

Rail


#7

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

Also works in the Graphics tab.