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

Method update_margins

DSView/pv/view/view.cpp:994–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994void View::update_margins()
995{
996 int width = get_view_width();
997
998 if (width > 0)
999 {
1000 _ruler->setGeometry(_viewcenter->x(), 0, width, _viewcenter->y());
1001 _header->setGeometry(0, _viewcenter->y(), _viewcenter->x(), _viewcenter->height());
1002 _devmode->setGeometry(0, 0, _viewcenter->x(), _viewcenter->y());
1003 }
1004}
1005
1006void View::header_updated()
1007{

Callers

nothing calls this directly

Calls 1

setGeometryMethod · 0.80

Tested by

no test coverage detected