]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/toplevel.h
adding OnLaunched
[wxWidgets.git] / include / wx / dfb / toplevel.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/toplevel.h
3// Purpose: Top level window, abstraction of wxFrame and wxDialog
4// Author: Vaclav Slavik
5// Created: 2006-08-10
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_TOPLEVEL_H_
12#define _WX_DFB_TOPLEVEL_H_
13
b3c86150
VS
14//-----------------------------------------------------------------------------
15// wxTopLevelWindowDFB
16//-----------------------------------------------------------------------------
17
18class WXDLLIMPEXP_CORE wxTopLevelWindowDFB : public wxTopLevelWindowBase
19{
20public:
21 // construction
22 wxTopLevelWindowDFB() { Init(); }
23 wxTopLevelWindowDFB(wxWindow *parent,
24 wxWindowID id,
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)
30 {
31 Init();
32
33 Create(parent, id, title, pos, size, style, name);
34 }
35
36 bool Create(wxWindow *parent,
37 wxWindowID id,
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);
43
b3c86150
VS
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();
50
51 virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
52 virtual bool IsFullScreen() const { return m_fsIsShowing; }
53
b3c86150
VS
54 virtual bool CanSetTransparent() { return true; }
55 virtual bool SetTransparent(wxByte alpha);
56
57 virtual void SetTitle(const wxString &title) { m_title = title; }
58 virtual wxString GetTitle() const { return m_title; }
59
b3c86150
VS
60protected:
61 // common part of all ctors
62 void Init();
63
6954a1e2
VS
64 virtual void HandleFocusEvent(const wxDFBWindowEvent& event_);
65
b3c86150
VS
66protected:
67 wxString m_title;
68
69 bool m_fsIsShowing:1; /* full screen */
70 long m_fsSaveStyle;
71 long m_fsSaveFlag;
72 wxRect m_fsSaveFrame;
73
74 // is the frame currently maximized?
75 bool m_isMaximized:1;
76 wxRect m_savedFrame;
b3c86150
VS
77};
78
79#endif // _WX_DFB_TOPLEVEL_H_