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

liblancelot

  • Lancelot
  • ScrollPane
Public Types | Public Slots | Public Member Functions | Protected Member Functions | Properties | List of all members
Lancelot::ScrollPane Class Reference

#include <ScrollPane.h>

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

Public Types

enum  Flag { ClipScrollable = 1, HoverShowScrollbars = 2 }
 

Public Slots

void scrollableWidgetSizeUpdateNeeded ()
 
void scrollHorizontal (int value)
 
void scrollVertical (int value)
 

Public Member Functions

 ScrollPane (QGraphicsItem *parent=0)
 
virtual ~ScrollPane ()
 
void clearFlag (Flag flag)
 
QSizeF contentsSize () const
 
QSizeF currentViewportSize () const
 
Flags flags () const
 
QSizeF maximumViewportSize () const
 
QPointF scrollPosition () const
 
void scrollTo (QRectF rect)
 
void setFlag (Flag flag)
 
void setFlags (Flags flags)
 
void setFlip (Plasma::Flip flip)
 
void setScrollableWidget (Scrollable *widget)
 
void setScrollPosition (const QPointF &position)
 
QRectF viewportGeometry () const
 
- Public Member Functions inherited from Lancelot::Widget
 Widget (QGraphicsItem *parent=0)
 
virtual ~Widget ()
 
Group * group () const
 
QString groupName () const
 
bool isDown () const
 
bool isHovered () const
 
virtual void setGroup (Group *group=NULL)
 
virtual void setGroupByName (const QString &groupName)
 

Protected Member Functions

L_Override void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
L_Override void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
L_Override void resizeEvent (QGraphicsSceneResizeEvent *event)
 
- Protected Member Functions inherited from Lancelot::Widget
L_Override void hideEvent (QHideEvent *event)
 
L_Override void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
L_Override void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
L_Override void mousePressEvent (QGraphicsSceneMouseEvent *event)
 
L_Override void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 
L_Override void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
 
void paintBackground (QPainter *painter)
 
void paintBackground (QPainter *painter, const QString &element)
 
void setDown (bool value)
 
void setHovered (bool value)
 
void setPaintBackwardsWhenRTL (bool value)
 
L_Override QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
 

Properties

QSizeF contentsSize
 
QPointF scrollPosition
 
QRectF viewportGeometry
 
- Properties inherited from Lancelot::Widget
bool down
 
QString group
 

Additional Inherited Members

- Signals inherited from Lancelot::Widget
void clicked ()
 
void mouseHoverEnter ()
 
void mouseHoverLeave ()
 
void pressed ()
 
void released ()
 

Detailed Description

Pane for containing scrollable items.

Author
Ivan Cukic

Definition at line 94 of file ScrollPane.h.

Member Enumeration Documentation

enum Lancelot::ScrollPane::Flag
Enumerator
ClipScrollable 
HoverShowScrollbars 

Definition at line 105 of file ScrollPane.h.

Constructor & Destructor Documentation

Lancelot::ScrollPane::ScrollPane ( QGraphicsItem *  parent = 0)

Creates a new Lancelot::ScrollPane.

Parameters
parentparent item

Definition at line 92 of file ScrollPane.cpp.

Lancelot::ScrollPane::~ScrollPane ( )
virtual

Destroys this ScrollPane.

Definition at line 126 of file ScrollPane.cpp.

Member Function Documentation

void Lancelot::ScrollPane::clearFlag ( Flag  flag)

Turns the specified flag off.

Definition at line 247 of file ScrollPane.cpp.

QSizeF Lancelot::ScrollPane::contentsSize ( ) const
Returns
the size of the internal widget
QSizeF Lancelot::ScrollPane::currentViewportSize ( ) const
Returns
the current size of this ScrollPane widget. It equals maximumViewportSize() minus the sizes of the scrolling controls

Definition at line 158 of file ScrollPane.cpp.

ScrollPane::Flags Lancelot::ScrollPane::flags ( ) const
Returns
active flags

Definition at line 253 of file ScrollPane.cpp.

void Lancelot::ScrollPane::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
protected

Definition at line 274 of file ScrollPane.cpp.

void Lancelot::ScrollPane::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
protected

Definition at line 289 of file ScrollPane.cpp.

QSizeF Lancelot::ScrollPane::maximumViewportSize ( ) const
Returns
the maximum size that this ScrollPane widget can provide without scrolling.

Definition at line 153 of file ScrollPane.cpp.

void Lancelot::ScrollPane::resizeEvent ( QGraphicsSceneResizeEvent *  event)
protected

Definition at line 223 of file ScrollPane.cpp.

void Lancelot::ScrollPane::scrollableWidgetSizeUpdateNeeded ( )
slot

Call this slot when the scrollable widget updates its side.

Definition at line 163 of file ScrollPane.cpp.

void Lancelot::ScrollPane::scrollHorizontal ( int  value)
slot

Scrolls the view horizontally to the specified value.

Definition at line 229 of file ScrollPane.cpp.

QPointF Lancelot::ScrollPane::scrollPosition ( ) const
Returns
the position of the webpage relative to this widget
void Lancelot::ScrollPane::scrollTo ( QRectF  rect)

Ensures that the specified area is visible.

Parameters
rectarea

Definition at line 320 of file ScrollPane.cpp.

void Lancelot::ScrollPane::scrollVertical ( int  value)
slot

Scrolls the view vertically to the specified value.

Definition at line 235 of file ScrollPane.cpp.

void Lancelot::ScrollPane::setFlag ( Flag  flag)

Turns the specified flag on.

Definition at line 241 of file ScrollPane.cpp.

void Lancelot::ScrollPane::setFlags ( Flags  flags)

Sets all flags.

Definition at line 258 of file ScrollPane.cpp.

void Lancelot::ScrollPane::setFlip ( Plasma::Flip  flip)

Flips the layout of the scrollbars.

Definition at line 305 of file ScrollPane.cpp.

void Lancelot::ScrollPane::setScrollableWidget ( Scrollable *  widget)

Sets the widget that should be contained by this ScrollPane.

Parameters
widgetwidget implementing the Scrollable interface

Definition at line 137 of file ScrollPane.cpp.

void Lancelot::ScrollPane::setScrollPosition ( const QPointF &  position)

Sets the position of the webpage relative to this widget.

Definition at line 352 of file ScrollPane.cpp.

QRectF Lancelot::ScrollPane::viewportGeometry ( ) const

The geometry of the area that actually displays the web page.

Property Documentation

QSizeF Lancelot::ScrollPane::contentsSize
read

Definition at line 98 of file ScrollPane.h.

QPointF Lancelot::ScrollPane::scrollPosition
readwrite

Definition at line 97 of file ScrollPane.h.

QRectF Lancelot::ScrollPane::viewportGeometry
read

Definition at line 99 of file ScrollPane.h.


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