Go to the documentation of this file.00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __MYGUI_CAST_WIDGET_H__
00024 #define __MYGUI_CAST_WIDGET_H__
00025
00026 #include "MyGUI_Prerequest.h"
00027 #include "MyGUI_Widget.h"
00028
00029 namespace MyGUI
00030 {
00031
00032 #ifndef MYGUI_DONT_USE_OBSOLETE
00033
00034
00035 template <typename T>
00036 MYGUI_OBSOLETE("use : template<typename Type> Type* Widget::castType(bool _throw)")
00037 T* castWidget(Widget * _widget)
00038 {
00039 MYGUI_DEBUG_ASSERT(nullptr != _widget, "Error static cast, widget == nullptr");
00040 return _widget->castType<T>();
00041 }
00042
00043 #endif // MYGUI_DONT_USE_OBSOLETE
00044
00045 }
00046
00047 #endif // __MYGUI_CAST_WIDGET_H__