33 using namespace Drawing;
42 FetchTopEnabledAndVisibleWidgetPtr(IWidget& con,
const Point& pt)
44 for(
auto pr = con.GetChildren(); pr.first != pr.second; ++pr.first)
46 IWidget& wgt(*pr.first);
103 return tmr.Refresh(st, initial_delay, repeated_delay) || b;
109 DraggingOffset(
Vec::Invalid), HeldTimer(),
110 ControlLocation(
Point::Invalid),
111 LastControlLocation(
Point::Invalid), Colors(),
112 p_KeyDown(), p_TouchDown(), control_entered(false)
138 CallEvent<Enter>(e.GetSender(), e);
148 CallEvent<Leave>(e.GetSender(), e);
162 CallEvent<KeyUp>(wgt, e);
165 CallEvent<KeyPress>(wgt, e);
171 CallEvent<KeyDown>(wgt, e);
179 CallEvent<KeyHeld>(wgt, e);
182 YAssert(
false,
"Invalid operation found.");
197 CallEvent<TouchUp>(wgt, e);
206 CallEvent<Click>(wgt, e);
213 CallEvent<TouchDown>(wgt, e);
226 YAssert(
false,
"Invalid operation found.");
261 YAssert(p,
"Null pointer found.");
293 const auto t(FetchTopEnabledAndVisibleWidgetPtr(*pCon, e));
303 r |= DoEvent<HTouchEvent>(p->GetController(), op, e) != 0;
308 YAssert(p,
"Null pointer found.");
318 r |= DoEvent<HTouchEvent>(p->GetController(), op, e) != 0;
327 static GUIState* pState(
new GUIState());