FLTK logo

[fltk.coredev] Add visual feedback to Drag'n Drop operation

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Add visual feedback to Drag'n Drop operation Manolo Sep 12, 2020  
 
I'd like to suggest to add a small new feature to FLTK 1.4, the possibility
to use an Fl_RGB_Image as visual feedback for the drag-n-drop operation.
The intention is to produce an image that evokes what is being dragged.

API:
Fl::dnd(Fl_RGB_Image *rgb = NULL)
which extends the previous API Fl::dnd(void)

As a demo, I have modified test/editor.cxx to call this new API
after drawing in an image the start of the text being dragged.

That's all in attached "dnd.patch".

This would solve the request expressed in "Making a draggable item" of fltk.general.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/4333ee23-de06-4651-b99f-f6f222c1968an%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.