Revision: 4668
http://skim-app.svn.sourceforge.net/skim-app/?rev=4668&view=rev
Author: hofman
Date: 2008-09-22 12:20:33 +0000 (Mon, 22 Sep 2008)
Log Message:
-----------
Add a new display style for line well, a simple line without end style
Modified Paths:
--------------
trunk/SKLineWell.h
trunk/SKLineWell.m
Modified: trunk/SKLineWell.h
===================================================================
--- trunk/SKLineWell.h 2008-09-22 09:07:29 UTC (rev 4667)
+++ trunk/SKLineWell.h 2008-09-22 12:20:33 UTC (rev 4668)
@@ -49,6 +49,7 @@
enum {
SKLineWellDisplayStyleLine,
+ SKLineWellDisplayStyleSimpleLine,
SKLineWellDisplayStyleRectangle,
SKLineWellDisplayStyleOval
};
Modified: trunk/SKLineWell.m
===================================================================
--- trunk/SKLineWell.m 2008-09-22 09:07:29 UTC (rev 4667)
+++ trunk/SKLineWell.m 2008-09-22 12:20:33 UTC (rev 4668)
@@ -245,6 +245,10 @@
[path closePath];
break;
}
+ } else if ([self displayStyle] == SKLineWellDisplayStyleSimpleLine) {
+ float offset = 0.5 * lineWidth - floorf(0.5 * lineWidth);
+ [path moveToPoint:NSMakePoint(NSMinX(bounds) + 7.0,
roundf(NSMidY(bounds)) - offset)];
+ [path lineToPoint:NSMakePoint(NSMaxX(bounds) - 7.0,
roundf(NSMidY(bounds)) - offset)];
} else if ([self displayStyle] == SKLineWellDisplayStyleRectangle) {
float inset = 7.0 + 0.5 * lineWidth;
[path appendBezierPathWithRect:NSInsetRect(bounds, inset, inset)];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit