• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeplasma-addons API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • Scrollable
Public Member Functions | List of all members
Lancelot::Scrollable Class Referenceabstract

#include <ScrollPane.h>

Inheritance diagram for Lancelot::Scrollable:
Inheritance graph
[legend]

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.

Lancelot::Scrollable::~Scrollable ( )
virtual

Destroys this Lancelot::Scrollable.

Definition at line 47 of file ScrollPane.cpp.

Member Function Documentation

ScrollPane * Lancelot::Scrollable::scrollPane ( ) const
virtual
Returns
scroll pane that contains this Scrollable widget

Definition at line 59 of file ScrollPane.cpp.

virtual qreal Lancelot::Scrollable::scrollUnit ( Qt::Orientation  direction) const
pure virtual
Parameters
directiondirection for which the scroll unit size is needed
Returns
scroll unit size

Implemented in Lancelot::CustomList.

void Lancelot::Scrollable::setScrollPane ( ScrollPane *  pane)
virtual

Sets the scroll pane that contains this Scrollable widget.

Parameters
panescroll pane

Definition at line 52 of file ScrollPane.cpp.

virtual QSizeF Lancelot::Scrollable::sizeFor ( QSizeF  viewportSize) const
pure virtual
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.

virtual void Lancelot::Scrollable::viewportChanged ( QRectF  viewport)
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
viewportnew viewport rectangle

Implemented in Lancelot::CustomList.


The documentation for this class was generated from the following files:
  • ScrollPane.h
  • ScrollPane.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

Skip menu "liblancelot"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeplasma-addons API Reference

Skip menu "kdeplasma-addons API Reference"
  •     GroupingDesktop
  •   liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal