Donner 0.5.1
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.

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

◆ 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: