summaryrefslogtreecommitdiffstats
path: root/src/bltGrText.h
diff options
context:
space:
mode:
authorjoye <joye>2014-06-27 18:07:59 (GMT)
committerjoye <joye>2014-06-27 18:07:59 (GMT)
commit27a7bebf981ccfc6551238f3ae97321995513409 (patch)
treedf48eccf150fbd0c36268b49405c21dcc6469bad /src/bltGrText.h
parent4070e7aa6abb6b97cf99bebcaa5903194a44cb26 (diff)
downloadblt-27a7bebf981ccfc6551238f3ae97321995513409.zip
blt-27a7bebf981ccfc6551238f3ae97321995513409.tar.gz
blt-27a7bebf981ccfc6551238f3ae97321995513409.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrText.h')
-rw-r--r--src/bltGrText.h59
1 files changed, 31 insertions, 28 deletions
diff --git a/src/bltGrText.h b/src/bltGrText.h
index 6c85365..090cf5f 100644
--- a/src/bltGrText.h
+++ b/src/bltGrText.h
@@ -37,39 +37,42 @@
class Graph;
class PSOutput;
-typedef struct {
- Tk_Anchor anchor;
- XColor* color;
- Tk_Font font;
- double angle;
- Tk_Justify justify;
-} TextStyleOptions;
+namespace Blt {
-class TextStyle {
- protected:
- Graph* graphPtr_;
- void* ops_;
- GC gc_;
- int manageOptions_;
+ typedef struct {
+ Tk_Anchor anchor;
+ XColor* color;
+ Tk_Font font;
+ double angle;
+ Tk_Justify justify;
+ } TextStyleOptions;
- public:
- int xPad_;
- int yPad_;
+ class TextStyle {
+ protected:
+ Graph* graphPtr_;
+ void* ops_;
+ GC gc_;
+ int manageOptions_;
- protected:
- void resetStyle();
- Point2d rotateText(int, int, int, int);
+ public:
+ int xPad_;
+ int yPad_;
- public:
- TextStyle(Graph*);
- TextStyle(Graph*, TextStyleOptions*);
- virtual ~TextStyle();
+ protected:
+ void resetStyle();
+ Point2d rotateText(int, int, int, int);
- void* ops() {return ops_;}
- void drawText(Drawable, const char*, int, int);
- void drawText2(Drawable, const char*, int, int, int*, int*);
- void printText(PSOutput*, const char*, int, int);
- void getExtents(const char*, int*, int*);
+ public:
+ TextStyle(Graph*);
+ TextStyle(Graph*, TextStyleOptions*);
+ virtual ~TextStyle();
+
+ void* ops() {return ops_;}
+ void drawText(Drawable, const char*, int, int);
+ void drawText2(Drawable, const char*, int, int, int*, int*);
+ void printText(PSOutput*, const char*, int, int);
+ void getExtents(const char*, int*, int*);
+ };
};
#endif