elative to the screen origin.
If you're not in a handler, you still have gdk_window_get_pointer() and
gdk_display_get_pointer(). See the Gdk reference manual for more infos
(sections 'Event structures', 'Windows' and 'Display').
--
Cédric Lucantis
_
th
> cairo?
There's also a complete example in the tutorial (scribble).
Cairo is a vector graphics lib, which is very different from bitmap graphics.
I never used it, so I don't know if it's easier, it's just another world and
the choice depends on what you want to do.
--
Pools' and 'Asynchronous Queues' under 'Glib Core
Application Support'. If you want to know more, there's a tutorial here
(about pthread but with a general introduction) :
http://www.llnl.gov/computing/tutorials/pthreads
--
Cédric Lucantis
ng an 'update_area' for
each window and thus only redrawing the dirty part of it when nothing else
has to be done (this is managed by an idle event). But even if you get only
one call to expose, shouldn't it be enough to redraw it ?
Finally, note that I'm definitely not a gtk wi
idget_queue_draw(widget);
}
leave_button_callback()
{
/* same with GTK_STATE_NORMAL */
}
expose_button_callback()
{
gdk_draw_rectangle(widget->window, widget->state->fg_gc[widget->state],
...)
}
--
Cédric Lucantis
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
thin its
> allocation rectangle.
>
> I want the button and the label to be centered in the allocation rectangle.
>
> The machines on which my application will be deployed are running Gtk
> version 2.0.
>
> Thanks in advance for any help.
You need a GtkAlignment widget, d
or me, but I'm only using glib, not gtk so I can't help for it. Anyway
you'll probably prefer to use the prebuild packages available on gtk.org
(follow the Projects/GTK+ for Win32 link)
--
Cédric Lucantis
___
gtk-app-devel-list mailin
e ?
>
>Any help would be much appreciated !
The GtkAspectFrame widget seems to be what you are looking for. You
can probably use it or at least have a look at its source code. It
looks like you already read it, but just in case there is a chapter
'Creating your own widget' i
t absolutely correct because the 8 bit value 0xff (255)
will become 0xff00 (and should be 0x), but this won't probably be
noticiable (because most video cards are limited to 8 bits channels,
and anyway most human people wouldn't see the difference:). If you
w