nobody at rubyforge.org
2006-Dec-31 03:21 UTC
[Wxruby-development] [813] trunk/wxruby2/swig/classes: Added ScrollBar class
<!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>[813] trunk/wxruby2/swig/classes: Added ScrollBar class</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>813</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-12-30 22:21:32 -0500 (Sat, 30 Dec 2006)</dd> </dl> <h3>Log Message</h3> <pre>Added ScrollBar class</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2swigclassesincludewxScrollBarh">trunk/wxruby2/swig/classes/include/wxScrollBar.h</a></li> </ul> <h3>Added Paths</h3> <ul> <li><a href="#trunkwxruby2swigclassesScrollBari">trunk/wxruby2/swig/classes/ScrollBar.i</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="trunkwxruby2swigclassesScrollBari"></a> <div class="addfile"><h4>Added: trunk/wxruby2/swig/classes/ScrollBar.i (0 => 813)</h4> <pre class="diff"><span> <span class="info">--- trunk/wxruby2/swig/classes/ScrollBar.i         (rev 0) +++ trunk/wxruby2/swig/classes/ScrollBar.i        2006-12-31 03:21:32 UTC (rev 813) </span><span class="lines">@@ -0,0 +1,16 @@ </span><ins>+# Copyright 2004-2006 by Kevin Smith +# released under the MIT-style wxruby2 license + +%include "../common.i" + +%module(directors="1") wxScrollBar + +#define wxSB_HORIZONTAL wxHORIZONTAL +#define wxSB_VERTICAL wxVERTICAL + +%import "include/wxObject.h" +%import "include/wxEvtHandler.h" +%import "include/wxWindow.h" +%import "include/wxControl.h" + +%include "include/wxScrollBar.h" </ins></span></pre></div> <a id="trunkwxruby2swigclassesincludewxScrollBarh"></a> <div class="modfile"><h4>Modified: trunk/wxruby2/swig/classes/include/wxScrollBar.h (812 => 813)</h4> <pre class="diff"><span> <span class="info">--- trunk/wxruby2/swig/classes/include/wxScrollBar.h        2006-12-30 16:50:02 UTC (rev 812) +++ trunk/wxruby2/swig/classes/include/wxScrollBar.h        2006-12-31 03:21:32 UTC (rev 813) </span><span class="lines">@@ -1,106 +1,32 @@ </span><del>-// wxScrollBar.h -// This file was automatically generated -// by extractxml.rb, part of the wxRuby project -// Do not make changes directly to this file! </del><ins>+// Copyright 2004-2006 by Kevin Smith +// released under the MIT-style wxruby2 license </ins><span class="cx"> </span><span class="cx"> #if !defined(_wxScrollBar_h_) </span><span class="cx"> #define _wxScrollBar_h_ </span><ins>+ </ins><span class="cx"> class wxScrollBar : public wxControl </span><span class="cx"> { </span><span class="cx"> public: </span><del>-        /** -         * \brief Default constructor. -        */ - </del><span class="cx"> wxScrollBar() ; </span><del>-        /** -         * \brief -         * \param wxWindow* -         * \param wxWindowID -         * \param const wxPoint& -         * \param const wxSize& -         * \param long -         * \param const wxValidator& -         * \param const wxString& -        */ - </del><span class="cx"> wxScrollBar(wxWindow* parent , wxWindowID id , const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("scrollBar")) ; </span><del>-        /** -         * \brief Destructor, destroying the scrollbar. -        */ - </del><span class="cx"> virtual ~wxScrollBar() ; </span><del>-        /** -         * \brief Scrollbar creation function called by the scrollbar constructor. -See for details. -         * \param wxWindow* -         * \param wxWindowID -         * \param const wxPoint& -         * \param const wxSize& -         * \param long -         * \param const wxValidator& -         * \param const wxString& -        */ - </del><span class="cx"> bool Create(wxWindow* parent , wxWindowID id , const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("scrollBar")) ; </span><del>-        /** -         * \brief Returns the length of the scrollbar. -        */ - </del><span class="cx"> int GetRange() const; </span><del>-        /** -         * \brief Returns the page size of the scrollbar. This is the number of scroll units -that will be scrolled when the user pages up or down. Often it is the -same as the thumb size. -        */ - </del><span class="cx"> int GetPageSize() const; </span><del>-        /** -         * \brief Returns the current position of the scrollbar thumb. -        */ - </del><span class="cx"> int GetThumbPosition() const; </span><del>-        /** -         * \brief Returns the thumb or `view'' size. -        */ </del><span class="cx"> </span><del>- int GetThumbLength() const; -        /** -         * \brief Sets the object length for the scrollbar. This is the total object size (virtual size). You must -call calling SetObjectLength. -         * \param int -        */ </del><ins>+ // These functions do not appear in the main wx headers and appear to be + // for backwards compatability in the C++ API only </ins><span class="cx"> </span><del>- void SetObjectLength(int objectLength ) ; -        /** -         * \brief Sets the page size for the scrollbar. This is the number of scroll units which are scrolled when the -user pages down (clicks on the scrollbar outside the thumbtrack area). -         * \param int -        */ - - void SetPageSize(int pageSize ) ; -        /** -         * \brief Sets the position of the scrollbar. -         * \param int -        */ - </del><ins>+ // int GetThumbLength() const; + // void SetObjectLength(int objectLength ) ; + // void SetPageSize(int pageSize ) ; + </ins><span class="cx"> void SetThumbPosition(int viewStart ) ; </span><del>-        /** -         * \brief -         * \param int -         * \param int -         * \param int -         * \param int -         * \param const bool -        */ </del><ins>+ virtual void SetScrollbar(int position , int thumbSize , int range , int pageSize , bool refresh = true) ; </ins><span class="cx"> </span><del>- virtual void SetScrollbar(int position , int thumbSize , int range , int pageSize , const bool refresh = true) ; -        /** -         * \brief Sets the view length for the scrollbar. -         * \param int -        */ - - void SetViewLength(int viewLength ) ; </del><ins>+ // Also not in main header - C++ backwards compatability only + // void SetViewLength(int viewLength ); </ins><span class="cx"> }; </span><span class="cx"> </span><span class="cx"> </span></span></pre> </div> </div> </body> </html>
Apparently Analagous Threads
- [791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
- [814] trunk/wxruby2/swig/classes: Added ScrollEvent class plus event processing and handler methods
- [1056] trunk/wxruby2/swig/classes/include/wxToolBar.h: Add missing param to InsertTool long version; uncomment some methods now
- [724] trunk/wxruby2: Initial commit of HtmlWindow functionality
- [977] branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h: Add missing DoPrepareDC method, remove comment cruft