home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xprism.zip / xprism / src / xprism3 / scrolls.h < prev    next >
C/C++ Source or Header  |  1992-09-30  |  3KB  |  83 lines

  1.  /*
  2.   * Khoros: $Id: scrolls.h,v 1.1 1991/05/10 15:59:48 khoros Exp $
  3.   */
  4.  
  5.  /*
  6.   * $Log: scrolls.h,v $
  7.  * Revision 1.1  1991/05/10  15:59:48  khoros
  8.  * Initial revision
  9.  *
  10.   */ 
  11.  
  12.  
  13. /*
  14.  *----------------------------------------------------------------------
  15.  *
  16.  * Copyright 1990, University of New Mexico.  All rights reserved.
  17.  * 
  18.  * Permission to copy and modify this software and its documen-
  19.  * tation only for internal use in your organization is hereby
  20.  * granted, provided that this notice is retained thereon and
  21.  * on all copies.  UNM makes no representations as too the sui-
  22.  * tability and operability of this software for any purpose.
  23.  * It is provided "as is" without express or implied warranty.
  24.  * 
  25.  * UNM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  26.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-
  27.  * NESS.  IN NO EVENT SHALL UNM BE LIABLE FOR ANY SPECIAL,
  28.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY OTHER DAMAGES WHAT-
  29.  * SOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  30.  * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  31.  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PER-
  32.  * FORMANCE OF THIS SOFTWARE.
  33.  * 
  34.  * No other rights, including for example, the right to redis-
  35.  * tribute this software and its documentation or the right to
  36.  * prepare derivative works, are granted unless specifically
  37.  * provided in a separate license agreement.
  38.  *----------------------------------------------------------------------
  39.  */
  40.  
  41. #include "unmcopyright.h"     /* Copyright 1990 by UNM */
  42. /*
  43.  *    The Scroll_Data structure contains all the information
  44.  *    needed for a callback routine for the scroll bars that
  45.  *    appear on the perspective selection bar.  These are the
  46.  *      scroll bars that rotate the perspective about X, and about
  47.  *    Z.
  48.  */
  49.  
  50.  
  51. typedef struct {
  52.         float  float_min;
  53.         float  float_max;
  54.         float  float_value;
  55.         int    bar_width;
  56.         int    increment;
  57.     char   *buffer;
  58.     int    flag;
  59.         Widget *val_widget;
  60.         Widget *scroll_widget;
  61.         }  Scroll_Data;
  62.  
  63. /*
  64.  *       this structure is for looking up desired info about the value
  65.  *    widget associated with a scroll bar that appears on the perspective
  66.  *    selection bar.
  67.  */
  68.     
  69. typedef struct scroll_link {
  70.                 Widget  value_widget;
  71.                 Scroll_Data *scroll_info;
  72.                 struct scroll_link *next;
  73.                 } persp_scroll_link;
  74.  
  75. persp_scroll_link *persp_scroll_list;
  76.  
  77.  
  78. #define RotateX 1
  79. #define RotateZ 2
  80. #define Camera  3
  81. #define Zoom    4
  82.  
  83.