nobody at rubyforge.org
2006-Nov-23 00:26 UTC
[Wxruby-development] [749] trunk/wxruby2: Bring the documentation and actual method support into line for
<!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>[749] trunk/wxruby2: Bring the documentation and actual method
support into line for</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>749</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2006-11-22 19:26:12 -0500 (Wed, 22 Nov
2006)</dd>
</dl>
<h3>Log Message</h3>
<pre>Bring the documentation and actual method support into line for
partially deprecated Sizer#remove method</pre>
<h3>Modified Paths</h3>
<ul>
<li><a
href="#trunkwxruby2doctextilesizertxtl">trunk/wxruby2/doc/textile/sizer.txtl</a></li>
<li><a
href="#trunkwxruby2swigclassesincludewxSizerh">trunk/wxruby2/swig/classes/include/wxSizer.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwxruby2doctextilesizertxtl"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/doc/textile/sizer.txtl (748 => 749)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/doc/textile/sizer.txtl        2006-11-23
00:13:04 UTC (rev 748)
+++
trunk/wxruby2/doc/textile/sizer.txtl        2006-11-23
00:26:12 UTC (rev 749)
</span><span class="lines">@@ -81,11 +81,11 @@
</span><span class="cx">
</span><span class="cx"> h3(#Sizer_wxsizer). Sizer.new
</span><span class="cx">
</span><del>- *destructor*()
</del><ins>+This method is abstract in this class - Wx::Sizer is
never instantiated
+directly. See the specific subclass you are using (eg
+"BoxSizer":boxsizer.html ) for the parameters require by the
+constructor.
</ins><span class="cx">
</span><del>-The destructor.
-
-
</del><span class="cx"> h3(#Sizer_add). Sizer#add
</span><span class="cx">
</span><span class="cx">
"SizerItem":sizeritem.html *add*(%(arg-type)Window% window,
%(arg-type)SizerFlags% flags)
</span><span class="lines">@@ -377,29 +377,23 @@
</span><span class="cx"> Here, the sizer will do the
actual calculation of its children''s positions
</span><span class="cx"> and sizes.
</span><span class="cx">
</span><del>-
</del><span class="cx"> h3(#Sizer_remove). Sizer#remove
</span><span class="cx">
</span><del>- Boolean *remove*(%(arg-type)Window% window)
-
</del><span class="cx"> Boolean
*remove*(%(arg-type)Sizer% sizer)
</span><span class="cx">
</span><span class="cx"> Boolean
*remove*(%(arg-type)size_t% index)
</span><span class="cx">
</span><del>-Removes a child from the sizer and destroys it.
_sizer_ is the Sizer to be removed,
-_index_ is the position of the child in the sizer, typically 0 for the first
item.
-This method does not cause any layout or resizing to take place, call
-"Sizer#layout":sizer.html#Sizer_layout to update the layout "on
screen" after removing a
-child from the sizer.
</del><ins>+Removes a child from the sizer and destroys it. _sizer_
is the Sizer to
+be removed, _index_ is the position of the child in the sizer, typically
+0 for the first item. This method does not cause any layout or resizing
+to take place, call "Sizer#layout":sizer.html#Sizer_layout to update
the
+layout "on screen" after removing a child from the sizer.
</ins><span class="cx">
</span><del>-*NB:* The method taking a Window* parameter is
deprecated. For historical reasons
-it does not destroy the window as would usually be expected from Remove. You
should use
-"Sizer#detach":sizer.html#Sizer_detach in new code instead. There is
currently no Sizer
-method that will both detach and destroy a Window item.
</del><ins>+If you have a variable holding a Window you want to
remove from a sizer,
+use "Sizer#detach":sizer.html#Sizer_detach instead.
</ins><span class="cx">
</span><span class="cx"> Returns true if the child item
was found and removed, false otherwise.
</span><span class="cx">
</span><del>-
</del><span class="cx"> h3(#Sizer_setdimension).
Sizer#set_dimension
</span><span class="cx">
</span><span class="cx">
*set_dimension*(%(arg-type)Integer% x, %(arg-type)Integer% y,
%(arg-type)Integer% width,
</span></span></pre></div>
<a id="trunkwxruby2swigclassesincludewxSizerh"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/swig/classes/include/wxSizer.h (748 => 749)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/swig/classes/include/wxSizer.h        2006-11-23
00:13:04 UTC (rev 748)
+++
trunk/wxruby2/swig/classes/include/wxSizer.h        2006-11-23
00:26:12 UTC (rev 749)
</span><span class="lines">@@ -89,8 +89,8 @@
</span><span class="cx"> // Deprecated in 2.6 since
historically it does not delete the window,
</span><span class="cx"> // use Detach instead.
</span><span class="cx"> //virtual bool Remove(
wxWindow *window );
</span><del>- //virtual bool Remove( wxSizer *sizer );
- //virtual bool Remove( int index );
</del><ins>+ virtual bool Remove( wxSizer *sizer );
+ virtual bool Remove( int index );
</ins><span class="cx">
</span><span class="cx"> virtual bool Detach( wxWindow
*window );
</span><span class="cx"> virtual bool Detach( wxSizer
*sizer );
</span></span></pre>
</div>
</div>
</body>
</html>
Maybe Matching Threads
- [1015] trunk/wxruby2/doc/textile/sizer.txtl: Clarify that size_t should be a ruby Integer
- [1108] trunk/wxruby2/swig: Revised mem mgmt for Sizers to address more GC crashes in Sizers demo
- [1033] trunk/wxruby2/swig: GC fixes for nested sizers; fix crashes in html.rb demo
- [854] trunk/wxruby2/swig/classes: Add support for GridBagSizer
- [828] trunk/wxruby2/swig/classes/Sizer.i: Ensure that nested Sizers are disowned and not GC''d (fixes segfault at exit)
