Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
modifiers.cpp File Reference

Modifiers for inkscape. More...

Go to the source code of this file.

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 
namespace  Inkscape::Modifiers
 

Functions

std::string Inkscape::Modifiers::generate_label (KeyMask mask, std::string sep)
 Generate a label for any modifier keys based on the mask.
 
unsigned long Inkscape::Modifiers::calculate_weight (KeyMask mask)
 Calculate the weight of this mask based on how many bits are set.
 
void Inkscape::Modifiers::responsive_tooltip (MessageContext *message_context, KeyEvent const &event, int num_args,...)
 Set the responsive tooltip for this tool, given the selected types.
 
int Inkscape::Modifiers::add_keyval (int state, int keyval, bool release)
 Add or remove the GDK keyval to the button state if it's one of the keys that define the key mask.
 

Detailed Description

Modifiers for inkscape.

The file provides a definition of all the ways shift/ctrl/alt modifiers are used in Inkscape, and allows users to customise them in keys.xml

Definition in file modifiers.cpp.