Wt  3.7.1
Public Member Functions | List of all members
Wt::WScrollEvent Class Reference

A class providing details for a scroll event. More...

#include <Wt/WEvent>

Public Member Functions

 WScrollEvent ()
 Default constructor.
 
int scrollX () const
 Returns the current horizontal scroll position. More...
 
int scrollY () const
 Returns the current vertical scroll position. More...
 
int viewportWidth () const
 Returns the current horizontal viewport width. More...
 
int viewportHeight () const
 Returns the current horizontal viewport height. More...
 

Detailed Description

A class providing details for a scroll event.

See also
WContainerWidget::scrolled()

Member Function Documentation

◆ scrollX()

int Wt::WScrollEvent::scrollX ( ) const

Returns the current horizontal scroll position.

See also
scrollY(), viewportWidth()

◆ scrollY()

int Wt::WScrollEvent::scrollY ( ) const

Returns the current vertical scroll position.

See also
scrollX(), viewportHeight()

◆ viewportHeight()

int Wt::WScrollEvent::viewportHeight ( ) const

Returns the current horizontal viewport height.

Returns the current viewport height.

See also
viewportWidth(), scrollY()

◆ viewportWidth()

int Wt::WScrollEvent::viewportWidth ( ) const

Returns the current horizontal viewport width.

Returns the current viewport width.

See also
viewportHeight(), scrollX()

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13