papyrus logo

Papyrus::Gtk::ScrolledViewport Class Reference

#include <scrolledviewport.h>

List of all members.

Public Member Functions

 ScrolledViewport ()
 ~ScrolledViewport ()
::Gtk::CornerType get_placement () const
void get_policy (::Gtk::PolicyType &hscrollbar_policy,::Gtk::PolicyType &vscrollbar_policy) const
::Gtk::ShadowType get_shadow_type () const
void get_hincrements (double &hstep_increment, double &hpage_increment) const
void get_vincrements (double &vstep_increment, double &vpage_increment) const
void get_increments (double &hstep_increment, double &hpage_increment, double &vstep_increment, double &vpage_increment) const
bool get_hscrollbar_visible () const
bool get_vscrollbar_visible () const
void set_placement (::Gtk::CornerType window_placement)
void set_policy (::Gtk::PolicyType hscrollbar_policy,::Gtk::PolicyType vscrollbar_policy)
void set_shadow_type (::Gtk::ShadowType type)
void set_hincrements (double hstep_increment, double hpage_increment)
void set_vincrements (double vstep_increment, double vpage_increment)
void set_increments (double hstep_increment, double hpage_increment, double vstep_increment, double vpage_increment)
Viewportviewport ()
const Viewportviewport () const
Papyrus::Canvas::pointer canvas ()
 Get the root canvas object from the viewport.
::Gtk::Button & corner_button ()

Protected Member Functions

void layout_children (bool construction=false)
void on_canvas_extents_changed ()
void on_canvas_scrolled (double x, double y)
bool on_hscrollbar_changed (::Gtk::ScrollType, double)
bool on_vscrollbar_changed (::Gtk::ScrollType, double)
virtual void on_corner_clicked ()
void on_canvas_replaced ()

Protected Attributes

double m_x_low
double m_x_high
double m_y_low
double m_y_high
Canvas::pointer m_canvas
::Gtk::CornerType m_corner_type
::Gtk::PolicyType m_hscrollbar_policy
::Gtk::PolicyType m_vscrollbar_policy
Viewport m_viewport
::Gtk::Frame m_frame
::Gtk::Button m_corner
::Gtk::HScrollbar m_hscrollbar
::Gtk::VScrollbar m_vscrollbar
Region m_last_global_extents
sigc::connection m_canvas_extents_connection
sigc::connection m_canvas_scrolled_connection
sigc::connection m_canvas_size_connection

Detailed Description

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Constructor & Destructor Documentation

Papyrus::Gtk::ScrolledViewport::ScrolledViewport (  ) 
Papyrus::Gtk::ScrolledViewport::~ScrolledViewport (  ) 

Member Function Documentation

Papyrus::Canvas::pointer Papyrus::Gtk::ScrolledViewport::canvas (  ) 

Get the root canvas object from the viewport.

References Papyrus::Gtk::Viewport::canvas(), and m_viewport.

Gtk::Button & Papyrus::Gtk::ScrolledViewport::corner_button (  ) 

References m_corner.

void Papyrus::Gtk::ScrolledViewport::get_hincrements ( double &  hstep_increment,
double &  hpage_increment 
) const

References m_hscrollbar.

bool Papyrus::Gtk::ScrolledViewport::get_hscrollbar_visible (  )  const

References m_hscrollbar.

void Papyrus::Gtk::ScrolledViewport::get_increments ( double &  hstep_increment,
double &  hpage_increment,
double &  vstep_increment,
double &  vpage_increment 
) const

References m_hscrollbar, and m_vscrollbar.

Gtk::CornerType Papyrus::Gtk::ScrolledViewport::get_placement (  )  const

References m_corner_type.

void Papyrus::Gtk::ScrolledViewport::get_policy ( ::Gtk::PolicyType &  hscrollbar_policy,
::Gtk::PolicyType &  vscrollbar_policy 
) const
Gtk::ShadowType Papyrus::Gtk::ScrolledViewport::get_shadow_type (  )  const

References m_frame.

void Papyrus::Gtk::ScrolledViewport::get_vincrements ( double &  vstep_increment,
double &  vpage_increment 
) const

References m_vscrollbar.

bool Papyrus::Gtk::ScrolledViewport::get_vscrollbar_visible (  )  const

References m_vscrollbar.

void Papyrus::Gtk::ScrolledViewport::layout_children ( bool  construction = false  )  [protected]
void Papyrus::Gtk::ScrolledViewport::on_canvas_extents_changed (  )  [protected]
void Papyrus::Gtk::ScrolledViewport::on_canvas_replaced (  )  [protected]
void Papyrus::Gtk::ScrolledViewport::on_canvas_scrolled ( double  x,
double  y 
) [protected]

References m_canvas, m_hscrollbar, and m_vscrollbar.

Referenced by on_canvas_replaced().

void Papyrus::Gtk::ScrolledViewport::on_corner_clicked (  )  [protected, virtual]

References m_canvas.

Referenced by ScrolledViewport().

bool Papyrus::Gtk::ScrolledViewport::on_hscrollbar_changed ( ::Gtk::ScrollType  ,
double  value 
) [protected]

References m_canvas, and m_x_high.

Referenced by ScrolledViewport().

bool Papyrus::Gtk::ScrolledViewport::on_vscrollbar_changed ( ::Gtk::ScrollType  ,
double  value 
) [protected]

References m_canvas, and m_y_high.

Referenced by ScrolledViewport().

void Papyrus::Gtk::ScrolledViewport::set_hincrements ( double  hstep_increment,
double  hpage_increment 
)

References m_hscrollbar.

void Papyrus::Gtk::ScrolledViewport::set_increments ( double  hstep_increment,
double  hpage_increment,
double  vstep_increment,
double  vpage_increment 
)

References m_hscrollbar, and m_vscrollbar.

void Papyrus::Gtk::ScrolledViewport::set_placement ( ::Gtk::CornerType  window_placement  ) 

References layout_children(), and m_corner_type.

void Papyrus::Gtk::ScrolledViewport::set_policy ( ::Gtk::PolicyType  hscrollbar_policy,
::Gtk::PolicyType  vscrollbar_policy 
)
void Papyrus::Gtk::ScrolledViewport::set_shadow_type ( ::Gtk::ShadowType  type  ) 

References m_frame.

void Papyrus::Gtk::ScrolledViewport::set_vincrements ( double  vstep_increment,
double  vpage_increment 
)

References m_vscrollbar.

const Viewport & Papyrus::Gtk::ScrolledViewport::viewport (  )  const

References m_viewport.

Viewport & Papyrus::Gtk::ScrolledViewport::viewport (  ) 

References m_viewport.


Member Data Documentation

Referenced by on_canvas_replaced().

Referenced by on_canvas_replaced().

Referenced by on_canvas_replaced().

::Gtk::Button Papyrus::Gtk::ScrolledViewport::m_corner [protected]
::Gtk::CornerType Papyrus::Gtk::ScrolledViewport::m_corner_type [protected]
::Gtk::Frame Papyrus::Gtk::ScrolledViewport::m_frame [protected]
::Gtk::HScrollbar Papyrus::Gtk::ScrolledViewport::m_hscrollbar [protected]
::Gtk::VScrollbar Papyrus::Gtk::ScrolledViewport::m_vscrollbar [protected]

The documentation for this class was generated from the following files:

Generated on Fri Apr 16 12:41:11 2010 for papyrus by doxygen 1.6.1