From 8140009ae05dba9f5957f254f222215d1123741f Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 15 Oct 2002 16:44:26 +0000 Subject: loaded function --- src/XFontImp.hh | 3 ++- src/XftFontImp.hh | 3 ++- src/XmbFontImp.hh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/XFontImp.hh b/src/XFontImp.hh index d48bd89..30ad7ed 100644 --- a/src/XFontImp.hh +++ b/src/XFontImp.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: XFontImp.hh,v 1.1 2002/10/13 22:22:14 fluxgen Exp $ +// $Id: XFontImp.hh,v 1.2 2002/10/15 16:44:26 fluxgen Exp $ #ifndef XFONTIMP_HH #define XFONTIMP_HH @@ -34,6 +34,7 @@ public: unsigned int textWidth(const char * const text, unsigned int size) const; unsigned int height() const; 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; } private: XFontStruct *m_fontstruct; }; diff --git a/src/XftFontImp.hh b/src/XftFontImp.hh index de3a1ed..5cfc6ee 100644 --- a/src/XftFontImp.hh +++ b/src/XftFontImp.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: XftFontImp.hh,v 1.1 2002/10/14 18:14:13 fluxgen Exp $ +//$Id: XftFontImp.hh,v 1.2 2002/10/15 16:44:26 fluxgen Exp $ #ifndef XFTFONTIMP_HH #define XFTFONTIMP_HH @@ -35,6 +35,7 @@ public: void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; unsigned int textWidth(const char *text, unsigned int len) const; unsigned int height() const; + bool loaded() const { return m_xftfont != 0; } private: XftFont *m_xftfont; }; diff --git a/src/XmbFontImp.hh b/src/XmbFontImp.hh index d941af6..86854e1 100644 --- a/src/XmbFontImp.hh +++ b/src/XmbFontImp.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: XmbFontImp.hh,v 1.1 2002/10/13 22:22:14 fluxgen Exp $ +// $Id: XmbFontImp.hh,v 1.2 2002/10/15 16:44:25 fluxgen Exp $ #ifndef XMBFONTIMP_HH #define XMBFONTIMP_HH @@ -34,6 +34,7 @@ public: virtual void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; unsigned int textWidth(const char *text, unsigned int len) const; unsigned int height() const; + bool loaded() const { return m_fontset != 0; } private: XFontSet m_fontset; XFontSetExtents *m_setextents; -- cgit v0.11.2