ubit
usubwin.hpp
1 /************************************************************************
2  *
3  * usubwin.hpp
4  * Ubit GUI Toolkit - Version 6
5  * (C) 2009 | Eric Lecolinet | TELECOM ParisTech | http://www.enst.fr/~elc/ubit
6  *
7  * ***********************************************************************
8  * COPYRIGHT NOTICE :
9  * THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY AND WITHOUT EVEN THE
10  * IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
11  * YOU CAN REDISTRIBUTE IT AND/OR MODIFY IT UNDER THE TERMS OF THE GNU
12  * GENERAL PUBLIC LICENSE AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION;
13  * EITHER VERSION 2 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
14  * SEE FILES 'COPYRIGHT' AND 'COPYING' FOR MORE DETAILS.
15  * ***********************************************************************/
16 
17 #ifndef _usubwin_hpp_
18 #define _usubwin_hpp_ 1
19 #include <ubit/uwin.hpp>
20 namespace ubit {
21 
33  class USubwin : public UWin {
34  public:
35  UCLASS(USubwin)
36 
38 
39  virtual bool isSubWin() const {return true;}
40 
41  static UStyle* createStyle(); // redefined
42  virtual int getDisplayType() const {return BLOCK;} // redefined
43 
44  // - impl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
45 
46  virtual bool realize();
47 
48  protected:
49  virtual void initView(UView* parent_view);
50  // must be redefined to init parent view properly.
51 
52  virtual void motionImpl(UViewEvent&);
53 
54  virtual void resizeImpl(UResizeEvent&);
55  // redefined by UGlcanvas.
56  };
57 
58 }
59 #endif
virtual bool realize()
[impl] initializes the window and its children.
Definition: usubwin.cpp:67
view event: base class for UPaintEvent and UResizeEvent.
Definition: uevent.hpp:347
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
Box View.
Definition: uview.hpp:65
Definition: uhardfont.hpp:31
static const UArgs none
the empty arglist.
Definition: uargs.hpp:45
Base class for windows and menus.
Definition: uwin.hpp:47
Subwindow: a hard window that is embedded inside another window.
Definition: usubwin.hpp:33
Resize event.
Definition: uevent.hpp:418
Compiled Object Style.
Definition: ustyle.hpp:44