This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

RoundedRectNode.h

By: a guest on Jun 2nd, 2011  |  syntax: Objective C  |  size: 1.75 KB  |  views: 1,085  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /*
  2. *  RoundedRectNode.h
  3. *
  4. *  Created by John Swensen on 6/2/11.
  5. *  Copyright 2011 swenGames.com.
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a copy
  8. * of this software and associated documentation files (the "Software"), to deal
  9. * in the Software without restriction, including without limitation the rights
  10. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. * copies of the Software, and to permit persons to whom the Software is
  12. * furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included in
  15. * all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23. * THE SOFTWARE.
  24. *
  25. */
  26.  
  27.  
  28. #import <Foundation/Foundation.h>
  29. #import "cocos2d.h"
  30.  
  31. @interface RoundedRectNode : CCNode {
  32.     CGSize size;
  33.     float radius;
  34.    
  35.     ccColor4B borderColor;
  36.     ccColor4B fillColor;
  37.     float lineWidth;
  38.    
  39.     NSUInteger cornerSegments;
  40. }
  41.  
  42. -(id) initWithRectSize:(CGSize)sz;
  43.  
  44. @property (nonatomic,assign) CGSize size;
  45. @property (nonatomic,assign) float radius;
  46. @property (nonatomic,assign) ccColor4B borderColor;
  47. @property (nonatomic,assign) ccColor4B fillColor;
  48. @property (nonatomic,assign) float borderWidth;
  49. @property (nonatomic,assign) NSUInteger cornerSegments;
  50.  
  51. @end
clone this paste RAW Paste Data