Files
eepp/include/eepp/ui/tools/uiwidgetinspector.hpp
T
Martín Lucas Golini d56135c2d1 Fix CSS specificity rules.
Added control over the UISceneNode children and added setHighlightOverRecursive. This allows us to inspect nested UISceneNodes.
Fix hit-box bug when changing display.
2026-07-05 00:14:02 -03:00

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_