aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-12-09 22:10:01 (GMT)
committerfluxgen <fluxgen>2002-12-09 22:10:01 (GMT)
commit6073c44a8ede73f0bdee973a450b596d5d7a9348 (patch)
tree3f72998b12b15333118cda2b49a8d59b714a008f /src
parentbf6662921e99eee4765ae98b4994837f91f11016 (diff)
downloadfluxbox_pavel-6073c44a8ede73f0bdee973a450b596d5d7a9348.zip
fluxbox_pavel-6073c44a8ede73f0bdee973a450b596d5d7a9348.tar.bz2
fixed setRotate function
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/XFontImp.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/FbTk/XFontImp.hh b/src/FbTk/XFontImp.hh
index f313d69..0a9b49a 100644
--- a/src/FbTk/XFontImp.hh
+++ b/src/FbTk/XFontImp.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: XFontImp.hh,v 1.2 2002/12/01 13:42:15 rathnor Exp $ 22// $Id: XFontImp.hh,v 1.3 2002/12/09 22:10:01 fluxgen Exp $
23 23
24#ifndef FBTK_XFONTIMP_HH 24#ifndef FBTK_XFONTIMP_HH
25#define FBTK_XFONTIMP_HH 25#define FBTK_XFONTIMP_HH
@@ -40,6 +40,8 @@ public:
40 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; 40 void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const;
41 bool loaded() const { return m_fontstruct != 0; } 41 bool loaded() const { return m_fontstruct != 0; }
42 void rotate(float angle); 42 void rotate(float angle);
43 /// enable/disable rotation witout alloc/dealloc rotfont structures
44 void setRotate(bool val) { m_rotate = val; }
43private: 45private:
44 void freeRotFont(); 46 void freeRotFont();
45 void drawRotText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; 47 void drawRotText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const;
@@ -71,9 +73,10 @@ private:
71 73
72 XRotCharStruct per_char[95]; 74 XRotCharStruct per_char[95];
73 }; 75 };
74 XRotFontStruct *m_rotfont; 76 XRotFontStruct *m_rotfont; ///< rotated font structure
75 XFontStruct *m_fontstruct; 77 XFontStruct *m_fontstruct; ///< X font structure
76 float m_angle; 78 float m_angle; ///< the rotated angle
79 bool m_rotate; ///< used to disable/enable rotation temprarly without reallocating m_rotfont
77}; 80};
78 81
79}; // end namespace FbTk 82}; // end namespace FbTk