1
/* $TOG: ScrollFrameT.h /main/6 1997/07/25 16:49:23 samborn $ */
3
* @OPENGROUP_COPYRIGHT@
5
* Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
6
* Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group
7
* ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
8
* the full copyright text.
10
* This software is subject to an open license. It may only be
11
* used on, with or for operating systems which are themselves open
12
* source systems. You must contact The Open Group for a license
13
* allowing distribution and sublicensing of this software on, with,
14
* or for operating systems which are not Open Source programs.
16
* See http://www.opengroup.org/openmotif/license for full
17
* details of the license agreement. Any use, reproduction, or
18
* distribution of the program constitutes recipient's acceptance of
21
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
22
* PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
* KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
24
* WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
25
* OR FITNESS FOR A PARTICULAR PURPOSE
27
* EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
28
* NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
29
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30
* DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED
31
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33
* ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
34
* EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
35
* POSSIBILITY OF SUCH DAMAGES.
40
#ifndef _XmScrollFrameT_H
41
#define _XmScrollFrameT_H
44
#include <Xm/NavigatorT.h>
50
externalref XrmQuark XmQTscrollFrame;
52
/* Trait structures and typedefs, place typedefs first */
54
typedef void (*XmScrollFrameInitProc)(Widget sf,
55
XtCallbackProc moveCB,
57
typedef Boolean (*XmScrollFrameGetInfoProc)(Widget sf,
60
Cardinal * num_nav_list);
61
typedef void (*XmScrollFrameAddNavigatorProc)(Widget sf,
64
typedef void (*XmScrollFrameRemoveNavigatorProc)(Widget sf,
66
typedef void (*XmScrollFrameUpdateOrigGeomProc)(Widget sf,
68
XtWidgetGeometry *geom);
71
/* Version 1: added updateOrigGeom */
73
typedef struct _XmScrollFrameTraitRec {
75
XmScrollFrameInitProc init;
76
XmScrollFrameGetInfoProc getInfo;
77
XmScrollFrameAddNavigatorProc addNavigator;
78
XmScrollFrameRemoveNavigatorProc removeNavigator;
79
XmScrollFrameUpdateOrigGeomProc updateOrigGeom;
80
} XmScrollFrameTraitRec, *XmScrollFrameTrait;
83
/* This one gets allocated per instance by the scrollFrame
84
class. It is just a convenient structure reusable by other scrollFrame
85
and it needs not to be part of the public trait API */
87
typedef struct _XmScrollFrameDataRec {
88
XtCallbackProc move_cb ;
91
Cardinal num_nav_list ;
92
Cardinal num_nav_slots;
93
} XmScrollFrameDataRec, *XmScrollFrameData;
97
} /* Close scope of 'extern "C"' declaration which encloses file. */
100
#endif /* _XmScrollFrameT_H */