synfig-studio  1.0.3
Public Member Functions | List of all members
studio::Widget_Ruler Class Reference

#include <widget_ruler.h>

Public Member Functions

 Widget_Ruler (bool is_vertical)
 ~Widget_Ruler ()
synfig::Real get_screen_min () const
synfig::Real get_screen_max () const
synfig::Real position_to_screen (synfig::Real value) const
synfig::Real position_from_screen (synfig::Real value) const
synfig::Real distance_to_screen (synfig::Real value) const
synfig::Real distance_from_screen (synfig::Real value) const
synfig::Real get_min () const
void set_min (synfig::Real value)
synfig::Real get_max () const
void set_max (synfig::Real value)
synfig::Real get_position () const
void set_position (synfig::Real value)
synfig::Real get_screen_position () const
void set_screen_position (synfig::Real value)
bool on_draw (const ::Cairo::RefPtr< ::Cairo::Context > &cr)

Constructor & Destructor Documentation

Widget_Ruler::Widget_Ruler ( bool  is_vertical)
Widget_Ruler::~Widget_Ruler ( )

Member Function Documentation

synfig::Real studio::Widget_Ruler::get_screen_min ( ) const
inline
synfig::Real studio::Widget_Ruler::get_screen_max ( ) const
inline
synfig::Real studio::Widget_Ruler::position_to_screen ( synfig::Real  value) const
inline

References get_screen_max(), and get_screen_min().

Referenced by get_screen_position(), and on_draw().

synfig::Real studio::Widget_Ruler::position_from_screen ( synfig::Real  value) const
inline

References get_screen_max(), and get_screen_min().

Referenced by set_screen_position().

synfig::Real studio::Widget_Ruler::distance_to_screen ( synfig::Real  value) const
inline

References get_screen_max(), and get_screen_min().

Referenced by on_draw().

synfig::Real studio::Widget_Ruler::distance_from_screen ( synfig::Real  value) const
inline

References get_screen_max(), and get_screen_min().

Referenced by on_draw().

synfig::Real studio::Widget_Ruler::get_min ( ) const
inline
void Widget_Ruler::set_min ( synfig::Real  value)
synfig::Real studio::Widget_Ruler::get_max ( ) const
inline
void Widget_Ruler::set_max ( synfig::Real  value)
synfig::Real studio::Widget_Ruler::get_position ( ) const
inline

Referenced by get_screen_position().

void Widget_Ruler::set_position ( synfig::Real  value)

Referenced by set_screen_position().

synfig::Real studio::Widget_Ruler::get_screen_position ( ) const
inline

References get_position(), and position_to_screen().

Referenced by on_draw().

void studio::Widget_Ruler::set_screen_position ( synfig::Real  value)
inline
bool Widget_Ruler::on_draw ( const ::Cairo::RefPtr< ::Cairo::Context > &  cr)

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