|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Free functions the input systems share to decide whether a pointer or hand ray hits an entity. More...
#include <utility/graphic/pose.hpp>#include <utility/graphic/ray.hpp>#include <utility/math/vector.hpp>#include "guillaume/components/bound.hpp"#include "guillaume/components/hand_hover_interaction.hpp"#include "guillaume/components/mouse_hover_interaction.hpp"#include "guillaume/components/style_state.hpp"#include "guillaume/ecs/component_registry.hpp"#include "guillaume/ecs/entity.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | guillaume |
| A C++20 UI framework for desktop and XR, built as an entity-component-system. | |
| namespace | guillaume::systems |
| Rules. Every class here runs each frame on the entities that have the components it declares. | |
Functions | |
| bool | guillaume::systems::isInteractive (const ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &entityIdentifier) |
| Whether an entity accepts input. | |
| utility::math::Vector2F | guillaume::systems::hitMargin (const ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &entityIdentifier) |
| Extra hit area of an entity around its Bound, in dp. | |
| bool | guillaume::systems::hitTest (const utility::graphic::RayF &ray, const utility::graphic::PoseF &pose, const components::Bound &bound, const utility::math::Vector2F &margin) |
| Whether a ray crosses the rectangle of an entity, grown by a margin. | |
Free functions the input systems share to decide whether a pointer or hand ray hits an entity.
Used by systems::MouseMotion, systems::MouseButton, the hand systems built on systems::HandEventSystem, systems::Drag and systems::Focus. Everything here is inline and reads components only.
Definition in file hit_test.hpp.