Description Usage Arguments Details Author(s)
Sets the minimum size of a widget; that is, the widget's size
request will be width
by height
. You can use this function to
force a widget to be either larger or smaller than it is. The
strange "usize" name dates from the early days of GTK+, and derives
from X Window System terminology. In many cases,
gtkWindowSetDefaultSize
is a better choice for toplevel
windows than this function; setting the default size will still
allow users to shrink the window. Setting the usize will force them
to leave the window at least as large as the usize. When dealing
with window sizes, gtkWindowSetGeometryHints
can be a useful
function as well.
WARNING: gtk_widget_set_usize
has been deprecated since version 2.2 and should not be used in newly-written code. Use gtkWidgetSetSizeRequest
instead.
1 | gtkWidgetSetUsize(object, width, height)
|
|
a |
|
minimum width, or -1 to unset |
|
minimum height, or -1 to unset |
Note the inherent danger of setting any fixed size - themes, translations into other languages, different fonts, and user action can all change the appropriate size for a given widget. So, it's basically impossible to hardcode a size that will always be correct.
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.