wx.aui.AuiSerializer¶ wx.aui.AuiSerializer is used by wx.aui.AuiManager.SaveLayout to store layout information.
This is an abstract base class, you need to inherit from it and override its pure virtual functions, including those inherited from its base wx.aui.AuiBookSerializer class, in your derived class.
In particular, SavePane must be overridden and will be called by wx.aui.AuiManager for each pane and dock present in the layout. Most of the other functions don’t need to be overridden, but it is often convenient to perform some actions before or after starting to save the objects of the given type or at the beginning or end of the whole saving process, so this class provides hooks for doing it.
If any of the functions of the derived class throw an exception, it is propagated out of wx.aui.AuiManager.SaveLayout and it’s callers responsibility to handle it.
Added in version 4.3/wxWidgets-3.3.0.
Class Hierarchy¶
Inheritance diagram for class AuiSerializer:
Methods Summary¶Trivial default constructor. |
|
Called after saving everything. |
|
Called after the last call to SaveNotebook(). |
|
Called after the last call to |
|
Called before doing anything else. |
|
Called before starting to save information about the notebooks. |
|
Called before starting to save information about the panes. |
|
Save information about the given pane. |
Class API¶Possible constructors:
AuiSerializer() -> None
AuiSerializer is used by AuiManager.SaveLayout() to store layout information.
Trivial default constructor.
None
Called after saving everything.
Does nothing by default.
None
Called after the last call to SaveNotebook().
Does nothing by default.
This function is called after all wx.aui.AuiBookSerializer member functions
None
Called after the last call to SavePane .
Does nothing by default.
None
Called before doing anything else.
Does nothing by default.
None
Called before starting to save information about the notebooks.
Does nothing by default.
Note that this function is called after AfterSavePanes but may not be called at all if there are no panes containing wx.aui.AuiNotebook.
wx.aui.AuiBookSerializer member functions will be called after this function if it is called at all.
None
Called before starting to save information about the panes.
Does nothing by default.
None
Save information about the given pane.
This function will be called for all panes and must be implemented to save their data in a format from which it can be restored later using a matching wx.aui.AuiDeserializer implementation.
Note that all sizes and positions in pane are using DIPs, i.e. resolution-independent pixels, when it is passed to this function, so it does not need to perform any scaling itself to ensure that the stored values are restored correctly if the resolution changes.
pane (wx.aui.AuiPaneLayoutInfo)
None