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

📄 tlw.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 2 页
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Name:        tlw.tex%% Purpose:     wxTopLevelWindow documentation%% Author:      Vadim Zeitlin%% Modified by:%% Created:     2004-09-07 (partly extracted from frame.tex)%% RCS-ID:      $Id: tlw.tex,v 1.26 2006/10/30 13:18:35 RR Exp $%% Copyright:   (c) 2004 Vadim Zeitlin%% License:     wxWindows license%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\section{\class{wxTopLevelWindow}}\label{wxtoplevelwindow}wxTopLevelWindow is a common base class for \helpref{wxDialog}{wxdialog} and\helpref{wxFrame}{wxframe}. It is an abstract base class meaning that you neverwork with objects of this class directly, but all of its methods are alsoapplicable for the two classes above.\wxheading{Derived from}\helpref{wxWindow}{wxwindow}\\\helpref{wxEvtHandler}{wxevthandler}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/toplevel.h>\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxTopLevelWindow::CanSetTransparent}\label{wxtoplevelwindowcansettransparent}\func{virtual bool}{CanSetTransparent}{\void}Returns \true if the platform supports making the window translucent.\wxheading{See also}\helpref{wxTopLevelWindow::SetTransparent}{wxtoplevelwindowsettransparent}\membersection{wxTopLevelWindow::EnableCloseButton}\label{wxtoplevelenableclosebutton}\func{bool}{EnableCloseButton}{\param{bool}{ enable = true}}Enables or disables the Close button (most often in the rightupper corner of a dialog) and the Close entry of the systemmenu (most often in the left upper corner of the dialog).Currently only implemented for wxMSW and wxGTK. Returnstrue if operation was successful. This may be wrong onX11 (including GTK+) where the window manager may not supportthis operation and there is no way to find out.\membersection{wxTopLevelWindow::GetDefaultItem}\label{wxtoplevelwindowgetdefaultitem}\constfunc{wxWindow *}{GetDefaultItem}{\void}Returns a pointer to the button which is the default for this window, or \NULL.The default button is the one activated by pressing the Enter key.\membersection{wxTopLevelWindow::GetIcon}\label{wxtoplevelwindowgeticon}\constfunc{const wxIcon\&}{GetIcon}{\void}Returns the standard icon of the window. The icon will be invalid if it hadn'tbeen previously set by \helpref{SetIcon}{wxtoplevelwindowseticon}.\wxheading{See also}\helpref{GetIcons}{wxtoplevelwindowgeticons}\membersection{wxTopLevelWindow::GetIcons}\label{wxtoplevelwindowgeticons}\constfunc{const wxIconBundle\&}{GetIcons}{\void}Returns all icons associated with the window, there will be none of them ifneither \helpref{SetIcon}{wxtoplevelwindowseticon} nor\helpref{SetIcons}{wxtoplevelwindowseticons} had been called before.Use \helpref{GetIcon}{wxtoplevelwindowgeticon} to get the main icon of thewindow.\wxheading{See also}\helpref{wxIconBundle}{wxiconbundle}\membersection{wxTopLevelWindow::GetTitle}\label{wxtoplevelwindowgettitle}\constfunc{wxString}{GetTitle}{\void}Gets a string containing the window title.\wxheading{See also}\helpref{wxTopLevelWindow::SetTitle}{wxtoplevelwindowsettitle}\membersection{wxTopLevelWindow::HandleSettingChange}\label{wxtoplevelwindowhandlesettingchange}\func{virtual bool}{HandleSettingChange}{\param{WXWPARAM}{ wParam}, \param{WXLPARAM}{ lParam}}Unique to the wxWinCE port. Responds to showing/hiding SIP (soft input panel) area and resizewindow accordingly. Override this if you want to avoid resizing or do additionaloperations.\membersection{wxTopLevelWindow::IsActive}\label{wxtoplevelwindowisactive}\constfunc{bool}{IsActive}{\void}Returns \true if this window is currently active, i.e. if the user is currentlyworking with it.\membersection{wxTopLevelWindow::IsAlwaysMaximized}\label{wxtoplevelwindowisalwaysmaximized}\constfunc{virtual bool}{IsAlwaysMaximized}{\void}Returns \true if this window is expected to be always maximized, either due to platform policyor due to local policy regarding particular class.\membersection{wxTopLevelWindow::Iconize}\label{wxtoplevelwindowiconize}\func{void}{Iconize}{\param{bool}{ iconize}}Iconizes or restores the window.\wxheading{Parameters}\docparam{iconize}{If \true, iconizes the window; if \false, shows and restores it.}\wxheading{See also}\helpref{wxTopLevelWindow::IsIconized}{wxtoplevelwindowisiconized}, \helpref{wxTopLevelWindow::Maximize}{wxtoplevelwindowmaximize}.\membersection{wxTopLevelWindow::IsFullScreen}\label{wxtoplevelwindowisfullscreen}\func{bool}{IsFullScreen}{\void}Returns \true if the window is in fullscreen mode.\wxheading{See also}\helpref{wxTopLevelWindow::ShowFullScreen}{wxtoplevelwindowshowfullscreen}\membersection{wxTopLevelWindow::IsIconized}\label{wxtoplevelwindowisiconized}\constfunc{bool}{IsIconized}{\void}Returns \true if the window is iconized.\membersection{wxTopLevelWindow::IsMaximized}\label{wxtoplevelwindowismaximized}\constfunc{bool}{IsMaximized}{\void}Returns \true if the window is maximized.\membersection{wxTopLevelWindow::IsUsingNativeDecorations}\label{wxtoplevelwindowisusingnativedecorations}\constfunc{bool}{IsUsingNativeDecorations}{\void}\bftt{This method is specific to wxUniversal port}Returns \true if this window is using native decorations, \false if we drawthem ourselves.\wxheading{See also}\helpref{UseNativeDecorations}{wxtoplevelwindowusenativedecorations},\\\helpref{UseNativeDecorationsByDefault}{wxtoplevelwindowusenativedecorationsbydefault}\membersection{wxTopLevelWindow::Maximize}\label{wxtoplevelwindowmaximize}\func{void}{Maximize}{\param{bool }{maximize}}Maximizes or restores the window.\wxheading{Parameters}\docparam{maximize}{If \true, maximizes the window, otherwise it restores it.}\wxheading{See also}\helpref{wxTopLevelWindow::Iconize}{wxtoplevelwindowiconize}\membersection{wxTopLevelWindow::RequestUserAttention}\label{wxtoplevelwindowrequestuserattention}\func{void}{RequestUserAttention}{\param{int }{flags = wxUSER\_ATTENTION\_INFO}}Use a system-dependent way to attract users attention to the window when it isin background.\arg{flags} may have the value of either \texttt{wxUSER\_ATTENTION\_INFO}(default) or \texttt{wxUSER\_ATTENTION\_ERROR} which results in a more drasticaction. When in doubt, use the default value.Note that this function should normally be only used when the application isnot already in foreground.This function is currently implemented for Win32 where it flashes thewindow icon in the taskbar, and for wxGTK with task bars supporting it.\membersection{wxTopLevelWindow::SetDefaultItem}\label{wxtoplevelwindowsetdefaultitem}\func{void}{SetDefaultItem}{\param{wxWindow }{*win}}Changes the default item for the panel, usually \arg{win} is a button.\wxheading{See also}\helpref{GetDefaultItem}{wxtoplevelwindowgetdefaultitem}\membersection{wxTopLevelWindow::SetIcon}\label{wxtoplevelwindowseticon}\func{void}{SetIcon}{\param{const wxIcon\& }{icon}}Sets the icon for this window.\wxheading{Parameters}

⌨️ 快捷键说明

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