1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkViewport
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2003-06-23 22:59:01 +00:00
|
|
|
An adapter which makes widgets scrollable
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2009-01-05 04:19:48 +00:00
|
|
|
The #GtkViewport widget acts as an adaptor class, implementing
|
|
|
|
scrollability for child widgets that lack their own scrolling
|
|
|
|
capabilities. Use #GtkViewport to scroll child widgets such as
|
|
|
|
#GtkTable, #GtkBox, and so on.
|
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2009-01-05 04:19:48 +00:00
|
|
|
<para>
|
|
|
|
If a widget has native scrolling abilities, such as #GtkTextView,
|
|
|
|
#GtkTreeView or #GtkIconview, it can be added to a #GtkScrolledWindow
|
|
|
|
with gtk_container_add(). If a widget does not, you must first add the
|
|
|
|
widget to a #GtkViewport, then add the viewport to the scrolled window.
|
|
|
|
The convenience function gtk_scrolled_window_add_with_viewport() does
|
|
|
|
exactly this, so you can ignore the presence of the viewport.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2009-01-05 04:19:48 +00:00
|
|
|
#GtkScrolledWindow, #GtkAdjustment
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### STRUCT GtkViewport ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### SIGNAL GtkViewport::set-scroll-adjustments ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
@arg2:
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkViewport:hadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkViewport:shadow-type ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkViewport:vadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gtk_viewport_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@hadjustment:
|
|
|
|
@vadjustment:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_viewport_get_hadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_viewport_get_vadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_viewport_set_hadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport:
|
|
|
|
@adjustment:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_viewport_set_vadjustment ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport:
|
|
|
|
@adjustment:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_viewport_set_shadow_type ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport:
|
|
|
|
@type:
|
|
|
|
|
|
|
|
|
2001-09-08 06:24:46 +00:00
|
|
|
<!-- ##### FUNCTION gtk_viewport_get_shadow_type ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2009-11-02 00:23:05 +00:00
|
|
|
<!-- ##### FUNCTION gtk_viewport_get_bin_window ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@viewport:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|