Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
RotateCursorSet.h File Reference
#include <array>
#include <memory>
#include <optional>
#include <vector>
#include "donner/editor/SelectionTransformHandles.h"
Include dependency graph for RotateCursorSet.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::editor::RotateCursorImage
 RGBA pixels for one custom editor cursor image. More...
class  donner::editor::RotateCursorSet
 RAII owner for the editor's custom cursors. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Enumerations

enum class  donner::editor::PanCursorKind {
  OpenHand ,
  ClosedHand
}
 Visual state for the pan-mode cursor. More...

Functions

std::optional< RotateCursorImagedonner::editor::RenderRotateCursorImage (SelectionTransformCorner corner, std::shared_ptr< geode::GeodeDevice > geodeDevice)
 Render one oriented rotate-cursor SVG to straight-alpha RGBA pixels.
std::optional< RotateCursorImagedonner::editor::RenderPanCursorImage (PanCursorKind kind, std::shared_ptr< geode::GeodeDevice > geodeDevice)
 Render the pan-mode cursor SVG for kind to straight-alpha RGBA pixels.
std::optional< RotateCursorImagedonner::editor::RenderPenCursorImage (std::shared_ptr< geode::GeodeDevice > geodeDevice)
 Render the pen-tool cursor SVG to straight-alpha RGBA pixels.

Enumeration Type Documentation

◆ PanCursorKind

enum class donner::editor::PanCursorKind
strong

Visual state for the pan-mode cursor.

Enumerator
OpenHand 

Open hand while pan mode is armed.

ClosedHand 

Closed hand while actively panning.

Function Documentation

◆ RenderPanCursorImage()

std::optional< RotateCursorImage > donner::editor::RenderPanCursorImage ( PanCursorKind kind,
std::shared_ptr< geode::GeodeDevice > geodeDevice )
nodiscard

Render the pan-mode cursor SVG for kind to straight-alpha RGBA pixels.

Parameters
kindPan cursor visual state to render.
geodeDeviceShared Geode device for Geode editor builds.

◆ RenderPenCursorImage()

std::optional< RotateCursorImage > donner::editor::RenderPenCursorImage ( std::shared_ptr< geode::GeodeDevice > geodeDevice)
nodiscard

Render the pen-tool cursor SVG to straight-alpha RGBA pixels.

Parameters
geodeDeviceShared Geode device for Geode editor builds.