In this example we are going to pack two rectangles in a box, and have a separator in the middle.
So we start we the window, background, box and rectangle creation, all pretty normal stuff:
Once we have our first rectangle in the box we create and add our separator:
And now we add our second rectangle and run the main loop:
This example will look like this: