This file is indexed.

/usr/include/cegui-0.8.7/CEGUI/CommonDialogs/ColourPicker/Types.h is in libcegui-mk2-dev 0.8.7-1.3+b2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/***********************************************************************
    created:    20th February 2010
    author:     Lukas E Meindl

    purpose:    Header of the ColourPicker colour type classes
*************************************************************************/
/***************************************************************************
*   Copyright (C) 2004 - 2011 Paul D Turner & The CEGUI Development Team
*
*   Permission is hereby granted, free of charge, to any person obtaining
*   a copy of this software and associated documentation files (the
*   "Software"), to deal in the Software without restriction, including
*   without limitation the rights to use, copy, modify, merge, publish,
*   distribute, sublicense, and/or sell copies of the Software, and to
*   permit persons to whom the Software is furnished to do so, subject to
*   the following conditions:
*
*   The above copyright notice and this permission notice shall be
*   included in all copies or substantial portions of the Software.
*
*   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
*   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
*   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
*   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
*   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
*   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
*   OTHER DEALINGS IN THE SOFTWARE.
***************************************************************************/
#ifndef CEGUI_COLOUR_PICKER_TYPES_H
#define CEGUI_COLOUR_PICKER_TYPES_H

#include "CEGUI/CommonDialogs/Module.h"
#include "CEGUI/Window.h"

#if defined(_MSC_VER)
#   pragma warning(push)
#   pragma warning(disable : 4251)
#endif


namespace CEGUI
{

/*!
\brief
    Enum defining the ColourPicker Slider mode

\deprecated
    This enum is deprecated and has been marked for removal.
*/
enum ColourPickerSliderMode
{
    ColourPickerSliderMode_L,
    ColourPickerSliderMode_A,
    ColourPickerSliderMode_B
};

class CEGUI_COMMONDIALOGS_API Lab_Colour;
class CEGUI_COMMONDIALOGS_API RGB_Colour;
class CEGUI_COMMONDIALOGS_API HSV_Colour;

//! Class representing an RGB colour using unsigned chars
class CEGUI_COMMONDIALOGS_API RGB_Colour :
    public AllocatedObject<RGB_Colour>
{
public:
    RGB_Colour(unsigned char red, unsigned char green, unsigned char blue) :
        r(red), g(green), b(blue)
    {}

    RGB_Colour() :
        r(0), g(0), b(0)
    {}

    RGB_Colour(const Lab_Colour& colour);
    RGB_Colour(const HSV_Colour& colour);
    RGB_Colour(const CEGUI::Colour& colour);

    unsigned char   r;
    unsigned char   g;
    unsigned char   b;

    RGB_Colour operator*(const float& number) const;
    RGB_Colour operator+(const RGB_Colour& colour) const;
};

//! Class representing a Colour according to the L*a*b* standard
class CEGUI_COMMONDIALOGS_API Lab_Colour :
    public AllocatedObject<Lab_Colour>
{
public:
    Lab_Colour(float LValue, float aValue, float bValue) :
        L(LValue), a(aValue), b(bValue)
    {}

    Lab_Colour() :
        L(0.0f), a(0.0f), b(0.0f)
    {}

    Lab_Colour(const RGB_Colour& colour);
    Lab_Colour(const HSV_Colour& colour);
    Lab_Colour(const CEGUI::Colour& colour);


    float L;
    float a;
    float b;
};

//! Class representing an HSV (hue, saturation and value) colour using floats.
class CEGUI_COMMONDIALOGS_API HSV_Colour :
    public AllocatedObject<HSV_Colour>
{
public:
    HSV_Colour(float HValue, float SValue, float VValue) :
        H(HValue), S(SValue), V(VValue)
    {}

    HSV_Colour() :
        H(0.0f), S(0.0f), V(0.0f)
    {}

    HSV_Colour(const RGB_Colour& colour);
    HSV_Colour(const Lab_Colour& colour);
    HSV_Colour(const CEGUI::Colour& colour);

    float H;
    float S;
    float V;
};

}

#if defined(_MSC_VER)
#   pragma warning(pop)
#endif

#endif