initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
42
libs/wxWidgets-3.3.1/interface/wx/persist/toplevel.h
Normal file
42
libs/wxWidgets-3.3.1/interface/wx/persist/toplevel.h
Normal file
@@ -0,0 +1,42 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/persist/toplevel.h
|
||||
// Purpose: interface of wxPersistentTLW
|
||||
// Author: Vadim Zeitlin
|
||||
// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
Persistence adapter for wxTopLevelWindow.
|
||||
|
||||
This adapter saves and restores the geometry (i.e. position and size) and
|
||||
the state (iconized, maximized or normal) of top level windows. It can be
|
||||
used with both wxFrame and wxDialog.
|
||||
|
||||
Note that it does @em not save nor restore the window visibility.
|
||||
*/
|
||||
class wxPersistentTLW : public wxPersistentWindow<wxTopLevelWindow>
|
||||
{
|
||||
public:
|
||||
/**
|
||||
Constructor.
|
||||
|
||||
@param tlw
|
||||
The associated window.
|
||||
*/
|
||||
wxPersistentTLW(wxTopLevelWindow *tlw);
|
||||
|
||||
/**
|
||||
Save the current window geometry.
|
||||
*/
|
||||
virtual void Save() const;
|
||||
|
||||
/**
|
||||
Restore the window geometry.
|
||||
*/
|
||||
virtual bool Restore();
|
||||
};
|
||||
|
||||
/// Overload allowing persistence adapter creation for wxTopLevelWindow-derived
|
||||
/// objects.
|
||||
wxPersistentObject *wxCreatePersistentObject(wxTopLevelWindow *tlw);
|
||||
Reference in New Issue
Block a user