liblancelot
#include <ScrollPane.h>
Public Member Functions | |
Scrollable () | |
virtual | ~Scrollable () |
virtual ScrollPane * | scrollPane () const |
virtual qreal | scrollUnit (Qt::Orientation direction) const =0 |
virtual void | setScrollPane (ScrollPane *pane) |
virtual QSizeF | sizeFor (QSizeF viewportSize) const =0 |
virtual void | viewportChanged (QRectF viewport)=0 |
Detailed Description
Interface for items that support scrolling.
Definition at line 34 of file ScrollPane.h.
Constructor & Destructor Documentation
Lancelot::Scrollable::Scrollable | ( | ) |
Creates a new Lancelot::Scrollable.
Definition at line 41 of file ScrollPane.cpp.
|
virtual |
Destroys this Lancelot::Scrollable.
Definition at line 47 of file ScrollPane.cpp.
Member Function Documentation
|
virtual |
- Returns
- scroll pane that contains this Scrollable widget
Definition at line 59 of file ScrollPane.cpp.
|
pure virtual |
- Parameters
-
direction direction for which the scroll unit size is needed
- Returns
- scroll unit size
Implemented in Lancelot::CustomList.
|
virtual |
Sets the scroll pane that contains this Scrollable widget.
- Parameters
-
pane scroll pane
Definition at line 52 of file ScrollPane.cpp.
- Returns
- the desired size of the Scrollable widget when the container provides it with a specified viewport size
- viewportSize viewport size
Implemented in Lancelot::CustomList.
|
pure virtual |
Sets the currently displayed area.
This function tells the Scrollable widget which part of it is shown after scrolling.
- Note
- The size of the scrolling viewport doesn't need to be equal to ScrollPane::viewportSize()
- Parameters
-
viewport new viewport rectangle
Implemented in Lancelot::CustomList.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.