annotate src/scrollbar-x.h @ 245:51092a27c943 r20-5b21

Import from CVS: tag r20-5b21
author cvs
date Mon, 13 Aug 2007 10:17:54 +0200
parents 6a378aca36af
children c5d627a313b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Define X-specific scrollbar instance.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 #ifndef _XEMACS_SCROLLBAR_X_H_
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #define _XEMACS_SCROLLBAR_X_H_
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 #if defined (HAVE_X_WINDOWS) && defined (HAVE_SCROLLBARS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #include "scrollbar.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 struct x_scrollbar_data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 /* Unique scrollbar identifier and name. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 unsigned int id;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 char *name;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /* Is set if we have already set the backing_store attribute correctly */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 char backing_store_initialized;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 /* Positioning and sizing information for scrollbar and slider. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 scrollbar_values pos_data;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 /* Pointer to the scrollbar widget this structure describes. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 Widget widget;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 70
diff changeset
45 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID) || \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 70
diff changeset
46 defined (LWLIB_SCROLLBARS_ATHENA3D)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* Recorded starting position for Motif-like scrollbar drags. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 int vdrag_orig_value;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 Bufpos vdrag_orig_window_start;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 };
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #define SCROLLBAR_X_DATA(i) ((struct x_scrollbar_data *) ((i)->scrollbar_data))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 #define SCROLLBAR_X_ID(i) (SCROLLBAR_X_DATA (i)->id)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #define SCROLLBAR_X_NAME(i) (SCROLLBAR_X_DATA (i)->name)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 #define SCROLLBAR_X_BACKING_STORE_INITIALIZED(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 (SCROLLBAR_X_DATA (i)->backing_store_initialized)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #define SCROLLBAR_X_POS_DATA(i) (SCROLLBAR_X_DATA (i)->pos_data)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #define SCROLLBAR_X_WIDGET(i) (SCROLLBAR_X_DATA (i)->widget)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 70
diff changeset
62 #if defined (LWLIB_SCROLLBARS_MOTIF) || defined (LWLIB_SCROLLBARS_LUCID) || \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 70
diff changeset
63 defined (LWLIB_SCROLLBARS_ATHENA3D)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 #define SCROLLBAR_X_VDRAG_ORIG_VALUE(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (SCROLLBAR_X_DATA (i)->vdrag_orig_value)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #define SCROLLBAR_X_VDRAG_ORIG_WINDOW_START(i) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (SCROLLBAR_X_DATA (i)->vdrag_orig_window_start)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 extern void x_update_frame_scrollbars (struct frame *f);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 extern void x_set_scrollbar_pointer (struct frame *f, Lisp_Object cursor);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 extern EMACS_INT x_window_is_scrollbar (struct frame *f, Window win);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 #endif /* HAVE_X_WINDOWS and HAVE_SCROLLBARS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 #endif /* _XEMACS_SCROLLBAR_H_ */