PHP-GTK
Saturday, July 26, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkEntry::get_layout
GtkEntry::get_max_lengthnext

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

GtkEntry::get_layout_offsets

Obtains the position of the PangoLayout used to render text in the entry, in widget coordinates. Useful if you want to line up the text in an entry with some other text, e.g. when using the entry to implement editable cells in a sheet widget.

Also useful to convert mouse events into coordinates inside the PangoLayout, e.g. to take some action if some part of the entry text is clicked.

Note that as the user scrolls around in the entry the offsets will change. Remember when using the PangoLayout functions you need to convert to and from pixels using PANGO_PIXELS() or PANGO_SCALE.

The returned value is array($x, $x).


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


previousGtkEntry::get_layout
GtkEntry::get_max_lengthnext

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:57 2013 CEST