|
发表于 2003-10-23 09:04:55
|
显示全部楼层
- gtk_widget_set_usize ()
- ----------------------------------------------
- void gtk_widget_set_usize ([color=blue]GtkWidget[/color] *widget,
- gint width,
- gint height);
- ----------------------------------------------
- Warning
- gtk_widget_set_usize is deprecated and should not be used in newly-written code.
- This function is deprecated; use [color=blue]gtk_widget_set_size_request[/color]() instead.
- 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, [color=blue]gtk_window_set_default_size[/color]() 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, [color=blue]gtk_window_set_geometry_hints[/color]()
- can be a useful function as well.
- 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.
- widget?: a [color=blue]GtkWidget[/color]
- width? : minimum width, or -1 to unset
- height?: minimum height, or -1 to unset
复制代码 |
|