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 13const char* wxART_FIND_AND_REPLACE; 14 15const char* wxART_FIND; 16 17const char* wxART_QUIT; 18 19const char* wxART_CLOSE; 20 21const char* wxART_MINUS; 22 23const char* wxART_PLUS; 24 25const char* wxART_REDO; 26 27const char* wxART_UNDO; 28 29const char* wxART_NEW; 30 31const char* wxART_DELETE; 32 33const char* wxART_PASTE; 34 35const char* wxART_CUT; 36 37const char* wxART_COPY; 38 39const char* wxART_MISSING_IMAGE; 40 41const char* wxART_INFORMATION; 42 43const char* wxART_WARNING; 44 45const char* wxART_QUESTION; 46 47const char* wxART_ERROR; 48 49const char* wxART_CROSS_MARK; 50 51const char* wxART_TICK_MARK; 52 53const char* wxART_NORMAL_FILE; 54 55const char* wxART_EXECUTABLE_FILE; 56 57const char* wxART_GO_DIR_UP; 58 59const char* wxART_FOLDER_OPEN; 60 61const char* wxART_FOLDER; 62 63const char* wxART_REMOVABLE; 64 65const char* wxART_CDROM; 66 67const char* wxART_FLOPPY; 68 69const char* wxART_HARDDISK; 70 71const char* wxART_NEW_DIR; 72 73const char* wxART_LIST_VIEW; 74 75const char* wxART_REPORT_VIEW; 76 77const char* wxART_TIP; 78 79const char* wxART_HELP; 80 81const char* wxART_PRINT; 82 83const char* wxART_FILE_SAVE_AS; 84 85const char* wxART_FILE_SAVE; 86 87const char* wxART_FILE_OPEN; 88 89const char* wxART_GOTO_LAST; 90 91const char* wxART_GOTO_FIRST; 92 93const char* wxART_GO_HOME; 94 95const char* wxART_GO_TO_PARENT; 96 97const char* wxART_GO_DOWN; 98 99const char* wxART_GO_UP; 100 101const char* wxART_GO_FORWARD; 102 103const char* wxART_GO_BACK; 104 105const char* wxART_HELP_PAGE; 106 107const char* wxART_HELP_FOLDER; 108 109const char* wxART_HELP_BOOK; 110 111const char* wxART_HELP_SETTINGS; 112 113const char* wxART_HELP_SIDE_PANEL; 114 115const char* wxART_DEL_BOOKMARK; 116 117const char* wxART_ADD_BOOKMARK; 118 119const char* wxART_OTHER; 120 121const char* wxART_LIST; 122 123const char* wxART_BUTTON; 124 125const char* wxART_MESSAGE_BOX; 126 127const char* wxART_HELP_BROWSER; 128 129const char* wxART_CMN_DIALOG; 130 131const char* wxART_FRAME_ICON; 132 133const char* wxART_MENU; 134 135const char* wxART_TOOLBAR; 136 137typedef wxString wxArtClient; 138 139typedef wxString wxArtID; 140 141class wxArtProvider : wxObject 142{ 143 %Docstring 144 wxArtProvider class is used to customize the look of wxWidgets 145 application. 146 %End 147 %TypeHeaderCode 148 #include <wx/artprov.h> 149 %End 150 151public: 152 virtual 153 ~wxArtProvider(); 154 155 static 156 bool Delete( 157 wxArtProvider * provider 158 ); 159 %Docstring 160 Delete(provider) -> bool 161 162 Delete the given provider. 163 %End 164 165 static 166 wxBitmap GetBitmap( 167 const wxArtID & id, 168 const wxArtClient & client = wxART_OTHER, 169 const wxSize & size = wxDefaultSize 170 ); 171 %Docstring 172 GetBitmap(id, client=ART_OTHER, size=DefaultSize) -> Bitmap 173 174 Query registered providers for bitmap with given ID. 175 %End 176 %PreMethodCode 177 if (!wxPyCheckForApp()) return NULL; 178 %End 179 180 static 181 wxIcon GetIcon( 182 const wxArtID & id, 183 const wxArtClient & client = wxART_OTHER, 184 const wxSize & size = wxDefaultSize 185 ); 186 %Docstring 187 GetIcon(id, client=ART_OTHER, size=DefaultSize) -> Icon 188 189 Same as wxArtProvider::GetBitmap, but return a wxIcon object (or 190 wxNullIcon on failure). 191 %End 192 %PreMethodCode 193 if (!wxPyCheckForApp()) return NULL; 194 %End 195 196 static 197 wxSize GetNativeSizeHint( 198 const wxArtClient & client 199 ); 200 %Docstring 201 GetNativeSizeHint(client) -> Size 202 203 Returns native icon size for use specified by client hint. 204 %End 205 206 static 207 wxSize GetSizeHint( 208 const wxArtClient & client, 209 bool platform_default = false 210 ); 211 %Docstring 212 GetSizeHint(client, platform_default=False) -> Size 213 214 Returns a suitable size hint for the given wxArtClient. 215 %End 216 217 static 218 wxIconBundle GetIconBundle( 219 const wxArtID & id, 220 const wxArtClient & client = wxART_OTHER 221 ); 222 %Docstring 223 GetIconBundle(id, client=ART_OTHER) -> IconBundle 224 225 Query registered providers for icon bundle with given ID. 226 %End 227 228 static 229 bool HasNativeProvider(); 230 %Docstring 231 HasNativeProvider() -> bool 232 233 Returns true if the platform uses native icons provider that should 234 take precedence over any customizations. 235 %End 236 237 static 238 void Insert( 239 wxArtProvider * provider /Transfer/ 240 ) /Deprecated/; 241 %Docstring 242 Insert(provider) 243 %End 244 245 static 246 bool Pop(); 247 %Docstring 248 Pop() -> bool 249 250 Remove latest added provider and delete it. 251 %End 252 253 static 254 void Push( 255 wxArtProvider * provider /Transfer/ 256 ); 257 %Docstring 258 Push(provider) 259 260 Register new art provider and add it to the top of providers stack 261 (i.e. 262 %End 263 264 static 265 void PushBack( 266 wxArtProvider * provider /Transfer/ 267 ); 268 %Docstring 269 PushBack(provider) 270 271 Register new art provider and add it to the bottom of providers stack. 272 %End 273 274 static 275 bool Remove( 276 wxArtProvider * provider /TransferBack/ 277 ); 278 %Docstring 279 Remove(provider) -> bool 280 281 Remove a provider from the stack if it is on it. 282 %End 283 284 static 285 wxArtID GetMessageBoxIconId( 286 int flags 287 ); 288 %Docstring 289 GetMessageBoxIconId(flags) -> ArtID 290 291 Helper used by GetMessageBoxIcon(): return the art id corresponding to 292 the standard wxICON_INFORMATION/WARNING/ERROR/QUESTION flags (only one 293 can be set) 294 %End 295 296 static 297 wxIcon GetMessageBoxIcon( 298 int flags 299 ); 300 %Docstring 301 GetMessageBoxIcon(flags) -> Icon 302 303 Helper used by several generic classes: return the icon corresponding 304 to the standard wxICON_INFORMATION/WARNING/ERROR/QUESTION flags (only 305 one can be set) 306 %End 307 308 309protected: 310 virtual 311 wxBitmap CreateBitmap( 312 const wxArtID & id, 313 const wxArtClient & client, 314 const wxSize & size 315 ); 316 %Docstring 317 CreateBitmap(id, client, size) -> Bitmap 318 319 Derived art provider classes must override this method to create 320 requested art resource. 321 %End 322 323 virtual 324 wxIconBundle CreateIconBundle( 325 const wxArtID & id, 326 const wxArtClient & client 327 ); 328 %Docstring 329 CreateIconBundle(id, client) -> IconBundle 330 331 This method is similar to CreateBitmap() but can be used when a bitmap 332 (or an icon) exists in several sizes. 333 %End 334 335}; // end of class wxArtProvider 336 337 338 339//--------------------------------------------------------------------------- 340 341