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

FXCanvas.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * C a n v a s W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1997,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (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 GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXCanvas.h,v 1.21 2006/01/22 17:57:59 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXCANVAS_H
25 #define FXCANVAS_H
26 
27 #ifndef FXWINDOW_H
28 #include "FXWindow.h"
29 #endif
30 
31 namespace FX {
32 
33 
34 /// Canvas, an area drawn by another object
35 class FXAPI FXCanvas : public FXWindow {
37 protected:
38  FXCanvas();
39 private:
40  FXCanvas(const FXCanvas&);
41  FXCanvas &operator=(const FXCanvas&);
42 public:
43  long onPaint(FXObject*,FXSelector,void*);
44 public:
45 
46  /// Construct new drawing canvas widget
47  FXCanvas(FXComposite* p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=FRAME_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0);
48 
49  /// Return TRUE because canvas can receive focus
50  virtual bool canFocus() const;
51  };
52 
53 }
54 
55 #endif
Canvas, an area drawn by another object.
Definition: FXCanvas.h:35
Base class for all windows.
Definition: FXWindow.h:115
unsigned int FXuint
Definition: fxdefs.h:396
FXuint FXSelector
Association key.
Definition: FXObject.h:53
#define FXAPI
Definition: fxdefs.h:122
Base composite.
Definition: FXComposite.h:35
#define NULL
Definition: fxdefs.h:41
Definition: FX4Splitter.h:31
int FXint
Definition: fxdefs.h:397
Regular raised/thick border.
Definition: FXWindow.h:82
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92

Copyright © 1997-2005 Jeroen van der Zijp