Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
What exactly do I need to pass as a WindowHandle on linux?
Print
Pages: [
1
]
Author
Topic: What exactly do I need to pass as a WindowHandle on linux? (Read 2541 times)
0 Members and 1 Guest are viewing this topic.
netrick
Full Member
Posts: 174
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
What exactly do I need to pass as a WindowHandle on linux?