"Fossies" - the Fresh Open Source Software Archive

Member "ivtools-ivtools-2.0.4/src/include/IV-2_6/InterViews/alignment.h" (9 Oct 2020, 2236 Bytes) of package /linux/misc/ivtools-ivtools-2.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "alignment.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University
    3  * Copyright (c) 1991 Silicon Graphics, Inc.
    4  *
    5  * Permission to use, copy, modify, distribute, and sell this software and 
    6  * its documentation for any purpose is hereby granted without fee, provided
    7  * that (i) the above copyright notices and this permission notice appear in
    8  * all copies of the software and related documentation, and (ii) the names of
    9  * Stanford and Silicon Graphics may not be used in any advertising or
   10  * publicity relating to the software without the specific, prior written
   11  * permission of Stanford and Silicon Graphics.
   12  * 
   13  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
   14  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
   15  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
   16  *
   17  * IN NO EVENT SHALL STANFORD OR SILICON GRAPHICS BE LIABLE FOR
   18  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
   19  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
   20  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
   21  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
   22  * OF THIS SOFTWARE.
   23  */
   24 
   25 /*
   26  * Common definitions for all of InterViews.
   27  */
   28 
   29 #ifndef iv2_6_alignment_h
   30 #define iv2_6_alignment_h
   31 
   32 #include <InterViews/enter-scope.h>
   33 
   34 #include <IV-2_6/_enter.h>
   35 
   36 #define ALIGNMENT_DEFINED
   37 
   38 /*
   39  * Alignment needs to be unsigned so that it can be stored
   40  * as a bit field.
   41  */
   42 
   43 typedef unsigned Alignment;
   44 
   45 /*
   46  * Use the concrete type (unsigned) instead of Alignment
   47  * to get around cfront 2.1 incorrect warning.
   48  */
   49 static const unsigned TopLeft = 0;
   50 static const unsigned TopCenter = 1;
   51 static const unsigned TopRight = 2;
   52 static const unsigned CenterLeft = 3;
   53 static const unsigned Center = 4;
   54 static const unsigned CenterRight = 5;
   55 static const unsigned BottomLeft = 6;
   56 static const unsigned BottomCenter = 7;
   57 static const unsigned BottomRight = 8;
   58 static const unsigned Left = 9;
   59 static const unsigned Right = 10;
   60 static const unsigned Top = 11;
   61 static const unsigned Bottom = 12;
   62 static const unsigned HorizCenter = 13;
   63 static const unsigned VertCenter = 14;
   64 
   65 #include <IV-2_6/_leave.h>
   66 
   67 #endif