Good morning
I had the same problem many days ago. I hope this will solve your problem.
add(*manage(new Gtk::Image(filename)));
show_all();
bye
Kathrin
Am Dienstag, 13. Dezember 2005 00:06 schrieb Matt Hull:
I am new to gtk and trying to draw a bitmap to the screen. the bitmap is
about 200
Hi together,
I (only) want to draw a red text Example or whatever in the middle of
a GtkDrawable.
First I looked at gdk_draw_text.
I did not find out how to draw a text in a specific color.
And the other problem is that the documentation says that it is deprecated.
I should use Pango rendering.
2005/12/13, Fernando ApesteguĂa [EMAIL PROTECTED]:
Did you try to make this?
#include glib.h
And then link with
-lglib-2.0 (link against your glib version)
You should use `pkg-config --cflags glib-2.0` to get the list of
include flags and `pkg-config --libs glib-2.0` to get the list of
Dear Matt,
See gtk_image_set_from_pixbuf() and GdkPixbuf if you want to load the
bitmap from a file.
See gtk_image_set_from_pixmap() and gdk_draw_rgb_image() if you want to
get the image data from some RGB buffer. You also need to create a
pixmap with gdk_pixmap_new(). GdkPixmaps are
I've got a callback function where I want to change the background of
the entire window. I can set the color on startup using:
style = gtk_widget_get_style(topWindow);
style-bg[0] = c;
style-bg[1] = c;
style-bg[2] = c;
style-bg[3] = c;
style-bg[4] = c;
gtk_widget_set_style(topWindow, style);
On Mon, 2005-12-12 at 14:55 +0200, Tor Lillqvist wrote:
Daryl Lee writes:
I'm trying to use Cygwin to build a native Windows app using Gtk+.
First, the symptoms. When I run the executable froma DOS prompt, I get
an error alert: This application as failed to start because
Hi -
I'm using the GTK+ 2.6.4 that came with Suse 9.3. I'm coding in C++, but using
the raw GTK+ C
libraries.
I'm trying to pass a pointer to one of my C++ classes into a callback, so that
I can call a method
on that class. The code looks like this:
1. less hbaview.h =
--
Hi!
You can use
context = gdk_pango_context_get ();
layout = pango_layout_new (context);
pango_layout_set_alignment (layout, PANGO_ALIGN_LEFT);
pango_layout_set_markup (layout, str, -1);
gdk_draw_layout (drawable, gc, x, y, layout);
where str is pango markup text for example
span