1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/toplevel.h
3 // Purpose: Top level window, abstraction of wxFrame and wxDialog
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_TOPLEVEL_H_
12 #define _WX_DFB_TOPLEVEL_H_
14 //-----------------------------------------------------------------------------
15 // wxTopLevelWindowDFB
16 //-----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxTopLevelWindowDFB
: public wxTopLevelWindowBase
22 wxTopLevelWindowDFB() { Init(); }
23 wxTopLevelWindowDFB(wxWindow
*parent
,
25 const wxString
& title
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 long style
= wxDEFAULT_FRAME_STYLE
,
29 const wxString
& name
= wxFrameNameStr
)
33 Create(parent
, id
, title
, pos
, size
, style
, name
);
36 bool Create(wxWindow
*parent
,
38 const wxString
& title
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxDEFAULT_FRAME_STYLE
,
42 const wxString
& name
= wxFrameNameStr
);
44 // implement base class pure virtuals
45 virtual void Maximize(bool maximize
= true);
46 virtual bool IsMaximized() const;
47 virtual void Iconize(bool iconize
= true);
48 virtual bool IsIconized() const;
49 virtual void Restore();
51 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
);
52 virtual bool IsFullScreen() const { return m_fsIsShowing
; }
54 virtual bool CanSetTransparent() { return true; }
55 virtual bool SetTransparent(wxByte alpha
);
57 virtual void SetTitle(const wxString
&title
) { m_title
= title
; }
58 virtual wxString
GetTitle() const { return m_title
; }
61 // common part of all ctors
67 bool m_fsIsShowing
:1; /* full screen */
72 // is the frame currently maximized?
77 #endif // _WX_DFB_TOPLEVEL_H_