nobody at rubyforge.org
2007-Jan-08 20:53 UTC
[Wxruby-development] [843] trunk/wxruby2: Moved stock colours so they are available from library load time
<!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>[843] trunk/wxruby2: Moved stock colours so they are available from
library load time</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>843</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-01-08 15:53:52 -0500 (Mon, 08 Jan
2007)</dd>
</dl>
<h3>Log Message</h3>
<pre>Moved stock colours so they are available from library load
time</pre>
<h3>Modified Paths</h3>
<ul>
<li><a
href="#trunkwxruby2libwxclassescolourrb">trunk/wxruby2/lib/wx/classes/colour.rb</a></li>
<li><a
href="#trunkwxruby2swigRubyStockObjectsi">trunk/wxruby2/swig/RubyStockObjects.i</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwxruby2libwxclassescolourrb"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/lib/wx/classes/colour.rb (842 => 843)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/lib/wx/classes/colour.rb        2007-01-08
20:34:42 UTC (rev 842)
+++
trunk/wxruby2/lib/wx/classes/colour.rb        2007-01-08
20:53:52 UTC (rev 843)
</span><span class="lines">@@ -1,4 +1,18 @@
</span><span class="cx"> class Wx::Colour
</span><ins>+ # Standard colours, corresponding to WxWidgets stock
colours.
+ Wx::WHITE = new(''White'')
+ Wx::BLACK = new(''Black'')
+
+ Wx::RED = new(''Red'')
+ Wx::GREEN = new(''Green'')
+ Wx::BLUE = new(''Blue'')
+
+ Wx::YELLOW = new(''Yellow'')
+ Wx::CYAN = new(''Cyan'')
+ Wx::MAGENTA = new(''Magenta'')
+
+ Wx::LIGHT_GREY = new(''Light Grey'')
+
</ins><span class="cx"> # Redefine the initialize method
so it raises an exception if an
</span><span class="cx"> # invalid colour value is
given. This might be an unknown colour
</span><span class="cx"> # string (eg ''dark
blue'') or out-of-bounds integer values (<0 or >255)
</span></span></pre></div>
<a id="trunkwxruby2swigRubyStockObjectsi"></a>
<div class="modfile"><h4>Modified:
trunk/wxruby2/swig/RubyStockObjects.i (842 => 843)</h4>
<pre class="diff"><span>
<span class="info">---
trunk/wxruby2/swig/RubyStockObjects.i        2007-01-08
20:34:42 UTC (rev 842)
+++
trunk/wxruby2/swig/RubyStockObjects.i        2007-01-08
20:53:52 UTC (rev 843)
</span><span class="lines">@@ -43,14 +43,6 @@
</span><span class="cx"> %constant wxBrush* const
wxCYAN_BRUSH;
</span><span class="cx"> %constant wxBrush* const
wxRED_BRUSH;
</span><span class="cx">
</span><del>-%constant wxColour* const wxBLACK;
-%constant wxColour* const wxWHITE;
-%constant wxColour* const wxRED;
-%constant wxColour* const wxBLUE;
-%constant wxColour* const wxGREEN;
-%constant wxColour* const wxCYAN;
-%constant wxColour* const wxLIGHT_GREY;
-
</del><span class="cx"> %constant wxCursor const*
wxSTANDARD_CURSOR;
</span><span class="cx"> %constant wxCursor const*
wxHOURGLASS_CURSOR;
</span><del>-%constant wxCursor const* wxCROSS_CURSOR;
</del><ins>+%constant wxCursor const* wxCROSS_CURSOR;
</ins></span></pre>
</div>
</div>
</body>
</html>
Maybe Matching Threads
- [827] trunk/wxruby2/swig: Moved NULL objects into constants so they can be used for default args
- [929] branches/wxruby2/wxwidgets_282/swig/classes: Fix virtual methods that shouldn''t be (Bug 9682); Add missing methods and
- [883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
- [922] branches/wxruby2/wxwidgets_282: Changes, additions and deprecations 2.6 -> 2.8 Wx API
- [849] trunk/wxruby2/lib/wx/classes/colour.rb: Stock colours weren''t initializing correctly
