• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdefx
 

tdefx

  • tdefx
kpixmapsplitter.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Carsten Pfeiffer <pfeiffer@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KPIXMAPSPLITTER_H
21 #define KPIXMAPSPLITTER_H
22 
23 #include <tqpixmap.h>
24 #include <tqrect.h>
25 #include <tqsize.h>
26 #include <tqstring.h>
27 
28 #include <tdelibs_export.h>
29 
30 class KPixmapSplitterPrivate;
53 class TDEFX_EXPORT KPixmapSplitter
54 {
55 public:
59  KPixmapSplitter();
60  ~KPixmapSplitter();
61 
65  void setPixmap( const TQPixmap& pixmap );
66 
70  const TQPixmap& pixmap() const { return m_pixmap; }
71 
77  void setItemSize( const TQSize& size );
78 
83  TQSize itemSize() const { return m_itemSize; }
84 
89  void setVSpacing( int spacing );
90 
95  void setHSpacing( int spacing );
96 
101  TQRect coordinates( int pos );
102 
107  TQRect coordinates( const TQChar& ch );
108 
109 private:
110  TQPixmap m_pixmap;
111  TQSize m_itemSize;
112 
113  int m_vSpacing;
114  int m_hSpacing;
115 
116  int m_numCols;
117  int m_numRows;
118 
119  bool m_dirty;
120  KPixmapSplitterPrivate* d;
121 };
122 
123 #endif // KPIXMAPSPLITTER_H
KPixmapSplitter
A class to split a pixmap into several items.
Definition: kpixmapsplitter.h:54
KPixmapSplitter::itemSize
TQSize itemSize() const
Definition: kpixmapsplitter.h:83
KPixmapSplitter::pixmap
const TQPixmap & pixmap() const
Definition: kpixmapsplitter.h:70

tdefx

Skip menu "tdefx"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdefx

Skip menu "tdefx"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdefx by doxygen 1.9.1
This website is maintained by Timothy Pearson.