Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Public Member Functions | Static Protected Attributes
Xfc::Gtk::Viewport Class Reference

A GtkViewport C++ wrapper class. More...

#include <xfc/gtk/viewport.hh>

Inheritance diagram for Xfc::Gtk::Viewport:
Xfc::Gtk::Bin Xfc::Gtk::Container Xfc::Gtk::Widget Xfc::Gtk::Object Xfc::Atk::Implementor Xfc::G::Object Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::Trackable Xfc::Trackable

List of all members.

Public Member Functions

Static Protected Attributes

Constructors


Detailed Description

A GtkViewport C++ wrapper class.

The Viewport widget provides you with the capability to see part of a child widget and scroll the contents of the child. It is normally not accessed directly but used by other widgets, particularly the ScrollWindow, for child widgets that do not have their own scrolling capability.

See also: the Viewport and ScrolledWindow HOWTOs.


Constructor & Destructor Documentation

Xfc::Gtk::Viewport::Viewport ( GtkViewport *  viewport,
bool  owns_reference = false 
) [explicit, protected]

Construct a new Viewport from an existing GtkViewport.

Parameters:
viewportA pointer to a GtkViewport.
owns_referenceSet false if the initial reference count is floating, set true if it's not.

The viewport can be a newly created GtkViewport or an existing GtkViewport (see G::Object::Object).

Xfc::Gtk::Viewport::Viewport ( Adjustment hadjustment,
Adjustment vadjustment 
)

Construct a new viewport with the given adjustments.

Parameters:
hadjustmentThe horizontal adjustment.
vadjustmentThe vertical adjustment.

Member Function Documentation

Returns the horizontal adjustment of the viewport.

If the adjustment has not been set a default adjustment with all values set to zero will be returned.

Returns the vertical adjustment of the viewport.

If the adjustment has not been set a default adjustment with all values set to zero will be returned.

Sets the horizontal adjustment of the viewport.

Parameters:
adjustmentAn Adjustment.

Sets the shadow type of the viewport.

Parameters:
typeThe new shadow type.

Sets the vertical adjustment of the viewport.

Parameters:
adjustmentAn Adjustment.

Connect to the set_scroll_adjustments_signal; emitted when a viewport is added to a scrolling aware parent.


Member Data Documentation

Set scroll adjustments signal (see signal_set_scroll_adjustments()).

Calls a slot with the signature:

< void function(Adjustment *hadjustment, Adjustment *vadjustment);
< // hadjustment: The horizontal adjustment.
< // vadjustment: The vertical adjustment.
<

The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC