PHP-GTK
Saturday, April 19, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkWindow::set_default_icon
GtkWindow::set_destroy_with_parentnext

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

GtkWindow::set_default_size

Sets the default size of the window to width pixels wide by height pixels high. Setting either parameter to -1 will use the "natural" size for the window. The "natural" size is the size of the window after its child widget has been added and shown and before any other sizing has been done.

Using set_default_size() simply sets the size of the window. It does not set any restrictions on whether or not the user can resize the window later. This method acts as if the user had resized the window. Unlike set_size_request() , the user may shrink the window below the height and width passed to this function.

This method respects any geometry hints that have been set for the window. If the height and width given do not match the geomety hints, the window will be clamped to the nearest acceptable dimensions.

Windows may not have a size smaller than 1 pixel wide by 1 pixel high. If 0 is passed for either argument, the value will be changed to 1.

See also: get_default_size() set_size_request()


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


previousGtkWindow::set_default_icon
GtkWindow::set_destroy_with_parentnext

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