Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::ViewInspector Class Reference

#include <inspector.hpp>

Static Public Member Functions

static std::string to_json (const View &root)
static View * find_by_id (View &root, const std::string &id)
static View * find_by_anchor (View &root, const std::string &anchor)
static size_t count_views (const View &root)
static std::string type_name (const View &view)
static void populate_tree (TreeNode &parent, const View &root)
 Recursively populate a TreeNode hierarchy from a View tree.
static std::vector< PropertyList::Property > view_properties (const View &view)
 Build a list of properties for display in a PropertyList.
static Rect absolute_bounds (const View &view)
 Compute absolute bounds by walking the parent chain.

Member Function Documentation

◆ absolute_bounds()

Rect pulp::view::ViewInspector::absolute_bounds ( const View & view)
static

Compute absolute bounds by walking the parent chain.

◆ count_views()

size_t pulp::view::ViewInspector::count_views ( const View & root)
static

◆ find_by_anchor()

View * pulp::view::ViewInspector::find_by_anchor ( View & root,
const std::string & anchor )
static

◆ find_by_id()

View * pulp::view::ViewInspector::find_by_id ( View & root,
const std::string & id )
static

◆ populate_tree()

void pulp::view::ViewInspector::populate_tree ( TreeNode & parent,
const View & root )
static

Recursively populate a TreeNode hierarchy from a View tree.

Sets label = type_name + id, user_data = View*.

◆ to_json()

std::string pulp::view::ViewInspector::to_json ( const View & root)
static

◆ type_name()

std::string pulp::view::ViewInspector::type_name ( const View & view)
static

◆ view_properties()

std::vector< PropertyList::Property > pulp::view::ViewInspector::view_properties ( const View & view)
static

Build a list of properties for display in a PropertyList.

Categories: Identity, Layout, Visual, Widget.


The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/view/include/pulp/view/inspector.hpp