/PSTreeGraphView/PSBaseBranchView.h

https://code.google.com/ · C Header · 30 lines · 5 code · 9 blank · 16 comment · 0 complexity · 24d695f8d0dd744dd15b7a8e49723e15 MD5 · raw file

  1. //
  2. // PSBaseBranchView.h
  3. // PSTreeGraphView
  4. //
  5. // Created by Ed Preston on 7/25/10.
  6. // Copyright 2010 Preston Software. All rights reserved.
  7. //
  8. //
  9. // This is a port of the sample code from Max OS X to iOS (iPad).
  10. //
  11. // WWDC 2010 Session 141, “Crafting Custom Cocoa Views”
  12. //
  13. #import <UIKit/UIKit.h>
  14. @class PSBaseTreeGraphView;
  15. /// Each SubtreeView has a BranchView subview that draws the connecting lines between its root node
  16. /// and its child subtrees.
  17. @interface PSBaseBranchView : UIView
  18. /// Link to the enclosing TreeGraph. (The getter for this is a convenience method that ascends the view tree
  19. /// until it encounters a TreeGraph.)
  20. @property (nonatomic, readonly) PSBaseTreeGraphView *enclosingTreeGraph;
  21. @end