FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gtk+ Corresponding Function

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
atomen



Joined: 09 Jun 2011
Posts: 3

PostPosted: Sat Jun 11, 2011 10:53 am    Post subject: Gtk+ Corresponding Function Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sun Jun 12, 2011 8:05 am    Post subject: Reply with quote

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
View user's profile Send private message
atomen



Joined: 09 Jun 2011
Posts: 3

PostPosted: Sun Jun 12, 2011 12:35 pm    Post subject: Reply with quote

I see. A bit depressing, but I'll just use Cairo Surface instead then.
Thanks for the answer!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group