Constructor

Gtk.Viewport.new

Declaration [src]

GtkWidget*
gtk_viewport_new (
  GtkAdjustment* hadjustment,
  GtkAdjustment* vadjustment
)

Description [src]

Creates a new GtkViewport.

The new viewport uses the given adjustments, or default adjustments if none are given.

Parameters

hadjustment GtkAdjustment
 

horizontal adjustment

 Can be NULL
 The data is owned by the caller of the function
vadjustment GtkAdjustment
 

vertical adjustment

 Can be NULL
 The data is owned by the caller of the function

Return value

Returns: GtkWidget

a new GtkViewport

The data is owned by the called function