SimpleWindow
载入中...
搜索中...
未找到
sw::INotifyObjectDead类 参考abstract

对象销毁通知接口 更多...

#include <INotifyObjectDead.h>

类 sw::INotifyObjectDead 继承关系图:
sw::ObservableObject sw::FrameworkElement sw::WndBase sw::NotifyIcon sw::Timer sw::ToolTip sw::UIElement sw::BallonToolTip sw::Control sw::HwndWrapper sw::ItemsControl< StrList > sw::ItemsControl< TreeViewNode > sw::Animation sw::ButtonBase sw::DateTimePicker sw::HotKeyControl sw::ItemsControl< TItem > sw::MonthCalendar sw::ProgressBar sw::Slider sw::Splitter sw::StaticControl sw::StatusBar sw::SysLink sw::TabControl sw::TextBoxBase

Public 成员函数

virtual ~INotifyObjectDead ()=default
 默认析构函数
 

Public 属性

const Event< ObjectDeadEventHandlerObjectDead
 对象销毁时触发该事件
 

Protected 成员函数

virtual ObjectDeadEventHandlerGetObjectDeadEventDelegate ()=0
 获取对象销毁事件委托的引用
 

详细描述

对象销毁通知接口

成员函数说明

◆ GetObjectDeadEventDelegate()

virtual ObjectDeadEventHandler & sw::INotifyObjectDead::GetObjectDeadEventDelegate ( )
protectedpure virtual

获取对象销毁事件委托的引用

注解
子类应实现该纯虚函数,并在对象销毁时调用该委托
ObjectDead事件使用该函数返回的委托来保存事件处理程序

sw::ObservableObject 内被实现.

类成员变量说明

◆ ObjectDead

const Event<ObjectDeadEventHandler> sw::INotifyObjectDead::ObjectDead
初始值:
{
Event<ObjectDeadEventHandler>::Init(this)
.Delegate([](INotifyObjectDead *self) -> ObjectDeadEventHandler & {
return self->GetObjectDeadEventDelegate();
})
}
EventHandler< INotifyObjectDead > ObjectDeadEventHandler
对象销毁事件处理程序类型
Definition INotifyObjectDead.h:14

对象销毁时触发该事件


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