Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::MouseModifiers Struct Reference

Modifier-key state captured at the moment a mouse event was dispatched. Tools use this for shift-add-to-selection, alt-clone, etc. Default-constructed = no modifiers, which keeps existing callsites that don't care about modifiers source-compatible. More...

#include "donner/editor/Tool.h"

Public Attributes

bool shift = false
 Shift held — used by SelectTool to toggle/extend selection rather than replacing it.
bool option = false
 Option/Alt held — used by transform handles to resize from center.
double pixelsPerDocUnit = 1.0
 Current viewport scale used for screen-pixel-stable hit testing.

Detailed Description

Modifier-key state captured at the moment a mouse event was dispatched. Tools use this for shift-add-to-selection, alt-clone, etc. Default-constructed = no modifiers, which keeps existing callsites that don't care about modifiers source-compatible.

Member Data Documentation

◆ option

bool donner::editor::MouseModifiers::option = false

Option/Alt held — used by transform handles to resize from center.

◆ pixelsPerDocUnit

double donner::editor::MouseModifiers::pixelsPerDocUnit = 1.0

Current viewport scale used for screen-pixel-stable hit testing.

◆ shift

bool donner::editor::MouseModifiers::shift = false

Shift held — used by SelectTool to toggle/extend selection rather than replacing it.


The documentation for this struct was generated from the following file: