karbon

vcursor.h
1/* This file is part of the KDE project
2 Copyright (C) 2006 The Karbon Developers
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 __VCURSOR_H__
21#define __VCURSOR_H__
22
23#include <tqcursor.h>
24#include <koffice_export.h>
25
32class KARBONBASE_EXPORT VCursor
33{
34public:
43
50 static TQCursor createCursor( CursorType type );
51
56 static TQCursor createCursor( const char * bitmap[], const char * mask[], int hotX = -1, int hotY = -1 );
57
59 static TQCursor crossHair();
60
62 static TQCursor needleArrow();
63
65 static TQCursor needleMoveArrow();
66
67 static TQCursor horzMove();
68
69private:
70 // prevent instantiation
71 VCursor() {};
72};
73
74#endif
A helper class for easily creating cursors from XPMs.
Definition vcursor.h:33
CursorType
Predefined cursor types.
Definition vcursor.h:37
@ ZoomMinus
zoom out cursor
Definition vcursor.h:40
@ NeedleArrow
needle arrow
Definition vcursor.h:41
@ ZoomPlus
zoom in cursor
Definition vcursor.h:39
@ CrossHair
unthemed crosshair cursor
Definition vcursor.h:38