summaryrefslogtreecommitdiffstats
path: root/src/bltGrElemBar.C
diff options
context:
space:
mode:
authorjoye <joye>2014-01-21 20:00:10 (GMT)
committerjoye <joye>2014-01-21 20:00:10 (GMT)
commite4ee8c1d434a19b8c3f92f847b56ee6d6b1dc927 (patch)
treeeca62f700780146d5e44f95291f41ca9475439e0 /src/bltGrElemBar.C
parenta1f48c32b2b4f42b008811bf35c15861b177749d (diff)
downloadblt-e4ee8c1d434a19b8c3f92f847b56ee6d6b1dc927.zip
blt-e4ee8c1d434a19b8c3f92f847b56ee6d6b1dc927.tar.gz
blt-e4ee8c1d434a19b8c3f92f847b56ee6d6b1dc927.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrElemBar.C')
-rw-r--r--src/bltGrElemBar.C8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bltGrElemBar.C b/src/bltGrElemBar.C
index d6cc29a..747003f 100644
--- a/src/bltGrElemBar.C
+++ b/src/bltGrElemBar.C
@@ -42,6 +42,10 @@
#define CLAMP(x,l,h) ((x) = (((x)<(l))? (l) : ((x)>(h)) ? (h) : (x)))
+#define PointInRectangle(r,x0,y0) \
+ (((x0) <= (int)((r)->x + (r)->width - 1)) && ((x0) >= (int)(r)->x) && \
+ ((y0) <= (int)((r)->y + (r)->height - 1)) && ((y0) >= (int)(r)->y))
+
typedef struct {
float x1, y1, x2, y2;
} BarRegion;
@@ -201,7 +205,7 @@ Blt_CustomOption bltBarModeOption =
#define DEF_BAR_AXIS_X "x"
#define DEF_BAR_AXIS_Y "y"
#define DEF_BAR_BACKGROUND "navyblue"
-#define DEF_BAR_BORDERWIDTH "2"
+#define DEF_BAR_BORDERWIDTH STD_BORDERWIDTH
#define DEF_BAR_ERRORBAR_COLOR "defcolor"
#define DEF_BAR_ERRORBAR_LINE_WIDTH "1"
#define DEF_BAR_ERRORBAR_CAP_WIDTH "1"
@@ -219,7 +223,7 @@ Blt_CustomOption bltBarModeOption =
#define DEF_PEN_ACTIVE_BACKGROUND rred
#define DEF_PEN_ACTIVE_FOREGROUND pink
-#define DEF_PEN_BORDERWIDTH "2"
+#define DEF_PEN_BORDERWIDTH STD_BORDERWIDTH
#define DEF_PEN_NORMAL_BACKGROUND navyblue
#define DEF_PEN_NORMAL_FOREGROUND bblue
#define DEF_PEN_RELIEF "raised"