GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gtk::Viewport Class Reference

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

#include <gfc/gtk/viewport.hh>

Inheritance diagram for GFC::Gtk::Viewport:

GFC::Gtk::Bin GFC::Gtk::Container GFC::Gtk::Widget GFC::Gtk::Object GFC::Atk::Implementor GFC::G::Object GFC::G::TypeInterface GFC::G::TypeInstance GFC::G::TypeInstance GFC::Trackable GFC::Trackable List of all members.

Signal Prototypes

Public Member Functions

Constructors
Accessors
Methods
Signal Proxies

Protected Member Functions

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.


Constructor & Destructor Documentation

GFC::Gtk::Viewport::Viewport GtkViewport *  viewport,
bool  owns_reference = false
[explicit, protected]
 

Construct a new Viewport from an existing GtkViewport.

Parameters:
viewport A pointer to a GtkViewport.
owns_reference Set 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).

GFC::Gtk::Viewport::Viewport Adjustment hadjustment,
Adjustment vadjustment
 

Construct a new viewport with the given adjustments.

Parameters:
hadjustment The horizontal adjustment.
vadjustment The vertical adjustment.


Member Function Documentation

Adjustment* GFC::Gtk::Viewport::get_hadjustment  )  const
 

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.

Adjustment* GFC::Gtk::Viewport::get_vadjustment  )  const
 

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.

void GFC::Gtk::Viewport::set_hadjustment Adjustment adjustment  ) 
 

Sets the horizontal adjustment of the viewport.

Parameters:
adjustment An Adjustment.

void GFC::Gtk::Viewport::set_shadow_type ShadowType  type  ) 
 

Sets the shadow type of the viewport.

Parameters:
type The new shadow type.

void GFC::Gtk::Viewport::set_vadjustment Adjustment adjustment  ) 
 

Sets the vertical adjustment of the viewport.

Parameters:
adjustment An Adjustment.


Member Data Documentation

const SetScrollAdjustmentsSignalType GFC::Gtk::Viewport::set_scroll_adjustments_signal [static, protected]
 

Set scroll adjustments signal (see sig_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:
Generated on Tue Aug 24 00:34:44 2004 for GFC-UI by doxygen 1.3.8