1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/toplevel.h
3 // Purpose: Top level window, abstraction of wxFrame and wxDialog
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_TOPLEVEL_H_
11 #define _WX_DFB_TOPLEVEL_H_
13 //-----------------------------------------------------------------------------
14 // wxTopLevelWindowDFB
15 //-----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxTopLevelWindowDFB
: public wxTopLevelWindowBase
21 wxTopLevelWindowDFB() { Init(); }
22 wxTopLevelWindowDFB(wxWindow
*parent
,
24 const wxString
& title
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 long style
= wxDEFAULT_FRAME_STYLE
,
28 const wxString
& name
= wxFrameNameStr
)
32 Create(parent
, id
, title
, pos
, size
, style
, name
);
35 bool Create(wxWindow
*parent
,
37 const wxString
& title
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
40 long style
= wxDEFAULT_FRAME_STYLE
,
41 const wxString
& name
= wxFrameNameStr
);
43 // implement base class pure virtuals
44 virtual void Maximize(bool maximize
= true);
45 virtual bool IsMaximized() const;
46 virtual void Iconize(bool iconize
= true);
47 virtual bool IsIconized() const;
48 virtual void Restore();
50 virtual bool ShowFullScreen(bool show
, long style
= wxFULLSCREEN_ALL
);
51 virtual bool IsFullScreen() const { return m_fsIsShowing
; }
53 virtual bool CanSetTransparent() { return true; }
54 virtual bool SetTransparent(wxByte alpha
);
56 virtual void SetTitle(const wxString
&title
) { m_title
= title
; }
57 virtual wxString
GetTitle() const { return m_title
; }
60 // common part of all ctors
63 virtual void HandleFocusEvent(const wxDFBWindowEvent
& event_
);
68 bool m_fsIsShowing
:1; /* full screen */
73 // is the frame currently maximized?
78 #endif // _WX_DFB_TOPLEVEL_H_