This file is indexed.

/usr/include/wx-3.0/wx/wxPython/i_files/_uiaction.i is in python-wxgtk3.0-dev 3.0.2.0+dfsg-7.

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
/////////////////////////////////////////////////////////////////////////////
// Name:        _uiaction.i
// Purpose:     SWIG interface for wxUIActionSimulator
//
// Author:      Robin Dunn
//
// Created:     30-Mar-2010
// RCS-ID:      $Id: $
// Copyright:   (c) 2010 by Total Control Software
// Licence:     wxWindows license
/////////////////////////////////////////////////////////////////////////////

// Not a %module

%{
#include <wx/uiaction.h>
%}

//---------------------------------------------------------------------------
// Empty implementation of the class if wxWidgets doesn't have it

%{
#if !wxUSE_UIACTIONSIMULATOR    
class wxUIActionSimulator
{
public:
    wxUIActionSimulator() {
        wxPyRaiseNotImplementedMsg(
            "wx.UIActionSimulator is not available in this build of wxWidgets.");
    }
    ~wxUIActionSimulator() {}

    bool MouseMove(long, long) { return false; }
    bool MouseDown(int) { return false; }
    bool MouseUp(int) { return false; }
    bool MouseClick(int) { return false; }
    bool MouseDblClick(int) { return false; }
    bool MouseDragDrop(long, long, long, long, int) { return false; }

    bool KeyDown(int, int) { return false; }
    bool KeyUp(int, int) { return false; }
    bool Char(int, int) { return false; }
    bool Text(const char *) { return false; }
};
#endif    
%}


//---------------------------------------------------------------------------
%newgroup

class wxUIActionSimulator
{
public:
    wxUIActionSimulator();
    ~wxUIActionSimulator();

    // Mouse simulation
    %nokwargs MouseMove;
    bool MouseMove(long x, long y);
    bool MouseMove(const wxPoint& point);
    
    bool MouseDown(int button = wxMOUSE_BTN_LEFT);
    bool MouseUp(int button = wxMOUSE_BTN_LEFT);
    
    bool MouseClick(int button = wxMOUSE_BTN_LEFT);
    bool MouseDblClick(int button = wxMOUSE_BTN_LEFT);
    bool MouseDragDrop(long x1, long y1, long x2, long y2,
                              int button = wxMOUSE_BTN_LEFT);

    // Keyboard simulation
    // Low level methods for generating key presses and releases
    bool KeyDown(int keycode, int modifiers = wxMOD_NONE);

    bool KeyUp(int keycode, int modifiers = wxMOD_NONE);

    // Higher level methods for generating both the key press and release for a
    // single key or for all characters in the ASCII string "text" which can
    // currently contain letters only (no digits, no punctuation).
    bool Char(int keycode, int modifiers = wxMOD_NONE);
    bool Text(const char *text);


};


//---------------------------------------------------------------------------