Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is rubber-banding available? #2642

Closed
newagelightbulb opened this issue Jun 27, 2019 · 4 comments
Closed

Is rubber-banding available? #2642

newagelightbulb opened this issue Jun 27, 2019 · 4 comments

Comments

@newagelightbulb
Copy link

Version/Branch of Dear ImGui:

Version: 1.60 WIP
Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: Custom
Operating System: Windows

My Issue/Question:

Is rubber-banding functionality part of ImGui, or is there an example? Looking through the code and searching on the web doesn't find anything (although it is referred to by different names) so I figured it was best to ask before trying to dive into it manually. Thanks.

@ocornut
Copy link
Owner

ocornut commented Jun 27, 2019

Maybe it would help if you clarified what you meant by rubber-banding.. especially as you pointed out it can be referred to by different names.

@newagelightbulb
Copy link
Author

Sorry: I mean clicking and holding down the mouse puts you into a mode where you can drag a rectangle around UI elements and group-select them.

@ocornut
Copy link
Owner

ocornut commented Jun 27, 2019

So I guess I would call it ~"drag select" "rectangle select" , are we thinking about the same thing?

I suppose it would come naturally after finishing the new range/multi-select system (#1861), which works but I'm really unhappy with the way the API works.. I suppose when I am done with new tables I would naturally tackle the range/multi-select system and then maybe dragging to select would come after.

It would imply disabling movement on clicking on windows void (already exposed as io.ConfigWindowsMoveFromTitleBarOnly but would need to be made default).

I don't really have an ETA neither a recommendation to how this would work.

(PS: If you want to look at it I'd suggest first updating as 1.60 is old, and checking out the range-select branch)

@newagelightbulb
Copy link
Author

Sounds good, I'll upgrade and take a look. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants