comparison Framework/Widgets/TestWorldSceneWidget.cpp @ 54:01aa453d4d5b wasm

IWidget::HasRenderMouseOver
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Apr 2017 17:49:29 +0200
parents 25befef48c35
children f0f354a97581
comparison
equal deleted inserted replaced
53:c2dc924f1a63 54:01aa453d4d5b
44 sprintf(buf, "X = %0.2f, Y = %0.2f", x, y); 44 sprintf(buf, "X = %0.2f, Y = %0.2f", x, y);
45 statusBar->SetMessage(buf); 45 statusBar->SetMessage(buf);
46 } 46 }
47 47
48 return NULL; 48 return NULL;
49 }
50
51 virtual bool HasMouseOver(const WorldSceneWidget& widget,
52 const SliceGeometry& slice,
53 double x,
54 double y)
55 {
56 return true;
49 } 57 }
50 58
51 virtual void MouseOver(CairoContext& context, 59 virtual void MouseOver(CairoContext& context,
52 WorldSceneWidget& widget, 60 WorldSceneWidget& widget,
53 const SliceGeometry& slice, 61 const SliceGeometry& slice,