~ubuntu-branches/debian/sid/x11-apps/sid

« back to all changes in this revision

Viewing changes to xman/ScrollByLP.h

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2013-12-25 18:39:25 UTC
  • Revision ID: package-import@ubuntu.com-20131225183925-kh1rc0smebkuyxf7
Tags: 7.7+2
* xclipboard 1.1.3
* xclock 1.0.7
* xman 1.1.3
* Use dh.
* Disable silent build rules.
* Remove Cyril from Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XConsortium: ScrollByLP.h,v 1.9 94/04/17 20:43:49 keith Exp $ */
2
1
/*
3
2
 
4
3
Copyright (c) 1987, 1988  X Consortium
45
44
 
46
45
/* New fields for the ScrollByLine widget class record */
47
46
typedef struct {
48
 
     int mumble;   /* No new procedures */
 
47
    int mumble;                 /* No new procedures */
49
48
} ScrollByLineClassPart;
50
49
 
51
50
/* Full class record declaration */
52
51
typedef struct _ScrollByLineClassRec {
53
 
    CoreClassPart         core_class;
 
52
    CoreClassPart         core_class;
54
53
    SimpleClassPart       simple_class;
55
54
    ScrollByLineClassPart scrolled_widget_class;
56
55
} ScrollByLineClassRec;
59
58
 
60
59
/* New fields for the ScrollByLine widget record */
61
60
typedef struct _ScrollByLinePart {
62
 
  Pixel foreground;             /* The color for the forground of the text. */
63
 
  Boolean force_vert,           /* Must have scrollbar visable */
64
 
    use_right;                  /* put scroll bar on right side of window. */
65
 
  FILE * file;                  /* The file to display. */
66
 
  Dimension indent;             /* amount to indent the file. */
67
 
  XFontStruct * bold_font,      /* The four fonts. */
68
 
    * normal_font,
69
 
    * italic_font,
70
 
    * symbol_font;
71
 
  int h_width;                  /* Main font width */
72
 
  
 
61
    Pixel foreground;           /* The color for the foreground of the text. */
 
62
    Boolean force_vert,         /* Must have scrollbar visible */
 
63
     use_right;                 /* put scroll bar on right side of window. */
 
64
    FILE *file;                 /* The file to display. */
 
65
    Dimension indent;           /* amount to indent the file. */
 
66
    XFontStruct *bold_font,     /* The four fonts. */
 
67
        *normal_font,
 
68
        *italic_font,
 
69
        *symbol_font;
 
70
    int h_width;                /* Main font width */
 
71
 
73
72
/* variables not in resource list. */
74
73
 
75
 
  Widget bar;                   /* The scrollbar. */
76
 
  int font_height;              /* the height of the font. */
77
 
  int line_pointer;             /* The line that currently is at the top 
78
 
                                   of the window being displayed. */
79
 
  Dimension offset;             /* Drawing offset because of scrollbar. */
80
 
  GC move_gc;                   /* GC to use when moving the text. */
81
 
  GC bold_gc, normal_gc, italic_gc, symbol_gc; /* gc for drawing. */
 
74
    Widget bar;                 /* The scrollbar. */
 
75
    int font_height;            /* the height of the font. */
 
76
    int line_pointer;           /* The line that currently is at the top
 
77
                                   of the window being displayed. */
 
78
    Dimension offset;           /* Drawing offset because of scrollbar. */
 
79
    GC move_gc;                 /* GC to use when moving the text. */
 
80
    GC bold_gc, normal_gc, italic_gc, symbol_gc;        /* gc for drawing. */
82
81
 
83
 
  char ** top_line;             /* The top line of the file. */
84
 
  int lines;            /* Total number of line in the file. */
85
 
  int num_visible_lines;  /* Number of lines visible */
 
82
    char **top_line;            /* The top line of the file. */
 
83
    int lines;                  /* Total number of line in the file. */
 
84
    int num_visible_lines;      /* Number of lines visible */
86
85
} ScrollByLinePart;
87
86
 
88
87
/****************************************************************
92
91
 ****************************************************************/
93
92
 
94
93
typedef struct _ScrollByLineRec {
95
 
    CorePart          core;
 
94
    CorePart          core;
96
95
    SimplePart        simple;
97
96
    ScrollByLinePart  scroll;
98
97
} ScrollByLineRec;