osgWidget::Input Class Reference

Inheritance diagram for osgWidget::Input:

osgWidget::Label osgWidget::Widget osg::Geometry osgWidget::EventInterface osgWidget::StyleInterface osg::Drawable osg::Object osg::Referenced

List of all members.

Public Member Functions

 Input (const std::string &="", const std::string &="", unsigned int=20)
virtual void parented (Window *)
virtual void positioned ()
virtual bool focus (const WindowManager *)
virtual bool unfocus (const WindowManager *)
virtual bool keyUp (int, int, const WindowManager *)
virtual bool keyDown (int, int, const WindowManager *)
virtual bool mouseDrag (double, double, const WindowManager *)
virtual bool mousePush (double x, double y, const WindowManager *)
void setCursor (Widget *)
unsigned int calculateBestYOffset (const std::string &="qgl")
void setXOffset (point_type xo)
void setYOffset (point_type yo)
void setXYOffset (point_type xo, point_type yo)
osg::DrawablegetCursor ()
const osg::DrawablegetCursor () const
point_type getXOffset () const
point_type getYOffset () const
XYCoord getXYOffset () const

Protected Member Functions

virtual void _calculateSize (const XYCoord &)
void _calculateCursorOffsets ()

Protected Attributes

point_type _xoff
point_type _yoff
unsigned int _index
unsigned int _size
unsigned int _cursorIndex
unsigned int _maxSize
unsigned int _textLength
std::vector< point_type_offsets
std::vector< unsigned int > _wordsOffsets
std::vector< point_type_widths
osg::ref_ptr< Widget_cursor
bool _insertMode
osg::ref_ptr< Widget_selection
unsigned int _selectionStartIndex
unsigned int _selectionEndIndex
unsigned int _selectionIndex
point_type _mouseClickX


Constructor & Destructor Documentation

osgWidget::Input::Input ( const std::string &  = "",
const std::string &  = "",
unsigned  int = 20 
)


Member Function Documentation

virtual void osgWidget::Input::parented ( Window  )  [virtual]

Reimplemented from osgWidget::Label.

virtual void osgWidget::Input::positioned (  )  [virtual]

Reimplemented from osgWidget::Label.

virtual bool osgWidget::Input::focus ( const WindowManager  )  [virtual]

Reimplemented from osgWidget::EventInterface.

virtual bool osgWidget::Input::unfocus ( const WindowManager  )  [virtual]

Reimplemented from osgWidget::EventInterface.

virtual bool osgWidget::Input::keyUp ( int  ,
int  ,
const WindowManager  
) [virtual]

Reimplemented from osgWidget::EventInterface.

virtual bool osgWidget::Input::keyDown ( int  ,
int  ,
const WindowManager  
) [virtual]

Reimplemented from osgWidget::EventInterface.

virtual bool osgWidget::Input::mouseDrag ( double  ,
double  ,
const WindowManager  
) [virtual]

Reimplemented from osgWidget::EventInterface.

virtual bool osgWidget::Input::mousePush ( double  x,
double  y,
const WindowManager  
) [virtual]

Reimplemented from osgWidget::EventInterface.

void osgWidget::Input::setCursor ( Widget  ) 

unsigned int osgWidget::Input::calculateBestYOffset ( const std::string &  = "qgl"  ) 

void osgWidget::Input::setXOffset ( point_type  xo  )  [inline]

void osgWidget::Input::setYOffset ( point_type  yo  )  [inline]

void osgWidget::Input::setXYOffset ( point_type  xo,
point_type  yo 
) [inline]

osg::Drawable* osgWidget::Input::getCursor (  )  [inline]

const osg::Drawable* osgWidget::Input::getCursor (  )  const [inline]

point_type osgWidget::Input::getXOffset (  )  const [inline]

point_type osgWidget::Input::getYOffset (  )  const [inline]

XYCoord osgWidget::Input::getXYOffset (  )  const [inline]

virtual void osgWidget::Input::_calculateSize ( const XYCoord  )  [protected, virtual]

Reimplemented from osgWidget::Label.

void osgWidget::Input::_calculateCursorOffsets (  )  [protected]


Member Data Documentation

unsigned int osgWidget::Input::_index [protected]

Reimplemented from osgWidget::Widget.

unsigned int osgWidget::Input::_size [protected]

unsigned int osgWidget::Input::_cursorIndex [protected]

unsigned int osgWidget::Input::_maxSize [protected]

unsigned int osgWidget::Input::_textLength [protected]

std::vector<point_type> osgWidget::Input::_offsets [protected]

std::vector<unsigned int> osgWidget::Input::_wordsOffsets [protected]

std::vector<point_type> osgWidget::Input::_widths [protected]

unsigned int osgWidget::Input::_selectionStartIndex [protected]

unsigned int osgWidget::Input::_selectionEndIndex [protected]

unsigned int osgWidget::Input::_selectionIndex [protected]


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

Generated on Sat Mar 20 12:34:08 2010 for openscenegraph by  doxygen 1.5.6