Constructor

GtkViewportnew

Declaration [src]

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

Description [src]

Creates a new GtkViewport with the given adjustments, or with default adjustments if none are given.

Parameters

hadjustment

Type: GtkAdjustment

Horizontal adjustment.

The argument can be NULL.
The data is owned by the caller of the function.
vadjustment

Type: GtkAdjustment

Vertical adjustment.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: GtkWidget

A new GtkViewport.

The data is owned by the called function.