vdk 2.4.0
vdkfont.h
1 /*
2  * ===========================
3  * VDK Visual Development Kit
4  * Version 0.4
5  * October 1998
6  * ===========================
7  *
8  * Copyright (C) 1998, Mario Motta
9  * Developed by Mario Motta <mmotta@guest.net>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  * 02111-130
25  */
26 
27 
28 #ifndef VDKFONT_H
29 #define VDKFONT_H
30 #include <gdk/gdk.h>
31 #include <vdk/rawobj.h>
32 class VDKForm;
37 class VDKFont: public VDKRawObject
38 {
39 
40  char* fontName;
41  // STUB
42  PangoFontDescription *pangoDes;
43  public:
48  VDKFont(char* fname);
54  VDKFont(VDKObject* obj, char* name);
58  virtual ~VDKFont();
62  int Height(const char* s);
66  int Width(const char* s);
70  bool operator==(VDKFont& f);
74  operator char*();
79  operator GdkFont*();
84  GdkFont* AsGdkFont();
88  int FontId();
92  PangoFontDescription * AsPangoFontDescription();
93 };
94 
95 #endif
bool operator==(VDKFont &f)
Definition: vdkfont.cc:70
Definition: vdkobj.h:137
VDKFont(char *fname)
Definition: vdkfont.cc:33
int Height(const char *s)
Definition: vdkfont.cc:79
int FontId()
Definition: vdkfont.cc:101
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:68
Provides a base class for derived raw objects.
Definition: rawobj.h:38
virtual ~VDKFont()
Definition: vdkfont.cc:60
int Width(const char *s)
Definition: vdkfont.cc:106
GdkFont * AsGdkFont()
Definition: vdkfont.cc:130
PangoFontDescription * AsPangoFontDescription()
Definition: vdkfont.cc:139
Provides a raw font.
Definition: vdkfont.h:37