Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
ScopedCompositorHint.h File Reference
#include <cstdint>
#include <optional>
#include "donner/base/EcsRegistry.h"
#include "donner/svg/compositor/CompositorHintComponent.h"
Include dependency graph for ScopedCompositorHint.h:
This graph shows which files directly or indirectly include this file:

Classes

class  donner::svg::compositor::ScopedCompositorHint
 RAII handle that adds a HintEntry to an entity's CompositorHintComponent on construction and removes exactly that entry on destruction. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.

Enumerations

enum class  donner::svg::compositor::InteractionHint : uint8_t {
  Selection ,
  ActiveDrag
}
 Kind of interaction the editor is signalling to the compositor. More...

Enumeration Type Documentation

◆ InteractionHint

enum class donner::svg::compositor::InteractionHint : uint8_t
strong

Kind of interaction the editor is signalling to the compositor.

See design doc § Interaction hints. Hover is intentionally omitted in v1 — whether v2 adds it at all is deferred (Non-Goal 8).

Enumerator
Selection 

The entity is selected (has selection chrome). Held across frames until selection clears.

ActiveDrag 

The user is actively dragging the entity. Held from mouse-down through mouse-up plus a short idle window.