Re: Pango::Layout Text
- From: Paul Davis <paul linuxaudiosystems com>
- To: "Rose Cumming" <rose_alice_cumming hotmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Pango::Layout Text
- Date: Sat, 30 Apr 2005 11:56:12 -0400
>I have a few Pango::Layout showing texts on a drawing area and I'd like to
>allow the user to click on a specific Pango::Layout text on the drawing
>area.
>
>Do I just call get_size for the rectangle of the text and compute whether
>the mouse click intersects this rectangle?
>
>What is the correct way to do it?
>
>I know on the GnomeCanvas, an event handler can be connected to a text item.
>I'd like to know how to achieve the same thing on a drawing area.
now you begin to understand why the canvas is such a cool widget.
you can only do this in a drawing area by tracking where you think the
text is, and seeing if button events are within those areas. in other
words, use the canvas.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]