An adapter which makes widgets scrollable. More...
Inherits Gtk::Bin.
Public Member Functions | |
virtual | ~Viewport () |
GtkViewport* | gobj () |
Provides access to the underlying C GtkObject. | |
const GtkViewport* | gobj () const |
Provides access to the underlying C GtkObject. | |
Viewport (const Glib::RefPtr< Adjustment >& hadjustment, const Glib::RefPtr< Adjustment >& vadjustment) | |
Glib::RefPtr< Adjustment > | get_hadjustment () |
Returns the horizontal adjustment of the viewport. | |
Glib::RefPtr< const Adjustment > | get_hadjustment () const |
Returns the horizontal adjustment of the viewport. | |
Glib::RefPtr< Adjustment > | get_vadjustment () |
Returns the vertical adjustment of the viewport. | |
Glib::RefPtr< const Adjustment > | get_vadjustment () const |
Returns the vertical adjustment of the viewport. | |
void | set_hadjustment (const Glib::RefPtr< Adjustment >& adjustment) |
Sets the horizontal adjustment of the viewport. | |
void | set_vadjustment (const Glib::RefPtr< Adjustment >& adjustment) |
Sets the vertical adjustment of the viewport. | |
void | set_shadow_type (ShadowType type) |
Sets the shadow type of the viewport. | |
ShadowType | get_shadow_type () const |
Gets the shadow type of the Gtk::Viewport. | |
Glib::RefPtr< Gdk::Window > | get_bin_window () |
Gets the bin window of the Gtk::Viewport. | |
Glib::RefPtr< const Gdk::Window > | get_bin_window () const |
Gets the bin window of the Gtk::Viewport. | |
Glib::RefPtr< Gdk::Window > | get_view_window () |
Gets the view window of the Gtk::Viewport. | |
Glib::RefPtr< const Gdk::Window > | get_view_window () const |
Gets the view window of the Gtk::Viewport. | |
Glib::SignalProxy2< void, const Glib::RefPtr< Adjustment > &, const Glib::RefPtr < Adjustment >& > | signal_set_scroll_adjustments () |
Glib::PropertyProxy < Glib::RefPtr< Adjustment > > | property_hadjustment () |
The GtkAdjustment that determines the values of the horizontal position for this viewport. | |
Glib::PropertyProxy_ReadOnly < Glib::RefPtr< Adjustment > > | property_hadjustment () const |
The GtkAdjustment that determines the values of the horizontal position for this viewport. | |
Glib::PropertyProxy < Glib::RefPtr< Adjustment > > | property_vadjustment () |
The GtkAdjustment that determines the values of the vertical position for this viewport. | |
Glib::PropertyProxy_ReadOnly < Glib::RefPtr< Adjustment > > | property_vadjustment () const |
The GtkAdjustment that determines the values of the vertical position for this viewport. | |
Glib::PropertyProxy< ShadowType > | property_shadow_type () |
Determines how the shadowed box around the viewport is drawn. | |
Glib::PropertyProxy_ReadOnly < ShadowType > | property_shadow_type () const |
Determines how the shadowed box around the viewport is drawn. | |
Protected Member Functions | |
virtual void | on_set_scroll_adjustments (const Glib::RefPtr< Adjustment >& hadjustment, const Glib::RefPtr< Adjustment >& vadjustment) |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::Viewport* | wrap (GtkViewport* object, bool take_copy=false) |
A Glib::wrap() method for this object. |
An adapter which makes widgets scrollable.
virtual Gtk::Viewport::~Viewport | ( | ) | [virtual] |
Gtk::Viewport::Viewport | ( | const Glib::RefPtr< Adjustment >& | hadjustment, | |
const Glib::RefPtr< Adjustment >& | vadjustment | |||
) | [explicit] |
Glib::RefPtr<const Gdk::Window> Gtk::Viewport::get_bin_window | ( | ) | const |
Glib::RefPtr<Gdk::Window> Gtk::Viewport::get_bin_window | ( | ) |
Glib::RefPtr<const Adjustment> Gtk::Viewport::get_hadjustment | ( | ) | const |
Returns the horizontal adjustment of the viewport.
Glib::RefPtr<Adjustment> Gtk::Viewport::get_hadjustment | ( | ) |
Returns the horizontal adjustment of the viewport.
ShadowType Gtk::Viewport::get_shadow_type | ( | ) | const |
Glib::RefPtr<const Adjustment> Gtk::Viewport::get_vadjustment | ( | ) | const |
Returns the vertical adjustment of the viewport.
Glib::RefPtr<Adjustment> Gtk::Viewport::get_vadjustment | ( | ) |
Returns the vertical adjustment of the viewport.
Glib::RefPtr<const Gdk::Window> Gtk::Viewport::get_view_window | ( | ) | const |
Glib::RefPtr<Gdk::Window> Gtk::Viewport::get_view_window | ( | ) |
const GtkViewport* Gtk::Viewport::gobj | ( | ) | const [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin.
GtkViewport* Gtk::Viewport::gobj | ( | ) | [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin.
virtual void Gtk::Viewport::on_set_scroll_adjustments | ( | const Glib::RefPtr< Adjustment >& | hadjustment, | |
const Glib::RefPtr< Adjustment >& | vadjustment | |||
) | [protected, virtual] |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Adjustment> > Gtk::Viewport::property_hadjustment | ( | ) | const |
The GtkAdjustment that determines the values of the horizontal position for this viewport.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy< Glib::RefPtr<Adjustment> > Gtk::Viewport::property_hadjustment | ( | ) |
The GtkAdjustment that determines the values of the horizontal position for this viewport.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<ShadowType> Gtk::Viewport::property_shadow_type | ( | ) | const |
Determines how the shadowed box around the viewport is drawn.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<ShadowType> Gtk::Viewport::property_shadow_type | ( | ) |
Determines how the shadowed box around the viewport is drawn.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Adjustment> > Gtk::Viewport::property_vadjustment | ( | ) | const |
The GtkAdjustment that determines the values of the vertical position for this viewport.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy< Glib::RefPtr<Adjustment> > Gtk::Viewport::property_vadjustment | ( | ) |
The GtkAdjustment that determines the values of the vertical position for this viewport.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void Gtk::Viewport::set_hadjustment | ( | const Glib::RefPtr< Adjustment >& | adjustment | ) |
Sets the horizontal adjustment of the viewport.
adjustment | A Gtk::Adjustment. |
void Gtk::Viewport::set_shadow_type | ( | ShadowType | type | ) |
Sets the shadow type of the viewport.
type | The new shadow type. |
void Gtk::Viewport::set_vadjustment | ( | const Glib::RefPtr< Adjustment >& | adjustment | ) |
Sets the vertical adjustment of the viewport.
adjustment | A Gtk::Adjustment. |
Glib::SignalProxy2< void,const Glib::RefPtr<Adjustment>&,const Glib::RefPtr<Adjustment>& > Gtk::Viewport::signal_set_scroll_adjustments | ( | ) |
void on_my_set_scroll_adjustments(const Glib::RefPtr<Adjustment>& hadjustment, const Glib::RefPtr<Adjustment>& vadjustment)
Gtk::Viewport* wrap | ( | GtkViewport * | object, | |
bool | take_copy = false | |||
) | [related] |
A Glib::wrap() method for this object.
object | The C instance. | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |