MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_view_width

Method get_view_width

DSView/pv/view/view.cpp:1207–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205}
1206
1207int View::get_view_width()
1208{
1209 int view_width = 0;
1210 if (_device_agent->get_work_mode() == DSO) {
1211 for(auto s : _session->get_signals()) {
1212 view_width = max(view_width, s->get_view_rect().width());
1213 }
1214 }
1215 else {
1216 view_width = _viewcenter->width();
1217 }
1218
1219 if (view_width == 0){
1220 view_width = 1;
1221 }
1222
1223 return view_width;
1224}
1225
1226int View::get_view_height()
1227{

Callers 9

eventFilterMethod · 0.80
reloadMethod · 0.80
draw_logic_tick_markMethod · 0.80
draw_osc_tick_markMethod · 0.80
doPaintMethod · 0.80
paintProgressMethod · 0.80
mousePressEventMethod · 0.80
onLogicMouseReleaseMethod · 0.80
paintMeasureMethod · 0.80

Calls 2

get_work_modeMethod · 0.80
get_view_rectMethod · 0.45

Tested by

no test coverage detected