View previous topic :: View next topic |
Author |
Message |
atomen
Joined: 09 Jun 2011 Posts: 3
|
Posted: Sat Jun 11, 2011 10:53 am Post subject: Gtk+ Corresponding Function |
|
|
Hi!
I've searched through the documentation but I can't find how to access this function,
or equal functions, so I can convert it: (this is from gtkMM)
Code: | #include <gdk/gdkwin32.h>
HWND hwnd_from_window(Gtk::Window& window)
{
return reinterpret_cast<HWND>(
GDK_WINDOW_HWND(window.get_window()->gobj()));
} | So it's pretty simple, how do I call it/where is it located? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sun Jun 12, 2011 8:05 am Post subject: |
|
|
That function is currently not implemented in GtkD.
And it might not be as simple as it look s since GDK_WINDOW_HWND is a macro that casts the GdkWindow to the Windows specific implementation and gets the handle from it.
And the Windows specific struct is also not implemented in GtkD. |
|
Back to top |
|
|
atomen
Joined: 09 Jun 2011 Posts: 3
|
Posted: Sun Jun 12, 2011 12:35 pm Post subject: |
|
|
I see. A bit depressing, but I'll just use Cairo Surface instead then.
Thanks for the answer! |
|
Back to top |
|
|
|