loaded function

This commit is contained in:
fluxgen 2002-10-15 16:44:26 +00:00
parent 1e7ede26c4
commit 8140009ae0
3 changed files with 6 additions and 3 deletions

View file

@ -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;
};

View file

@ -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;
};

View file

@ -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;