     var setCount: Int = 0
     
     /**
-    ...
+    Custom initializer - initializes the menu and creates all its subviews. If delegate isn't set the cells will be empty.
+    
+    :param: frame Default Cocoa API - The frame rectangle for the view, measured in points.
+    :param: itemCount Expected number of items. Their size is calculated proportionally
+    :param: delegate Delegate object that will determine appearance of the items in the menu and handle their events.
     */
     convenience init(frame: CGRect, itemCount: Int, delegate: T2GNavigationBarMenuDelegate?) {
         self.init(frame: frame)

import UIKit

/**
...
*/
protocol T2GNavigationBarMenuDelegate {
    /**
    ...
    
    :param: index
    :param: size
    :returns:
    */
    func viewForCell(index: Int, size: CGSize) -> UIView
    
    /**
    ...
    
    :param: index
    */
    func didSelectButton(index: Int)
}

/**
...
*/
class T2GNavigationBarMenu: UIView {
    var delegate: T2GNavigationBarMenuDelegate?

    }
    
    /**
    Redirects button action to its delegate.
    
    :param: sender The button on which the action has been called.
    */
    internal func buttonClicked(sender: T2GColoredButton) {
        self.delegate?.didSelectButton(sender.tag)
    }
}
