Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Window Movement  (Read 5939 times)

0 Members and 1 Guest are viewing this topic.

Mr_Gnome

  • Newbie
  • *
  • Posts: 6
    • View Profile
Window Movement
« 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?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Window Movement
« Reply #1 on: November 23, 2010, 07:46:59 pm »
In fact, as you can read it here, 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.
SFML / OS X developer

Xorlium

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
Window Movement
« Reply #2 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

Lynix

  • Sr. Member
  • ****
  • Posts: 403
    • View Profile
Window Movement
« Reply #3 on: November 23, 2010, 08:16:14 pm »
QT = QuickTime
Qt = http://qt.nokia.com/products/

"QT" is an acronym, "Qt" is not.

Xorlium

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
Window Movement
« Reply #4 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 :)

Silvah

  • Guest
Window Movement
« Reply #5 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.

Mr_Gnome

  • Newbie
  • *
  • Posts: 6
    • View Profile
Window Movement
« Reply #6 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?

nulloid

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Window Movement
« Reply #7 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?

Mr_Gnome

  • Newbie
  • *
  • Posts: 6
    • View Profile
Window Movement
« Reply #8 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.

Xorlium

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
Window Movement
« Reply #9 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

 

anything