Elementary segment control widget

This code snippet demonstrates how to create and use elementary segment control widget.