diff options
author | joye <joye> | 2014-05-05 17:51:56 (GMT) |
---|---|---|
committer | joye <joye> | 2014-05-05 17:51:56 (GMT) |
commit | 16a5c9af45ae9e810e8eebaa4e1663ea64d8c255 (patch) | |
tree | 7f9938e97f5a211acf02694df6efbbce887e0ea7 /src/bltGrAxis.C | |
parent | 087375001ab2d4534011ef295bedf70b89cc3986 (diff) | |
download | blt-16a5c9af45ae9e810e8eebaa4e1663ea64d8c255.zip blt-16a5c9af45ae9e810e8eebaa4e1663ea64d8c255.tar.gz blt-16a5c9af45ae9e810e8eebaa4e1663ea64d8c255.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrAxis.C')
-rw-r--r-- | src/bltGrAxis.C | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/bltGrAxis.C b/src/bltGrAxis.C index 25f6baa..5d4fd9f 100644 --- a/src/bltGrAxis.C +++ b/src/bltGrAxis.C @@ -515,23 +515,22 @@ void Axis::draw(Drawable drawable) TextStyle ts; Blt_Ts_InitStyle(ts); - ts.flags |= UPDATE_GC; + ts.flags_ |= UPDATE_GC; ts.angle = titleAngle_; ts.font = ops->titleFont; - ts.xPad = 1; - ts.yPad = 0; ts.anchor = titleAnchor_; - ts.justify = ops->titleJustify; if (flags & ACTIVE) ts.color = ops->activeFgColor; else ts.color = ops->titleColor; - + ts.justify = ops->titleJustify; + ts.xPad_ = 1; + ts.yPad_ = 0; if ((titleAngle_ == 90.0) || (titleAngle_ == 270.0)) - ts.maxLength = height_; + ts.maxLength_ = height_; else - ts.maxLength = width_; + ts.maxLength_ = width_; Blt_Ts_DrawText(graphPtr_->tkwin_, drawable, ops->title, -1, &ts, (int)titlePos_.x, (int)titlePos_.y); @@ -601,12 +600,12 @@ void Axis::draw(Drawable drawable) TextStyle ts; Blt_Ts_InitStyle(ts); - ts.flags |= UPDATE_GC; + ts.flags_ |= UPDATE_GC; ts.angle = ops->tickAngle; ts.font = ops->tickFont; - ts.xPad = 2; - ts.yPad = 0; + ts.xPad_ = 2; + ts.yPad_ = 0; ts.anchor = tickAnchor_; if (flags & ACTIVE) ts.color = ops->activeFgColor; @@ -656,7 +655,7 @@ void Axis::drawLimits(Drawable drawable) int hMin = graphPtr_->bottom_ - gops->yPad - 2; int hMax = hMin; - ops->limitsTextStyle.flags |= UPDATE_GC; + ops->limitsTextStyle.flags_ |= UPDATE_GC; const int spacing =8; int isHoriz = isHorizontal(); @@ -1709,11 +1708,11 @@ void Axis::print(Blt_Ps ps) ts.angle = titleAngle_; ts.font = ops->titleFont; - ts.xPad = 1; - ts.yPad = 0; ts.anchor = titleAnchor_; ts.justify = ops->titleJustify; ts.color = ops->titleColor; + ts.xPad_ = 1; + ts.yPad_ = 0; Blt_Ps_DrawText(ps, ops->title, &ts, titlePos_.x, titlePos_.y); } @@ -1724,10 +1723,10 @@ void Axis::print(Blt_Ps ps) ts.angle = ops->tickAngle; ts.font = ops->tickFont; - ts.xPad = 2; - ts.yPad = 0; ts.anchor = tickAnchor_; ts.color = ops->tickColor; + ts.xPad_ = 2; + ts.yPad_ = 0; for (Blt_ChainLink link=Blt_Chain_FirstLink(tickLabels_); link; link = Blt_Chain_NextLink(link)) { |