Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXCURCursor.h
1 /********************************************************************************
2 * *
3 * C U R C u r s o r O b j e c t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2001,2023 by Sander Jansen. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXCURCURSOR_H
22 #define FXCURCURSOR_H
23 
24 #ifndef FXCURSOR_H
25 #include "FXCursor.h"
26 #endif
27 
28 namespace FX {
29 
30 
32 class FXAPI FXCURCursor : public FXCursor {
33  FXDECLARE(FXCURCursor)
34 protected:
35  FXCURCursor(){}
36 private:
37  FXCURCursor(const FXCURCursor&);
38  FXCURCursor &operator=(const FXCURCursor&);
39 public:
40  static const FXchar fileExt[];
41 public:
42 
47  FXCURCursor(FXApp* a,const FXuchar* pix);
48 
50  virtual FXbool savePixels(FXStream& store) const;
51 
53  virtual FXbool loadPixels(FXStream& store);
54 
56  virtual ~FXCURCursor();
57  };
58 
59 
60 #ifndef FXLOADICO
61 #define FXLOADICO
62 
66 extern FXAPI FXbool fxcheckICO(FXStream& store);
67 
73 extern FXAPI FXbool fxloadICO(FXStream& store,FXColor*& data,FXint& width,FXint& height,FXint& xspot,FXint& yspot);
74 
79 extern FXAPI FXbool fxsaveICO(FXStream& store,const FXColor *data,FXint width,FXint height,FXint xspot=-1,FXint yspot=-1);
80 
81 #endif
82 
83 }
84 
85 #endif
The Application object is the central point of a FOX user-interface.
Definition: FXApp.h:134
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
Cursor class.
Definition: FXCursor.h:52
CUR Cursor class.
Definition: FXCURCursor.h:32

Copyright © 1997-2022 Jeroen van der Zijp