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

Author Topic: What exactly do I need to pass as a WindowHandle on linux?  (Read 2451 times)

0 Members and 1 Guest are viewing this topic.

netrick

  • Full Member
  • ***
  • Posts: 174
    • View Profile
What exactly do I need to pass as a WindowHandle on linux?
« on: February 09, 2013, 01:48:01 pm »
There is a constructor for RenderWindow which takes existing window handle. On windows it's hwnd, but what is it on linux? I can't find in the doc what is the typedef.

I ask about it because there is wxwidget's function http://docs.wxwidgets.org/trunk/classwx_window.html#a185e6cd7065367b552748cb722651b27 which returns handle (HWND on windows and GtkWidget for linux). However I can't just pass that gtkwidget to RenderWindow().

What do I need to pass to the constructor and how can I get it from that GtkWidget? I believe X11 window handle is unsigned integer but I'm not sure.

Thanks


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: What exactly do I need to pass as a WindowHandle on linux?
« Reply #1 on: February 09, 2013, 03:11:38 pm »
The code that integrates SFML into wxWidgets already exists (in 1.6 tutorials and examples), just have a look ;)
Laurent Gomila - SFML developer