Re: Gtk::Image location
- From: José Alburquerque <jaalburquerque cox net>
- To: pxjdream <xjpeng buffalo gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Gtk::Image location
- Date: Fri, 17 Jul 2009 18:16:33 -0400
On Fri, 2009-07-17 at 10:15 -0700, pxjdream wrote:
> Hi All,
>
> I have placed a Gtk::Image widget in a Gtk::ScrollWindow widget and can
> display a image.
>
> Now my question is there any way to get the origin (x, y) of my Gtk::Image
> respect to Gtk::ScrollWindow.
I wonder why you would want to get the origin of the image with respect
to the Gtk::ScrolledWindow. Maybe you're planning to react to some
mouse event on the image. In that case, maybe you can place the image
in a Gtk::EventBox and use the signals of the event box. If not,
getting the Gtk::ScrolledWindow border with
Gtk::Container::get_border_width() could be what you're looking for.
--
José Alburquerque
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]