Mercurial > hg > orthanc-stone
annotate Framework/Widgets/LayoutWidget.cpp @ 495:6405435480ae bgo-commands-codegen
Fixed template to add dump capabilities + started work on an integrated TS/WASM test
author | bgo-osimis |
---|---|
date | Sat, 23 Feb 2019 14:14:32 +0100 |
parents | b70e9be013e4 |
children | 3b4df9925db6 |
rev | line source |
---|---|
0 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
439 | 5 * Copyright (C) 2017-2019 Osimis S.A., Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
47 | 8 * modify it under the terms of the GNU Affero General Public License |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
0 | 11 * |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
47 | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
0 | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | |
20 | |
21 | |
22 #include "LayoutWidget.h" | |
23 | |
212
5412adf19980
resort to OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
201
diff
changeset
|
24 #include <Core/Logging.h> |
5412adf19980
resort to OrthancFramework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
201
diff
changeset
|
25 #include <Core/OrthancException.h> |
0 | 26 |
27 #include <boost/math/special_functions/round.hpp> | |
28 | |
29 namespace OrthancStone | |
30 { | |
31 class LayoutWidget::LayoutMouseTracker : public IMouseTracker | |
32 { | |
33 private: | |
34 std::auto_ptr<IMouseTracker> tracker_; | |
35 int left_; | |
36 int top_; | |
37 unsigned int width_; | |
38 unsigned int height_; | |
39 | |
40 public: | |
41 LayoutMouseTracker(IMouseTracker* tracker, | |
42 int left, | |
43 int top, | |
44 unsigned int width, | |
45 unsigned int height) : | |
46 tracker_(tracker), | |
47 left_(left), | |
48 top_(top), | |
49 width_(width), | |
50 height_(height) | |
51 { | |
52 if (tracker == NULL) | |
53 { | |
54 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); | |
55 } | |
56 } | |
57 | |
58 virtual void Render(Orthanc::ImageAccessor& surface) | |
59 { | |
316
ce48c3b3b0e9
fix for new ImageAccessor API
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
60 Orthanc::ImageAccessor accessor; |
ce48c3b3b0e9
fix for new ImageAccessor API
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
61 surface.GetRegion(accessor, left_, top_, width_, height_); |
0 | 62 tracker_->Render(accessor); |
63 } | |
64 | |
65 virtual void MouseUp() | |
66 { | |
67 tracker_->MouseUp(); | |
68 } | |
69 | |
70 virtual void MouseMove(int x, | |
71 int y) | |
72 { | |
73 tracker_->MouseMove(x - left_, y - top_); | |
74 } | |
75 }; | |
76 | |
77 | |
78 class LayoutWidget::ChildWidget : public boost::noncopyable | |
79 { | |
80 private: | |
81 std::auto_ptr<IWidget> widget_; | |
82 int left_; | |
83 int top_; | |
84 unsigned int width_; | |
85 unsigned int height_; | |
86 | |
87 public: | |
88 ChildWidget(IWidget* widget) : | |
232
7d3b2c4f9ba1
don't cache hasUpdate_ since its not updated when we update the underlying hierarchy (i.e: when the child of a layout is a layout without child when it is added but childs are added later ...)
am@osimis.io
parents:
212
diff
changeset
|
89 widget_(widget) |
0 | 90 { |
91 assert(widget != NULL); | |
92 SetEmpty(); | |
93 } | |
94 | |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
95 void DoAnimation() |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
96 { |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
97 if (widget_->HasAnimation()) |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
98 { |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
99 widget_->DoAnimation(); |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
100 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
101 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
102 |
0 | 103 IWidget& GetWidget() const |
104 { | |
105 return *widget_; | |
106 } | |
107 | |
108 void SetRectangle(unsigned int left, | |
109 unsigned int top, | |
110 unsigned int width, | |
111 unsigned int height) | |
112 { | |
113 left_ = left; | |
114 top_ = top; | |
115 width_ = width; | |
116 height_ = height; | |
117 | |
118 widget_->SetSize(width, height); | |
119 } | |
120 | |
121 void SetEmpty() | |
122 { | |
123 SetRectangle(0, 0, 0, 0); | |
124 } | |
125 | |
126 bool Contains(int x, | |
127 int y) const | |
128 { | |
129 return (x >= left_ && | |
130 y >= top_ && | |
131 x < left_ + static_cast<int>(width_) && | |
132 y < top_ + static_cast<int>(height_)); | |
133 } | |
134 | |
135 bool Render(Orthanc::ImageAccessor& target) | |
136 { | |
137 if (width_ == 0 || | |
138 height_ == 0) | |
139 { | |
140 return true; | |
141 } | |
142 else | |
143 { | |
316
ce48c3b3b0e9
fix for new ImageAccessor API
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
144 Orthanc::ImageAccessor accessor; |
ce48c3b3b0e9
fix for new ImageAccessor API
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
145 target.GetRegion(accessor, left_, top_, width_, height_); |
0 | 146 return widget_->Render(accessor); |
147 } | |
148 } | |
149 | |
150 IMouseTracker* CreateMouseTracker(MouseButton button, | |
151 int x, | |
152 int y, | |
153 KeyboardModifiers modifiers) | |
154 { | |
155 if (Contains(x, y)) | |
156 { | |
157 IMouseTracker* tracker = widget_->CreateMouseTracker(button, | |
158 x - left_, | |
159 y - top_, | |
160 modifiers); | |
161 if (tracker) | |
162 { | |
163 return new LayoutMouseTracker(tracker, left_, top_, width_, height_); | |
164 } | |
165 } | |
166 | |
167 return NULL; | |
168 } | |
169 | |
170 void RenderMouseOver(Orthanc::ImageAccessor& target, | |
171 int x, | |
172 int y) | |
173 { | |
174 if (Contains(x, y)) | |
175 { | |
316
ce48c3b3b0e9
fix for new ImageAccessor API
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
176 Orthanc::ImageAccessor accessor; |
ce48c3b3b0e9
fix for new ImageAccessor API
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
212
diff
changeset
|
177 target.GetRegion(accessor, left_, top_, width_, height_); |
0 | 178 |
179 widget_->RenderMouseOver(accessor, x - left_, y - top_); | |
180 } | |
181 } | |
182 | |
183 void MouseWheel(MouseWheelDirection direction, | |
184 int x, | |
185 int y, | |
186 KeyboardModifiers modifiers) | |
187 { | |
188 if (Contains(x, y)) | |
189 { | |
190 widget_->MouseWheel(direction, x - left_, y - top_, modifiers); | |
191 } | |
192 } | |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
193 |
55 | 194 bool HasRenderMouseOver() |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
195 { |
55 | 196 return widget_->HasRenderMouseOver(); |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
197 } |
0 | 198 }; |
199 | |
200 | |
201 void LayoutWidget::ComputeChildrenExtents() | |
202 { | |
203 if (children_.size() == 0) | |
204 { | |
205 return; | |
206 } | |
207 | |
208 float internal = static_cast<float>(paddingInternal_); | |
209 | |
210 if (width_ <= paddingLeft_ + paddingRight_ || | |
211 height_ <= paddingTop_ + paddingBottom_) | |
212 { | |
213 for (size_t i = 0; i < children_.size(); i++) | |
214 { | |
215 children_[i]->SetEmpty(); | |
216 } | |
217 } | |
218 else if (isHorizontal_) | |
219 { | |
220 unsigned int padding = paddingLeft_ + paddingRight_ + (children_.size() - 1) * paddingInternal_; | |
221 float childWidth = ((static_cast<float>(width_) - static_cast<float>(padding)) / | |
222 static_cast<float>(children_.size())); | |
223 | |
224 for (size_t i = 0; i < children_.size(); i++) | |
225 { | |
226 float left = static_cast<float>(paddingLeft_) + static_cast<float>(i) * (childWidth + internal); | |
227 float right = left + childWidth; | |
228 | |
229 if (left >= right) | |
230 { | |
231 children_[i]->SetEmpty(); | |
232 } | |
233 else | |
234 { | |
235 children_[i]->SetRectangle(static_cast<unsigned int>(left), | |
236 paddingTop_, | |
237 boost::math::iround(right - left), | |
238 height_ - paddingTop_ - paddingBottom_); | |
239 } | |
240 } | |
241 } | |
242 else | |
243 { | |
244 unsigned int padding = paddingTop_ + paddingBottom_ + (children_.size() - 1) * paddingInternal_; | |
245 float childHeight = ((static_cast<float>(height_) - static_cast<float>(padding)) / | |
246 static_cast<float>(children_.size())); | |
247 | |
248 for (size_t i = 0; i < children_.size(); i++) | |
249 { | |
250 float top = static_cast<float>(paddingTop_) + static_cast<float>(i) * (childHeight + internal); | |
251 float bottom = top + childHeight; | |
252 | |
253 if (top >= bottom) | |
254 { | |
255 children_[i]->SetEmpty(); | |
256 } | |
257 else | |
258 { | |
259 children_[i]->SetRectangle(paddingTop_, | |
260 static_cast<unsigned int>(top), | |
261 width_ - paddingLeft_ - paddingRight_, | |
262 boost::math::iround(bottom - top)); | |
263 } | |
264 } | |
265 } | |
266 | |
278 | 267 NotifyContentChanged(*this); |
0 | 268 } |
269 | |
270 | |
273
f21ba2468570
force all Widgets to have a name to ease debugging
am@osimis.io
parents:
232
diff
changeset
|
271 LayoutWidget::LayoutWidget(const std::string& name) : |
f21ba2468570
force all Widgets to have a name to ease debugging
am@osimis.io
parents:
232
diff
changeset
|
272 WidgetBase(name), |
0 | 273 isHorizontal_(true), |
274 width_(0), | |
275 height_(0), | |
276 paddingLeft_(0), | |
277 paddingTop_(0), | |
278 paddingRight_(0), | |
279 paddingBottom_(0), | |
280 paddingInternal_(0) | |
281 { | |
282 } | |
283 | |
284 | |
285 LayoutWidget::~LayoutWidget() | |
286 { | |
287 for (size_t i = 0; i < children_.size(); i++) | |
288 { | |
289 delete children_[i]; | |
290 } | |
291 } | |
292 | |
293 | |
330 | 294 void LayoutWidget::FitContent() |
61
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
295 { |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
296 for (size_t i = 0; i < children_.size(); i++) |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
297 { |
330 | 298 children_[i]->GetWidget().FitContent(); |
61
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
299 } |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
300 } |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
301 |
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
302 |
278 | 303 void LayoutWidget::NotifyContentChanged(const IWidget& widget) |
0 | 304 { |
305 // One of the children has changed | |
278 | 306 WidgetBase::NotifyContentChanged(); |
0 | 307 } |
308 | |
309 | |
310 void LayoutWidget::SetHorizontal() | |
311 { | |
312 isHorizontal_ = true; | |
313 ComputeChildrenExtents(); | |
314 } | |
315 | |
316 | |
317 void LayoutWidget::SetVertical() | |
318 { | |
319 isHorizontal_ = false; | |
320 ComputeChildrenExtents(); | |
321 } | |
322 | |
323 | |
324 void LayoutWidget::SetPadding(unsigned int left, | |
325 unsigned int top, | |
326 unsigned int right, | |
327 unsigned int bottom, | |
328 unsigned int spacing) | |
329 { | |
330 paddingLeft_ = left; | |
331 paddingTop_ = top; | |
332 paddingRight_ = right; | |
333 paddingBottom_ = bottom; | |
334 paddingInternal_ = spacing; | |
335 } | |
336 | |
337 | |
338 void LayoutWidget::SetPadding(unsigned int padding) | |
339 { | |
340 paddingLeft_ = padding; | |
341 paddingTop_ = padding; | |
342 paddingRight_ = padding; | |
343 paddingBottom_ = padding; | |
344 paddingInternal_ = padding; | |
345 } | |
346 | |
347 | |
348 IWidget& LayoutWidget::AddWidget(IWidget* widget) // Takes ownership | |
349 { | |
350 if (widget == NULL) | |
351 { | |
352 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); | |
353 } | |
354 | |
355 if (GetStatusBar() != NULL) | |
356 { | |
357 widget->SetStatusBar(*GetStatusBar()); | |
358 } | |
359 | |
360 children_.push_back(new ChildWidget(widget)); | |
61
ca644004d2ee
MAJOR - removal of Start/Stop and observers in IWidget
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
55
diff
changeset
|
361 widget->SetParent(*this); |
0 | 362 |
363 ComputeChildrenExtents(); | |
364 | |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
365 if (widget->HasAnimation()) |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
366 { |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
367 hasAnimation_ = true; |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
368 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
369 |
0 | 370 return *widget; |
371 } | |
372 | |
373 | |
374 void LayoutWidget::SetStatusBar(IStatusBar& statusBar) | |
375 { | |
376 WidgetBase::SetStatusBar(statusBar); | |
377 | |
378 for (size_t i = 0; i < children_.size(); i++) | |
379 { | |
380 children_[i]->GetWidget().SetStatusBar(statusBar); | |
381 } | |
382 } | |
383 | |
384 | |
385 void LayoutWidget::SetSize(unsigned int width, | |
386 unsigned int height) | |
387 { | |
388 width_ = width; | |
389 height_ = height; | |
390 ComputeChildrenExtents(); | |
391 } | |
392 | |
393 | |
394 bool LayoutWidget::Render(Orthanc::ImageAccessor& surface) | |
395 { | |
396 if (!WidgetBase::Render(surface)) | |
397 { | |
398 return false; | |
399 } | |
400 | |
401 for (size_t i = 0; i < children_.size(); i++) | |
402 { | |
403 if (!children_[i]->Render(surface)) | |
404 { | |
405 return false; | |
406 } | |
407 } | |
408 | |
409 return true; | |
410 } | |
411 | |
412 | |
413 IMouseTracker* LayoutWidget::CreateMouseTracker(MouseButton button, | |
414 int x, | |
415 int y, | |
416 KeyboardModifiers modifiers) | |
417 { | |
418 for (size_t i = 0; i < children_.size(); i++) | |
419 { | |
420 IMouseTracker* tracker = children_[i]->CreateMouseTracker(button, x, y, modifiers); | |
421 if (tracker != NULL) | |
422 { | |
423 return tracker; | |
424 } | |
425 } | |
426 | |
427 return NULL; | |
428 } | |
429 | |
430 | |
431 void LayoutWidget::RenderMouseOver(Orthanc::ImageAccessor& target, | |
432 int x, | |
433 int y) | |
434 { | |
435 for (size_t i = 0; i < children_.size(); i++) | |
436 { | |
437 children_[i]->RenderMouseOver(target, x, y); | |
438 } | |
439 } | |
440 | |
441 | |
442 void LayoutWidget::MouseWheel(MouseWheelDirection direction, | |
443 int x, | |
444 int y, | |
445 KeyboardModifiers modifiers) | |
446 { | |
447 for (size_t i = 0; i < children_.size(); i++) | |
448 { | |
449 children_[i]->MouseWheel(direction, x, y, modifiers); | |
450 } | |
451 } | |
452 | |
453 | |
327 | 454 void LayoutWidget::KeyPressed(KeyboardKeys key, |
455 char keyChar, | |
0 | 456 KeyboardModifiers modifiers) |
457 { | |
458 for (size_t i = 0; i < children_.size(); i++) | |
459 { | |
327 | 460 children_[i]->GetWidget().KeyPressed(key, keyChar, modifiers); |
0 | 461 } |
462 } | |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
463 |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
464 |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
465 void LayoutWidget::DoAnimation() |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
466 { |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
467 if (hasAnimation_) |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
468 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
469 for (size_t i = 0; i < children_.size(); i++) |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
470 { |
386
e33659decec5
renamed UpdateContent() as DoAnimation()
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
369
diff
changeset
|
471 children_[i]->DoAnimation(); |
53
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
472 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
473 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
474 else |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
475 { |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
476 throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError); |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
477 } |
c2dc924f1a63
removing threading out of the framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
48
diff
changeset
|
478 } |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
479 |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
480 |
55 | 481 bool LayoutWidget::HasRenderMouseOver() |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
482 { |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
483 for (size_t i = 0; i < children_.size(); i++) |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
484 { |
55 | 485 if (children_[i]->HasRenderMouseOver()) |
54
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
486 { |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
487 return true; |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
488 } |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
489 } |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
490 |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
491 return false; |
01aa453d4d5b
IWidget::HasRenderMouseOver
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
53
diff
changeset
|
492 } |
0 | 493 } |