all repos — fluxbox @ 6073c44a8ede73f0bdee973a450b596d5d7a9348

custom fork of the fluxbox windowmanager

fixed setRotate function
fluxgen fluxgen
commit

6073c44a8ede73f0bdee973a450b596d5d7a9348

parent

bf6662921e99eee4765ae98b4994837f91f11016

1 files changed, 7 insertions(+), 4 deletions(-)

jump to
M src/FbTk/XFontImp.hhsrc/FbTk/XFontImp.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: XFontImp.hh,v 1.2 2002/12/01 13:42:15 rathnor Exp $ +// $Id: XFontImp.hh,v 1.3 2002/12/09 22:10:01 fluxgen Exp $ #ifndef FBTK_XFONTIMP_HH #define FBTK_XFONTIMP_HH

@@ -40,6 +40,8 @@ int descent() const { return m_fontstruct ? m_fontstruct->descent : 0; }

void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; bool loaded() const { return m_fontstruct != 0; } void rotate(float angle); + /// enable/disable rotation witout alloc/dealloc rotfont structures + void setRotate(bool val) { m_rotate = val; } private: void freeRotFont(); void drawRotText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const;

@@ -71,9 +73,10 @@ int min_char;

XRotCharStruct per_char[95]; }; - XRotFontStruct *m_rotfont; - XFontStruct *m_fontstruct; - float m_angle; + XRotFontStruct *m_rotfont; ///< rotated font structure + XFontStruct *m_fontstruct; ///< X font structure + float m_angle; ///< the rotated angle + bool m_rotate; ///< used to disable/enable rotation temprarly without reallocating m_rotfont }; }; // end namespace FbTk