• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | List of all members
KPixmapSequence Class Reference

#include <KPixmapSequence>

Public Member Functions

 KPixmapSequence ()
 
 KPixmapSequence (const KPixmapSequence &other)
 
 KPixmapSequence (const QPixmap &pixmap, const QSize &frameSize=QSize())
 
 KPixmapSequence (const QString &iconName, int size=KIconLoader::SizeSmall)
 
 ~KPixmapSequence ()
 
QPixmap frameAt (int index) const
 
int frameCount () const
 
QSize frameSize () const
 
bool isEmpty () const
 
bool isValid () const
 
KPixmapSequence & operator= (const KPixmapSequence &other)
 

Detailed Description

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 agate.nosp@m.au@k.nosp@m.de.or.nosp@m.g
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
Since
4.4

Definition at line 45 of file kpixmapsequence.h.

Constructor & Destructor Documentation

KPixmapSequence::KPixmapSequence ( )

Create an empty sequence.

Definition at line 71 of file kpixmapsequence.cpp.

KPixmapSequence::KPixmapSequence ( const KPixmapSequence &  other)

Copy constructor.

Definition at line 77 of file kpixmapsequence.cpp.

KPixmapSequence::KPixmapSequence ( const QPixmap &  pixmap,
const QSize &  frameSize = QSize() 
)
explicit

Create a sequence from a pixmap.

Parameters
pixmapPixmap to load
frameSizeThe 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.

Definition at line 83 of file kpixmapsequence.cpp.

KPixmapSequence::KPixmapSequence ( const QString &  iconName,
int  size = KIconLoader::SizeSmall 
)
explicit

Create a sequence from an icon name.

Parameters
iconNameThe name of the icon (example: process-working)
sizeThe icon/frame size

Definition at line 90 of file kpixmapsequence.cpp.

KPixmapSequence::~KPixmapSequence ( )

Destructor.

Definition at line 97 of file kpixmapsequence.cpp.

Member Function Documentation

QPixmap KPixmapSequence::frameAt ( int  index) const

Retrieve the frame at index.

Parameters
indexThe index of the frame in question starting at 0.

Definition at line 137 of file kpixmapsequence.cpp.

int KPixmapSequence::frameCount ( ) const

The number of frames in this sequence.

Definition at line 131 of file kpixmapsequence.cpp.

QSize KPixmapSequence::frameSize ( ) const
Returns
The size of an individual frame in the sequence.

Definition at line 121 of file kpixmapsequence.cpp.

bool KPixmapSequence::isEmpty ( ) const
Returns
true if no sequence was loaded successfully.
See also
isValid

Definition at line 115 of file kpixmapsequence.cpp.

bool KPixmapSequence::isValid ( ) const
Returns
true if a sequence was loaded successfully.
See also
isEmpty

Definition at line 109 of file kpixmapsequence.cpp.

KPixmapSequence & KPixmapSequence::operator= ( const KPixmapSequence &  other)

Create a copy of other.

The data is implicitly shared.

Definition at line 102 of file kpixmapsequence.cpp.


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

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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