KDE 5.0 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KPixmapSequence Class Reference

from PyKDE5.kwidgetsaddons import *

Detailed Description

\class KPixmapSequence kpixmapsequence.h KPixmapSequence

Loads and gives access to the frames of a typical multi-row pixmap as often used for spinners.

KPixmapSequence is implicitly shared. Copying is fast.

Author:
Aurélien Gâteau <agateau@kde.org>
Author:
Sebastian Trueg <trueg@kde.org>

Since:
4.4


Methods

 __init__ (self)
 __init__ (self, KPixmapSequence other)
 __init__ (self, QPixmap pixmap, QSize frameSize=QSize())
 __init__ (self, QString fullPath, int size)
QPixmap frameAt (self, int index)
int frameCount (self)
QSize frameSize (self)
bool isEmpty (self)
bool isValid (self)

Method Documentation

__init__ (   self )

Create an empty sequence

__init__ (  self,
KPixmapSequence  other
)

Copy constructor

__init__ (  self,
QPixmap  pixmap,
QSize  frameSize=QSize()
)

Create a sequence from a pixmap.

Parameters:
pixmap  Pixmap to load

Parameters:
frameSize  The size of the frames to load. The width of the file has to be a multiple of the frame width; the same is true for the height. If an invalid size is specified the file is considered to be one column of square frames.

__init__ (  self,
QString  fullPath,
int  size
)

Create a sequence from an icon name.

Parameters:
iconName  The full path of the icon

Parameters:
size  The icon/frame size

QPixmap frameAt (  self,
int  index
)

Retrieve the frame at index.

Parameters:
index  The index of the frame in question starting at 0.

int frameCount (   self )

The number of frames in this sequence.

QSize frameSize (   self )

Returns:
The size of an individual frame in the sequence.

bool isEmpty (   self )

Returns:
true if no sequence was loaded successfully.

\sa isValid

bool isValid (   self )

Returns:
true if a sequence was loaded successfully.

\sa isEmpty

  • Full Index

Modules

  • karchive
  • kcoreaddons
  • kguiaddons
  • kitemmodels
  • kitemviews
  • kplotting
  • kwidgetsaddons
  • solid
  • sonnet
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal