SimpleWindow
载入中...
搜索中...
未找到
sw::RoutedEventHandlerWrapper< TEventArgs, type > 模板类 参考

路由事件处理函数包装类,用于需要转换RoutedEventArgs为特定事件参数类型的情况 更多...

#include <EventHandlerWrapper.h>

类 sw::RoutedEventHandlerWrapper< TEventArgs, type > 继承关系图:
sw::ICallable< void(UIElement &, RoutedEventArgs &)>

Public 成员函数

 RoutedEventHandlerWrapper (const Action< UIElement &, TEventArgs & > &handler)
 构造函数
 
virtual void Invoke (UIElement &sender, RoutedEventArgs &args) const override
 调用事件处理函数
 
virtual ICallable< void(UIElement &, RoutedEventArgs &)> * Clone () const override
 克隆当前可调用对象
 
virtual std::type_index GetType () const override
 获取当前可调用对象的类型信息
 
virtual bool Equals (const ICallable< void(UIElement &, RoutedEventArgs &)> &other) const override
 判断当前可调用对象是否与另一个可调用对象相等
 

详细描述

template<typename TEventArgs, typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0>
class sw::RoutedEventHandlerWrapper< TEventArgs, type >

路由事件处理函数包装类,用于需要转换RoutedEventArgs为特定事件参数类型的情况

构造及析构函数说明

◆ RoutedEventHandlerWrapper()

template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0>
sw::RoutedEventHandlerWrapper< TEventArgs, type >::RoutedEventHandlerWrapper ( const Action< UIElement &, TEventArgs & > &  handler)
inline

构造函数

参数
handler事件处理函数

成员函数说明

◆ Equals()

template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0>
virtual bool sw::RoutedEventHandlerWrapper< TEventArgs, type >::Equals ( const ICallable< void(UIElement &, RoutedEventArgs &)> &  other) const
inlineoverridevirtual

判断当前可调用对象是否与另一个可调用对象相等

参数
other另一个可调用对象
返回
如果相等则返回true,否则返回false

该类的文档由以下文件生成: