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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kknd

Pages: [1]
1
Window / How to intergrate with GTK+ interface?
« on: November 01, 2010, 01:40:48 pm »
Ah yes, if you wanna draw directly on a window you must set the "app-paintable" property to true (or you can use a DrawingArea too, as exemplified by Shy Guy).

2
Window / How to intergrate with GTK+ interface?
« on: October 31, 2010, 10:53:45 pm »
You could put the Clear and Display code inside a "expose-event" window event and call gtk_widget_queue_draw on each frame.

3
Window / How to intergrate with GTK+ interface?
« on: October 31, 2010, 06:59:13 pm »
Humm,

For Windows, you must call GDK_WINDOW_HWND passing the GdkWindow as parameter.

For others you must call GDK_DRAWABLE_XID passing the GdkDrawable (such as a GdkWindow) as parameter. GDK_WINDOW_XID() passing the GdkWindow should work too.

4
Window / How to intergrate with GTK+ interface?
« on: October 31, 2010, 06:22:00 pm »
Quote from: "Laurent"
Quote
Do I need to get the window handle (for Windows HWND) from GTK+ to integrate?

Yes. Take a look at other sources (those for Qt, wxWidgets, ...) and try to do the same kind of stuff :lol:

The Qt example might be useful to you, there is some GTK related code in it because Qt is built on top of GTK on Linux.


Qt isn't built on top of GTK on Linux, the only relation is a theme engine for Qt that uses GTK+ drawing code.

I think you can easily integrate SFML with GTK+ using the RenderWindow constructor that accepts the window handle as parameter and by properly redrawing the window at each frame.

Pages: [1]