X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..cb3db09022512bcbb6c6c41dd6859ab9245186a1:/include/wx/mac/classic/toplevel.h diff --git a/include/wx/mac/classic/toplevel.h b/include/wx/mac/classic/toplevel.h index 0d5a6bf74d..16bfad5354 100644 --- a/include/wx/mac/classic/toplevel.h +++ b/include/wx/mac/classic/toplevel.h @@ -1,21 +1,17 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: wx/mac/toplevel.h +// Name: wx/mac/classic/toplevel.h // Purpose: wxTopLevelWindowMac is the Mac implementation of wxTLW // Author: Stefan Csomor // Modified by: // Created: 20.09.01 // RCS-ID: $Id$ // Copyright: (c) 2001 Stefan Csomor -// Licence: wxWidgets licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_MSW_TOPLEVEL_H_ #define _WX_MSW_TOPLEVEL_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "toplevel.h" -#endif - #if wxUSE_SYSTEM_OPTIONS #define wxMAC_WINDOW_PLAIN_TRANSITION _T("mac.window-plain-transition") #endif @@ -54,9 +50,9 @@ public: virtual ~wxTopLevelWindowMac(); // implement base class pure virtuals - virtual void Maximize(bool maximize = TRUE); + virtual void Maximize(bool maximize = true); virtual bool IsMaximized() const; - virtual void Iconize(bool iconize = TRUE); + virtual void Iconize(bool iconize = true); virtual bool IsIconized() const; virtual void SetIcon(const wxIcon& icon); virtual void SetIcons(const wxIconBundle& icons) { SetIcon( icons.GetIcon( -1 ) ); } @@ -65,8 +61,8 @@ public: virtual bool SetShape(const wxRegion& region); virtual bool ShowFullScreen(bool WXUNUSED(show), long WXUNUSED(style) = wxFULLSCREEN_ALL) - { return FALSE; } - virtual bool IsFullScreen() const { return FALSE; } + { return false; } + virtual bool IsFullScreen() const { return false; } // implementation from now on // -------------------------- @@ -91,15 +87,18 @@ public: virtual void MacKeyDown( WXEVENTREF ev ) ; #endif virtual void MacFireMouseEvent( wxUint16 kind , wxInt32 x , wxInt32 y ,wxUint32 modifiers , long timestamp ) ; + + virtual void SetTitle( const wxString& title); + virtual wxString GetTitle() const; + virtual void Raise(); virtual void Lower(); - virtual void SetTitle( const wxString& title); - virtual bool Show( bool show = TRUE ); + virtual bool Show( bool show = true ); virtual void DoMoveWindow(int x, int y, int width, int height); void MacInvalidate( const WXRECTPTR rect, bool eraseBackground ) ; short MacGetWindowBackgroundTheme() const { return m_macWindowBackgroundTheme ; } - static bool MacEnableCompositing( bool useCompositing ); - bool MacUsesCompositing() { return m_macUsesCompositing; } + static bool MacEnableCompositing( bool useCompositing ); + bool MacUsesCompositing() { return m_macUsesCompositing; } #if TARGET_CARBON WXEVENTHANDLERREF MacGetEventHandler() { return m_macEventHandler ; } @@ -138,9 +137,7 @@ extern WXDLLEXPORT_DATA(wxWindowList) wxModelessWindows; // associate mac windows with wx counterparts wxTopLevelWindowMac* wxFindWinFromMacWindow( WXWindow inWindow ) ; -void wxAssociateWinWithMacWindow(WXWindow inWindow, wxTopLevelWindowMac *win) ; void wxRemoveMacWindowAssociation(wxTopLevelWindowMac *win) ; #endif // _WX_MSW_TOPLEVEL_H_ -