This file is indexed.

/usr/include/wx-2.8/wx/gizmos/ledctrl.h is in wx2.8-headers 2.8.12.1-6ubuntu2.

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
#ifndef _WX_LEDNUMBERCTRL_H_
#define _WX_LEDNUMBERCTRL_H_

#include "wx/gizmos/gizmos.h"

#include <wx/window.h>
#include <wx/control.h>

class wxEraseEvent;
class wxPaintEvent;
class wxSizeEvent;

// ----------------------------------------------------------------------------
// enum and styles
// ----------------------------------------------------------------------------

enum wxLEDValueAlign
{
    wxLED_ALIGN_LEFT   = 0x01,
    wxLED_ALIGN_RIGHT  = 0x02,
    wxLED_ALIGN_CENTER = 0x04,

    wxLED_ALIGN_MASK   = 0x04
};

#define wxLED_DRAW_FADED 0x08

// ----------------------------------------------------------------------------
// wxLEDNumberCtrl
// ----------------------------------------------------------------------------

class WXDLLIMPEXP_GIZMOS wxLEDNumberCtrl : public wxControl
{
public:
    // Constructors.
    wxLEDNumberCtrl();
    wxLEDNumberCtrl(wxWindow *parent, wxWindowID id = wxID_ANY,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
                    long style = wxLED_ALIGN_LEFT | wxLED_DRAW_FADED);

    // Create functions.
    bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
                    const wxPoint& pos = wxDefaultPosition,
                    const wxSize& size = wxDefaultSize,
                    long style = 0);

    wxLEDValueAlign GetAlignment() const { return m_Alignment; }
    bool GetDrawFaded() const { return m_DrawFaded; }
    const wxString &GetValue() const { return m_Value; }

    void SetAlignment(wxLEDValueAlign Alignment, bool Redraw = true);
    void SetDrawFaded(bool DrawFaded, bool Redraw = true);
    void SetValue(const wxString &Value, bool Redraw = true);

private:
    // Members.
    wxString m_Value;
    wxLEDValueAlign m_Alignment;

    int m_LineMargin;
    int m_DigitMargin;
    int m_LineLength;
    int m_LineWidth;
    bool m_DrawFaded;
    int m_LeftStartPos;

    // Functions.
    void DrawDigit(wxDC &Dc, int Digit, int Column);
    void RecalcInternals(const wxSize &CurrentSize);

    // Events.
    DECLARE_EVENT_TABLE()

    void OnEraseBackground(wxEraseEvent &Event);
    void OnPaint(wxPaintEvent &Event);
    void OnSize(wxSizeEvent &Event);
};

#endif