Sets our main struct and passes it to the parent class
Creates a new GtkViewport with the given adjustments.
Set the scroll adjustments for the viewport. Usually scrolled containers like GtkScrolledWindow will emit this signal to connect two instances of GtkScrollbar to the scroll directions of the GtkViewport. See Also GtkScrolledWindow, GtkAdjustment
Gets the bin window of the GtkViewport. Since 2.20
Returns the horizontal adjustment of the viewport.
Gets the shadow type of the GtkViewport. See gtk_viewport_set_shadow_type().
the main Gtk struct as a void*
Returns the vertical adjustment of the viewport.
Gets the view window of the GtkViewport. Since 2.22
Sets the horizontal adjustment of the viewport.
Sets the shadow type of the viewport.
Sets the vertical adjustment of the viewport.
the main Gtk struct
the main Gtk struct
the main Gtk struct as a void*
Gets the child of the GtkBin, or NULL if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.
Description 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. 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.