/usr/include/wx-3.0/wx/wxPython/i_files/_hyperlink.i is in python-wxgtk3.0-dev 3.0.2.0+dfsg-4.
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 | /////////////////////////////////////////////////////////////////////////////
// Name: _hyperlink.i
// Purpose: SWIG interface defs for wxHyperlinkCtrl
//
// Author: Robin Dunn
//
// Created: 28-May-2006
// RCS-ID: $Id$
// Copyright: (c) 2006 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Not a %module
//---------------------------------------------------------------------------
MAKE_CONST_WXSTRING(HyperlinkCtrlNameStr);
enum {
wxHL_CONTEXTMENU,
wxHL_ALIGN_LEFT,
wxHL_ALIGN_RIGHT,
wxHL_ALIGN_CENTRE,
wxHL_DEFAULT_STYLE,
};
//---------------------------------------------------------------------------
%newgroup
MustHaveApp(wxHyperlinkCtrl);
DocStr( wxHyperlinkCtrl,
"A static text control that emulates a hyperlink. The link is displayed
in an appropriate text style, derived from the control's normal font.
When the mouse rolls over the link, the cursor changes to a hand and
the link's color changes to the active color.
Clicking on the link does not launch a web browser; instead, a
wx.HyperlinkEvent is fired. Use the wx.EVT_HYPERLINK to catch link
events.
", "");
class wxHyperlinkCtrl : public wxControl
{
public:
%pythonAppend wxHyperlinkCtrl "self._setOORInfo(self)"
%pythonAppend wxHyperlinkCtrl() ""
// Constructor.
wxHyperlinkCtrl(wxWindow *parent,
wxWindowID id=-1,
const wxString& label = wxEmptyString,
const wxString& url = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxHL_DEFAULT_STYLE,
const wxString& name = wxPyHyperlinkCtrlNameStr);
%RenameCtor(PreHyperlinkCtrl, wxHyperlinkCtrl());
// Creation function (for two-step construction).
bool Create(wxWindow *parent,
wxWindowID id=-1,
const wxString& label = wxEmptyString,
const wxString& url = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxHL_DEFAULT_STYLE,
const wxString& name = wxPyHyperlinkCtrlNameStr);
// get/set
wxColour GetHoverColour() const;
void SetHoverColour(const wxColour &colour);
wxColour GetNormalColour() const;
void SetNormalColour(const wxColour &colour);
wxColour GetVisitedColour() const;
void SetVisitedColour(const wxColour &colour);
wxString GetURL() const;
void SetURL (const wxString &url);
void SetVisited(bool visited = true);
bool GetVisited() const;
%property(HoverColour, GetHoverColour, SetHoverColour, doc="See `GetHoverColour` and `SetHoverColour`");
%property(NormalColour, GetNormalColour, SetNormalColour, doc="See `GetNormalColour` and `SetNormalColour`");
%property(URL, GetURL, SetURL, doc="See `GetURL` and `SetURL`");
%property(Visited, GetVisited, SetVisited, doc="See `GetVisited` and `SetVisited`");
%property(VisitedColour, GetVisitedColour, SetVisitedColour, doc="See `GetVisitedColour` and `SetVisitedColour`");
};
%constant wxEventType wxEVT_COMMAND_HYPERLINK;
//
// An event fired when the user clicks on the label in a hyperlink control.
// See HyperlinkControl for details.
//
class wxHyperlinkEvent : public wxCommandEvent
{
public:
wxHyperlinkEvent(wxObject *generator, wxWindowID id, const wxString& url);
// Returns the URL associated with the hyperlink control
// that the user clicked on.
wxString GetURL() const;
void SetURL(const wxString &url);
%property(URL, GetURL, SetURL, doc="See `GetURL` and `SetURL`");
};
%pythoncode {
EVT_HYPERLINK = wx.PyEventBinder( wxEVT_COMMAND_HYPERLINK, 1 )
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
|