0023024: Update headers of OCCT files
[occt.git] / src / AlienImage / AlienImage_X11XColor.hxx
CommitLineData
b311480e 1// Copyright (c) 1995-1999 Matra Datavision
2// Copyright (c) 1999-2012 OPEN CASCADE SAS
3//
4// The content of this file is subject to the Open CASCADE Technology Public
5// License Version 6.5 (the "License"). You may not use the content of this file
6// except in compliance with the License. Please obtain a copy of the License
7// at http://www.opencascade.org and read it completely before using this file.
8//
9// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
11//
12// The Original Code and all software distributed under the License is
13// distributed on an "AS IS" basis, without warranty of any kind, and the
14// Initial Developer hereby disclaims all such warranties, including without
15// limitation, any warranties of merchantability, fitness for a particular
16// purpose or non-infringement. Please see the License for the specific terms
17// and conditions governing the rights and limitations under the License.
18
7fd59977 19//============================================================================
20//==== Titre: AlienImage_X11XColor.hxx
21//==== Role : The header file of primitve type "X11XColor" from package
22//==== "AlienImage"
23//====
24//==== Implementation: This is a primitive type implemented with typedef
25//==== typedef XColor AlienImage_X11XColor;
26//============================================================================
27
28#ifndef AlienImage_X11XColor_HeaderFile
29#define AlienImage_X11XColor_HeaderFile
30
31/*
32 * Data structure used by color operations from <X11/Xlib.h>
33 */
34//==== Definition de Type ====================================================
35#include <Standard_Type.hxx>
36extern const Handle_Standard_Type AlienImage_X11XColorType;
37inline Handle(Standard_Type) AlienImage_X11XColorType_Type_() {return 0;}
38//============================================================================
39
40/*
41invalide car unsigned long = 32 ou 64 !
42#include <X11/Xlib.h>
43typedef XColor AlienImage_X11XColor ;
44*/
45
46/*
47 * Data structure used by color operations
48 */
49typedef struct {
50 unsigned int pixel;
51 unsigned short red, green, blue;
52 char flags; /* do_red, do_green, do_blue */
53 char pad;
54} AlienImage_X11XColor;
55
56ostream& operator << ( ostream& s, const AlienImage_X11XColor& color );
57
58Standard_Boolean operator == (const AlienImage_X11XColor& AnObject,
59 const AlienImage_X11XColor& AnotherObject);
60void ShallowDump (const AlienImage_X11XColor& AnObject, Standard_OStream& S);
61
62#endif
63