mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-18 11:33:23 +03:00
Added control over the UISceneNode children and added setHighlightOverRecursive. This allows us to inspect nested UISceneNodes. Fix hit-box bug when changing display.
35 lines
968 B
C++
35 lines
968 B
C++
#ifndef EE_UI_TOOLS_UIWIDGETINSPECTOR_HPP
|
|
#define EE_UI_TOOLS_UIWIDGETINSPECTOR_HPP
|
|
|
|
#include <eepp/config.hpp>
|
|
#include <functional>
|
|
#include <memory>
|
|
|
|
namespace EE { namespace UI {
|
|
class UISceneNode;
|
|
class UITreeView;
|
|
class UITableView;
|
|
class UIWindow;
|
|
}} // namespace EE::UI
|
|
|
|
namespace EE { namespace UI { namespace Tools {
|
|
|
|
class EE_API UIWidgetInspector {
|
|
public:
|
|
static UIWindow* create( UISceneNode* sceneNode, const Float& menuIconSize = 16.f,
|
|
std::function<void()> highlightToggle = std::function<void()>(),
|
|
std::function<void()> drawBoxesToggle = std::function<void()>(),
|
|
std::function<void()> drawDebugDataToggle = std::function<void()>() );
|
|
|
|
protected:
|
|
struct PickHighlightOverState;
|
|
|
|
static void checkWidgetPick( UISceneNode* sceneNode, UITreeView* widgetTree,
|
|
std::shared_ptr<PickHighlightOverState> highlightOverState,
|
|
UITableView* tableView );
|
|
};
|
|
|
|
}}} // namespace EE::UI::Tools
|
|
|
|
#endif // EE_UI_TOOLS_
|