|
|
Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
|
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. | |
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.
| bool donner::editor::MouseModifiers::option = false |
Option/Alt held — used by transform handles to resize from center.
| double donner::editor::MouseModifiers::pixelsPerDocUnit = 1.0 |
Current viewport scale used for screen-pixel-stable hit testing.
| bool donner::editor::MouseModifiers::shift = false |
Shift held — used by SelectTool to toggle/extend selection rather than replacing it.