Expand description
Pointer gestures in an application, owned by egui-pop: the pointer
profile setting (input.pointer_profile: Document, darktable,
Photoshop, Lightroom Classic, Blender / node editors, Trackpad;
Document unless the application picks another with
AppBuilder::pointer_profile; a retired id such as adobe names
its successor, lightroom), the options
each profile gives its default for (input.slider_wheel,
input.image_double_click, input.dock_drag: what a plain drag of a
floating palette does, its default the application’s with
AppBuilder::dock_drag), the wheel device (input.wheel_device) and
speed (input.wheel_speed),
and the gesture commands (gesture.image.zoom…) the profile binds
to pointer chords in the keymap’s default layer
(docs/pointer-gestures.md).
The user’s changes are ordinary user-layer bindings, made in the
shortcuts editor: they stay over the profile. When the profile
changes and some exist, a dialog asks whether to keep them on the
new profile or drop them (pointer.overrides, { "value": "keep" | "drop" }).
The application publishes what is in force to its context
(egui_pop_core::pointer::set_map) after each change of the keymap
or of these settings: the canvases read it.
Constants§
- CATEGORY
- The category gesture commands are listed under.
- CMD_
OVERRIDES - Keeps or drops the user’s pointer gesture changes (
{ "value": "keep" | "drop" }): what the dialog shown on a change of profile runs. - FROM_
PROFILE - An option’s choice that follows the profile.
- SETTING_
DOCK_ DRAG - The setting: what a plain drag of a floating palette does
(
profile,modifier-docks,modifier-floats,dwell;DockDrag). - SETTING_
IMAGE_ DOUBLE_ CLICK - The setting: a double click on the image (
profile,fit,leave,nothing). - SETTING_
PROFILE - The setting: the pointer profile, by id.
- SETTING_
SLIDER_ WHEEL - The setting: the wheel over sliders (
profile,guarded,value). - SETTING_
WHEEL_ DEVICE - The setting: what sends wheel events (
auto,mouse,trackpad). - SETTING_
WHEEL_ SPEED - The setting: what a mouse wheel’s lines are multiplied by.
- SYSTEM_
WHEEL_ LINES - The lines a notch moves on a system nobody changed, which is 1 on the speed.
Functions§
- options
- The options in force: the settings’, or the profile’s where they
say
profile. - overrides
- The gesture commands whose bindings the user changed.
- profile
- The profile in force: the setting’s, else the default.
- profile_
id - The profile the setting asks for (its id; it may name no shipped profile; an alias is given as the profile it names).
- set_
dock_ drag - Asks for a palette drag mode (the
input.dock_dragsetting:profileor one ofDockDrag::CHOICES), said once aspop.settings.changedand in force from the next pass. - set_
profile - Asks for a profile (the setting), applied before the next frame. An
alias (
adobe) asks for the profile it names (lightroom). - wheel_
speed - The wheel speed in force: the setting’s, else 1.
- wheel_
speed_ of_ lines - The speed the system’s lines a notch seed:
SYSTEM_WHEEL_LINESare 1, and what the setting cannot hold is its nearest end.