#include <scrolledviewport.h>
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) |
Viewport & | viewport () |
const Viewport & | viewport () 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 |
Papyrus::Gtk::ScrolledViewport::ScrolledViewport | ( | ) |
Papyrus::Gtk::ScrolledViewport::~ScrolledViewport | ( | ) |
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 |
References m_hscrollbar_policy, and m_vscrollbar_policy.
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] |
References Papyrus::FILL, m_corner, m_corner_type, m_frame, m_hscrollbar, and m_vscrollbar.
Referenced by ScrolledViewport(), and set_placement().
void Papyrus::Gtk::ScrolledViewport::on_canvas_extents_changed | ( | ) | [protected] |
References Papyrus::Region::lrtb(), m_canvas, m_corner, m_hscrollbar, m_hscrollbar_policy, m_last_global_extents, m_vscrollbar, m_vscrollbar_policy, m_x_high, m_x_low, m_y_high, and m_y_low.
Referenced by on_canvas_replaced(), and set_policy().
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 | |||
) |
References m_corner, m_hscrollbar, m_hscrollbar_policy, m_vscrollbar, m_vscrollbar_policy, and on_canvas_extents_changed().
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.
sigc::connection Papyrus::Gtk::ScrolledViewport::m_canvas_extents_connection [protected] |
Referenced by on_canvas_replaced().
sigc::connection Papyrus::Gtk::ScrolledViewport::m_canvas_scrolled_connection [protected] |
Referenced by on_canvas_replaced().
sigc::connection Papyrus::Gtk::ScrolledViewport::m_canvas_size_connection [protected] |
Referenced by on_canvas_replaced().
::Gtk::Button Papyrus::Gtk::ScrolledViewport::m_corner [protected] |
Referenced by corner_button(), layout_children(), on_canvas_extents_changed(), ScrolledViewport(), and set_policy().
::Gtk::CornerType Papyrus::Gtk::ScrolledViewport::m_corner_type [protected] |
Referenced by get_placement(), layout_children(), and set_placement().
::Gtk::Frame Papyrus::Gtk::ScrolledViewport::m_frame [protected] |
Referenced by get_shadow_type(), layout_children(), ScrolledViewport(), and set_shadow_type().
::Gtk::HScrollbar Papyrus::Gtk::ScrolledViewport::m_hscrollbar [protected] |
::Gtk::PolicyType Papyrus::Gtk::ScrolledViewport::m_hscrollbar_policy [protected] |
Referenced by get_policy(), on_canvas_extents_changed(), and set_policy().
Referenced by on_canvas_extents_changed().
Viewport Papyrus::Gtk::ScrolledViewport::m_viewport [protected] |
Referenced by canvas(), on_canvas_replaced(), ScrolledViewport(), and viewport().
::Gtk::VScrollbar Papyrus::Gtk::ScrolledViewport::m_vscrollbar [protected] |
::Gtk::PolicyType Papyrus::Gtk::ScrolledViewport::m_vscrollbar_policy [protected] |
Referenced by get_policy(), on_canvas_extents_changed(), and set_policy().
double Papyrus::Gtk::ScrolledViewport::m_x_high [protected] |
Referenced by on_canvas_extents_changed(), and on_hscrollbar_changed().
double Papyrus::Gtk::ScrolledViewport::m_x_low [protected] |
Referenced by on_canvas_extents_changed().
double Papyrus::Gtk::ScrolledViewport::m_y_high [protected] |
Referenced by on_canvas_extents_changed(), and on_vscrollbar_changed().
double Papyrus::Gtk::ScrolledViewport::m_y_low [protected] |
Referenced by on_canvas_extents_changed().