PHP-GTK
Sunday, August 31, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkHRuler
GtkHScalenext

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

GtkHRuler Constructor

Creates a new horizontal ruler.

Example 71. Creating a horizontal ruler

<?php
$ruler = new GtkHRuler();
$lower = 0;
$upper = 300;
$position = 200;
$max_size = 300;
$ruler->set_range($lower, $upper, $position, $max_size);;
 
//standard stuff for window creation
$wnd = new GtkWindow();
$wnd->set_border_width(5);
$wnd->connect_simple('destroy', array('Gtk', 'main_quit'));
$wnd->add($ruler);
$wnd->show_all();
Gtk::main();
?>

User Contributed Notes
gtk.gtkhruler.constructor.php
add a note about notes
There are no user contributed notes for this page.


previousGtkHRuler
GtkHScalenext

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