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

FXRootWindow.h
1 /********************************************************************************
2 * *
3 * R o o t W i n d o w W i d g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1997,2024 by Jeroen van der Zijp. 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 FXROOTWINDOW_H
22 #define FXROOTWINDOW_H
23 
24 #ifndef FXCOMPOSITE_H
25 #include "FXComposite.h"
26 #endif
27 
28 namespace FX {
29 
30 
32 class FXAPI FXRootWindow : public FXComposite {
33  FXDECLARE(FXRootWindow)
34 protected:
35  FXRootWindow(){}
36 #ifdef WIN32
37  virtual FXID GetDC() const;
38  virtual int ReleaseDC(FXID) const;
39 #endif
40 private:
41  FXRootWindow(const FXRootWindow&);
42  FXRootWindow &operator=(const FXRootWindow&);
43 public:
44 
46  FXRootWindow(FXApp* a,FXVisual *vis);
47 
49  virtual void create();
50 
52  virtual void attach(FXID w);
53 
55  virtual void detach();
56 
58  virtual void destroy();
59 
61  virtual void layout();
62 
64  virtual FXint getDefaultWidth();
65 
67  virtual FXint getDefaultHeight();
68 
70  virtual void recalc();
71 
73  virtual void move(FXint x,FXint y);
74 
76  virtual void resize(FXint w,FXint h);
77 
79  virtual void position(FXint x,FXint y,FXint w,FXint h);
80 
82  virtual void setFocus();
83 
85  virtual void killFocus();
86 
88  virtual ~FXRootWindow();
89  };
90 
91 }
92 
93 #endif
Root window.
Definition: FXRootWindow.h:32
The Application object is the central point of a FOX user-interface.
Definition: FXApp.h:134
Base composite.
Definition: FXComposite.h:32
Definition: FX4Splitter.h:28
Visual describes pixel format of a drawable.
Definition: FXVisual.h:58

Copyright © 1997-2022 Jeroen van der Zijp