Drag & Drop GUI Library

Am wondering if anyone know a REAL-TIME drag & drop GUI SDL library? Not windows
event-based driven, but real-time driven. It’s for a game so there’s going to be
things updating while a drag is happening, etc.

Am wondering if anyone know a REAL-TIME drag & drop GUI SDL library? Not windows
event-based driven, but real-time driven. It’s for a game so there’s going to be
things updating while a drag is happening, etc.

Events are how programs get information on what is happening.

What’s referred to as “real-time”, is actually “sufficiently low
latency”, and not quite “zero latency”. In the case of a game, you
only need to process events fast and render the effected result within
a refresh cycle of your monitor, anything faster is just unnecessary.

What you need is to keep some state on whether a drag is going on or
not, what is being dragged, and so on. When a mouse motion event comes
in, and you have an object currently being dragged, you go an move it,
and so on…On Tue, Feb 17, 2009 at 11:34 AM, Andrew Wan wrote:


http://pphaneuf.livejournal.com/

What about a ‘drop’ callback? Is that real-time enough? I don’t know about
any lib that does it, but I’m working on something right now that will do
this. Can you provide any more details of what you want? Will you drag &
drop text, widgets, images, or what?

Jonny DOn Tue, Feb 17, 2009 at 12:10 PM, Pierre Phaneuf wrote:

On Tue, Feb 17, 2009 at 11:34 AM, Andrew Wan wrote:

Am wondering if anyone know a REAL-TIME drag & drop GUI SDL library? Not
windows
event-based driven, but real-time driven. It’s for a game so there’s
going to be
things updating while a drag is happening, etc.

Events are how programs get information on what is happening.

What’s referred to as “real-time”, is actually “sufficiently low
latency”, and not quite “zero latency”. In the case of a game, you
only need to process events fast and render the effected result within
a refresh cycle of your monitor, anything faster is just unnecessary.

What you need is to keep some state on whether a drag is going on or
not, what is being dragged, and so on. When a mouse motion event comes
in, and you have an object currently being dragged, you go an move it,
and so on…


http://pphaneuf.livejournal.com/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Jonathan Dearborn <grimfang4 gmail.com> writes:

What about a ‘drop’ callback?? Is that real-time enough?? I don’t know about
any lib that does it, but I’m working on something right now that will do this.?
Can you provide any more details of what you want?? Will you drag & drop text,
widgets, images, or what?Jonny D

I just came across Drac card library, and playing about with it. I think the
sample game is real-time drag & drop which is good.

now for some networking server/client stuff…

Am wanting to create a multiplayer solitaire over tcp/ip… where the 4 ace base
slots is now 4xn (where n is the number of players). eg. 4 players = 4x4 ace
base slots. All players are free to fill up the 4x4 ace base slots according to
the solitaire rules… hence why I needed to drag an image… whilst stuff is
happening in background in real-time (from other players drops).

Anyone got http://www.libsdl.org/projects/GUIlib and/or SDL_net chat sample
working under Windows? (eg. MSVC)

Am wondering if anyone know a REAL-TIME drag & drop GUI SDL library? Not windows
event-based driven, but real-time driven. It’s for a game so there’s going to be
things updating while a drag is happening, etc.

Events are how programs get information on what is happening.

What’s referred to as “real-time”, is actually “sufficiently low
latency”, and not quite “zero latency”.

I believe he just wants to avoid using MS OLE APIs which I have also
experience can introduce little hiccups (which is fine for dragging
and dropping files, but not anything else.)

If that’s the case Andrew, it’s lucky anyone guessed what you meant at
all, since using OLE drag and drop is extremely inappropriate for what
you want to do!On Tue, Feb 17, 2009 at 12:10 PM, Pierre Phaneuf wrote:

On Tue, Feb 17, 2009 at 11:34 AM, Andrew Wan wrote:

On Tue, Feb 17, 2009 at 11:34 AM, Andrew Wan wrote:

Am wondering if anyone know a REAL-TIME drag & drop GUI SDL library?

If you are only looking for drag and drop functionality, and you don’t
expect a game programming library to provide you with anything else,
consider writing it on your own! You just have to listen for mouse
button down event, and remember if the user is “dragging” an object,
and if so which object. If they are dragging something, you listen for
mouse motion events and mouse button up events so that your program
can “drag” the object around, and ultimately “drop” it!

Sounds like a great first or second SDL project to me!


http://codebad.com/