MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / SetFormRegion

Method SetFormRegion

DSView/pv/mainframe.cpp:788–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786}
787
788void MainFrame::SetFormRegion(int x, int y, int w, int h)
789{
790 #ifdef _WIN32
791
792 if (_parentNativeWidget != NULL){
793 int k = _parentNativeWidget->GetDevicePixelRatio();
794
795 x *= k;
796 y *= k;
797 w *= k;
798 h *= k;
799
800 _parentNativeWidget->setGeometry(x, y, w, h);
801
802 return;
803 }
804 #endif
805
806 setGeometry(x, y, w, h);
807}
808
809QRect MainFrame::GetFormRegion()
810{

Callers

nothing calls this directly

Calls 2

GetDevicePixelRatioMethod · 0.80
setGeometryMethod · 0.80

Tested by

no test coverage detected