PHP-GTK
Friday, July 25, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkVButtonBox::set_spacing_default
GtkViewport Constructornext

Last updated: Sun, 12 May 2013
view this page in English

GtkViewport

A container for adding scrolling capabilities to widgets without native scrolling support.

Object Hierarchy

Description

A GtkViewport provides scrolling capabilities to widgets that don't support native scrolling. E.g., a GtkLabel or a GtkVBox could be packed into a GtkScrolledWindow, but since the classes don't support the "set-scroll-adjustments" signal, using the scrollbars wouldn't work.

A viewport also takes care to show only a certain part of the widget, hiding the rest of it that is not in the visible area.

Constructors

GtkViewport ([GtkAdjustment hadjustment = null [, GtkAdjustment vadjustment = null]]);

-- Creates a new viewport.

Methods

get_hadjustment()
  Returns the horizontal adjustment.
get_shadow_type()
  Returns the shadow type.
get_vadjustment()
  Returns the vertical adjustment.
set_hadjustment()
  Sets the horizontal adjustment.
set_shadow_type()
  Sets the shadow type.
set_vadjustment()
  Sets the vertical adjustment.

Properties

Use get_property and set_property methods to access these.

hadjustment:
  Horizontal adjustment.
shadow-type:
  Shadow type.
vadjustment:
  Vertical adjustment

Signals

"set-scroll-adjustments"
  One or both adjustments are changed.


User Contributed Notes
gtk.gtkviewport.php
add a note about notes
There are no user contributed notes for this page.


previousGtkVButtonBox::set_spacing_default
GtkViewport Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:51:01 2013 CEST