PHP-GTK
Wednesday, July 23, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkTreeStore::iter_depth
GtkTreeStore::move_afternext

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

GtkTreeStore::iter_is_valid

Returns true if the given iterator points to a row that exists in the model.

An iterator can get unvalid by removing it (or one of its parents) from the tree.

Example 136. Checking an iter's validity by using iter_is_valid()

<?php
//Create the store
$store = new GtkTreeStore(Gtk::TYPE_STRING);
 
//add a row and save the iter into $row
$row = $store->append(null, array('row'));
//that should return true, as the row exists
var_dump($store->iter_is_valid($row));
 
//remove that row from the store
$store->remove($row);
//shouldn't be valid any more
var_dump($store->iter_is_valid($row));
?>

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


previousGtkTreeStore::iter_depth
GtkTreeStore::move_afternext

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:51:01 2013 CEST