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

Go to the source code of this file.

Classes

class  Inkscape::Modifiers::Modifier
 A class to represent ways functionality is driven by shift modifiers. More...
 

Namespaces

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

Typedefs

using Inkscape::Modifiers::KeyMask = int
 
using Inkscape::Modifiers::Trigger = int
 

Enumerations

enum  Inkscape::Modifiers::Key : KeyMask {
  Inkscape::Modifiers::NEVER = -2 , Inkscape::Modifiers::NOT_SET = -1 , Inkscape::Modifiers::ALWAYS = 0 , Inkscape::Modifiers::SHIFT = GDK_SHIFT_MASK ,
  Inkscape::Modifiers::CTRL = GDK_CONTROL_MASK , Inkscape::Modifiers::ALT = GDK_ALT_MASK , Inkscape::Modifiers::SUPER = GDK_SUPER_MASK , Inkscape::Modifiers::HYPER = GDK_HYPER_MASK ,
  Inkscape::Modifiers::META = GDK_META_MASK , Inkscape::Modifiers::ALL_MODS = SHIFT | CTRL | ALT | SUPER | HYPER | META
}
 
enum  Inkscape::Modifiers::Triggers : Trigger {
  Inkscape::Modifiers::NO_CATEGORY , Inkscape::Modifiers::CANVAS , Inkscape::Modifiers::SELECT , Inkscape::Modifiers::MOVE ,
  Inkscape::Modifiers::TRANSFORM , Inkscape::Modifiers::NODE_TOOL , Inkscape::Modifiers::BOOLEANS_TOOL , Inkscape::Modifiers::CLICK = 32 ,
  Inkscape::Modifiers::DRAG = 64 , Inkscape::Modifiers::SCROLL = 128
}
 
enum class  Inkscape::Modifiers::Type {
  Inkscape::Modifiers::CANVAS_PAN_Y , Inkscape::Modifiers::CANVAS_PAN_X , Inkscape::Modifiers::CANVAS_ZOOM , Inkscape::Modifiers::CANVAS_ROTATE ,
  Inkscape::Modifiers::SELECT_ADD_TO , Inkscape::Modifiers::SELECT_IN_GROUPS , Inkscape::Modifiers::SELECT_TOUCH_PATH , Inkscape::Modifiers::SELECT_ALWAYS_BOX ,
  Inkscape::Modifiers::SELECT_REMOVE_FROM , Inkscape::Modifiers::SELECT_FORCE_DRAG , Inkscape::Modifiers::SELECT_CYCLE , Inkscape::Modifiers::MOVE_CONFINE ,
  Inkscape::Modifiers::MOVE_INCREMENT , Inkscape::Modifiers::MOVE_SNAPPING , Inkscape::Modifiers::TRANS_CONFINE , Inkscape::Modifiers::TRANS_INCREMENT ,
  Inkscape::Modifiers::TRANS_OFF_CENTER , Inkscape::Modifiers::TRANS_SNAPPING , Inkscape::Modifiers::BOOL_SHIFT , Inkscape::Modifiers::NODE_GROW_LINEAR ,
  Inkscape::Modifiers::NODE_INVERT , Inkscape::Modifiers::NODE_REMOVE_FROM , Inkscape::Modifiers::NODE_GROW_SPATIAL
}
 This anonymous enum is used to provide a list of the Shifts. More...
 

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.