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