File: Fnlib_types.h

package info (click to toggle)
fnlib 0.5-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,864 kB
  • ctags: 123
  • sloc: sh: 8,509; ansic: 2,509; makefile: 156
file content (103 lines) | stat: -rw-r--r-- 2,088 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/shape.h>
#include <Imlib.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <time.h>
#include <netinet/in.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/time.h>
#include <sys/types.h>

#ifdef _HAVE_STRING_H
#include <string.h>
#elif _HAVE_STRINGS_H
#include <strings.h>
#endif

#ifndef SYSTEM_FNRC
#ifndef __EMX__
#define SYSTEM_FNRC "/etc/fnrc"
#else
#define SYSTEM_FNRC "/Xfree86/lib/x11/enlightenment/fnrc"
#endif
#endif /* endef SYSTEM_FNRC */

#define FONT_TO_RIGHT 0
#define FONT_TO_DOWN  1
#define FONT_TO_UP    2
#define FONT_TO_LEFT  3

#define MODE_VERBATIM  0
#define MODE_WRAP_CHAR 1
#define MODE_WRAP_WORD 2

typedef struct _FnlibChar
  {
    char               *file;
    ImlibImage         *im;
    int                 x, y;
    int                 width;
    struct
      {
	int                 x, y;
	int                 width;
	int                 rendered_width, rendered_height;
	Pixmap              pmap, mask;
	int                 size;
      }
    current;
  }
FnlibChar;

typedef struct _FnlibFontSize
  {
    int                 size;
    char                orientation;
    int                 default_char;
    int                 num_chars;
    FnlibChar          *chars;
    struct
      {
	int                 size;
      }
    current;
  }
FnlibFontSize;

typedef struct _FnlibFont
  {
    int                 refs;
    char               *name;
    char               *dir;
    int                 num;
    FnlibFontSize      *fonts;
  }
FnlibFont;

typedef struct _FnlibStyle
  {
    char                mode;
    char                orientation;
    int                 justification;
    int                 spacing;
  }
FnlibStyle;

typedef struct _FnlibData
  {
    ImlibData          *id;
    int                 num_dirs;
    char              **dirs;
    int                 num_fonts;
    FnlibFont         **font;
  }
FnlibData;