comparison src/gui_at_sb.h @ 18753:6e3dc2d630c2 v8.1.2366

patch 8.1.2366: using old C style comments Commit: https://github.com/vim/vim/commit/9bf703d46a79fbffeb829246ea5ce385bddc4166 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 30 19:44:38 2019 +0100 patch 8.1.2366: using old C style comments Problem: Using old C style comments. Solution: Use // comments where appropriate.
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Nov 2019 19:45:03 +0100
parents 4aead6a9b7a9
children
comparison
equal deleted inserted replaced
18752:9ec3c9cb4533 18753:6e3dc2d630c2
1 /* vi:set ts=8 sts=4 sw=4 noet: */ 1 // vi:set ts=8 sts=4 sw=4 noet:
2 /* MODIFIED ATHENA SCROLLBAR (USING ARROWHEADS AT ENDS OF TRAVEL) */ 2 // MODIFIED ATHENA SCROLLBAR (USING ARROWHEADS AT ENDS OF TRAVEL)
3 /* Modifications Copyright 1992 by Mitch Trachtenberg */ 3 // Modifications Copyright 1992 by Mitch Trachtenberg
4 /* Rights, permissions, and disclaimer of warranty are as in the */ 4 // Rights, permissions, and disclaimer of warranty are as in the
5 /* DEC and MIT notice below. See usage warning in .c file. */ 5 // DEC and MIT notice below. See usage warning in .c file.
6 /* 6 /*
7 * $XConsortium: ScrollbarP.h,v 1.3 94/04/17 20:12:42 jim Exp $ 7 * $XConsortium: ScrollbarP.h,v 1.3 94/04/17 20:12:42 jim Exp $
8 */ 8 */
9 9
10 10
96 96
97 extern void vim_XawScrollbarSetThumb(Widget, double, double, double); 97 extern void vim_XawScrollbarSetThumb(Widget, double, double, double);
98 98
99 typedef struct 99 typedef struct
100 { 100 {
101 /* public */ 101 // public
102 Pixel foreground; /* thumb foreground color */ 102 Pixel foreground; // thumb foreground color
103 XtOrientation orientation; /* horizontal or vertical */ 103 XtOrientation orientation; // horizontal or vertical
104 XtCallbackList scrollProc; /* proportional scroll */ 104 XtCallbackList scrollProc; // proportional scroll
105 XtCallbackList thumbProc; /* jump (to position) scroll */ 105 XtCallbackList thumbProc; // jump (to position) scroll
106 XtCallbackList jumpProc; /* same as thumbProc but pass data by ref */ 106 XtCallbackList jumpProc; // same as thumbProc but pass data by ref
107 Pixmap thumb; /* thumb color */ 107 Pixmap thumb; // thumb color
108 float top; /* What percent is above the win's top */ 108 float top; // What percent is above the win's top
109 float shown; /* What percent is shown in the win */ 109 float shown; // What percent is shown in the win
110 float max; /* Maximum value for top */ 110 float max; // Maximum value for top
111 Dimension length; /* either height or width */ 111 Dimension length; // either height or width
112 Dimension thickness; /* either width or height */ 112 Dimension thickness; // either width or height
113 Dimension min_thumb; /* minimum size for the thumb. */ 113 Dimension min_thumb; // minimum size for the thumb.
114 114
115 /* private */ 115 // private
116 XtIntervalId timer_id; /* autorepeat timer; remove on destruction */ 116 XtIntervalId timer_id; // autorepeat timer; remove on destruction
117 char scroll_mode; /* see below */ 117 char scroll_mode; // see below
118 float scroll_off; /* offset from event to top of thumb */ 118 float scroll_off; // offset from event to top of thumb
119 GC gc; /* a (shared) gc */ 119 GC gc; // a (shared) gc
120 Position topLoc; /* Pixel that corresponds to top */ 120 Position topLoc; // Pixel that corresponds to top
121 Dimension shownLength; /* Num pixels corresponding to shown */ 121 Dimension shownLength; // Num pixels corresponding to shown
122 122
123 /* From 3d widget */ 123 // From 3d widget
124 Dimension shadow_width; 124 Dimension shadow_width;
125 Pixel top_shadow_pixel; 125 Pixel top_shadow_pixel;
126 Pixel bot_shadow_pixel; 126 Pixel bot_shadow_pixel;
127 Bool limit_thumb; /* limit thumb to inside scrollbar */ 127 Bool limit_thumb; // limit thumb to inside scrollbar
128 int top_shadow_contrast; 128 int top_shadow_contrast;
129 int bot_shadow_contrast; 129 int bot_shadow_contrast;
130 GC top_shadow_GC; 130 GC top_shadow_GC;
131 GC bot_shadow_GC; 131 GC bot_shadow_GC;
132 } ScrollbarPart; 132 } ScrollbarPart;
156 ScrollbarClassPart scrollbar_class; 156 ScrollbarClassPart scrollbar_class;
157 } ScrollbarClassRec; 157 } ScrollbarClassRec;
158 158
159 extern ScrollbarClassRec vim_scrollbarClassRec; 159 extern ScrollbarClassRec vim_scrollbarClassRec;
160 160
161 #endif /* _Scrollbar_h */ 161 #endif // _Scrollbar_h