PHP-GTK
Friday, October 24, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkLabel::get_layout
GtkLabel::get_line_wrapnext

Last updated: Sun, 12 May 2013
view this page in English

GtkLabel::get_layout_offsets

Obtains the coordinates where the label will draw the PangoLayout representing the text in the label; useful to convert mouse events into coordinates inside the PangoLayout, e.g. to take some action if some part of the label is clicked.

Of course you will need to create a GtkEventBox to receive the events, and pack the label inside it, since labels are a Gtk::NO_WINDOW widget. Remember when using the PangoLayout functions you need to convert to and from pixels using Pango::PIXELS or PANGO_SCALE.


User Contributed Notes
gtk.gtklabel.method.get_layout_offsets.php
add a note about notes
There are no user contributed notes for this page.


previousGtkLabel::get_layout
GtkLabel::get_line_wrapnext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:59 2013 CEST