author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 20:58:58 +0300 | |
branch | RCL_3 |
changeset 88 | 3321d3e205b6 |
parent 83 | 5456b4e8b3a8 |
permissions | -rw-r--r-- |
83 | 1 |
/* |
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
*/ |
|
15 |
||
16 |
// System includes |
|
17 |
#include <e32base.h> |
|
18 |
#include <e32const.h> |
|
19 |
#include <coecntrl.h> |
|
20 |
#include <coemain.h> |
|
21 |
#include <aknphysics.h> |
|
22 |
||
23 |
// User includes |
|
24 |
#include "xncontroladapter.h" |
|
25 |
#include "xnuiengine.h" |
|
26 |
#include "xnnode.h" |
|
27 |
#include "xnnodepluginif.h" |
|
28 |
#include "xnproperty.h" |
|
29 |
||
30 |
#include "xnscrollablecontroladapter.h" |
|
31 |
||
32 |
// Constants |
|
33 |
const TInt KOffset( 25 ); |
|
34 |
||
35 |
_LIT8(KViewportHeight, "viewport-height"); |
|
36 |
_LIT8(KViewportWidth, "viewport-width"); |
|
37 |
_LIT8(KViewportTop, "viewport-top"); |
|
38 |
_LIT8(KViewportLeft, "viewport-left"); |
|
39 |
_LIT8(KScrollDirection, "scroll-direction"); |
|
40 |
_LIT8(KHorizontal, "horizontal"); |
|
41 |
||
42 |
const TInt EVertical( 0 ); |
|
43 |
const TInt EHorizontal( 1 ); |
|
44 |
||
45 |
// ============================ MEMBER FUNCTIONS =============================== |
|
46 |
||
47 |
// ----------------------------------------------------------------------------- |
|
48 |
// CXnScrollableControlAdapter::NewL |
|
49 |
// Two-phased constructor. Can leave. |
|
50 |
// ----------------------------------------------------------------------------- |
|
51 |
// |
|
52 |
CXnScrollableControlAdapter* CXnScrollableControlAdapter::NewL( |
|
53 |
CXnNodePluginIf& aNode ) |
|
54 |
{ |
|
55 |
CXnScrollableControlAdapter* self = |
|
56 |
new ( ELeave ) CXnScrollableControlAdapter( aNode ); |
|
57 |
||
58 |
CleanupStack::PushL( self ); |
|
59 |
self->ConstructL(); |
|
60 |
CleanupStack::Pop( self ); |
|
61 |
return self; |
|
62 |
} |
|
63 |
||
64 |
// ----------------------------------------------------------------------------- |
|
65 |
// CXnScrollableControlAdapter::~CXnScrollableControlAdapter |
|
66 |
// Destructor. |
|
67 |
// ----------------------------------------------------------------------------- |
|
68 |
// |
|
69 |
CXnScrollableControlAdapter::~CXnScrollableControlAdapter() |
|
70 |
{ |
|
71 |
delete iPhysics; |
|
72 |
} |
|
73 |
||
74 |
// ----------------------------------------------------------------------------- |
|
75 |
// CXnScrollableControlAdapter::CXnScrollableControlAdapter |
|
76 |
// C++ default constructor. Must not leave. |
|
77 |
// ----------------------------------------------------------------------------- |
|
78 |
// |
|
79 |
CXnScrollableControlAdapter::CXnScrollableControlAdapter( CXnNodePluginIf& aNode ) |
|
80 |
: iNode( aNode ), iStartPosition( 0, 0), iPreviousPosition( 0, 0 ), |
|
81 |
iCurrentPosition( 0, 0 ), iLayoutChanged( EFalse ) |
|
82 |
{ |
|
83 |
} |
|
84 |
||
85 |
// ----------------------------------------------------------------------------- |
|
86 |
// CXnScrollableControlAdapter::ConstructL |
|
87 |
// 2nd phase constructor. Can leave. |
|
88 |
// ----------------------------------------------------------------------------- |
|
89 |
// |
|
90 |
void CXnScrollableControlAdapter::ConstructL() |
|
91 |
{ |
|
92 |
CXnControlAdapter::ConstructL( iNode ); |
|
93 |
SetControlContext( this ); |
|
94 |
SetHitTest( this ); |
|
95 |
iUiEngine = iNode.Node().UiEngine(); |
|
96 |
||
97 |
iNode.Node().SetScrollableControl( this ); |
|
98 |
||
99 |
// Default |
|
100 |
iDirection = EVertical; |
|
101 |
||
102 |
CXnProperty* prop( iNode.GetPropertyL( KScrollDirection ) ); |
|
103 |
||
104 |
if ( prop && prop->StringValue() == KHorizontal ) |
|
105 |
{ |
|
106 |
iDirection = EHorizontal; |
|
107 |
} |
|
108 |
} |
|
109 |
||
110 |
// ----------------------------------------------------------------------------- |
|
111 |
// CXnScrollableControlAdapter::HandlePointerEventL |
|
112 |
// |
|
113 |
// ----------------------------------------------------------------------------- |
|
114 |
// |
|
115 |
void CXnScrollableControlAdapter::HandlePointerEventL( |
|
116 |
const TPointerEvent& aPointerEvent ) |
|
117 |
{ |
|
118 |
if( !iPhysics ) |
|
119 |
{ |
|
120 |
return; |
|
121 |
} |
|
122 |
||
123 |
TPoint stylusPos( aPointerEvent.iPosition ); |
|
124 |
||
125 |
switch( aPointerEvent.iType ) |
|
126 |
{ |
|
127 |
case TPointerEvent::EButton1Down: |
|
128 |
{ |
|
129 |
iPhysics->StopPhysics(); |
|
130 |
iPhysics->ResetFriction(); |
|
131 |
iStartPosition = stylusPos; |
|
132 |
iStartTime.HomeTime(); |
|
133 |
iPreviousPosition = iCurrentPosition; |
|
134 |
iStylusPosition = stylusPos; |
|
135 |
} |
|
136 |
break; |
|
137 |
case TPointerEvent::EButton1Up: |
|
138 |
{ |
|
139 |
TInt distanceY( iStartPosition.iY - stylusPos.iY ); |
|
140 |
TInt distanceX( iStartPosition.iX - stylusPos.iX ); |
|
141 |
||
142 |
TPoint drag( distanceX, distanceY ); |
|
143 |
iPhysics->StartPhysics( drag, iStartTime ); |
|
144 |
} |
|
145 |
break; |
|
146 |
case TPointerEvent::EDrag: |
|
147 |
{ |
|
148 |
TPoint distanceFromStart( iStartPosition - stylusPos ); |
|
149 |
||
150 |
if( ( Abs( distanceFromStart.iY ) > KOffset && iDirection == EVertical ) || |
|
151 |
( Abs( distanceFromStart.iX ) > KOffset && iDirection == EHorizontal ) ) |
|
152 |
{ |
|
153 |
CXnNode* focused( iUiEngine->FocusedNode() ); |
|
154 |
||
155 |
if ( focused ) |
|
156 |
{ |
|
157 |
// Remove pressed down |
|
158 |
focused->UnsetStateL( |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
159 |
XnPropertyNames::style::common::KFocus ); |
83 | 160 |
} |
161 |
} |
|
162 |
||
163 |
TInt deltaY( iStylusPosition.iY - stylusPos.iY ); |
|
164 |
TInt deltaX( iStylusPosition.iX - stylusPos.iX ); |
|
165 |
||
166 |
iStylusPosition = stylusPos; |
|
167 |
||
168 |
TPoint deltaPoint( deltaX, deltaY ); |
|
169 |
||
170 |
iPhysics->RegisterPanningPosition( deltaPoint ); |
|
171 |
} |
|
172 |
break; |
|
173 |
default: |
|
174 |
break; |
|
175 |
} |
|
176 |
||
177 |
CXnControlAdapter::HandlePointerEventL( aPointerEvent ); |
|
178 |
} |
|
179 |
||
180 |
// ----------------------------------------------------------------------------- |
|
181 |
// CXnScrollableControlAdapter::Draw |
|
182 |
// |
|
183 |
// ----------------------------------------------------------------------------- |
|
184 |
// |
|
185 |
void CXnScrollableControlAdapter::Draw( const TRect& aRect ) const |
|
186 |
{ |
|
187 |
CXnControlAdapter::Draw( aRect ); |
|
188 |
} |
|
189 |
||
190 |
// ----------------------------------------------------------------------------- |
|
191 |
// CXnScrollableControlAdapter::SizeChanged |
|
192 |
// |
|
193 |
// ----------------------------------------------------------------------------- |
|
194 |
void CXnScrollableControlAdapter::SizeChanged() |
|
195 |
{ |
|
196 |
TRAP_IGNORE( |
|
197 |
ReadPropertiesL(); |
|
198 |
InitPhysicEngineL(); ); |
|
199 |
||
200 |
CXnControlAdapter::SizeChanged(); |
|
201 |
} |
|
202 |
||
203 |
// ----------------------------------------------------------------------------- |
|
204 |
// CXnScrollableControlAdapter::MakeVisible |
|
205 |
// |
|
206 |
// ----------------------------------------------------------------------------- |
|
207 |
// |
|
208 |
void CXnScrollableControlAdapter::MakeVisible( TBool aVisible ) |
|
209 |
{ |
|
210 |
TBool visible( IsVisible() ? ETrue : EFalse ); |
|
211 |
||
212 |
if ( visible == aVisible ) |
|
213 |
{ |
|
214 |
return; |
|
215 |
} |
|
216 |
||
217 |
if( aVisible ) |
|
218 |
{ |
|
219 |
TRAP_IGNORE( InitPhysicEngineL() ); |
|
220 |
} |
|
221 |
||
222 |
CCoeControl::MakeVisible( aVisible ); |
|
223 |
} |
|
224 |
||
225 |
// ----------------------------------------------------------------------------- |
|
226 |
// CXnScrollableControlAdapter::HitRegionContains |
|
227 |
// |
|
228 |
// ----------------------------------------------------------------------------- |
|
229 |
// |
|
230 |
TBool CXnScrollableControlAdapter::HitRegionContains( const TPoint& aPoint, |
|
231 |
const CCoeControl& /*aControl*/) const |
|
232 |
{ |
|
233 |
return iViewPort.Contains( aPoint ); |
|
234 |
} |
|
235 |
||
236 |
// ----------------------------------------------------------------------------- |
|
237 |
// CXnScrollableControlAdapter::HandleScreenDeviceChangedL |
|
238 |
// |
|
239 |
// ----------------------------------------------------------------------------- |
|
240 |
void CXnScrollableControlAdapter::HandleScreenDeviceChangedL() |
|
241 |
{ |
|
242 |
// The new layout has not been calculated yet. |
|
243 |
// Therefore we need to read new propertues and initialise engine when LayoutChagedL() is called next time. |
|
244 |
iLayoutChanged = ETrue; |
|
245 |
CXnControlAdapter::HandleScreenDeviceChangedL(); |
|
246 |
} |
|
247 |
||
248 |
// ----------------------------------------------------------------------------- |
|
249 |
// CXnScrollableControlAdapter::DeltaPosition |
|
250 |
// |
|
251 |
// ----------------------------------------------------------------------------- |
|
252 |
const TPoint CXnScrollableControlAdapter::DeltaPosition() const |
|
253 |
{ |
|
254 |
return iStartViewPosition - iCurrentPosition; |
|
255 |
} |
|
256 |
||
257 |
// ----------------------------------------------------------------------------- |
|
258 |
// CXnScrollableControlAdapter::ResetState |
|
259 |
// |
|
260 |
// ----------------------------------------------------------------------------- |
|
261 |
void CXnScrollableControlAdapter::ResetState() |
|
262 |
{ |
|
263 |
iStartViewPosition = TPoint( 0, 0 ); |
|
264 |
iCurrentPosition = TPoint( 0, 0 ); |
|
265 |
iPreviousPosition = TPoint( 0, 0 ); |
|
266 |
} |
|
267 |
||
268 |
// ----------------------------------------------------------------------------- |
|
269 |
// CXnScrollableControlAdapter::ShowItem |
|
270 |
// |
|
271 |
// ----------------------------------------------------------------------------- |
|
272 |
void CXnScrollableControlAdapter::ShowItem( CXnNode& aNode ) |
|
273 |
{ |
|
274 |
TRect rect( aNode.MarginRect() ); |
|
275 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
276 |
if ( !iViewPort.Contains( rect.iTl ) || !iViewPort.Contains( rect.iBr ) ) |
83 | 277 |
{ |
278 |
if ( iDirection == EVertical ) |
|
279 |
{ |
|
280 |
TInt delta( 0 ); |
|
281 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
282 |
if ( rect.iTl.iY < iViewPort.iTl.iY ) |
83 | 283 |
{ |
284 |
delta = rect.iTl.iY - iViewPort.iTl.iY; |
|
285 |
} |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
286 |
else if ( rect.iBr.iY > iViewPort.iBr.iY ) |
83 | 287 |
{ |
288 |
delta = rect.iBr.iY - iViewPort.iBr.iY; |
|
289 |
} |
|
290 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
291 |
if ( delta != 0 ) |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
292 |
{ |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
293 |
TPoint newPosition( iPreviousPosition + TPoint( 0, delta ) ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
294 |
|
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
295 |
ViewPositionChanged( newPosition, ETrue, 0 ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
296 |
} |
83 | 297 |
} |
298 |
else |
|
299 |
{ |
|
300 |
TInt delta( 0 ); |
|
301 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
302 |
if ( rect.iTl.iX < iViewPort.iTl.iX ) |
83 | 303 |
{ |
304 |
delta = rect.iTl.iX - iViewPort.iTl.iX; |
|
305 |
} |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
306 |
else if ( rect.iBr.iX > iViewPort.iBr.iX ) |
83 | 307 |
{ |
308 |
delta = rect.iBr.iX - iViewPort.iBr.iX; |
|
309 |
} |
|
310 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
311 |
if ( delta != 0 ) |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
312 |
{ |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
313 |
TPoint newPosition( iPreviousPosition + TPoint( delta, 0 ) ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
314 |
|
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
315 |
ViewPositionChanged( newPosition, ETrue, 0 ); |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
316 |
} |
83 | 317 |
} |
318 |
} |
|
319 |
} |
|
320 |
||
321 |
// ----------------------------------------------------------------------------- |
|
322 |
// CXnScrollableControlAdapter::LayoutChangedL |
|
323 |
// |
|
324 |
// ----------------------------------------------------------------------------- |
|
325 |
void CXnScrollableControlAdapter::LayoutChangedL() |
|
326 |
{ |
|
327 |
if( iLayoutChanged ) |
|
328 |
{ |
|
329 |
iLayoutChanged = EFalse; |
|
330 |
ReadPropertiesL(); |
|
331 |
InitPhysicEngineL(); |
|
332 |
} |
|
333 |
} |
|
334 |
||
335 |
// --------------------------------------------------------------------------- |
|
336 |
// CXnScrollableControlAdapter::ViewPositionChanged |
|
337 |
// --------------------------------------------------------------------------- |
|
338 |
// |
|
339 |
void CXnScrollableControlAdapter::ViewPositionChanged( |
|
340 |
const TPoint& aNewPosition, TBool aDrawNow, TUint /*aFlags*/ ) |
|
341 |
{ |
|
342 |
TPoint diff; |
|
343 |
||
344 |
if ( iDirection == EVertical ) |
|
345 |
{ |
|
346 |
diff = TPoint( 0, aNewPosition.iY - iPreviousPosition.iY ); |
|
347 |
} |
|
348 |
else |
|
349 |
{ |
|
350 |
diff = TPoint( aNewPosition.iX - iPreviousPosition.iX, 0 ); |
|
351 |
} |
|
352 |
||
353 |
iPreviousPosition = aNewPosition; |
|
354 |
iCurrentPosition += diff; |
|
355 |
TPoint tmpPos = iNode.Control()->Position(); |
|
356 |
tmpPos -= diff; |
|
357 |
iNode.Control()->SetPosition( tmpPos ); |
|
358 |
if( aDrawNow ) |
|
359 |
{ |
|
360 |
DrawNow( iViewPort ); |
|
361 |
} |
|
362 |
} |
|
363 |
||
364 |
// --------------------------------------------------------------------------- |
|
365 |
// CXnScrollableControlAdapter::PhysicEmulationEnded |
|
366 |
// --------------------------------------------------------------------------- |
|
367 |
// |
|
368 |
void CXnScrollableControlAdapter::PhysicEmulationEnded() |
|
369 |
{ |
|
370 |
} |
|
371 |
||
372 |
// --------------------------------------------------------------------------- |
|
373 |
// CXnScrollableControlAdapter::ViewPosition |
|
374 |
// --------------------------------------------------------------------------- |
|
375 |
// |
|
376 |
TPoint CXnScrollableControlAdapter::ViewPosition() const |
|
377 |
{ |
|
378 |
return iCurrentPosition; |
|
379 |
} |
|
380 |
||
381 |
// --------------------------------------------------------------------------- |
|
382 |
// CXnScrollableControlAdapter::ResetContext |
|
383 |
// --------------------------------------------------------------------------- |
|
384 |
// |
|
385 |
void CXnScrollableControlAdapter::ResetContext( CWindowGc& aGc ) const |
|
386 |
{ |
|
387 |
aGc.Reset(); |
|
388 |
aGc.SetClippingRect( iViewPort ); |
|
389 |
} |
|
390 |
||
391 |
// --------------------------------------------------------------------------- |
|
392 |
// CXnScrollableControlAdapter::InitPhysicEngineL |
|
393 |
// --------------------------------------------------------------------------- |
|
394 |
// |
|
395 |
void CXnScrollableControlAdapter::InitPhysicEngineL() |
|
396 |
{ |
|
397 |
// Init physic engine |
|
398 |
if ( !iPhysics && CAknPhysics::FeatureEnabled() ) |
|
399 |
{ |
|
400 |
iPhysics = CAknPhysics::NewL( *this, this ); |
|
401 |
} |
|
402 |
if( !iPhysics ) |
|
403 |
{ |
|
404 |
return; |
|
405 |
} |
|
406 |
TSize viewPortSize = iViewPort.Size(); |
|
407 |
TSize totalSize( iNode.Rect().Size() ); |
|
408 |
||
409 |
if ( iDirection == EVertical ) |
|
410 |
{ |
|
411 |
iPhysics->InitPhysicsL( totalSize, viewPortSize, EFalse ); |
|
412 |
} |
|
413 |
else |
|
414 |
{ |
|
415 |
iPhysics->InitPhysicsL( totalSize, viewPortSize, ETrue ); |
|
416 |
} |
|
417 |
||
418 |
||
419 |
iCurrentPosition = |
|
420 |
TPoint( viewPortSize.iWidth / 2, viewPortSize.iHeight / 2 ); |
|
421 |
||
422 |
iPreviousPosition = iStartViewPosition = iCurrentPosition; |
|
423 |
} |
|
424 |
||
425 |
// --------------------------------------------------------------------------- |
|
426 |
// CXnScrollableControlAdapter::ReadPropertiesL |
|
427 |
// --------------------------------------------------------------------------- |
|
428 |
// |
|
429 |
void CXnScrollableControlAdapter::ReadPropertiesL() |
|
430 |
{ |
|
431 |
TInt width( 0 ); |
|
432 |
TInt height( 0 ); |
|
433 |
TInt top( 0 ); |
|
434 |
TInt left( 0 ); |
|
435 |
||
436 |
CXnNode& node( iNode.Node() ); |
|
437 |
||
438 |
// Width |
|
439 |
CXnProperty* prop = iNode.GetPropertyL( KViewportWidth ); |
|
440 |
if( prop ) |
|
441 |
{ |
|
442 |
width = iUiEngine->HorizontalPixelValueL( |
|
443 |
prop, iNode.Rect().Width() ); |
|
444 |
} |
|
445 |
if( width == 0 ) |
|
446 |
{ |
|
447 |
width = node.Parent()->Rect().Width(); |
|
448 |
} |
|
449 |
||
450 |
// Height |
|
451 |
prop = iNode.GetPropertyL( KViewportHeight ); |
|
452 |
if( prop ) |
|
453 |
{ |
|
454 |
height = iUiEngine->VerticalPixelValueL( |
|
455 |
prop, iNode.Rect().Height() ); |
|
456 |
} |
|
457 |
if( height == 0 ) |
|
458 |
{ |
|
459 |
height = node.Parent()->Rect().Height(); |
|
460 |
} |
|
461 |
||
462 |
// Top |
|
463 |
prop = iNode.GetPropertyL( KViewportTop ); |
|
464 |
if( prop ) |
|
465 |
{ |
|
466 |
top = iUiEngine->VerticalPixelValueL( |
|
467 |
prop, iNode.Rect().Height() ); |
|
468 |
} |
|
469 |
||
470 |
// Left |
|
471 |
prop = iNode.GetPropertyL( KViewportLeft ); |
|
472 |
if( prop ) |
|
473 |
{ |
|
474 |
left = iUiEngine->HorizontalPixelValueL( |
|
475 |
prop, iNode.Rect().Width() ); |
|
476 |
} |
|
477 |
||
478 |
iViewPort = TRect( iNode.Rect().iTl, TSize( width, height ) ); |
|
479 |
iViewPort.Move( left, top ); |
|
480 |
} |
|
481 |
||
482 |
// End of File |