Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Minor updates to api (changed float to CGFloat)
Browse files Browse the repository at this point in the history
For the sake of completeness and portability changed an interface
declaration to be CGFloat instead of float.
  • Loading branch information
epreston committed Aug 26, 2011
1 parent 616f319 commit 41264f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions PSTreeGraphView/PSBaseSubtreeView.m
Expand Up @@ -23,11 +23,13 @@


#define CENTER_COLLAPSED_SUBTREE_ROOT 1 #define CENTER_COLLAPSED_SUBTREE_ROOT 1


static UIColor *subtreeBorderColor(void) { static UIColor *subtreeBorderColor(void)
{
return [[UIColor colorWithRed:0.0 green:0.5 blue:0.0 alpha:1.0] retain]; return [[UIColor colorWithRed:0.0 green:0.5 blue:0.0 alpha:1.0] retain];
} }


static CGFloat subtreeBorderWidth(void) { static CGFloat subtreeBorderWidth(void)
{
return 2.0; return 2.0;
} }


Expand All @@ -41,7 +43,7 @@ @implementation PSBaseSubtreeView
@synthesize nodeView; @synthesize nodeView;




- (BOOL)isLeaf - (BOOL) isLeaf
{ {
return [[[self modelNode] childModelNodes] count] == 0; return [[[self modelNode] childModelNodes] count] == 0;
} }
Expand Down
4 changes: 2 additions & 2 deletions PSTreeGraphView/PSBaseTreeGraphView.h
Expand Up @@ -203,7 +203,7 @@ typedef NSInteger PSTreeGraphOrientationStyle;


// The style for tree graph orientation (See the TreeGraphOrientationStyle enumeration above.) // The style for tree graph orientation (See the TreeGraphOrientationStyle enumeration above.)


@property (nonatomic) PSTreeGraphOrientationStyle treeGraphOrientation; @property (nonatomic, assign) PSTreeGraphOrientationStyle treeGraphOrientation;


//Returns YES if the tree needs relayout. //Returns YES if the tree needs relayout.


Expand Down Expand Up @@ -295,7 +295,7 @@ typedef NSInteger PSTreeGraphOrientationStyle;


// The style for node connecting lines. (See the PSTreeGraphConnectingLineStyle enumeration above.) // The style for node connecting lines. (See the PSTreeGraphConnectingLineStyle enumeration above.)


@property (nonatomic) PSTreeGraphConnectingLineStyle connectingLineStyle; @property (nonatomic, assign) PSTreeGraphConnectingLineStyle connectingLineStyle;


// Defaults to NO. If YES, a stroked outline is shown around each of the TreeGraph's // Defaults to NO. If YES, a stroked outline is shown around each of the TreeGraph's
// SubtreeViews. This can be helpful for visualizing the TreeGraph's structure and layout. // SubtreeViews. This can be helpful for visualizing the TreeGraph's structure and layout.
Expand Down

0 comments on commit 41264f4

Please sign in to comment.