nobody at rubyforge.org
2006-Dec-20 23:43 UTC
[Wxruby-development] [791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:'':'';} #msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; } #msg ul, pre { overflow: auto; } #header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>791</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12-20 18:43:44 -0500 (Wed, 20 Dec 2006)</dd> </dl> <h3>Log Message</h3> <pre>Remove shadowing GetBestSize def causing warning, plus strip crufty comments</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2swigclassesincludewxWindowh">trunk/wxruby2/swig/classes/include/wxWindow.h</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="trunkwxruby2swigclassesincludewxWindowh"></a> <div class="modfile"><h4>Modified: trunk/wxruby2/swig/classes/include/wxWindow.h (790 => 791)</h4> <pre class="diff"><span> <span class="info">--- trunk/wxruby2/swig/classes/include/wxWindow.h        2006-12-20 23:24:31 UTC (rev 790) +++ trunk/wxruby2/swig/classes/include/wxWindow.h        2006-12-20 23:43:44 UTC (rev 791) </span><span class="lines">@@ -8,36 +8,9 @@ </span><span class="cx"> class wxWindow : public wxEvtHandler </span><span class="cx"> { </span><span class="cx"> public: </span><del>-        /** -         * \brief Default constructor. -        */ - </del><span class="cx"> wxWindow() ; </span><del>-        /** -         * \brief Constructs a window, which can be a child of a frame, dialog or any other non-control window. -         * \param wxWindow* -         * \param wxWindowID -         * \param const wxPoint& -         * \param const wxSize& -         * \param long -         * \param const wxString& -        */ - </del><span class="cx"> wxWindow(wxWindow* parent , wxWindowID id , const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxPanelNameStr) ; </span><del>-        /** -         * \brief Destructor. Deletes all subwindows, then deletes itself. Instead of using -the operator explicitly, you should normally -use so that wxWindows -can delete a window only when it is safe to do so, in idle time. -        */ - </del><span class="cx"> virtual ~wxWindow() ; </span><del>-        /** -         * \brief Adds a child window. This is called automatically by window creation -functions so should not be required by the application programmer. -         * \param wxWindow* -        */ - </del><span class="cx"> // FIXME? AcceptFocus causes problems because it is public here and protected </span><span class="cx"> // in some derived classes. Do not uncomment unless you also </span><span class="cx"> // make sure to fix it in derived classes else things like </span><span class="lines">@@ -45,703 +18,95 @@ </span><span class="cx"> // virtual bool AcceptsFocus() const; </span><span class="cx"> </span><span class="cx"> virtual void AddChild(wxWindow* child ) ; </span><del>-        /** -         * \brief Directs all mouse input to this window. Call to -release the capture. - -Note that wxWindows maintains the stack of windows having captured the mouse -and when the mouse is released the capture returns to the window which had had -captured it previously and it is only really released if there were no previous -window. In particular, this means that you must release the mouse as many times -as you capture it. -        */ - </del><span class="cx"> void CaptureMouse() ; </span><del>-        /** -         * \brief A synonym for . -         * \param int -        */ - </del><span class="cx"> void Center(int direction ) ; </span><del>-        /** -         * \brief A synonym for . -         * \param int -        */ - </del><span class="cx"> void CenterOnParent(int direction ) ; </span><del>-        /** -         * \brief A synonym for . -         * \param int -        */ - </del><span class="cx"> void CenterOnScreen(int direction ) ; </span><del>-        /** -         * \brief Centres the window. - - - - - -The flag is obsolete and should not be used any longer -(it has no effect). -         * \param int -        */ - </del><span class="cx"> void Centre(int direction = wxBOTH) ; </span><del>-        /** -         * \brief Centres the window on its parent. This is a more readable synonym for - . -         * \param int -        */ - </del><span class="cx"> void CentreOnParent(int direction = wxBOTH) ; </span><del>-        /** -         * \brief Centres the window on screen. This only works for top level windows - -otherwise, the window will still be centered on its parent. -         * \param int -        */ - </del><span class="cx"> void CentreOnScreen(int direction = wxBOTH) ; </span><del>- -        /** -         * \brief \perlnote{In wxPerl this method returns a 2-element list instead of -modifying its parameters.} -         * \param int* -         * \param int* -        */ - </del><span class="cx"> void ClientToScreen(int* x_INOUT , int* y_INOUT ) const; </span><del>-        /** -         * \brief Converts to screen coordinates from coordinates relative to this window. - - - - - - - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} -         * \param const wxPoint& -        */ - </del><span class="cx"> wxPoint ClientToScreen(const wxPoint& pt ) const; </span><del>-        /** -         * \brief This function simply generates a whose -handler usually tries to close the window. It doesn''t close the window itself, -however. -         * \param bool -        */ - </del><span class="cx"> bool Close(bool force = false) ; </span><del>-        /** -         * \brief -         * \param const wxPoint& -        */ - </del><span class="cx"> wxPoint ConvertDialogToPixels(const wxPoint& pt ) ; </span><del>-        /** -         * \brief -         * \param const wxSize& -        */ - </del><span class="cx"> wxSize ConvertDialogToPixels(const wxSize& sz ) ; </span><del>-        /** -         * \brief -         * \param const wxPoint& -        */ - </del><span class="cx"> wxPoint ConvertPixelsToDialog(const wxPoint& pt ) ; </span><del>-        /** -         * \brief -         * \param const wxSize& -        */ - </del><span class="cx"> wxSize ConvertPixelsToDialog(const wxSize& sz ) ; </span><del>-        /** -         * \brief Destroys the window safely. Use this function instead of the delete operator, since -different window classes can be destroyed differently. Frames and dialogs -are not destroyed immediately when this function is called -- they are added -to a list of windows to be deleted on idle time, when all the window''s events -have been processed. This prevents problems with events being sent to non-existent -windows. -        */ - </del><span class="cx"> virtual bool Destroy() ; </span><del>-        /** -         * \brief Destroys all children of a window. Called automatically by the destructor. -        */ - </del><span class="cx"> void DestroyChildren() ; </span><del>-        /** -         * \brief Disables the window, same as . -        */ - </del><span class="cx"> void Disable() ; </span><del>-        /** -         * \brief Enables or disables eligibility for drop file events (OnDropFiles). -         * \param bool -        */ - </del><span class="cx"> ; </span><del>-        /** -         * \brief Enable or disable the window for user input. Note that when a parent window is -disabled, all of its children are disabled as well and they are reenabled again -when the parent is. -         * \param bool -        */ - </del><span class="cx"> virtual bool Enable(bool enable = true) ; </span><del>-        /** -         * \brief Finds the window or control which currently has the keyboard focus. -        */ - </del><span class="cx"> static wxWindow* FindFocus() ; </span><del>-        /** -         * \brief Find a child of this window, by identifier. -         * \param long -        */ - </del><span class="cx"> wxWindow* FindWindow(long id ) const; </span><del>-        /** -         * \brief Find a child of this window, by name. - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} -         * \param const wxString& -        */ - </del><span class="cx"> wxWindow* FindWindow(const wxString& name ) const; </span><del>-        /** -         * \brief Find the first window with the given . - -If is NULL, the search will start from all top-level -frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. -The search is recursive in both cases. -         * \param long -         * \param wxWindow* -        */ - </del><span class="cx"> static wxWindow* FindWindowById(long id , wxWindow* parent = NULL) ; </span><del>-        /** -         * \brief Find a window by its name (as given in a window constructor or function call). -If is NULL, the search will start from all top-level -frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. -The search is recursive in both cases. - -If no window with such name is found, - is called. -         * \param const wxString& -         * \param wxWindow* -        */ - </del><span class="cx"> static wxWindow* FindWindowByName(const wxString& name , wxWindow* parent = NULL) ; </span><del>-        /** -         * \brief Find a window by its label. Depending on the type of window, the label may be a window title -or panel item label. If is NULL, the search will start from all top-level -frames and dialog boxes; if non-NULL, the search will be limited to the given window hierarchy. -The search is recursive in both cases. -         * \param const wxString& -         * \param wxWindow* -        */ - </del><span class="cx"> static wxWindow* FindWindowByLabel(const wxString& label , wxWindow* parent = NULL) ; </span><del>-        /** -         * \brief Sizes the window so that it fits around its subwindows. This function won''t do -anything if there are no subwindows. -        */ - </del><span class="cx"> virtual void Fit() ; </span><del>-        /** -         * \brief Similar to , but sizes the interior (virtual) size -of a window. Mainly useful with scrolled windows to reset scrollbars after -sizing changes that do not trigger a size event, and/or scrolled windows without -an interior sizer. This function similarly won''t do anything if there are no -subwindows. -        */ - </del><span class="cx"> virtual void FitInside() ; </span><del>-        /** -         * \brief Freezes the window or, in other words, prevents any updates from taking place -on screen, the window is not redrawn at all. must -be called to reenable window redrawing. - -This method is useful for visual appearance optimization (for example, it -is a good idea to use it before inserting large amount of text into a -wxTextCtrl under wxGTK) but is not implemented on all platforms nor for all -controls so it is mostly just a hint to wxWindows and not a mandatory -directive. -        */ - </del><span class="cx"> virtual void Freeze() ; </span><del>-        /** -         * \brief Returns the accessible object for this window, if any. - -See also . -        */ - </del><span class="cx"> //wxAccessible* GetAccessible(); </span><del>-        /** -         * \brief This method is similar to , except -in one thing. GetBestSize should return the minimum untruncated size of the -window, while this method will return the largest of BestSize and any user -specified minimum size. ie. it is the minimum size the window should currently -be drawn at, not the minimal size it can possibly tolerate. -        */ - </del><span class="cx"> wxSize GetAdjustedBestSize() const; </span><del>-        /** -         * \brief Returns the background colour of the window. -        */ - </del><span class="cx"> wxColour GetBackgroundColour() const; </span><del>-        /** -         * \brief This functions returns the best acceptable minimal size for the window. For -example, for a static control, it will be the minimal size such that the -control label is not truncated. For windows containing subwindows (typically - ), the size returned by this function will be the -same as the size the window would have had after calling - . -        */ - </del><span class="cx"> wxSize GetBestSize() const; </span><del>- -        void GetBestSize(int *w, int *h) const; -        /** -         * \brief Returns the associated with the window. -        */ - </del><span class="cx"> wxCaret * GetCaret() const; </span><del>-        /** -         * \brief -        */ - </del><span class="cx"> static wxWindow * GetCapture() ; </span><del>-        /** -         * \brief Returns the character height for this window. -        */ - </del><span class="cx"> virtual int GetCharHeight() const; </span><del>-        /** -         * \brief Returns the average character width for this window. -        */ - </del><span class="cx"> virtual int GetCharWidth() const; </span><del>-        /** -         * \brief Returns a reference to the list of the window''s children. -        */ - </del><span class="cx"> wxList& GetChildren() ; </span><del>-        /** -         * \brief \perlnote{In wxPerl this method takes no parameter and returns -a 2-element list .} -         * \param int* -         * \param int* -        */ - </del><span class="cx"> void GetClientSize(int* width , int* height ) const; </span><del>-        /** -         * \brief This gets the size of the window `client area'' in pixels. -The client area is the area which may be drawn on by the programmer, -excluding title bar, border, scrollbars, etc. - - - - - - - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} -        */ - </del><span class="cx"> wxSize GetClientSize() const; </span><del>-        /** -         * \brief Returns a pointer to the window''s layout constraints, or NULL if there are none. -        */ - </del><span class="cx"> wxLayoutConstraints* GetConstraints() const; </span><del>-        /** -         * \brief Return the sizer that this window is a member of, if any, otherwise - . -        */ - </del><span class="cx"> const wxSizer * GetContainingSizer() const; </span><del>-        /** -         * \brief Returns the associated drop target, which may be NULL. -        */ - </del><span class="cx"> wxDropTarget* GetDropTarget() const; </span><del>-        /** -         * \brief Returns the event handler for this window. By default, the window is its -own event handler. -        */ - </del><span class="cx"> wxEvtHandler* GetEventHandler() const; </span><del>-        /** -         * \brief Returns the extra style bits for the window. -        */ - </del><span class="cx"> long GetExtraStyle() const; </span><del>-        /** -         * \brief Returns a reference to the font for this window. -        */ - </del><span class="cx"> wxFont GetFont() const; </span><del>-        /** -         * \brief Returns the foreground colour of the window. -        */ - </del><span class="cx"> wxColour GetForegroundColour() ; </span><del>-        /** -         * \brief Returns the grandparent of a window, or NULL if there isn''t one. -        */ - </del><span class="cx"> wxWindow* GetGrandParent() const; </span><del>-        /** -         * \brief Returns the platform-specific handle of the physical window. Cast it to an appropriate -handle, such as for Windows, for Motif or for GTK. - -\pythonnote{This method will return an integer in wxPython.} - -\perlnote{This method will return an integer in wxPerl.} -        */ - </del><span class="cx"> void* GetHandle() const; </span><del>-        /** -         * \brief -        */ - </del><span class="cx"> wxString GetHelpText() const; </span><del>-        /** -         * \brief Returns the identifier of the window. -        */ - </del><span class="cx"> int GetId() const; </span><del>-        /** -         * \brief Generic way of getting a label from any window, for -identification purposes. -        */ - </del><span class="cx"> virtual wxString GetLabel() const; </span><del>-        /** -         * \brief Returns the window''s name. -        */ - </del><span class="cx"> virtual wxString GetName() const; </span><del>-        /** -         * \brief Returns the parent of the window, or NULL if there is no parent. -        */ - </del><span class="cx"> wxWindow* GetParent() const; </span><del>-        /** -         * \brief -         * \param int* -         * \param int* -        */ - </del><span class="cx"> void GetPosition(int* x , int* y ) const; </span><del>-        /** -         * \brief This gets the position of the window in pixels, relative to the parent window -for the child windows or relative to the display origin for the top level -windows. - - - - - - - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} - -\perlnote{In wxPerl there are two methods instead of a single overloaded -method:\par -\indented{2cm}{ -}} -        */ - </del><span class="cx"> wxPoint GetPosition() const; </span><del>-        /** -         * \brief Returns the size and position of the window as a object. -        */ - </del><span class="cx"> wxRect GetRect() const; </span><del>-        /** -         * \brief Returns the built-in scrollbar thumb size. -         * \param int -        */ - </del><span class="cx"> virtual int GetScrollThumb(int orientation ) ; </span><del>-        /** -         * \brief Returns the built-in scrollbar position. -         * \param int -        */ - </del><span class="cx"> virtual int GetScrollPos(int orientation ) ; </span><del>-        /** -         * \brief Returns the built-in scrollbar range. -         * \param int -        */ - </del><span class="cx"> virtual int GetScrollRange(int orientation ) ; </span><del>-        /** -         * \brief -         * \param int* -         * \param int* -        */ - </del><span class="cx"> void GetSize(int* width , int* height ) const; </span><del>-        /** -         * \brief This gets the size of the entire window in pixels, -including title bar, border, scrollbars, etc. - - - - - - - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} - -\perlnote{In wxPerl there are two methods instead of a single overloaded -method:\par -\indented{2cm}{ -}} -        */ - </del><span class="cx"> wxSize GetSize() const; </span><del>-        /** -         * \brief Return the sizer associated with the window by a previous call to - or . -        */ - </del><span class="cx"> wxSizer * GetSizer() const; </span><del>-        /** -         * \brief Gets the dimensions of the string as it would be drawn on the -window with the currently selected font. - - - - - - - - - - - - - - - - - - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} - -\perlnote{In wxPerl this method takes only the and optionally - parameters, and returns a 4-element list - .} -         * \param const wxString& -         * \param int* -         * \param int* -         * \param int* -         * \param int* -         * \param const wxFont* -         * \param bool -        */ - </del><span class="cx"> virtual void GetTextExtent(const wxString& string , int * x , int * y , int * descent = NULL, int * externalLeading = NULL, wxFont * font = NULL) const; </span><del>-        /** -         * \brief Gets the window''s title. Applicable only to frames and dialogs. -        */ - </del><span class="cx"> virtual wxString GetTitle() ; </span><del>-        /** -         * \brief Get the associated tooltip or NULL if none. -        */ - </del><span class="cx"> wxToolTip* GetToolTip() const; </span><del>-        /** -         * \brief Returns the region specifying which parts of the window have been damaged. Should -only be called within an handler. -        */ - </del><span class="cx"> wxRegion GetUpdateRegion() const; </span><del>-        /** -         * \brief Returns a pointer to the current validator for the window, or NULL if there is none. -        */ - </del><span class="cx"> wxValidator* GetValidator(); </span><del>-        /** -         * \brief -         * \param int* -         * \param int* -        */ - </del><span class="cx"> void GetVirtualSize(int* width , int* height ) const; </span><del>-        /** -         * \brief This gets the virtual size of the window in pixels. - - - - - - - - , -        */ - </del><span class="cx"> wxSize GetVirtualSize() const; </span><del>-        /** -         * \brief Gets the window style that was passed to the constructor or -method. is another name for the same function. -        */ - </del><span class="cx"> long GetWindowStyleFlag() const; </span><del>-        /** -         * \brief -        */ - </del><span class="cx"> virtual bool HasCapture() const; </span><del>-        /** -         * \brief Equivalent to calling ( ). -        */ - </del><span class="cx"> bool Hide() ; </span><del>-        /** -         * \brief Sends an event, whose handler usually transfers data -to the dialog via validators. -        */ - </del><span class="cx"> void InitDialog() ; </span><del>-        /** -         * \brief Returns if the window is enabled for input, otherwise. -        */ - </del><span class="cx"> virtual bool IsEnabled() const; </span><del>-        /** -         * \brief Returns if the window is retained, otherwise. -        */ - </del><span class="cx"> virtual bool IsRetained() const; </span><del>-        /** -         * \brief Returns if the window is shown, if it has been hidden. -        */ - </del><span class="cx"> virtual bool IsShown() const; </span><del>-        /** -         * \brief Returns if the given window is a top-level one. Currently all frames and -dialogs are considered to be top-level windows (even if they have a parent -window). -        */ - </del><span class="cx"> bool IsTopLevel() const; </span><del>-        /** -         * \brief Invokes the constraint-based layout algorithm or the sizer-based algorithm -for this window. - -See : when auto -layout is on, this function gets called automatically when the window is resized. -        */ - </del><span class="cx"> void Layout() ; </span><del>-        /** -         * \brief Lowers the window to the bottom of the window hierarchy if it is a managed window (dialog -or frame). -        */ - </del><span class="cx"> void Lower() ; </span><del>-        /** -         * \brief Disables all other windows in the application so that -the user can only interact with this window. (This function -is not implemented anywhere). -         * \param bool -        */ - </del><span class="cx"> virtual void MakeModal(bool flag ) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -        */ - </del><span class="cx"> void Move(int x , int y ) ; </span><del>-        /** -         * \brief -         * \param const wxPoint& -        */ - </del><span class="cx"> void Move(const wxPoint& pt ) ; </span><del>-        /** -         * \brief Removes and returns the top-most event handler on the event handler stack. -         * \param bool -        */ - </del><span class="cx"> wxEvtHandler* PopEventHandler(bool deleteHandler = false); </span><del>-        /** -         * \brief -         * \param wxMenu* -         * \param const wxPoint& -        */ - </del><span class="cx"> bool PopupMenu(wxMenu* menu , const wxPoint& pos = wxDefaultPosition) ; </span><del>-        /** -         * \brief -         * \param wxMenu* -         * \param int -         * \param int -        */ - </del><span class="cx"> bool PopupMenu(wxMenu* menu , int x , int y ) ; </span><del>-        /** -         * \brief Pushes this event handler onto the event stack for the window. -         * \param wxEvtHandler* -        */ - </del><span class="cx"> void PushEventHandler(wxEvtHandler* handler ) ; </span><del>-        /** -         * \brief Raises the window to the top of the window hierarchy if it is a managed window (dialog -or frame). -        */ - </del><span class="cx"> void Raise() ; </span><del>-        /** -         * \brief Causes a message or event to be generated to repaint the -window. -         * \param bool -         * \param const wxRect* -        */ - </del><span class="cx"> virtual void Refresh(bool eraseBackground = true, const wxRect* rect = NULL) ; </span><del>-        /** -         * \brief Redraws the contents of the given rectangle: the area inside it will be -repainted. - -This is the same as but has a nicer syntax. -         * \param const wxRect& -        */ - </del><span class="cx"> virtual void RefreshRect(const wxRect& rect, bool eraseBackground = true) ; </span><del>-        /** -         * \brief -        */ - </del><span class="cx"> //#ifdef __WXMSW__ </span><span class="cx"> #ifdef wxUSE_HOTKEY </span><span class="cx"> bool RegisterHotKey(int hotkeyId, int modifiers, int virtualKeyCode); </span><span class="lines">@@ -749,484 +114,81 @@ </span><span class="cx"> #endif </span><span class="cx"> </span><span class="cx"> virtual void ReleaseMouse() ; </span><del>-        /** -         * \brief Removes a child window. This is called automatically by window deletion -functions so should not be required by the application programmer. -         * \param wxWindow* -        */ - </del><span class="cx"> virtual void RemoveChild(wxWindow* child ) ; </span><del>-        /** -         * \brief Find the given in the windows event handler chain and remove (but -not delete) it from it. -         * \param wxEvtHandler * -        */ - </del><span class="cx"> bool RemoveEventHandler(wxEvtHandler * handler ) ; </span><del>-        /** -         * \brief Reparents the window, i.e the window will be removed from its -current parent window (e.g. a non-standard toolbar in a wxFrame) -and then re-inserted into another. Available on Windows and GTK. -         * \param wxWindow* -        */ - </del><span class="cx"> virtual bool Reparent(wxWindow* newParent ) ; </span><del>-        /** -         * \brief -         * \param int* -         * \param int* -        */ - </del><span class="cx"> void ScreenToClient(int* x_INOUT , int* y_INOUT ) const; </span><del>-        /** -         * \brief Converts from screen to client window coordinates. - - - - - - - - - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} -         * \param const wxPoint& -        */ - </del><span class="cx"> wxPoint ScreenToClient(const wxPoint& pt ) const; </span><del>-        /** -         * \brief Scrolls the window by the given number of lines down (if is -positive) or up. -         * \param int -        */ - </del><span class="cx"> virtual bool ScrollLines(int lines ) ; </span><del>-        /** -         * \brief Scrolls the window by the given number of pages down (if is -positive) or up. -         * \param int -        */ - </del><span class="cx"> virtual bool ScrollPages(int pages ) ; </span><del>-        /** -         * \brief Physically scrolls the pixels in the window and move child windows accordingly. -         * \param int -         * \param int -         * \param const wxRect* -        */ - </del><span class="cx"> virtual void ScrollWindow(int dx , int dy , const wxRect* rect = NULL) ; </span><del>-        /** -         * \brief Sets the accelerator table for this window. See . -         * \param const wxAcceleratorTable& -        */ - </del><span class="cx"> virtual void SetAcceleratorTable(const wxAcceleratorTable& accel ) ; </span><del>-        /** -         * \brief Sets the accessible for this window. Any existing accessible for this window -will be deleted first, if not identical to . - -See also . -         * \param wxAccessibile* -        */ - </del><span class="cx"> //void SetAccessible(wxAccessible* accessible ); </span><del>-        /** -         * \brief Determines whether the function will -be called automatically when the window is resized. It is called implicitly by - but if you use - you should call it -manually or otherwise the window layout won''t be correctly updated when its -size changes. -         * \param bool -        */ - </del><span class="cx"> void SetAutoLayout(bool autoLayout ) ; </span><del>-        /** -         * \brief Sets the background colour of the window. -         * \param const wxColour& -        */ - </del><span class="cx"> virtual bool SetBackgroundColour(const wxColour& colour ); </span><del>-        /** -         * \brief Sets the associated with the window. -         * \param wxCaret * -        */ - </del><span class="cx"> void SetCaret(wxCaret * caret ); </span><del>-        /** -         * \brief -         * \param int -         * \param int -        */ - </del><span class="cx"> virtual void SetClientSize(int width , int height ) ; </span><del>-        /** -         * \brief This sets the size of the window client area in pixels. Using this function to size a window -tends to be more device-independent than , since the application need not -worry about what dimensions the border or title bar have when trying to fit the window -around panel items, for example. - - - - - - - - - -\pythonnote{In place of a single overloaded method name, wxPython -implements the following methods:\par -\indented{2cm}{ } -} -         * \param const wxSize& -        */ - </del><span class="cx"> virtual void SetClientSize(const wxSize& size ) ; </span><del>-        /** -         * \brief This normally does not need to be called by user code. It is called -when a window is added to a sizer, and is used so the window can -remove itself from the sizer when it is destroyed. -         * \param wxSizer* -        */ - </del><span class="cx"> void SetContainingSizer(wxSizer* sizer ) ; </span><del>-        /** -         * \brief -         * \param const wxCursor& -        */ - </del><span class="cx"> virtual bool SetCursor(const wxCursor& cursor ); </span><del>-        /** -         * \brief Sets the window to have the given layout constraints. The window -will then own the object, and will take care of its deletion. -If an existing layout constraints object is already owned by the -window, it will be deleted. -         * \param wxLayoutConstraints* -        */ - </del><span class="cx"> void SetConstraints(wxLayoutConstraints* constraints ) ; </span><del>-        /** -         * \brief Associates a drop target with this window. - -If the window already has a drop target, it is deleted. -         * \param wxDropTarget* -        */ - </del><span class="cx"> void SetDropTarget(wxDropTarget* target ) ; </span><del>-        /** -         * \brief Sets the event handler for this window. -         * \param wxEvtHandler* -        */ - </del><span class="cx"> void SetEventHandler(wxEvtHandler* handler ) ; </span><del>-        /** -         * \brief Sets the extra style bits for the window. The currently defined extra style -bits are: - -\twocolwidtha{5cm} -         * \param long -        */ - </del><span class="cx"> void SetExtraStyle(long exStyle ) ; </span><del>-        /** -         * \brief This sets the window to receive keyboard input. -        */ - </del><span class="cx"> virtual void SetFocus() ; </span><del>-        /** -         * \brief This function is called by wxWindows keyboard navigation code when the user -gives the focus to this window from keyboard (e.g. using key). -By default this method simply calls but -can be overridden to do something in addition to this in the derived classes. -        */ - </del><span class="cx"> virtual void SetFocusFromKbd() ; </span><del>-        /** -         * \brief Sets the font for this window. -         * \param const wxFont& -        */ - </del><span class="cx"> void SetFont(const wxFont& font ) ; </span><del>-        /** -         * \brief Sets the foreground colour of the window. -         * \param const wxColour& -        */ - </del><span class="cx"> virtual bool SetForegroundColour(const wxColour& colour ); </span><del>-        /** -         * \brief -         * \param const wxString& -        */ - </del><span class="cx"> virtual void SetHelpText(const wxString& helpText ) ; </span><del>-        /** -         * \brief Sets the identifier of the window. -         * \param int -        */ - </del><span class="cx"> void SetId(int id ) ; </span><del>-        /** -         * \brief Sets the window''s name. -         * \param const wxString& -        */ - </del><span class="cx"> virtual void SetName(const wxString& name ) ; </span><del>-        /** -         * \brief Obsolete - use instead. -         * \param wxPalette* -        */ - </del><span class="cx"> #if 0 // deprecated </span><span class="cx"> virtual void SetPalette(const wxPalette* palette ); </span><del>-        /** -         * \brief -         * \param int -         * \param int -         * \param int -         * \param int -         * \param bool -        */ </del><span class="cx"> #endif </span><del>- </del><span class="cx"> virtual void SetScrollbar(int orientation , int position , int thumbSize , int range , bool refresh = true) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -         * \param bool -        */ </del><span class="cx"> </span><span class="cx"> #if __WXMICROWIN___ </span><span class="cx"> virtual void SetScrollPage(int orientation , int pageSize , bool refresh = true) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -         * \param bool -        */ </del><span class="cx"> #endif </span><span class="cx"> </span><span class="cx"> virtual void SetScrollPos(int orientation , int pos , bool refresh = true) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -         * \param bool -        */ </del><span class="cx"> </span><span class="cx"> #if __WXMICROWIN___ </span><span class="cx"> virtual void SetScrollRange(int orientation , int range , bool refresh = true) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -         * \param int -         * \param int -         * \param int -        */ </del><span class="cx"> #endif </span><span class="cx"> </span><span class="cx"> virtual void SetSize(int x , int y , int width , int height , int sizeFlags = wxSIZE_AUTO) ; </span><del>-        /** -         * \brief Sets the size and position of the window in pixels. -         * \param const wxRect& -        */ - </del><span class="cx"> virtual void SetSize(const wxRect& rect ) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -        */ - </del><span class="cx"> virtual void SetSize(int width , int height ) ; </span><del>-        /** -         * \brief -         * \param const wxSize& -        */ - </del><span class="cx"> virtual void SetSize(const wxSize& size ) ; </span><del>-        /** -         * \brief Allows specification of minimum and maximum window sizes, and window size increments. -If a pair of values is not set (or set to -1), the default values will be used. -         * \param int -         * \param int -         * \param int -         * \param int -         * \param int -         * \param int -        */ - virtual void SetSizeHints( int minW, int minH, - int maxW = wxDefaultCoord, int maxH = wxDefaultCoord, - int incW = wxDefaultCoord, int incH = wxDefaultCoord ); </del><ins>+ virtual void SetSizeHints( int minW, int minH, +                                                         int maxW = wxDefaultCoord, int maxH = wxDefaultCoord, +                                                         int incW = wxDefaultCoord, int incH = wxDefaultCoord ); </ins><span class="cx"> </span><span class="cx"> void SetSizeHints( const wxSize& minSize, </span><span class="cx"> const wxSize& maxSize=wxDefaultSize, </span><span class="cx"> const wxSize& incSize=wxDefaultSize); </span><del>- -        /** -         * \brief Sets the window to have the given layout sizer. The window -will then own the object, and will take care of its deletion. -If an existing layout constraints object is already owned by the -window, it will be deleted if the deleteOld parameter is true. - -Note that this function will also call - implicitly with -parameter if the \/ is non-NULL and otherwise. -         * \param wxSizer* -         * \param bool -        */ - </del><span class="cx"> void SetSizer(wxSizer* sizer , bool deleteOld = true) ; </span><del>- -        /** -         * \brief The same as , except it also sets the size hints -for the window based on the sizer''s minimum size. -         * \param wxSizer* -         * \param bool -        */ - </del><span class="cx"> void SetSizerAndFit(wxSizer* sizer , bool deleteOld = true) ; </span><del>-        /** -         * \brief Sets the window''s title. Applicable only to frames and dialogs. -         * \param const wxString& -        */ - </del><span class="cx"> virtual void SetTitle(const wxString& title ) ; </span><del>-        /** -         * \brief This function tells a window if it should use the system''s "theme" code -to draw the windows'' background instead if its own background drawing -code. This does not always have any effect since the underlying platform -obviously needs to support the notion of themes in user defined windows. -One such platform is GTK+ where windows can have (very colourful) backgrounds -defined by a user''s selected theme. - -Dialogs, notebook pages and the status bar have this flag set to true -by default so that the default look and feel is simulated best. -         * \param bool -        */ - </del><span class="cx"> virtual void SetThemeEnabled(bool enable ) ; </span><del>-        /** -         * \brief Deletes the current validator (if any) and sets the window validator, having called wxValidator::Clone to -create a new validator of this type. -         * \param const wxValidator& -        */ - </del><span class="cx"> virtual void SetValidator(const wxValidator& validator ) ; </span><del>-        /** -         * \brief -         * \param const wxString& -        */ - </del><span class="cx"> void SetToolTip(const wxString& tip ) ; </span><del>-        /** -         * \brief Attach a tooltip to the window. - -See also: , -         * \param wxToolTip* -        */ - </del><span class="cx"> void SetToolTip(wxToolTip* tip ) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -        */ - </del><span class="cx"> void SetVirtualSize(int width , int height ) ; </span><del>-        /** -         * \brief Sets the virtual size of the window in pixels. -         * \param const wxSize& -        */ - </del><span class="cx"> void SetVirtualSize(const wxSize& size ) ; </span><del>-        /** -         * \brief Allows specification of minimum and maximum virtual window sizes. -If a pair of values is not set (or set to -1), the default values -will be used. -         * \param int -         * \param int -         * \param int -         * \param int -        */ - </del><span class="cx"> virtual void SetVirtualSizeHints(int minW , int minH , int maxW = wxDefaultCoord, int maxH = wxDefaultCoord) ; </span><span class="cx"> </span><span class="cx">         void SetVirtualSizeHints( const wxSize& minSize, const wxSize& maxSize=wxDefaultSize); </span><del>-        /** -         * \brief Identical to . -         * \param long -        */ - </del><span class="cx"> void SetWindowStyle(long style ) ; </span><del>-        /** -         * \brief Sets the style of the window. Please note that some styles cannot be changed -after the window creation and that might -be called after changing the others for the change to take place immediately. - -See for more information about flags. -         * \param long -        */ - </del><span class="cx"> virtual void SetWindowStyleFlag(long style ) ; </span><del>-        /** -         * \brief Shows or hides the window. You may need to call -for a top level window if you want to bring it to top, although this is not -needed if Show() is called immediately after the frame creation. -         * \param bool -        */ - </del><span class="cx"> virtual bool Show(bool show = true) ; </span><del>-        /** -         * \brief Reenables window updating after a previous call to - . -        */ - </del><span class="cx"> virtual void Thaw() ; </span><del>-        /** -         * \brief -        */ - </del><span class="cx"> virtual bool TransferDataFromWindow() ; </span><del>-        /** -         * \brief -        */ - </del><span class="cx"> virtual bool TransferDataToWindow() ; </span><del>-        /** -         * \brief Calling this method immediately repaints the invalidated area of the window -while this would usually only happen when the flow of control returns to the -event loop. Notice that this function doesn''t refresh the window and does -nothing if the window hadn''t been already repainted. Use - first if you want to immediately redraw the -window unconditionally. -        */ - </del><span class="cx"> virtual void Update() ; </span><del>-        /** -         * \brief Validates the current values of the child controls using their validators. - -If the window has extra style flag set, -the method will also call Validate() of all child windows. -        */ - </del><span class="cx"> virtual bool Validate() ; </span><del>-        /** -         * \brief Moves the pointer to the given position on the window. - - This function is not supported under Mac because Apple Human -Interface Guidelines forbid moving the mouse cursor programmatically. -         * \param int -         * \param int -        */ - </del><span class="cx"> void WarpPointer(int x , int y ) ; </span><del>- </del><span class="cx"> void SetWindowVariant( wxWindowVariant variant ) ; </span><span class="cx"> wxWindowVariant GetWindowVariant() const; </span><span class="cx">         void InvalidateBestSize(); </span></span></pre> </div> </div> </body> </html>
Maybe Matching Threads
- [883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
- [1103] trunk/wxruby2: Added 2.8 methods to StaticBitmap & document them; cleanup header file
- [950] branches/wxruby2/wxwidgets_282: Changes in GenericDirCtrl API 2.6->2.8, fix TreeItemId mapping, remove cruft
- [977] branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h: Add missing DoPrepareDC method, remove comment cruft
- [813] trunk/wxruby2/swig/classes: Added ScrollBar class