ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/defaultfont.h
(Generate patch)

Comparing rxvt-unicode/src/defaultfont.h (file contents):
Revision 1.7 by pcg, Thu Dec 18 04:14:30 2003 UTC vs.
Revision 1.10 by pcg, Sat Jan 31 00:20:21 2004 UTC

1/*
2 * $Id: defaultfont.h,v 1.7 2003/12/18 04:14:30 pcg Exp $
3 */
4
5#ifndef _DEFAULTFONT_H_ 1#ifndef DEFAULTFONT_H_
6#define _DEFAULTFONT_H_ 2#define DEFAULTFONT_H_
7 3
8#ifdef HAVE_XSETLOCALE 4#ifdef HAVE_XSETLOCALE
9# define X_LOCALE 5# define X_LOCALE
10# include <X11/Xlocale.h> 6# include <X11/Xlocale.h>
11#else 7#else
19#endif 15#endif
20 16
21#include "rxvtlib.h" 17#include "rxvtlib.h"
22#include "feature.h" 18#include "feature.h"
23#include "encoding.h" 19#include "encoding.h"
24#include "rxvtvec.h" 20#include "rxvtstl.h"
25 21
26struct rxvt_fontprop { 22struct rxvt_fontprop {
27 enum { 23 enum {
28 medium = 100, bold = 200, 24 medium = 100, bold = 200,
29 roman = 0, italic = 100, 25 roman = 0, italic = 100,
30 }; 26 };
31 int height; 27 int width, height;
32 int weight; 28 int weight, slant;
33 int slant;
34}; 29};
35 30
36struct rxvt_font { 31struct rxvt_font {
37 // managed by the fontset 32 // managed by the fontset
38 rxvt_t r; 33 rxvt_t r;
52 if (this->name) free (this->name); // let the compiler optimize 47 if (this->name) free (this->name); // let the compiler optimize
53 this->name = name; 48 this->name = name;
54 } 49 }
55 50
56 rxvt_font () { name = 0; } 51 rxvt_font () { name = 0; }
57 ~rxvt_font () { free (name); clear (); }; 52 ~rxvt_font () { clear (); free (name); };
58 53
59 void clear_rect (int x, int y, int w, int h, int color); 54 void clear_rect (int x, int y, int w, int h, int color);
60 55
61 virtual void clear () { }; 56 virtual void clear () { };
62 57

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines