Skip to content

Commit

Permalink
Rename function ChangeWindowFullMonitorWorkArea to UseWindowFullMonit…
Browse files Browse the repository at this point in the history
…orWorkArea
  • Loading branch information
Robxley committed Dec 10, 2024
1 parent 4465a6c commit 4d419d6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/hello_imgui/hello_imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ std::string GetBackendDescription();
void ChangeWindowSize(const ScreenSize &windowSize);


// `ChangeWindowFullMonitorWorkArea()`: sets the window size to the monitor work area
// `UseWindowFullMonitorWorkArea()`: sets the window size to the monitor work area
// (useful if you want to change the window size during execution)
void ChangeWindowFullMonitorWorkArea();
void UseWindowFullMonitorWorkArea();

// @@md

Expand Down
4 changes: 2 additions & 2 deletions src/hello_imgui/impl/hello_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ void ChangeWindowSize(const ScreenSize &windowSize)
}


void ChangeWindowFullMonitorWorkArea()
void UseWindowFullMonitorWorkArea()
{

gLastRunner->ChangeWindowFullMonitorWorkArea();
gLastRunner->UseWindowFullMonitorWorkArea();
}


Expand Down
2 changes: 1 addition & 1 deletion src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void AbstractRunner::ChangeWindowSize(HelloImGui::ScreenSize windowSize)
mBackendWindowHelper->SetWindowBounds(mWindow, bounds);
}

void AbstractRunner::ChangeWindowFullMonitorWorkArea()
void AbstractRunner::UseWindowFullMonitorWorkArea()
{
auto screenBounds = mGeometryHelper->GetCurrentMonitorWorkArea(mBackendWindowHelper.get(),mWindow);
this->setWasWindowResizedByCodeDuringThisFrame();
Expand Down
2 changes: 1 addition & 1 deletion src/hello_imgui/internal/backend_impls/abstract_runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AbstractRunner
ImageBuffer ScreenshotRgb() { return mRenderingBackendCallbacks->Impl_ScreenshotRgb_3D(); }

void ChangeWindowSize(ScreenSize windowSize);
void ChangeWindowFullMonitorWorkArea();
void UseWindowFullMonitorWorkArea();

void LayoutSettings_SwitchLayout(const std::string& layoutName);
bool ShouldRemoteDisplay();
Expand Down

0 comments on commit 4d419d6

Please sign in to comment.