PHP-GTK
Tuesday, October 21, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkColorSelection
GtkColorSelection::get_colornext

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

GtkColorSelection Constructor

Creates a new GtkColorSelection widget used to select a color.

Example 47. GtkColorSelection embedded in a window

<?php
//Create the window in which the colorselector will be placed
$window = new GtkWindow();
//Set the window title
$window->set_title('GtkColorSelection demo');
//Quit the gtk loop when the window is being destroyed
$window->connect_simple('destroy', array('gtk', 'main_quit'));
 
//our color selection widget
$colorsel = new GtkColorSelection();
 
//An extra button to be placed in the window
$btnClose = new GtkButton('_Quit');
$btnClose->connect_simple('clicked', array($window, 'destroy'));
 
//color selector and button will be placed there
$vbox = new GtkVBox();
$vbox->pack_start($colorsel);
$vbox->pack_start($btnClose, false);
 
$window->add($vbox);
$window->show_all();
 
Gtk::main();
?>

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


previousGtkColorSelection
GtkColorSelection::get_colornext

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