]> git.saurik.com Git - wxWidgets.git/blob - interface/utils.h
4f48f7dfc0a5133d390160e2724811faab5f1edd
[wxWidgets.git] / interface / utils.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: utils.h
3 // Purpose: interface of wxWindowDisabler
4 // Author: wxWidgets team
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 /**
10 @class wxWindowDisabler
11 @wxheader{utils.h}
12
13 This class disables all windows of the application (may be with the exception
14 of one of them) in its constructor and enables them back in its destructor.
15
16 This is useful when you want to indicate to the user that the application
17 is currently busy and cannot respond to user input.
18
19 @library{wxcore}
20 @category{FIXME}
21
22 @see wxBusyCursor
23 */
24 class wxWindowDisabler
25 {
26 public:
27 /**
28 Disables all top level windows of the applications.
29
30 If @a disable is @c false nothing is done. This can be convenient if
31 the windows should be disabled depending on some condition.
32
33 @since 2.9.0
34 */
35 wxWindowDisabler(bool disable = true);
36
37 /**
38 Disables all top level windows of the applications with the exception of
39 @a winToSkip if it is not @NULL.
40 */
41 wxWindowDisabler(wxWindow* winToSkip);
42
43 /**
44 Reenables back the windows disabled by the constructor.
45 */
46 ~wxWindowDisabler();
47 };
48
49
50
51 /**
52 @class wxBusyCursor
53 @wxheader{utils.h}
54
55 This class makes it easy to tell your user that the program is temporarily busy.
56 Just create a wxBusyCursor object on the stack, and within the current scope,
57 the hourglass will be shown.
58
59 For example:
60
61 @code
62 wxBusyCursor wait;
63
64 for (int i = 0; i 100000; i++)
65 DoACalculation();
66 @endcode
67
68 It works by calling wxBeginBusyCursor() in the constructor,
69 and wxEndBusyCursor() in the destructor.
70
71 @library{wxcore}
72 @category{FIXME}
73
74 @see wxBeginBusyCursor(), wxEndBusyCursor(), wxWindowDisabler
75 */
76 class wxBusyCursor
77 {
78 public:
79 /**
80 Constructs a busy cursor object, calling wxBeginBusyCursor().
81 */
82 wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR);
83
84 /**
85 Destroys the busy cursor object, calling wxEndBusyCursor().
86 */
87 ~wxBusyCursor();
88 };
89
90
91
92 // ============================================================================
93 // Global functions/macros
94 // ============================================================================
95
96
97 /** @ingroup group_funcmacro_dialog */
98 //@{
99
100 /**
101 Changes the cursor to the given cursor for all windows in the application.
102 Use wxEndBusyCursor() to revert the cursor back to its previous state.
103 These two calls can be nested, and a counter ensures that only the outer
104 calls take effect.
105
106 @see wxIsBusy(), wxBusyCursor
107
108 @header{wx/utils.h}
109 */
110 void wxBeginBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR);
111
112 /**
113 Changes the cursor back to the original cursor, for all windows in the
114 application. Use with wxBeginBusyCursor().
115
116 @see wxIsBusy(), wxBusyCursor
117
118 @header{wx/utils.h}
119 */
120 void wxEndBusyCursor();
121
122 /**
123 Returns @true if between two wxBeginBusyCursor() and wxEndBusyCursor()
124 calls.
125
126 @see wxBusyCursor.
127
128 @header{wx/utils.h}
129 */
130 bool wxIsBusy();
131
132 /**
133 Ring the system bell.
134
135 @note This function is categorized as a GUI one and so is not thread-safe.
136
137 @header{wx/utils.h}
138 */
139 void wxBell();
140
141 /**
142 Shows a message box with the information about the wxWidgets build used,
143 including its version, most important build parameters and the version of
144 the underlying GUI toolkit. This is mainly used for diagnostic purposes
145 and can be invoked by Ctrl-Alt-middle clicking on any wxWindow which
146 doesn't otherwise handle this event.
147
148 @wxsince{2.9.0}
149
150 @header{wx/utils.h}
151 */
152 void wxInfoMessageBox(wxWindow parent = NULL);
153
154 //@}
155
156
157
158 /** @ingroup group_funcmacro_env */
159 //@{
160
161 /**
162 This is a macro defined as @c getenv() or its wide char version in Unicode
163 mode.
164
165 Note that under Win32 it may not return correct value for the variables set
166 with wxSetEnv(), use wxGetEnv() function instead.
167
168 @header{wx/utils.h}
169 */
170 wxChar* wxGetenv(const wxString& var);
171
172 /**
173 Returns the current value of the environment variable @c var in @c value.
174 @c value may be @NULL if you just want to know if the variable exists and
175 are not interested in its value.
176
177 Returns @true if the variable exists, @false otherwise.
178
179 @header{wx/utils.h}
180 */
181 bool wxGetEnv(const wxString& var, wxString* value);
182
183 /**
184 Sets the value of the environment variable @c var (adding it if necessary)
185 to @c value.
186
187 Returns @true on success.
188
189 @see wxUnsetEnv()
190
191 @header{wx/utils.h}
192 */
193 bool wxSetEnv(const wxString& var, const wxString& value);
194
195 /**
196 Removes the variable @c var from the environment. wxGetEnv() will return
197 @NULL after the call to this function.
198
199 Returns @true on success.
200
201 @header{wx/utils.h}
202 */
203 bool wxUnsetEnv(const wxString& var);
204
205 //@}
206
207
208
209 /**
210 Returns the type of power source as one of @c wxPOWER_SOCKET,
211 @c wxPOWER_BATTERY or @c wxPOWER_UNKNOWN.
212 @c wxPOWER_UNKNOWN is also the default on platforms where this
213 feature is not implemented (currently everywhere but MS Windows).
214
215 @header{wx/utils.h}
216 */
217 wxPowerType wxGetPowerType();
218
219 /**
220 This function returns the "user id" also known as "login name" under Unix
221 i.e. something like "jsmith". It uniquely identifies the current user (on
222 this system). Under Windows or NT, this function first looks in the
223 environment variables USER and LOGNAME; if neither of these is found, the
224 entry @b UserId in the @b wxWidgets section of the WIN.INI file is tried.
225
226 @return Returns the login name if successful or an empty string otherwise.
227
228 @see wxGetUserName()
229
230 @header{wx/utils.h}
231 */
232 wxString wxGetUserId();
233
234 /**
235 @deprecated
236 This form is deprecated, use wxGetUserId() version that returns wxString.
237
238 @param buf Buffer to store login name in.
239 @param sz Size of the buffer.
240
241 @return Returns @true if successful, @false otherwise.
242 */
243 bool wxGetUserId(char* buf, int sz);
244
245 /**
246 Returns battery state as one of @c wxBATTERY_NORMAL_STATE,
247 @c wxBATTERY_LOW_STATE, @c wxBATTERY_CRITICAL_STATE,
248 @c wxBATTERY_SHUTDOWN_STATE or @c wxBATTERY_UNKNOWN_STATE.
249 @c wxBATTERY_UNKNOWN_STATE is also the default on platforms where
250 this feature is not implemented (currently everywhere but MS Windows).
251
252 @header{wx/utils.h}
253 */
254 wxBatteryState wxGetBatteryState();
255
256 /**
257 @deprecated
258 This function is obsolete, please use wxWindow::FindWindowByName() instead.
259
260 Find a window by its name (as given in a window constructor or Create()
261 function call). If @a parent is @NULL, the search will start from all
262 top-level frames and dialog boxes; if non-@NULL, the search will be limited
263 to the given window hierarchy. The search is recursive in both cases. If
264 no such named window is found, wxFindWindowByLabel() is called.
265
266 @header{wx/utils.h}
267 */
268 wxWindow* wxFindWindowByName(const wxString& name, wxWindow* parent = NULL);
269
270 /**
271 This function is deprecated as the ids generated by it can conflict with the
272 ids defined by the user code, use @c wxID_ANY to assign ids which are
273 guaranteed to not conflict with the user-defined ids for the controls and menu
274 items you create instead of using this function.
275
276 Generates an integer identifier unique to this run of the program.
277
278 @header{wx/utils.h}
279 */
280 long wxNewId();
281
282 /**
283 Ensures that ids subsequently generated by @b NewId do not clash with
284 the given @b id.
285
286 @header{wx/utils.h}
287 */
288 void wxRegisterId(long id);
289
290 /**
291 For normal keys, returns @true if the specified key is currently down.
292 For togglable keys (Caps Lock, Num Lock and Scroll Lock), returns
293 @true if the key is toggled such that its LED indicator is lit. There is
294 currently no way to test whether togglable keys are up or down.
295 Even though there are virtual key codes defined for mouse buttons, they
296 cannot be used with this function currently.
297
298 @header{wx/utils.h}
299 */
300 bool wxGetKeyState(wxKeyCode key);
301
302 /**
303 Returns the string containing the description of the current platform in a
304 user-readable form. For example, this function may return strings like
305 @c Windows NT Version 4.0 or @c Linux 2.2.2 i386.
306
307 @see ::wxGetOsVersion
308
309 @header{wx/utils.h}
310 */
311 wxString wxGetOsDescription();
312
313 /**
314 Return the (current) user's home directory.
315
316 @see wxGetUserHome(), wxStandardPaths
317
318 @header{wx/utils.h}
319 */
320 wxString wxGetHomeDir();
321
322 /**
323 Sleeps for the specified number of milliseconds. Notice that usage of this
324 function is encouraged instead of calling usleep(3) directly because the
325 standard usleep() function is not MT safe.
326
327 @header{wx/utils.h}
328 */
329 void wxMilliSleep(unsigned long milliseconds);
330
331 /**
332 Sleeps for the specified number of microseconds. The microsecond resolution may
333 not, in fact, be available on all platforms (currently only Unix platforms with
334 nanosleep(2) may provide it) in which case this is the same as
335 wxMilliSleep()(@e microseconds/1000).
336
337 @header{wx/utils.h}
338 */
339 void wxMicroSleep(unsigned long microseconds);
340
341
342 /**
343 Find a menu item identifier associated with the given frame's menu bar.
344
345 @header{wx/utils.h}
346 */
347 int wxFindMenuItemId(wxFrame* frame, const wxString& menuString,
348 const wxString& itemString);
349
350 /**
351 This function enables or disables all top level windows. It is used by
352 ::wxSafeYield.
353
354 @header{wx/utils.h}
355 */
356 void wxEnableTopLevelWindows(bool enable = true);
357
358 /**
359 Strips any menu codes from @a str and returns the result.
360 By default, the functions strips both the mnemonics character (@c '')
361 which is used to indicate a keyboard shortkey, and the accelerators, which are
362 used only in the menu items and are separated from the main text by the
363 @c \t (TAB) character. By using @a flags of
364 @c wxStrip_Mnemonics or @c wxStrip_Accel to strip only the former
365 or the latter part, respectively.
366 Notice that in most cases
367 wxMenuItem::GetLabelFromText or
368 wxControl::GetLabelText can be used instead.
369
370 @header{wx/utils.h}
371 */
372 wxString wxStripMenuCodes(const wxString& str,
373 int flags = wxStrip_All);
374
375 /**
376 Open the @a url in user's default browser. If @a flags parameter contains
377 @c wxBROWSER_NEW_WINDOW flag, a new window is opened for the URL
378 (currently this is only supported under Windows). The @a url may also be a
379 local file path (with or without @c file:// prefix), if it doesn't
380 correspond to an existing file and the URL has no scheme @c http:// is
381 prepended to it by default.
382 Returns @true if the application was successfully launched.
383 Note that for some configurations of the running user, the application which
384 is launched to open the given URL may be URL-dependent (e.g. a browser may be
385 used for
386 local URLs while another one may be used for remote URLs).
387
388 @header{wx/utils.h}
389 */
390 bool wxLaunchDefaultBrowser(const wxString& url, int flags = 0);
391
392 /**
393 Executes a command in an interactive shell window. If no command is
394 specified, then just the shell is spawned.
395 See also wxExecute(), @ref overview_sampleexec "Exec sample".
396
397 @header{wx/utils.h}
398 */
399 bool wxShell(const wxString& command = NULL);
400
401 /**
402 Gets the version and the operating system ID for currently running OS.
403 See wxPlatformInfo for more details about wxOperatingSystemId.
404
405 @see ::wxGetOsDescription, wxPlatformInfo
406
407 @header{wx/utils.h}
408 */
409 wxOperatingSystemId wxGetOsVersion(int* major = NULL,
410 int* minor = NULL);
411
412 /**
413 Returns the FQDN (fully qualified domain host name) or an empty string on
414 error.
415
416 @see wxGetHostName()
417
418 @header{wx/utils.h}
419 */
420 wxString wxGetFullHostName();
421
422 /**
423 Tells the system to delete the specified object when
424 all other events have been processed. In some environments, it is
425 necessary to use this instead of deleting a frame directly with the
426 delete operator, because some GUIs will still send events to a deleted window.
427 Now obsolete: use wxWindow::Close instead.
428
429 @header{wx/utils.h}
430 */
431 void wxPostDelete(wxObject* object);
432
433 /**
434 @b NB: This function is obsolete, please use
435 wxWindow::FindWindowByLabel instead.
436 Find a window by its label. Depending on the type of window, the label may be a
437 window title
438 or panel item label. If @a parent is @NULL, the search will start from all
439 top-level
440 frames and dialog boxes; if non-@NULL, the search will be limited to the given
441 window hierarchy.
442 The search is recursive in both cases.
443
444 @header{wx/utils.h}
445 */
446 wxWindow* wxFindWindowByLabel(const wxString& label,
447 wxWindow* parent = NULL);
448
449
450 /**
451 Returns the mouse position in screen coordinates.
452
453 @header{wx/utils.h}
454 */
455 wxPoint wxGetMousePosition();
456
457 /**
458 Loads a user-defined Windows resource as a string. If the resource is found,
459 the function creates
460 a new character array and copies the data into it. A pointer to this data is
461 returned. If unsuccessful, @NULL is returned.
462 The resource must be defined in the @c .rc file using the following syntax:
463
464 @code
465 myResource TEXT file.ext
466 @endcode
467
468 where @c file.ext is a file that the resource compiler can find.
469 This function is available under Windows only.
470
471 @header{wx/utils.h}
472 */
473 wxString wxLoadUserResource(const wxString& resourceName,
474 const wxString& resourceType = "TEXT");
475
476 /**
477 Returns the amount of free memory in bytes under environments which
478 support it, and -1 if not supported or failed to perform measurement.
479 */
480 wxMemorySize wxGetFreeMemory();
481
482 //@{
483 /**
484 Copies the current host machine's name into the supplied buffer. Please note
485 that the returned name is @e not fully qualified, i.e. it does not include
486 the domain name.
487 Under Windows or NT, this function first looks in the environment
488 variable SYSTEM_NAME; if this is not found, the entry @b HostName
489 in the @b wxWidgets section of the WIN.INI file is tried.
490 The first variant of this function returns the hostname if successful or an
491 empty string otherwise. The second (deprecated) function returns @true
492 if successful, @false otherwise.
493
494 @see wxGetFullHostName()
495
496 @header{wx/utils.h}
497 */
498 wxString wxGetHostName();
499 bool wxGetHostName(char* buf, int sz);
500 //@}
501
502 /**
503 Under X only, returns the current display name. See also wxSetDisplayName().
504
505 @header{wx/utils.h}
506 */
507 wxString wxGetDisplayName();
508
509 /**
510 Returns the home directory for the given user. If the @a user is empty
511 (default value), this function behaves like
512 wxGetHomeDir() i.e. returns the current user home
513 directory.
514 If the home directory couldn't be determined, an empty string is returned.
515
516 @header{wx/utils.h}
517 */
518 wxString wxGetUserHome(const wxString& user = "");
519
520 //@{
521 /**
522 @b wxPerl note: In wxPerl this function is called @c Wx::ExecuteStdoutStderr
523 and it only takes the @c command argument,
524 and returns a 3-element list @c ( status, output, errors ), where
525 @c output and @c errors are array references.
526 Executes another program in Unix or Windows.
527 The first form takes a command string, such as @c "emacs file.txt".
528 The second form takes an array of values: a command, any number of
529 arguments, terminated by @NULL.
530 The semantics of the third and fourth versions is different from the first two
531 and is described in more details below.
532 If @a flags parameter contains @c wxEXEC_ASYNC flag (the default), flow
533 of control immediately returns. If it contains @c wxEXEC_SYNC, the current
534 application waits until the other program has terminated.
535 In the case of synchronous execution, the return value is the exit code of
536 the process (which terminates by the moment the function returns) and will be
537 -1 if the process couldn't be started and typically 0 if the process
538 terminated successfully. Also, while waiting for the process to
539 terminate, wxExecute will call wxYield(). Because of this, by
540 default this function disables all application windows to avoid unexpected
541 reentrancies which could result from the users interaction with the program
542 while the child process is running. If you are sure that it is safe to not
543 disable the program windows, you may pass @c wxEXEC_NODISABLE flag to
544 prevent this automatic disabling from happening.
545 For asynchronous execution, however, the return value is the process id and
546 zero value indicates that the command could not be executed. As an added
547 complication, the return value of -1 in this case indicates that we didn't
548 launch a new process, but connected to the running one (this can only happen in
549 case of using DDE under Windows for command execution). In particular, in this,
550 and only this, case the calling code will not get the notification about
551 process termination.
552 If callback isn't @NULL and if execution is asynchronous,
553 wxProcess::OnTerminate will be called when
554 the process finishes. Specifying this parameter also allows you to redirect the
555 standard input and/or output of the process being launched by calling
556 wxProcess::Redirect. If the child process IO is redirected,
557 under Windows the process window is not shown by default (this avoids having to
558 flush an unnecessary console for the processes which don't create any windows
559 anyhow) but a @c wxEXEC_NOHIDE flag can be used to prevent this from
560 happening, i.e. with this flag the child process window will be shown normally.
561 Under Unix the flag @c wxEXEC_MAKE_GROUP_LEADER may be used to ensure
562 that the new process is a group leader (this will create a new session if
563 needed). Calling wxKill() passing wxKILL_CHILDREN will
564 kill this process as well as all of its children (except those which have
565 started their own session).
566 The @c wxEXEC_NOEVENTS flag prevents processing of any events from taking
567 place while the child process is running. It should be only used for very
568 short-lived processes as otherwise the application windows risk becoming
569 unresponsive from the users point of view. As this flag only makes sense with
570 @c wxEXEC_SYNC, @c wxEXEC_BLOCK equal to the sum of both of these flags
571 is provided as a convenience.
572 Finally, you may use the third overloaded version of this function to execute
573 a process (always synchronously, the contents of @a flags is or'd with
574 @c wxEXEC_SYNC) and capture its output in the array @e output. The
575 fourth version adds the possibility to additionally capture the messages from
576 standard error output in the @a errors array.
577 @b NB: Currently wxExecute() can only be used from the main thread, calling
578 this function from another thread will result in an assert failure in debug
579 build and won't work.
580
581 @param command
582 The command to execute and any parameters to pass to it as a
583 single string.
584 @param argv
585 The command to execute should be the first element of this
586 array, any additional ones are the command parameters and the array must be
587 terminated with a @NULL pointer.
588 @param flags
589 Must include either wxEXEC_ASYNC or wxEXEC_SYNC and can also include
590 wxEXEC_NOHIDE, wxEXEC_MAKE_GROUP_LEADER (in either case) or
591 wxEXEC_NODISABLE and wxEXEC_NOEVENTS or wxEXEC_BLOCK, which is equal to
592 their combination, in wxEXEC_SYNC case.
593 @param callback
594 An optional pointer to wxProcess
595
596 @see wxShell(), wxProcess, @ref overview_sampleexec "Exec sample".
597
598 @header{wx/utils.h}
599 */
600 long wxExecute(const wxString& command,
601 int sync = wxEXEC_ASYNC,
602 wxProcess* callback = NULL);
603 long wxExecute(char** argv,
604 int flags = wxEXEC_ASYNC,
605 wxProcess* callback = NULL);
606 long wxExecute(wchar_t** argv,
607 int flags = wxEXEC_ASYNC,
608 wxProcess* callback = NULL);
609 long wxExecute(const wxString& command,
610 wxArrayString& output,
611 int flags = 0);
612 long wxExecute(const wxString& command,
613 wxArrayString& output,
614 wxArrayString& errors,
615 int flags = 0);
616 //@}
617
618 /**
619 Returns a string representing the current date and time.
620
621 @header{wx/utils.h}
622 */
623 wxString wxNow();
624
625 /**
626 Returns @true if the operating system the program is running under is 64 bit.
627 The check is performed at run-time and may differ from the value available at
628 compile-time (at compile-time you can just check if @c sizeof(void*)==8)
629 since the program could be running in emulation mode or in a mixed 32/64 bit
630 system
631 (bi-architecture operating system).
632 Very important: this function is not 100% reliable on some systems given the
633 fact
634 that there isn't always a standard way to do a reliable check on the OS
635 architecture.
636
637 @header{wx/utils.h}
638 */
639 bool wxIsPlatform64Bit();
640
641 /**
642 Returns the number uniquely identifying the current process in the system.
643 If an error occurs, 0 is returned.
644
645 @header{wx/utils.h}
646 */
647 unsigned long wxGetProcessId();
648
649 /**
650 Equivalent to the Unix kill function: send the given signal @a sig to the
651 process with PID @e pid. The valid signal values are
652
653 @code
654 enum wxSignal
655 {
656 wxSIGNONE = 0, // verify if the process exists under Unix
657 wxSIGHUP,
658 wxSIGINT,
659 wxSIGQUIT,
660 wxSIGILL,
661 wxSIGTRAP,
662 wxSIGABRT,
663 wxSIGEMT,
664 wxSIGFPE,
665 wxSIGKILL, // forcefully kill, dangerous!
666 wxSIGBUS,
667 wxSIGSEGV,
668 wxSIGSYS,
669 wxSIGPIPE,
670 wxSIGALRM,
671 wxSIGTERM // terminate the process gently
672 };
673 @endcode
674
675 @c wxSIGNONE, @c wxSIGKILL and @c wxSIGTERM have the same meaning
676 under both Unix and Windows but all the other signals are equivalent to
677 @c wxSIGTERM under Windows.
678 Returns 0 on success, -1 on failure. If @a rc parameter is not @NULL, it will
679 be filled with an element of @c wxKillError enum:
680
681 @code
682 enum wxKillError
683 {
684 wxKILL_OK, // no error
685 wxKILL_BAD_SIGNAL, // no such signal
686 wxKILL_ACCESS_DENIED, // permission denied
687 wxKILL_NO_PROCESS, // no such process
688 wxKILL_ERROR // another, unspecified error
689 };
690 @endcode
691
692 The @a flags parameter can be wxKILL_NOCHILDREN (the default),
693 or wxKILL_CHILDREN, in which case the child processes of this
694 process will be killed too. Note that under Unix, for wxKILL_CHILDREN
695 to work you should have created the process by passing wxEXEC_MAKE_GROUP_LEADER
696 to wxExecute.
697
698 @see wxProcess::Kill, wxProcess::Exists, @ref overview_sampleexec "Exec sample"
699
700 @header{wx/utils.h}
701 */
702 int wxKill(long pid, int sig = wxSIGTERM, wxKillError rc = NULL,
703 int flags = 0);
704
705 /**
706 Returns the current state of the mouse. Returns a wxMouseState
707 instance that contains the current position of the mouse pointer in
708 screen coordinates, as well as boolean values indicating the up/down
709 status of the mouse buttons and the modifier keys.
710
711 @header{wx/utils.h}
712 */
713 wxMouseState wxGetMouseState();
714
715 //@{
716 /**
717 Copies the user's email address into the supplied buffer, by
718 concatenating the values returned by wxGetFullHostName()
719 and wxGetUserId().
720 Returns @true if successful, @false otherwise.
721
722 @header{wx/utils.h}
723 */
724 wxString wxGetEmailAddress();
725 bool wxGetEmailAddress(char* buf, int sz);
726 //@}
727
728 /**
729 Sleeps for the specified number of seconds.
730
731 @header{wx/utils.h}
732 */
733 void wxSleep(int secs);
734
735 /**
736 Returns @true if the current platform is little endian (instead of big
737 endian).
738 The check is performed at run-time.
739
740 @see @ref overview_byteordermacros "Byte order macros"
741
742 @header{wx/utils.h}
743 */
744 bool wxIsPlatformLittleEndian();
745
746 /**
747 Under X only, sets the current display name. This is the X host and display
748 name such
749 as "colonsay:0.0", and the function indicates which display should be used for
750 creating
751 windows from this point on. Setting the display within an application allows
752 multiple
753 displays to be used.
754 See also wxGetDisplayName().
755
756 @header{wx/utils.h}
757 */
758 void wxSetDisplayName(const wxString& displayName);
759