]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/mainpages/cat_functions.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cat_functions.h
3 // Purpose: Functions-by-category page of the Doxygen manual
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
11 @page page_func_cat Functions by Category
13 @li @ref page_func_cat_appinitterm
14 @li @ref page_func_cat_procctrl
15 @li @ref page_func_cat_thread
16 @li @ref page_func_cat_file
17 @li @ref page_func_cat_networkuseros
18 @li @ref page_func_cat_string
19 @li @ref page_func_cat_dialog
20 @li @ref page_func_cat_math
21 @li @ref page_func_cat_gdi
22 @li @ref page_func_cat_printer
23 @li @ref page_func_cat_clipboard
24 @li @ref page_func_cat_log
25 @li @ref page_func_cat_time
26 @li @ref page_func_cat_debug
27 @li @ref page_func_cat_env
28 @li @ref page_func_cat_atomic
29 @li @ref page_func_cat_misc
36 @section page_func_cat_appinitterm Application Initialization and Termination
38 The functions in this section are used on application startup/shutdown and also
39 to control the behaviour of the main event loop of the GUI programs.
42 @li ::wxEntryCleanup()
45 @li ::wxHandleFatalExceptions()
46 @li ::wxInitAllImageHandlers()
49 @li ::wxUninitialize()
54 @section page_func_cat_procctrl Process Control
56 The functions in this section are used to launch or terminate the other
63 @li ::wxGetProcessId()
68 @section page_func_cat_thread Threads
70 The functions and macros here mainly exist to make it writing the code which
71 may be compiled in multi thread build (wxUSE_THREADS = 1) as well as in single
72 thread configuration (wxUSE_THREADS = 0).
74 For example, a static variable must be protected against simultaneous access by
75 multiple threads in the former configuration but in the latter the extra
76 overhead of using the critical section is not needed. To solve this problem,
77 the wxCRITICAL_SECTION macro may be used to create and use the critical section
82 @sa wxThread, wxMutex, @ref overview_thread
84 @li ::wxIsMainThread()
85 @li ::wxMutexGuiEnter()
86 @li ::wxMutexGuiLeave()
89 @section page_func_cat_file Files and Directories
93 @sa wxPathList, wxDir, wxFile, wxFileName
95 @li ::wxDos2UnixFilename()
97 @li ::wxFileModificationTime()
98 @li ::wxFileNameFromPath()
99 @li ::wxFindFirstFile()
100 @li ::wxFindNextFile()
101 @li ::wxGetDiskSpace()
102 @li ::wxGetFileKind()
103 @li ::wxGetOSDirectory()
104 @li ::wxIsAbsolutePath()
107 @li ::wxUnix2DosFilename()
108 @li ::wxConcatFiles()
111 @li ::wxGetWorkingDirectory()
112 @li ::wxGetTempFileName()
116 @li ::wxParseCommonDialogsFilter()
120 @li ::wxSetWorkingDirectory()
123 @li ::wxTransferFileToStream()
124 @li ::wxTransferStreamToFile()
127 @section page_func_cat_networkuseros Network, User and OS
129 The functions in this section are used to retrieve information about the
130 current computer and/or user characteristics.
132 @li ::wxGetEmailAddress()
133 @li ::wxGetFreeMemory()
134 @li ::wxGetFullHostName()
136 @li ::wxGetHostName()
137 @li ::wxGetOsDescription()
138 @li ::wxGetOsVersion()
139 @li ::wxIsPlatformLittleEndian()
140 @li ::wxIsPlatform64Bit()
141 @li ::wxGetUserHome()
143 @li ::wxGetUserName()
146 @section page_func_cat_string Strings
148 @li ::wxGetTranslation()
153 @li ::wxStringMatch()
154 @li ::wxStringTokenize()
160 @section page_func_cat_dialog Dialogs
162 Below are a number of convenience functions for getting input from the user
163 or displaying messages. Note that in these functions the last three parameters
164 are optional. However, it is recommended to pass a parent frame parameter, or
165 (in MS Windows or Motif) the wrong window frame may be brought to the front when
166 the dialog box is popped up.
169 @li ::wxBeginBusyCursor()
171 @li ::wxCreateFileTipProvider()
172 @li ::wxDirSelector()
173 @li ::wxFileSelector()
174 @li ::wxEndBusyCursor()
175 @li ::wxGenericAboutBox()
176 @li ::wxGetColourFromUser()
177 @li ::wxGetFontFromUser()
178 @li ::wxGetMultipleChoices()
179 @li ::wxGetNumberFromUser()
180 @li ::wxGetPasswordFromUser()
181 @li ::wxGetTextFromUser()
182 @li ::wxGetSingleChoice()
183 @li ::wxGetSingleChoiceIndex()
184 @li ::wxGetSingleChoiceData()
185 @li ::wxInfoMessageBox()
191 @section page_func_cat_math Math
199 @section page_func_cat_gdi Graphics Device Interface
201 The following are relevant to the GDI (Graphics Device Interface).
206 @li ::wxClientDisplayRect()
207 @li ::wxColourDisplay()
208 @li ::wxDisplayDepth()
209 @li ::wxDisplaySize()
210 @li ::wxDisplaySizeMM()
213 @li ::wxMakeMetafilePlaceable()
217 @section page_func_cat_printer Printing
219 @warning These functions are deprecated and should no longer be used.
221 The following functions are used to control PostScript printing. Under Windows,
222 PostScript output can only be sent to a file.
226 @li ::wxGetPrinterCommand()
227 @li ::wxGetPrinterFile()
228 @li ::wxGetPrinterMode()
229 @li ::wxGetPrinterOptions()
230 @li ::wxGetPrinterOrientation()
231 @li ::wxGetPrinterPreviewCommand()
232 @li ::wxGetPrinterScaling()
233 @li ::wxGetPrinterTranslation()
234 @li ::wxSetPrinterCommand()
235 @li ::wxSetPrinterFile()
236 @li ::wxSetPrinterMode()
237 @li ::wxSetPrinterOptions()
238 @li ::wxSetPrinterOrientation()
239 @li ::wxSetPrinterPreviewCommand()
240 @li ::wxSetPrinterScaling()
241 @li ::wxSetPrinterTranslation()
244 @section page_func_cat_clipboard Clipboard
246 @warning These functions are deprecated, use the wxClipboard class instead.
248 These clipboard functions are implemented for Windows only.
250 @header{wx/clipbrd.h}
252 @li ::wxClipboardOpen()
253 @li ::wxCloseClipboard()
254 @li ::wxEmptyClipboard()
255 @li ::wxEnumClipboardFormats()
256 @li ::wxGetClipboardData()
257 @li ::wxGetClipboardFormatName()
258 @li ::wxIsClipboardFormatAvailable()
259 @li ::wxOpenClipboard()
260 @li ::wxRegisterClipboardFormat()
261 @li ::wxSetClipboardData()
264 @section page_func_cat_log Logging
266 These functions provide a variety of logging functions. The functions use
267 (implicitly) the currently active log target, so their descriptions here may
268 not apply if the log target is not the standard one (installed by wxWidgets in
269 the beginning of the program).
271 Related Overviews: @ref overview_log
279 @li ::wxLogFatalError()
284 @li ::wxLogSysError()
287 @li ::wxSafeShowMessage()
288 @li ::wxSysErrorCode()
289 @li ::wxSysErrorMsg()
294 @section page_func_cat_time Time
296 The functions in this section deal with getting the current time and sleeping
297 for the specified time interval.
299 @li ::wxGetLocalTime()
300 @li ::wxGetLocalTimeMillis()
309 @section page_func_cat_debug Debugging
311 Useful macros and functions for error checking and defensive programming.
312 wxWidgets defines three families of the assert-like macros: the wxASSERT and
313 wxFAIL macros only do anything if __WXDEBUG__ is defined (in other words, in
314 the debug build) but disappear completely in the release build. On the other
315 hand, the wxCHECK macros stay event in release builds but a check failure
316 doesn't generate any user-visible effects then. Finally, the compile time
317 assertions don't happen during the run-time but result in the compilation error
318 messages if the condition they check fail.
324 @li ::wxIsDebuggerRunning()
327 @section page_func_cat_env Environment
329 The functions in this section allow to access (get) or change value of
330 environment variables in a portable way. They are currently implemented under
331 Win32 and POSIX-like systems (Unix).
341 @section page_func_cat_atomic Atomic Operations
343 When using multi-threaded applications, it is often required to access or
344 modify memory which is shared between threads. Atomic integer and pointer
345 operations are an efficient way to handle this issue (another, less efficient,
346 way is to use a mutex or critical section). A native implementation exists for
347 Windows, Linux, Solaris and Mac OS X, for other OS, a wxCriticalSection is used
350 One particular application is reference counting (used by so-called smart
353 You should define your variable with the type wxAtomicInt in order to apply
354 atomic operations to it.
362 @section page_func_cat_misc Miscellaneous
364 @li ::wxBase64Decode()
365 @li ::wxBase64DecodedSize()
366 @li ::wxBase64Encode()
367 @li ::wxBase64EncodedSize()
368 @li ::wxGetKeyState()
372 @li ::wxDDEInitialize()
373 @li ::wxEnableTopLevelWindows()
374 @li ::wxFindMenuItemId()
375 @li ::wxFindWindowByLabel()
376 @li ::wxFindWindowByName()
377 @li ::wxFindWindowAtPoint()
378 @li ::wxFindWindowAtPointer()
379 @li ::wxGetActiveWindow()
380 @li ::wxGetBatteryState()
381 @li ::wxGetDisplayName()
382 @li ::wxGetPowerType()
383 @li ::wxGetMousePosition()
384 @li ::wxGetMouseState()
385 @li ::wxGetStockLabel()
386 @li ::wxGetTopLevelParent()
387 @li ::wxLaunchDefaultBrowser()
388 @li ::wxLoadUserResource()
391 @li ::wxSetDisplayName()
392 @li ::wxStripMenuCodes()