ALRadialMenuDelegate Protocol Reference
Conforms to | NSObject |
Declared in | ALRadialMenu.h |
Tasks
-
– numberOfItemsInRadialMenu:
when called with this message delegate’s should return the number of items that will be displayed
required method -
– arcSizeForRadialMenu:
when called with this message delegate’s should return the size of the arc (how far the objects are spread) the items will be draw in
required method -
– arcRadiusForRadialMenu:
when called with this message delegate’s should return the arc radius (distance between the button and objects final resting spot)
required method -
– radialMenu:imageForIndex:
delegate’s should return the image to be displayed at the the given index
required method -
– radialMenu:didSelectItemAtIndex:
this method will notify the delegates any time a button from the radial menu is pressed
required method -
– arcStartForRadialMenu:
when called with this message delegate’s should return the start of the arc.
-
– buttonSizeForRadialMenu:
when called with this message delegate’s should return the size of the button.
Instance Methods
arcRadiusForRadialMenu:
when called with this message delegate’s should return the arc radius (distance between the button and objects final resting spot)
- (NSInteger)arcRadiusForRadialMenu:(ALRadialMenu *)radialMenu
Parameters
- radialMenu
the radial menu object making the request
Return Value
radius for the arc
Declared In
ALRadialMenu.h
arcSizeForRadialMenu:
when called with this message delegate’s should return the size of the arc (how far the objects are spread) the items will be draw in
- (NSInteger)arcSizeForRadialMenu:(ALRadialMenu *)radialMenu
Parameters
- radialMenu
the radial menu object making the request
Return Value
size of the arc
Declared In
ALRadialMenu.h
arcStartForRadialMenu:
when called with this message delegate’s should return the start of the arc.
- (NSInteger)arcStartForRadialMenu:(ALRadialMenu *)radialMenu
Parameters
- radialMenu
the radial menu object making the request
Return Value
start of the arc
Declared In
ALRadialMenu.h
buttonSizeForRadialMenu:
when called with this message delegate’s should return the size of the button.
- (float)buttonSizeForRadialMenu:(ALRadialMenu *)radialMenu
Parameters
- radialMenu
the radial menu object making the request
Return Value
size of the button
Declared In
ALRadialMenu.h
numberOfItemsInRadialMenu:
when called with this message delegate’s should return the number of items that will be displayed
- (NSInteger)numberOfItemsInRadialMenu:(ALRadialMenu *)radialMenu
Parameters
- radialMenu
the radial menu object making the request
Return Value
number of items to display
Declared In
ALRadialMenu.h
radialMenu:didSelectItemAtIndex:
this method will notify the delegates any time a button from the radial menu is pressed
- (void)radialMenu:(ALRadialMenu *)radialMenu didSelectItemAtIndex:(NSInteger)index
Parameters
- radialMenu
the radial menu object that the button appeared from
- index
the index of the button that was touched
Declared In
ALRadialMenu.h
radialMenu:imageForIndex:
delegate’s should return the image to be displayed at the the given index
- (UIImage *)radialMenu:(ALRadialMenu *)radialMenu imageForIndex:(NSInteger)index
Parameters
- radialMenu
the radial menu object making the request
- index
the item to be displayed
Return Value
image to be displayed
Declared In
ALRadialMenu.h