| 1 | /* |
| 2 | * |
| 3 | * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2.1 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * Further, this software is distributed without any warranty that it is |
| 16 | * free of the rightful claim of any third person regarding infringement |
| 17 | * or the like. Any license provided herein, whether implied or |
| 18 | * otherwise, applies only to this software file. Patent licenses, if |
| 19 | * any, provided herein do not apply to combinations of this program with |
| 20 | * other software, or any other product whatsoever. |
| 21 | * |
| 22 | * You should have received a copy of the GNU Lesser General Public |
| 23 | * License along with this library; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 | * |
| 26 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, |
| 27 | * Mountain View, CA 94043, or: |
| 28 | * |
| 29 | * http://www.sgi.com |
| 30 | * |
| 31 | * For further information regarding this notice, see: |
| 32 | * |
| 33 | * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ |
| 34 | * |
| 35 | */ |
| 36 | |
| 37 | // -*- C++ -*- |
| 38 | |
| 39 | /* |
| 40 | * Copyright (C) 1990,91 Silicon Graphics, Inc. |
| 41 | * |
| 42 | _______________________________________________________________________ |
| 43 | ______________ S I L I C O N G R A P H I C S I N C . ____________ |
| 44 | | |
| 45 | | $Revision: 1.1.1.1 $ |
| 46 | | |
| 47 | | Description: |
| 48 | | This file contains convenience routines which draws borders, and |
| 49 | | elevated 3D looking regions. Those 3D looking UI regions are primarly |
| 50 | | used in SoSliders, SoColorPatch, SoColorWheel, ... |
| 51 | | |
| 52 | | Author(s) : Alain Dumesny |
| 53 | | |
| 54 | | |
| 55 | ______________ S I L I C O N G R A P H I C S I N C . ____________ |
| 56 | _______________________________________________________________________ |
| 57 | */ |
| 58 | |
| 59 | #ifndef _SO_UI_REGION_ |
| 60 | #define _SO_UI_REGION_cxx . . $ `libSoXt/include/_SoXtUIRegion.h:60:10`! |
| 61 | |
| 62 | #include <Inventor/SbBasic.h>cxx . . $ `<file>/lib/database/include/Inventor/SbBasic.h`/ |
| 63 | |
| 64 | /* |
| 65 | * Defines |
| 66 | */ |
| 67 | |
| 68 | // |
| 69 | // list of grey colors used when drawing regions |
| 70 | // |
| 71 | #define WHITE_UI_COLORcxx . . $ `libSoXt/include/_SoXtUIRegion.h:71:9`! glColor3ub(255,255,255) |
| 72 | #define BLACK_UI_COLORcxx . . $ `libSoXt/include/_SoXtUIRegion.h:72:9`! glColor3ub(0,0,0) |
| 73 | #define MAIN_UI_COLORcxx . . $ `libSoXt/include/_SoXtUIRegion.h:73:9`! glColor3ub(170,170,170) |
| 74 | #define DARK1_UI_COLORcxx . . $ `libSoXt/include/_SoXtUIRegion.h:74:9`! glColor3ub(128,128,128) |
| 75 | #define DARK2_UI_COLORcxx . . $ `libSoXt/include/_SoXtUIRegion.h:75:9`! glColor3ub(85,85,85) |
| 76 | #define DARK3_UI_COLORcxx . . $ `libSoXt/include/_SoXtUIRegion.h:76:9`! glColor3ub(50,50,50) |
| 77 | #define LIGHT1_UI_COLORcxx . . $ `libSoXt/include/_SoXtUIRegion.h:77:9`! glColor3ub(215,215,215) |
| 78 | |
| 79 | #define UI_THICKcxx . . $ `libSoXt/include/_SoXtUIRegion.h:79:9`! 3 |
| 80 | |
| 81 | |
| 82 | #define SO_UI_REGION_GREY1cxx . . $ `libSoXt/include/_SoXtUIRegion.h:82:9`! glColor3ub(240, 240, 240) |
| 83 | #define SO_UI_REGION_GREY2cxx . . $ `libSoXt/include/_SoXtUIRegion.h:83:9`! glColor3ub(190, 190, 190) |
| 84 | #define SO_UI_REGION_GREY3cxx . . $ `libSoXt/include/_SoXtUIRegion.h:84:9`! glColor3ub(150, 150, 150) |
| 85 | #define SO_UI_REGION_GREY4cxx . . $ `libSoXt/include/_SoXtUIRegion.h:85:9`! glColor3ub(130, 130, 130) |
| 86 | #define SO_UI_REGION_GREY5cxx . . $ `libSoXt/include/_SoXtUIRegion.h:86:9`! glColor3ub(110, 110, 110) |
| 87 | #define SO_UI_REGION_GREY6cxx . . $ `libSoXt/include/_SoXtUIRegion.h:87:9`! glColor3ub(70, 70, 70) |
| 88 | #define SO_UI_REGION_GREY7cxx . . $ `libSoXt/include/_SoXtUIRegion.h:88:9`! glColor3ub(30, 30, 30) |
| 89 | |
| 90 | |
| 91 | /* |
| 92 | * Function prototypes |
| 93 | */ |
| 94 | |
| 95 | extern void |
| 96 | SoDrawDownUIRegioncxx . . $ SoDrawDownUIRegion(6f3a90be462c391b).(short x1, short y1, short x2, short y2); |
| 97 | |
| 98 | extern void |
| 99 | SoDrawDownUIBorderscxx . . $ SoDrawDownUIBorders(55453a9d75a8e401).(short x1, short y1, short x2, short y2, SbBoolcxx . . $ SbBool# blackLast=FALSEcxx . . $ `<external>/3673480128541058774/Intrinsic.h:110:9`!); |
| 100 | |
| 101 | extern void |
| 102 | SoDrawThumbUIRegioncxx . . $ SoDrawThumbUIRegion(6f3a90be462c391b).(short x1, short y1, short x2, short y2); |
| 103 | |
| 104 | #endif // _SO_UI_REGION_ |