MCPcopy Create free account
hub / github.com/beefytech/Beef / Resize

Method Resize

BeefySysLib/platform/win/WinBFApp.cpp:1650–1666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1648}
1649
1650void WinBFWindow::Resize(int x, int y, int width, int height, ShowKind showKind)
1651{
1652 WINDOWPLACEMENT wndPlacement = { sizeof(WINDOWPLACEMENT), 0 };
1653 ::GetWindowPlacement(mHWnd, &wndPlacement);
1654
1655 wndPlacement.showCmd = ToWShow(showKind);
1656 wndPlacement.rcNormalPosition.left = x;
1657 wndPlacement.rcNormalPosition.top = y;
1658 wndPlacement.rcNormalPosition.right = x + width;
1659 wndPlacement.rcNormalPosition.bottom = y + height;
1660 ::SetWindowPlacement(mHWnd, &wndPlacement);
1661
1662 //::MoveWindow(mHWnd, x, y, width, height, FALSE);
1663 mRenderWindow->Resized();
1664 if (mMovedFunc != NULL)
1665 mMovedFunc(this);
1666}
1667
1668void WinBFApp::PhysSetCursor()
1669{

Callers 2

CreateModelInstanceMethod · 0.45
LoadTextureMethod · 0.45

Calls 2

ToWShowFunction · 0.85
ResizedMethod · 0.45

Tested by

no test coverage detected