nobody at rubyforge.org
2007-Apr-28 23:31 UTC
[Wxruby-development] [977] branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h: Add missing DoPrepareDC method, remove comment cruft
<!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>[977]
branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h: Add
missing DoPrepareDC method, remove comment cruft</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>977</dd>
<dt>Author</dt> <dd>brokentoy</dd>
<dt>Date</dt> <dd>2007-04-28 19:31:48 -0400 (Sat, 28 Apr
2007)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add missing DoPrepareDC method, remove comment cruft</pre>
<h3>Modified Paths</h3>
<ul>
<li><a
href="#brancheswxruby2wxwidgets_282swigclassesincludewxScrolledWindowh">branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a
id="brancheswxruby2wxwidgets_282swigclassesincludewxScrolledWindowh"></a>
<div class="modfile"><h4>Modified:
branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h (976
=> 977)</h4>
<pre class="diff"><span>
<span class="info">---
branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h        2007-04-28
23:12:55 UTC (rev 976)
+++
branches/wxruby2/wxwidgets_282/swig/classes/include/wxScrolledWindow.h        2007-04-28
23:31:48 UTC (rev 977)
</span><span class="lines">@@ -8,160 +8,28 @@
</span><span class="cx"> class wxScrolledWindow : public
wxPanel
</span><span class="cx"> {
</span><span class="cx"> public:
</span><del>-        /**
-         *
\brief Default constructor.
-        */
-
</del><span class="cx"> wxScrolledWindow() ;
</span><del>-        /**
-         *
\brief Constructor.
-         *
\param wxWindow*
-         *
\param wxWindowID
-         *
\param const wxPoint&
-         *
\param const wxSize&
-         *
\param long
-         *
\param const wxString&
-        */
-
</del><span class="cx"> wxScrolledWindow(wxWindow*
parent , wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const
wxSize& size = wxDefaultSize, long style = wxHSCROLL, const wxString&
name = wxT("scrolledWindow")) ;
</span><del>-        /**
-         *
\brief Destructor.
-        */
-
</del><span class="cx"> virtual ~wxScrolledWindow() ;
</span><del>-        /**
-         *
\brief
-         *
\param int
-         *
\param int
-         *
\param int *
-         *
\param int *
-        */
-
</del><span class="cx"> void CalcScrolledPosition(int x
, int y , int * xx , int * yy ) const;
</span><del>-        /**
-         *
\brief
-         *
\param int
-         *
\param int
-         *
\param int *
-         *
\param int *
-        */
-
</del><span class="cx"> void CalcUnscrolledPosition(int
x , int y , int * xx , int * yy ) const;
</span><del>-        /**
-         *
\brief Creates the window for two-step construction. Derived classes
-should call or replace this function. See
-for details.
-         *
\param wxWindow*
-         *
\param wxWindowID
-         *
\param const wxPoint&
-         *
\param const wxSize&
-         *
\param long
-         *
\param const wxString&
-        */
- bool Create(wxWindow *parent,
</del><ins>+ bool Create(wxWindow *parent,
</ins><span class="cx"> wxWindowID winid,
</span><span class="cx"> const
wxPoint& pos = wxDefaultPosition,
</span><span class="cx"> const wxSize&
size = wxDefaultSize,
</span><span class="cx"> long style =
wxScrolledWindowStyle,
</span><span class="cx"> const
wxString& name = wxPanelNameStr);
</span><del>-
-        /**
-         *
\brief Enable or disable physical scrolling in the given direction. Physical
-scrolling is the physical transfer of bits up or down the
-screen when a scroll event occurs. If the application scrolls by a
-variable amount (e.g. if there are different font sizes) then physical
-scrolling will not work, and you should switch it off. Note that you
-will have to reposition child windows yourself, if physical scrolling
-is disabled.
-         *
\param const bool
-         *
\param const bool
-        */
-
</del><ins>+ void DoPrepareDC(wxDC &dc);
</ins><span class="cx"> void EnableScrolling(const bool
xScrolling , const bool yScrolling ) ;
</span><del>-        /**
-         *
\brief
-         *
\param int*
-         *
\param int*
-        */
-
</del><span class="cx"> void GetScrollPixelsPerUnit(int*
xUnit , int* yUnit ) const;
</span><del>-        /**
-         *
\brief
-         *
\param int*
-         *
\param int*
-        */
-
</del><span class="cx"> void GetViewStart(int* x , int*
y ) const;
</span><del>-        /**
-         *
\brief
-         *
\param int*
-         *
\param int*
-        */
-
</del><span class="cx"> void GetVirtualSize(int* x ,
int* y ) const;
</span><del>-        /**
-         *
\brief Motif only: true if the window has a backing bitmap.
-        */
-
</del><span class="cx"> bool IsRetained() const;
</span><del>-        /**
-         *
\brief Call this function to prepare the device context for drawing a scrolled
image. It
-sets the device origin according to the current scroll position.
-
-PrepareDC is called automatically within the default wxScrolledWindow::OnPaint
event
-handler, so your override
-will be passed a ''pre-scrolled'' device context. However, if
you wish to draw from
-outside of OnDraw (via OnPaint), or you wish to implement OnPaint yourself, you
must
-call this function yourself. For example:
-         *
\param wxDC&
-        */
-
</del><span class="cx"> void PrepareDC(wxDC& dc ) ;
</span><del>-        /**
-         *
\brief Called by the default paint event handler to allow the application to
define
-painting behaviour without having to worry about calling
- .
-
-Instead of overriding this function you may also just process the paint event
-in the derived class as usual, but then you will have to call PrepareDC()
-yourself.
-         *
\param wxDC&
-        */
-
</del><span class="cx"> virtual void OnDraw(wxDC&
dc ) ;
</span><del>-        /**
-         *
\brief Scrolls a window so the view start is at the given point.
-         *
\param int
-         *
\param int
-        */
-
</del><span class="cx"> void Scroll(int x , int y ) ;
</span><del>-        /**
-         *
\brief Sets up vertical and/or horizontal scrollbars.
-         *
\param int
-         *
\param int
-         *
\param int
-         *
\param int
-         *
\param int
-         *
\param int
-         *
\param bool
-        */
-
</del><span class="cx"> void SetScrollbars(int
pixelsPerUnitX , int pixelsPerUnitY , int noUnitsX , int noUnitsY , int xPos
= 0, int yPos = 0, bool noRefresh = false) ;
</span><del>-        /**
-         *
\brief Set the horizontal and vertical scrolling increment only. See the
pixelsPerUnit
-parameter in SetScrollbars.
-         *
\param int
-         *
\param int
-        */
-
</del><span class="cx"> void SetScrollRate(int xstep ,
int ystep ) ;
</span><del>-        /**
-         *
\brief Call this function to tell wxScrolledWindow to perform the actual
scrolling on
-a different window (and not on itself).
-         *
\param wxWindow*
-        */
-
</del><span class="cx"> void SetTargetWindow(wxWindow*
window ) ;
</span><span class="cx"> };
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>
Maybe Matching Threads
- [883] branches/wxruby2/wxwidgets_282/swig: API changes for move to WxWidgets 2.8
- [920] branches/wxruby2/wxwidgets_282/swig/classes/TreeCtrl.i: Fix compile error: TreeCtrl no longer inherits from wxScrolledWindow on GTK/Mac
- [950] branches/wxruby2/wxwidgets_282: Changes in GenericDirCtrl API 2.6->2.8, fix TreeItemId mapping, remove cruft
- [949] branches/wxruby2/wxwidgets_282: Changes in Gauge API 2.6->2.8, remove comment cruft in header
- [724] trunk/wxruby2: Initial commit of HtmlWindow functionality
