File: fontdev.h

package info (click to toggle)
sabre 0.2.4b-20
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,596 kB
  • ctags: 7,207
  • sloc: cpp: 36,929; ansic: 8,272; sh: 3,662; makefile: 220
file content (50 lines) | stat: -rw-r--r-- 1,183 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// -*- mode: C; -*-
// jed does not understand .C

//
// Minefields:
// 
// This code is mine. You may use, modify or redistribute this code 
// in any APPROPRIATE manner you may choose. 
//  
// If you use, modify or redistribute this code, I am NOT responsible
// for ANY issue raised. 
// 
// ( If you modify or remove this note, this code is no longer mine. ) 
// 
// proff@iki.fi 
// 
//

// Mon Dec 22 15:58:37 EET 1997 (proff@alf.melmac)
// created file fontdev.h

#ifndef __fontdev_h
#define __fontdev_h

#include "gdev.h" // we will need this later on

class fontdev {
   void *fbp;
   int dimx, dimy;
   int mindimx, mindimy;
 public:
   fontdev();
   ~fontdev();
   int load( char *fn );
   int save( char *fn );
   int getdimx( void ) { return dimx; }
   int getdimy( void ) { return dimy; }
   int getmindimx( void ) { return mindimx; }
   int getmindimy( void ) { return mindimy; }
   int setcell( int _dimx, int _dimy );
   void calcmin( void );
   void *getfbp( unsigned int c );
   enum { up, right, left, down, turn_right, turn_left };
   void rotate( int what, int where );
   void shift( int what, int where );
};

extern char **fontpaths;

#endif // __fontdev_h