~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/FontTable.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: FontTable.h,v 1.12 1999/08/19 11:27:29 andreas Exp $
 
1
// $Id$
2
2
// Font tables
3
3
 
4
4
// Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
29
29
#ifndef _DDD_FontTable_h
30
30
#define _DDD_FontTable_h
31
31
 
32
 
#ifdef __GNUG__
33
 
#pragma interface
34
 
#endif
35
 
 
36
 
 
37
32
#include <X11/Xlib.h>
38
33
#include "strclass.h"
39
34
#include "TypeInfo.h"
48
43
    FontTableHashEntry(): font(0), name() {}
49
44
 
50
45
private:
51
 
    FontTableHashEntry(const FontTableHashEntry&)
52
 
        : font(0), name() { assert(0); }
53
 
    FontTableHashEntry& operator = (const FontTableHashEntry&)
54
 
        { assert(0); return *this; }
 
46
    FontTableHashEntry(const FontTableHashEntry&);
 
47
    FontTableHashEntry& operator = (const FontTableHashEntry&);
55
48
};
56
49
 
57
50
class FontTable {
62
55
    FontTableHashEntry table[MAX_FONTS];
63
56
    Display *_display;
64
57
 
65
 
    FontTable(const FontTable&): _display(0) { assert(0); }
66
 
    FontTable& operator = (const FontTable&) { assert(0); return *this; }
 
58
    FontTable(const FontTable&);
 
59
    FontTable& operator = (const FontTable&);
67
60
 
68
61
public:
69
62
    FontTable(Display *display):
81
74
            if (table[i].font != 0)
82
75
                XFreeFont(_display, table[i].font);
83
76
    }
84
 
    XFontStruct *operator[](string& name);
 
77
    XFontStruct *operator[](const string& name);
85
78
};
86
79
 
87
80
#endif