Libraries:Gtk:Gtk:Viewport
Types
T
Inherits from:The T widget acts as an adaptor class, implementing scrollability for child widgets that lack their own scrolling capabilities. Use T to scroll child widgets such as Gtk.Gtk.Table.T, Gtk.Gtk.Box.T, and so on.
If a widget has native scrolling abilities, such as Gtk.Gtk.TextView.T, Gtk.Gtk.TreeView.T or GtkIconview, it can be added to a Gtk.Gtk.ScrolledWindow.T with Gtk.Gtk.Container.Add. If a widget does not, you must first add the widget to a T, then add the viewport to the scrolled window. The convenience function Gtk.Gtk.ScrolledWindow.AddWithViewport does exactly this, so you can ignore the presence of the viewport.
Constants
Nil : T
Functions
GetType() : Gtk.GObject.Type.T
New(hadjustment @ Gtk.Gtk.Adjustment.T, vadjustment @ Gtk.Gtk.Adjustment.T) : Gtk.Gtk.Viewport.T
Creates a new T with the given adjustments.
hadjustment | horizontal adjustment. |
vadjustment | vertical adjustment. |
Returns | a new T. |
Methods
:GetBinWindow(self @ T) : Gtk.Gdk.Window.T
:GetHadjustment(self @ T) : Gtk.Gtk.Adjustment.T
Returns the horizontal adjustment of the viewport.
viewport | a T. |
Returns | the horizontal adjustment of viewport. [transfer none] |
:GetShadowType(self @ T) : Gtk.Gtk.ShadowType.T
:GetVadjustment(self @ T) : Gtk.Gtk.Adjustment.T
Returns the vertical adjustment of the viewport.
viewport | a T. |
Returns | the vertical adjustment of viewport. [transfer none] |
:GetViewWindow(self @ T) : Gtk.Gdk.Window.T
:SetHadjustment(self @ T, adjustment @ Gtk.Gtk.Adjustment.T) : Std.Object.T
Sets the horizontal adjustment of the viewport.
viewport | a T. |
adjustment | a Gtk.Gtk.Adjustment.T. [allow-none] |
:SetShadowType(self @ T, type @ Gtk.Gtk.ShadowType.T) : Std.Object.T
:SetVadjustment(self @ T, adjustment @ Gtk.Gtk.Adjustment.T) : Std.Object.T
Sets the vertical adjustment of the viewport.
viewport | a T. |
adjustment | a Gtk.Gtk.Adjustment.T. [allow-none] |