28 #ifndef YSL_INC_UI_ywgtevt_h_
29 #define YSL_INC_UI_ywgtevt_h_ 1
32 #include "../Core/yevt.hpp"
77 PDefH(
void, SetSender, IWidget& wgt)
103 Strategy(strategy), Handled(false)
173 public MScreenPositionEventArgs
183 RoutingStrategy = Direct);
194 template<
typename _type>
205 template<
typename... _tParams>
239 #define DefEventTypeMapping(_name, _tEventHandler) \
241 struct EventTypeMapping<_name> \
243 typedef _tEventHandler HandlerType; \
294 template<VisualEvent>
333 typedef pair<typename MapType::iterator,
bool>
SearchResult; \
395 template<class _tEventHandler>
398 typename _tEventHandler::EventArgsType&& e)
402 return dynamic_cast<EventT(typename _tEventHandler)&
>(
403 controller.GetItem(
id))(std::move(e));
405 catch(std::out_of_range&)
407 catch(std::bad_cast&)
411 template<
class _tEventHandler>
414 typename _tEventHandler::EventArgsType& e)
416 return DoEvent<_tEventHandler>(controller, id, std::move(e));