1
0
Fork 0

Add: Add a function to check if a window has a certain widget.

pull/8480/head
Juanjo 2014-08-23 18:22:18 +02:00 committed by J0anJosep
parent ece7f8401f
commit d5306c9e55
1 changed files with 5 additions and 0 deletions

View File

@ -336,6 +336,11 @@ public:
template <class NWID> template <class NWID>
inline NWID *GetWidget(WidgetID widnum); inline NWID *GetWidget(WidgetID widnum);
inline bool HasWidget(WidgetID widnum) const
{
return this->GetWidget<NWidgetCore>(widnum) != nullptr;
}
const Scrollbar *GetScrollbar(WidgetID widnum) const; const Scrollbar *GetScrollbar(WidgetID widnum) const;
Scrollbar *GetScrollbar(WidgetID widnum); Scrollbar *GetScrollbar(WidgetID widnum);