MCPcopy Create free account
hub / github.com/audacity/audacity / SaveWindowPreferences

Function SaveWindowPreferences

src/ProjectManager.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56namespace {
57 void SaveWindowPreferences(const wxRect& windowRect, const wxRect& normalRect,
58 bool isMaximized, bool isIconized) {
59 ProjectWindowX.Write(windowRect.GetX());
60 ProjectWindowY.Write(windowRect.GetY());
61 ProjectWindowWidth.Write(windowRect.GetWidth());
62 ProjectWindowHeight.Write(windowRect.GetHeight());
63 ProjectWindowMaximized.Write(isMaximized);
64 ProjectWindowNormalX.Write(normalRect.GetX());
65 ProjectWindowNormalY.Write(normalRect.GetY());
66 ProjectWindowNormalWidth.Write(normalRect.GetWidth());
67 ProjectWindowNormalHeight.Write(normalRect.GetHeight());
68 ProjectWindowIconized.Write(isIconized);
69 }
70}
71
72const int AudacityProjectTimerID = 5200;

Callers 1

SaveWindowSizeMethod · 0.85

Calls 3

GetHeightMethod · 0.80
WriteMethod · 0.45
GetWidthMethod · 0.45

Tested by

no test coverage detected