SFML community forums

Help => General => Topic started by: Mr_Gnome on November 23, 2010, 09:26:27 am

Title: Window Movement
Post by: Mr_Gnome on November 23, 2010, 09:26:27 am
I'm thinking about making a game that would involve the player to move the window.

Is it possible with SFML to detect how much the window was moved by or in what direction the Window moved? If so how would I do this? If it isn't possible with SFML, what if I embedded it into QT or wxWidgets?
Title: Window Movement
Post by: Hiura on November 23, 2010, 07:46:59 pm
In fact, as you can read it here (http://www.sfml-dev.org/documentation/1.6/classsf_1_1Event.htm), SFML won't notice you with an event when the window is moved.

So you have to use Qt (BTW, QT stands for quicktime) if it has such feature or directly by creating your own OS-specific window and give the handle to SFML.
Title: Window Movement
Post by: Xorlium on November 23, 2010, 08:13:49 pm
No it doesn't! QT is this: http://qt.nokia.com/products/

QuickTime is this: http://www.apple.com/quicktime/

See? Different things. QT is a very good window manager. QuickTime is one of the worst video players there are :)

Xorlium
Title: Window Movement
Post by: Lynix on November 23, 2010, 08:16:14 pm
QT = QuickTime
Qt = http://qt.nokia.com/products/

"QT" is an acronym, "Qt" is not.
Title: Window Movement
Post by: Xorlium on November 23, 2010, 08:30:19 pm
Ah. Okay then. But I think Hiura was refering to the window manager. I don't think QuickTime has the feature Mr_Gnome was asking for :)
Title: Window Movement
Post by: Silvah on November 23, 2010, 09:34:56 pm
Quote from: "Xorlium"
But I think Hiura was refering to the window manager.
Qt is a cross-platform application framework, not a window manager (http://en.wikipedia.org/wiki/Window_manager).
Title: Window Movement
Post by: Mr_Gnome on November 23, 2010, 10:41:08 pm
Ah, sorry about the typo. It would be Qt, but anyways. Is there any way that I could do this? The game would be directed towards GNU/Linux OS's, so I'm looking for any solution that doesn't have Win32 or anything. Would it even be possible with X-Window?
Title: Window Movement
Post by: nulloid on November 24, 2010, 07:17:39 am
Is it really important to get the window movement, or is it enough to create a "window" (either a simple box with it's logic, or using one of the guis made for sfml) in sfml, and then watch it's movement?
Title: Window Movement
Post by: Mr_Gnome on November 24, 2010, 09:07:38 am
Well, if it's not worth the effort to get the windows movement, then it wouldn't be important because I'd do something else, but for this game I'd like to make movement of an object within the game be determined by the movement of the window.
Title: Window Movement
Post by: Xorlium on November 24, 2010, 07:21:41 pm
Oh, I see :)

I know what Qt is (I didn't know it was called Qt and not QT), but I didn't know what "window manager" meant. I thought window manager was what Qt or wxWidgets or GTK is (I fully expect someone to now say those three are completely different things, but I think they are the same thing :))

Xorlium