mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add gesture to ViewPanner and simplify a bit its API
This commit is contained in:
parent
9937915ad7
commit
a3b431b09d
16 changed files with 139 additions and 201 deletions
|
|
@ -103,9 +103,8 @@ class TextureRegionEditor : public AcceptDialog {
|
|||
bool request_center = false;
|
||||
|
||||
Ref<ViewPanner> panner;
|
||||
void _scroll_callback(Vector2 p_scroll_vec, bool p_alt);
|
||||
void _pan_callback(Vector2 p_scroll_vec);
|
||||
void _zoom_callback(Vector2 p_scroll_vec, Vector2 p_origin, bool p_alt);
|
||||
void _pan_callback(Vector2 p_scroll_vec, Ref<InputEvent> p_event);
|
||||
void _zoom_callback(float p_zoom_factor, Vector2 p_origin, Ref<InputEvent> p_event);
|
||||
|
||||
void _set_snap_mode(int p_mode);
|
||||
void _set_snap_off_x(float p_val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue