blob: 17b437107daf599b31c975da1a96fd40fa766838 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/***************************************************************************
kbuffercolumn.h - description
-------------------
begin : Mit Jun 26 2003
copyright : (C) 2003 by Friedrich W. H. Kossebau
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Library General Public *
* License version 2 as published by the Free Software Foundation. *
* *
***************************************************************************/
#ifndef KHE_KCURSOR_H
#define KHE_KCURSOR_H
#include <tqpixmap.h>
#include "kadds.h"
namespace KHE
{
/**
*@author Friedrich W. H. Kossebau
*/
class KCursor
{
public:
KCursor();
virtual ~KCursor();
public:
/** sets size of the full cursor */
void setSize( KPixelX Width, KPixelY Height );
/** sets the shape of the cursor to be drawn */
void setShape( KPixelX X, KPixelX W );
public: // access
const TQPixmap &onPixmap() const;
const TQPixmap &offPixmap() const;
KPixelX cursorX() const;
KPixelX cursorW() const;
protected:
TQPixmap OnPixmap;
TQPixmap OffPixmap;
KPixelX CursorX;
KPixelX CursorW;
};
inline const TQPixmap &KCursor::onPixmap() const { return OnPixmap; }
inline const TQPixmap &KCursor::offPixmap() const { return OffPixmap; }
inline KPixelX KCursor::cursorX() const { return CursorX; }
inline KPixelX KCursor::cursorW() const { return CursorW; }
}
#endif
|