1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13class wxIconLocation 14{ 15 %Docstring 16 IconLocation() 17 IconLocation(filename, num=0) 18 19 wxIconLocation is a tiny class describing the location of an 20 (external, i.e. 21 %End 22 %TypeHeaderCode 23 #include <wx/iconloc.h> 24 %End 25 26public: 27 wxIconLocation() /NoDerived/; 28 %MethodCode 29 PyErr_Clear(); 30 sipCpp = _wxIconLocation_ctor(); 31 %End 32 %TypeCode 33 wxIconLocation* _wxIconLocation_ctor() 34 { 35 return new wxIconLocation; 36 } 37 %End 38 39 wxIconLocation(const wxString* filename, int num = 0) /NoDerived/; 40 %MethodCode 41 PyErr_Clear(); 42 sipCpp = _wxIconLocation_ctor(filename, num); 43 %End 44 %TypeCode 45 wxIconLocation* _wxIconLocation_ctor(const wxString* filename, int num) 46 { 47 #ifdef __WXMSW__ 48 return new wxIconLocation(*filename, num); 49 #else 50 return new wxIconLocation(*filename); 51 #endif 52 } 53 %End 54 55 bool IsOk() const; 56 %Docstring 57 IsOk() -> bool 58 59 Returns true if the object is valid, i.e. was properly initialized, 60 and false otherwise. 61 %End 62 63 void SetFileName( 64 const wxString & filename 65 ); 66 %Docstring 67 SetFileName(filename) 68 %End 69 70 const wxString & GetFileName() const; 71 %Docstring 72 GetFileName() -> String 73 %End 74 75 int __nonzero__(); 76 %Docstring 77 __nonzero__() -> int 78 %End 79 %MethodCode 80 PyErr_Clear(); 81 Py_BEGIN_ALLOW_THREADS 82 sipRes = _wxIconLocation___nonzero__(sipCpp); 83 Py_END_ALLOW_THREADS 84 if (PyErr_Occurred()) sipIsErr = 1; 85 %End 86 %TypeCode 87 int _wxIconLocation___nonzero__(wxIconLocation* self) 88 { 89 return self->IsOk(); 90 } 91 %End 92 93 int __bool__(); 94 %Docstring 95 __bool__() -> int 96 %End 97 %MethodCode 98 PyErr_Clear(); 99 Py_BEGIN_ALLOW_THREADS 100 sipRes = _wxIconLocation___bool__(sipCpp); 101 Py_END_ALLOW_THREADS 102 if (PyErr_Occurred()) sipIsErr = 1; 103 %End 104 %TypeCode 105 int _wxIconLocation___bool__(wxIconLocation* self) 106 { 107 return self->IsOk(); 108 } 109 %End 110 111 int GetIndex(); 112 %Docstring 113 GetIndex() -> int 114 %End 115 %MethodCode 116 PyErr_Clear(); 117 Py_BEGIN_ALLOW_THREADS 118 sipRes = _wxIconLocation_GetIndex(sipCpp); 119 Py_END_ALLOW_THREADS 120 if (PyErr_Occurred()) sipIsErr = 1; 121 %End 122 %TypeCode 123 int _wxIconLocation_GetIndex(wxIconLocation* self) 124 { 125 #ifdef __WXMSW__ 126 return self->GetIndex(); 127 #else 128 return -1; 129 #endif 130 } 131 %End 132 133 void SetIndex(int num); 134 %Docstring 135 SetIndex(num) 136 %End 137 %MethodCode 138 PyErr_Clear(); 139 Py_BEGIN_ALLOW_THREADS 140 _wxIconLocation_SetIndex(sipCpp, num); 141 Py_END_ALLOW_THREADS 142 if (PyErr_Occurred()) sipIsErr = 1; 143 %End 144 %TypeCode 145 void _wxIconLocation_SetIndex(wxIconLocation* self, int num) 146 { 147 #ifdef __WXMSW__ 148 self->SetIndex(num); 149 #endif 150 } 151 %End 152 153 public: 154 155 156 %Property(name=FileName, get=GetFileName, set=SetFileName) 157 %Property(name=Index, get=GetIndex, set=SetIndex) 158}; // end of class wxIconLocation 159 160 161 162//--------------------------------------------------------------------------- 163 164