⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 5 页
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Name:        function.tex%% Purpose:     Functions and macros%% Author:      wxWidgets Team%% Modified by:%% Created:%% RCS-ID:      $Id: function.tex,v 1.266 2006/11/24 10:45:37 RR Exp $%% Copyright:   (c) wxWidgets Team%% License:     wxWindows license%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\chapter{Functions}\label{functions}\setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}%\setfooter{\thepage}{}{}{}{}{\thepage}The functions and macros defined in wxWidgets are described here: you caneither look up a function using the alphabetical listing of them or find it inthe corresponding topic.\section{Alphabetical functions and macros list}\label{functionsalphabetically}\helpref{CLASSINFO}{classinfo}\\\helpref{copystring}{copystring}\\\helpref{DECLARE\_ABSTRACT\_CLASS}{declareabstractclass}\\\helpref{DECLARE\_APP}{declareapp}\\\helpref{DECLARE\_CLASS}{declareclass}\\\helpref{DECLARE\_DYNAMIC\_CLASS}{declaredynamicclass}\\\helpref{IMPLEMENT\_ABSTRACT\_CLASS2}{implementabstractclass2}\\\helpref{IMPLEMENT\_ABSTRACT\_CLASS}{implementabstractclass}\\\helpref{IMPLEMENT\_APP}{implementapp}\\\helpref{IMPLEMENT\_CLASS2}{implementclass2}\\\helpref{IMPLEMENT\_CLASS}{implementclass}\\\helpref{IMPLEMENT\_DYNAMIC\_CLASS2}{implementdynamicclass2}\\\helpref{IMPLEMENT\_DYNAMIC\_CLASS}{implementdynamicclass}\\\helpref{wxAboutBox}{wxaboutbox}\\\helpref{wxASSERT}{wxassert}\\\helpref{wxASSERT\_MIN\_BITSIZE}{wxassertminbitsize}\\\helpref{wxASSERT\_MSG}{wxassertmsg}\\\helpref{wxBeginBusyCursor}{wxbeginbusycursor}\\\helpref{wxBell}{wxbell}\\\helpref{wxBITMAP}{wxbitmapmacro}\\\helpref{wxCHANGE\_UMASK}{wxchangeumask}\\\helpref{wxCHECK}{wxcheck}\\\helpref{wxCHECK2\_MSG}{wxcheck2msg}\\\helpref{wxCHECK2}{wxcheck2}\\\helpref{wxCHECK\_GCC\_VERSION}{wxcheckgccversion}\\\helpref{wxCHECK\_MSG}{wxcheckmsg}\\\helpref{wxCHECK\_RET}{wxcheckret}\\\helpref{wxCHECK\_VERSION}{wxcheckversion}\\\helpref{wxCHECK\_VERSION\_FULL}{wxcheckversionfull}\\\helpref{wxCHECK\_W32API\_VERSION}{wxcheckw32apiversion}\\\helpref{wxClientDisplayRect}{wxclientdisplayrect}\\\helpref{wxClipboardOpen}{functionwxclipboardopen}\\\helpref{wxCloseClipboard}{wxcloseclipboard}\\\helpref{wxColourDisplay}{wxcolourdisplay}\\\helpref{wxCOMPILE\_TIME\_ASSERT}{wxcompiletimeassert}\\\helpref{wxCOMPILE\_TIME\_ASSERT2}{wxcompiletimeassert2}\\\helpref{wxCONCAT}{wxconcat}\\\helpref{wxConcatFiles}{wxconcatfiles}\\\helpref{wxConstCast}{wxconstcast}\\\helpref{wxCopyFile}{wxcopyfile}\\\helpref{wxCreateDynamicObject}{wxcreatedynamicobject}\\\helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider}\\\helpref{wxCRIT\_SECT\_DECLARE}{wxcritsectdeclare}\\\helpref{wxCRIT\_SECT\_DECLARE\_MEMBER}{wxcritsectdeclaremember}\\\helpref{wxCRIT\_SECT\_LOCKER}{wxcritsectlocker}\\\helpref{wxCRITICAL\_SECTION}{wxcriticalsectionmacro}\\ % wxcs already taken!\helpref{wxDDECleanUp}{wxddecleanup}\\\helpref{wxDDEInitialize}{wxddeinitialize}\\\helpref{wxDROP\_ICON}{wxdropicon}\\\helpref{wxDebugMsg}{wxdebugmsg}\\\helpref{WXDEBUG\_NEW}{debugnew}\\\helpref{wxDirExists}{functionwxdirexists}\\\helpref{wxDirSelector}{wxdirselector}\\\helpref{wxDisplayDepth}{wxdisplaydepth}\\\helpref{wxDisplaySize}{wxdisplaysize}\\\helpref{wxDisplaySizeMM}{wxdisplaysizemm}\\\helpref{wxDos2UnixFilename}{wxdos2unixfilename}\\\helpref{wxDynamicCastThis}{wxdynamiccastthis}\\\helpref{wxDynamicCast}{wxdynamiccast}\\\helpref{wxDYNLIB\_FUNCTION}{wxdynlibfunction}\\\helpref{wxEmptyClipboard}{wxemptyclipboard}\\\helpref{wxEnableTopLevelWindows}{wxenabletoplevelwindows}\\\helpref{wxEndBusyCursor}{wxendbusycursor}\\\helpref{wxENTER\_CRIT\_SECT}{wxentercritsect}\\\helpref{wxEntry}{wxentry}\\\helpref{wxEntryStart}{wxentrystart}\\\helpref{wxEntryCleanup}{wxentrycleanup}\\\helpref{wxEnumClipboardFormats}{wxenumclipboardformats}\\\helpref{wxError}{wxerror}\\\helpref{wxExecute}{wxexecute}\\\helpref{wxExit}{wxexit}\\\helpref{wxEXPLICIT}{wxexplicit}\\\helpref{wxFAIL\_MSG}{wxfailmsg}\\\helpref{wxFAIL}{wxfail}\\\helpref{wxFatalError}{wxfatalerror}\\\helpref{wxFileExists}{functionwxfileexists}\\\helpref{wxFileModificationTime}{wxfilemodificationtime}\\\helpref{wxFileNameFromPath}{wxfilenamefrompath}\\\helpref{wxFileSelector}{wxfileselector}\\\helpref{wxFindFirstFile}{wxfindfirstfile}\\\helpref{wxFindMenuItemId}{wxfindmenuitemid}\\\helpref{wxFindNextFile}{wxfindnextfile}\\\helpref{wxFindWindowAtPointer}{wxfindwindowatpointer}\\\helpref{wxFindWindowAtPoint}{wxfindwindowatpoint}\\\helpref{wxFindWindowByLabel}{wxfindwindowbylabel}\\\helpref{wxFindWindowByName}{wxfindwindowbyname}\\\helpref{wxFinite}{wxfinite}\\\helpref{wxGenericAboutBox}{wxgenericaboutbox}\\\helpref{wxGetActiveWindow}{wxgetactivewindow}\\\helpref{wxGetApp}{wxgetapp}\\\helpref{wxGetBatteryState}{wxgetbatterystate}\\\helpref{wxGetClipboardData}{wxgetclipboarddata}\\\helpref{wxGetClipboardFormatName}{wxgetclipboardformatname}\\\helpref{wxGetColourFromUser}{wxgetcolourfromuser}\\\helpref{wxGetCwd}{wxgetcwd}\\\helpref{wxGetDiskSpace}{wxgetdiskspace}\\\helpref{wxGetDisplayName}{wxgetdisplayname}\\\helpref{wxGetDisplaySize}{wxdisplaysize}\\\helpref{wxGetDisplaySizeMM}{wxdisplaysizemm}\\\helpref{wxGetElapsedTime}{wxgetelapsedtime}\\\helpref{wxGetEmailAddress}{wxgetemailaddress}\\\helpref{wxGetEnv}{wxgetenv}\\\helpref{wxGetFileKind}{wxgetfilekind}\\\helpref{wxGetFontFromUser}{wxgetfontfromuser}\\\helpref{wxGetFreeMemory}{wxgetfreememory}\\\helpref{wxGetFullHostName}{wxgetfullhostname}\\\helpref{wxGetHomeDir}{wxgethomedir}\\\helpref{wxGetHostName}{wxgethostname}\\\helpref{wxGetKeyState}{wxgetkeystate}\\\helpref{wxGetLocalTimeMillis}{wxgetlocaltimemillis}\\\helpref{wxGetLocalTime}{wxgetlocaltime}\\\helpref{wxGetMousePosition}{wxgetmouseposition}\\\helpref{wxGetMouseState}{wxgetmousestate}\\\helpref{wxGetMultipleChoices}{wxgetmultiplechoices}\\\helpref{wxGetMultipleChoice}{wxgetmultiplechoice}\\\helpref{wxGetNumberFromUser}{wxgetnumberfromuser}\\\helpref{wxGetOSDirectory}{wxgetosdirectory}\\\helpref{wxGetOsDescription}{wxgetosdescription}\\\helpref{wxGetOsVersion}{wxgetosversion}\\\helpref{wxGetPasswordFromUser}{wxgetpasswordfromuser}\\\helpref{wxGetPowerType}{wxgetpowertype}\\\helpref{wxGetPrinterCommand}{wxgetprintercommand}\\\helpref{wxGetPrinterFile}{wxgetprinterfile}\\\helpref{wxGetPrinterMode}{wxgetprintermode}\\\helpref{wxGetPrinterOptions}{wxgetprinteroptions}\\\helpref{wxGetPrinterOrientation}{wxgetprinterorientation}\\\helpref{wxGetPrinterPreviewCommand}{wxgetprinterpreviewcommand}\\\helpref{wxGetPrinterScaling}{wxgetprinterscaling}\\\helpref{wxGetPrinterTranslation}{wxgetprintertranslation}\\\helpref{wxGetProcessId}{wxgetprocessid}\\\helpref{wxGetResource}{wxgetresource}\\\helpref{wxGetSingleChoiceData}{wxgetsinglechoicedata}\\\helpref{wxGetSingleChoiceIndex}{wxgetsinglechoiceindex}\\\helpref{wxGetSingleChoice}{wxgetsinglechoice}\\\helpref{wxGetTempFileName}{wxgettempfilename}\\\helpref{wxGetTextFromUser}{wxgettextfromuser}\\\helpref{wxGetTopLevelParent}{wxgettoplevelparent}\\\helpref{wxGetTranslation}{wxgettranslation}\\\helpref{wxGetUTCTime}{wxgetutctime}\\\helpref{wxGetUserHome}{wxgetuserhome}\\\helpref{wxGetUserId}{wxgetuserid}\\\helpref{wxGetUserName}{wxgetusername}\\\helpref{wxGetWorkingDirectory}{wxgetworkingdirectory}\\\helpref{wxGetenv}{wxgetenvmacro}\\\helpref{wxHandleFatalExceptions}{wxhandlefatalexceptions}\\\helpref{wxICON}{wxiconmacro}\\\helpref{wxINTXX\_SWAP\_ALWAYS}{intswapalways}\\\helpref{wxINTXX\_SWAP\_ON\_BE}{intswaponbe}\\\helpref{wxINTXX\_SWAP\_ON\_LE}{intswaponle}\\\helpref{wxInitAllImageHandlers}{wxinitallimagehandlers}\\\helpref{wxInitialize}{wxinitialize}\\\helpref{wxIsAbsolutePath}{wxisabsolutepath}\\\helpref{wxIsBusy}{wxisbusy}\\\helpref{wxIsClipboardFormatAvailable}{wxisclipboardformatavailable}\\\helpref{wxIsDebuggerRunning}{wxisdebuggerrunning}\\\helpref{wxIsEmpty}{wxisempty}\\\helpref{wxIsMainThread}{wxismainthread}\\\helpref{wxIsNaN}{wxisnan}\\\helpref{wxIsPlatformLittleEndian}{wxisplatformlittleendian}\\\helpref{wxIsPlatform64Bit}{wxisplatform64bit}\\\helpref{wxIsWild}{wxiswild}\\\helpref{wxKill}{wxkill}\\\helpref{wxLaunchDefaultBrowser}{wxlaunchdefaultbrowser}\\\helpref{wxLEAVE\_CRIT\_SECT}{wxleavecritsect}\\\helpref{wxLoadUserResource}{wxloaduserresource}\\\helpref{wxLogDebug}{wxlogdebug}\\\helpref{wxLogError}{wxlogerror}\\\helpref{wxLogFatalError}{wxlogfatalerror}\\\helpref{wxLogMessage}{wxlogmessage}\\\helpref{wxLogStatus}{wxlogstatus}\\\helpref{wxLogSysError}{wxlogsyserror}\\\helpref{wxLogTrace}{wxlogtrace}\\\helpref{wxLogVerbose}{wxlogverbose}\\\helpref{wxLogWarning}{wxlogwarning}\\\helpref{wxLL}{wxll}\\\helpref{wxLongLongFmtSpec}{wxlonglongfmtspec}\\\helpref{wxMakeMetafilePlaceable}{wxmakemetafileplaceable}\\\helpref{wxMatchWild}{wxmatchwild}\\\helpref{wxMessageBox}{wxmessagebox}\\\helpref{wxMilliSleep}{wxmillisleep}\\\helpref{wxMicroSleep}{wxmicrosleep}\\\helpref{wxMkdir}{wxmkdir}\\\helpref{wxMutexGuiEnter}{wxmutexguienter}\\\helpref{wxMutexGuiLeave}{wxmutexguileave}\\\helpref{wxNewId}{wxnewid}\\\helpref{wxNow}{wxnow}\\\helpref{wxOnAssert}{wxonassert}\\\helpref{wxON\_BLOCK\_EXIT}{wxonblockexit}\\\helpref{wxON\_BLOCK\_EXIT\_OBJ}{wxonblockexitobj}\\\helpref{wxOpenClipboard}{wxopenclipboard}\\\helpref{wxParseCommonDialogsFilter}{wxparsecommondialogsfilter}\\\helpref{wxPathOnly}{wxpathonly}\\\helpref{wxPLURAL}{wxplural}\\\helpref{wxPostDelete}{wxpostdelete}\\\helpref{wxPostEvent}{wxpostevent}\\\helpref{wxRegisterClipboardFormat}{wxregisterclipboardformat}\\\helpref{wxRegisterId}{wxregisterid}\\\helpref{wxRemoveFile}{wxremovefile}\\\helpref{wxRenameFile}{wxrenamefile}\\\helpref{wxRmdir}{wxrmdir}\\\helpref{wxSafeShowMessage}{wxsafeshowmessage}\\\helpref{wxSafeYield}{wxsafeyield}\\\helpref{wxSetClipboardData}{wxsetclipboarddata}\\\helpref{wxSetCursor}{wxsetcursor}\\\helpref{wxSetDisplayName}{wxsetdisplayname}\\\helpref{wxSetEnv}{wxsetenv}\\\helpref{wxSetPrinterCommand}{wxsetprintercommand}\\\helpref{wxSetPrinterFile}{wxsetprinterfile}\\\helpref{wxSetPrinterMode}{wxsetprintermode}\\\helpref{wxSetPrinterOptions}{wxsetprinteroptions}\\\helpref{wxSetPrinterOrientation}{wxsetprinterorientation}\\\helpref{wxSetPrinterPreviewCommand}{wxsetprinterpreviewcommand}\\\helpref{wxSetPrinterScaling}{wxsetprinterscaling}\\\helpref{wxSetPrinterTranslation}{wxsetprintertranslation}\\\helpref{wxSetWorkingDirectory}{wxsetworkingdirectory}\\\helpref{wxShell}{wxshell}\\\helpref{wxShowTip}{wxshowtip}\\\helpref{wxShutdown}{wxshutdown}\\\helpref{wxSleep}{wxsleep}\\\helpref{wxSnprintf}{wxsnprintf}\\\helpref{wxSplitPath}{wxsplitfunction}\\\helpref{wxStartTimer}{wxstarttimer}\\\helpref{wxStaticCast}{wxstaticcast}\\\helpref{wxStrcmp}{wxstrcmp}\\\helpref{wxStricmp}{wxstricmp}\\\helpref{wxStringEq}{wxstringeq}\\\helpref{wxStringMatch}{wxstringmatch}\\\helpref{wxStringTokenize}{wxstringtokenize}\\\helpref{wxStripMenuCodes}{wxstripmenucodes}\\\helpref{wxStrlen}{wxstrlen}\\\helpref{wxSTRINGIZE}{wxstringize}\\\helpref{wxSTRINGIZE\_T}{wxstringizet}\\\helpref{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}{wxsuppressgccprivatedtorwarning}\\\helpref{wxSysErrorCode}{wxsyserrorcode}\\\helpref{wxSysErrorMsg}{wxsyserrormsg}\\\helpref{wxT}{wxt}\\\helpref{wxTrace}{wxtrace}\\\helpref{WXTRACE}{trace}\\\helpref{wxTraceLevel}{wxtracelevel}\\\helpref{WXTRACELEVEL}{tracelevel}\\\helpref{wxTransferFileToStream}{wxtransferfiletostream}\\\helpref{wxTransferStreamToFile}{wxtransferstreamtofile}\\\helpref{wxTrap}{wxtrap}\\\helpref{wxULL}{wxull}\\\helpref{wxUninitialize}{wxuninitialize}\\\helpref{wxUnix2DosFilename}{wxunix2dosfilename}\\\helpref{wxUnsetEnv}{wxunsetenv}\\\helpref{wxUsleep}{wxusleep}\\\helpref{wxVaCopy}{wxvacopy}\\\helpref{wxVsnprintf}{wxvsnprintf}\\\helpref{wxWakeUpIdle}{wxwakeupidle}\\\helpref{wxWriteResource}{wxwriteresource}\\\helpref{wxYield}{wxyield}\\\helpref{wx\_const\_cast}{wxconstcastraw}\\\helpref{wx\_reinterpret\_cast}{wxreinterpretcastraw}\\\helpref{wx\_static\_cast}{wxstaticcastraw}\\\helpref{wx\_truncate\_cast}{wxtruncatecast}\\\helpref{\_}{underscore}\\\helpref{\_T}{underscoret}\helpref{\_\_WXFUNCTION\_\_}{wxfunction}\section{Version macros}\label{versionfunctions}The following constants are defined in wxWidgets:\begin{itemize}\itemsep=0pt\item {\tt wxMAJOR\_VERSION} is the major version of wxWidgets\item {\tt wxMINOR\_VERSION} is the minor version of wxWidgets\item {\tt wxRELEASE\_NUMBER} is the release number\item {\tt wxSUBRELEASE\_NUMBER} is the subrelease number which is $0$ for allofficial releases\end{itemize}For example, the values or these constants for wxWidgets 2.1.15 are 2, 1 and15.Additionally, {\tt wxVERSION\_STRING} is a user-readable string containingthe full wxWidgets version and {\tt wxVERSION\_NUMBER} is a combination of thethree version numbers above: for 2.1.15, it is 2115 and it is 2200 forwxWidgets 2.2.The subrelease number is only used for the sources in between official releasesand so normally is not useful.\wxheading{Include files}<wx/version.h> or <wx/defs.h>\membersection{wxCHECK\_GCC\_VERSION}\label{wxcheckgccversion}\func{bool}{wxCHECK\_GCC\_VERSION}{\param{}{major, minor}}Returns $1$ if the compiler being used to compile the code is GNU C++compiler (g++) version major.minor or greater. Otherwise, and also ifthe compiler is not GNU C++ at all, returns $0$.\membersection{wxCHECK\_VERSION}\label{wxcheckversion}\func{bool}{wxCHECK\_VERSION}{\param{}{major, minor, release}}This is a macro which evaluates to true if the current wxWidgets version is atleast major.minor.release.For example, to test if the program is compiled with wxWidgets 2.2 or higher,the following can be done:\begin{verbatim}    wxString s;#if wxCHECK_VERSION(2, 2, 0)    if ( s.StartsWith("foo") )#else // replacement code for old version    if ( strncmp(s, "foo", 3) == 0 )#endif    {        ...    }\end{verbatim}\membersection{wxCHECK\_VERSION\_FULL}\label{wxcheckversionfull}\func{bool}{wxCHECK\_VERSION\_FULL}{\param{}{major, minor, release, subrel}}Same as \helpref{wxCHECK\_VERSION}{wxcheckversion} but also checks that\texttt{wxSUBRELEASE\_NUMBER} is at least \arg{subrel}.\membersection{wxCHECK\_W32API\_VERSION}\label{wxcheckw32apiversion}\func{bool}{wxCHECK\_GCC\_VERSION}{\param{}{major, minor, release}}Returns $1$ if the version of w32api headers used is major.minor.release orgreater. Otherwise, and also if we are not compiling with mingw32/cygwin underWin32 at all, returns $0$.\section{Application initialization and termination}\label{appinifunctions}The functions in this section are used on application startup/shutdown and alsoto control the behaviour of the main event loop of the GUI programs.\membersection{::wxEntry}\label{wxentry}This initializes wxWidgets in a platform-dependent way. Use this if you are notusing the default wxWidgets entry code (e.g. main or WinMain). For example, youcan initialize wxWidgets from an Microsoft Foundation Classes application usingthis function.The following overload of wxEntry is available under all platforms:\func{int}{wxEntry}{\param{int\&}{ argc}, \param{wxChar **}{argv}}Under MS Windows, an additional overload suitable for calling from \texttt{WinMain} is available:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -