summaryrefslogtreecommitdiffstats
path: root/src/bltGrText.h
diff options
context:
space:
mode:
authorjoye <joye>2014-05-05 17:51:56 (GMT)
committerjoye <joye>2014-05-05 17:51:56 (GMT)
commit16a5c9af45ae9e810e8eebaa4e1663ea64d8c255 (patch)
tree7f9938e97f5a211acf02694df6efbbce887e0ea7 /src/bltGrText.h
parent087375001ab2d4534011ef295bedf70b89cc3986 (diff)
downloadblt-16a5c9af45ae9e810e8eebaa4e1663ea64d8c255.zip
blt-16a5c9af45ae9e810e8eebaa4e1663ea64d8c255.tar.gz
blt-16a5c9af45ae9e810e8eebaa4e1663ea64d8c255.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrText.h')
-rw-r--r--src/bltGrText.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/bltGrText.h b/src/bltGrText.h
index af166e6..111b286 100644
--- a/src/bltGrText.h
+++ b/src/bltGrText.h
@@ -36,23 +36,23 @@
#define UPDATE_GC 1
-typedef struct {
- unsigned int state;
+class TextStyle {
+ public:
+ Tk_Anchor anchor;
XColor* color;
Tk_Font font;
double angle;
Tk_Justify justify;
- Tk_Anchor anchor;
- int xPad;
- int yPad;
- unsigned short int leader;
- short int underline;
- int maxLength;
- /* Private fields. */
- unsigned short flags;
- GC gc;
-} TextStyle;
+ unsigned short int leader_;
+ short int underline_;
+ int xPad_;
+ int yPad_;
+ int maxLength_;
+ unsigned int state_;
+ unsigned short flags_;
+ GC gc_;
+};
extern void Blt_GetTextExtents(Tk_Font font, int leader, const char *text,
int textLen, unsigned int *widthPtr,
@@ -79,15 +79,15 @@ extern Point2d Blt_AnchorPoint (double x, double y, double width,
((ts).anchor = TK_ANCHOR_NW, \
(ts).color = (XColor*)NULL, \
(ts).font = NULL, \
+ (ts).angle = 0.0, \
(ts).justify = TK_JUSTIFY_LEFT, \
- (ts).leader = 0, \
- (ts).underline = -1, \
- (ts).xPad = 0, \
- (ts).yPad = 0, \
- (ts).state = 0, \
- (ts).flags = 0, \
- (ts).gc = NULL, \
- (ts).maxLength = -1, \
- (ts).angle = 0.0)
+ (ts).leader_ = 0, \
+ (ts).underline_ = -1, \
+ (ts).xPad_ = 0, \
+ (ts).yPad_ = 0, \
+ (ts).maxLength_ = -1, \
+ (ts).state_ = 0, \
+ (ts).flags_ = 0, \
+ (ts).gc_ = NULL)
#endif