Example #1
0
ViewState::ViewState()
{
	// Set all the params to defaults
	pView = NULL;

	// Make all rects empty
	ScreenRect.MakeEmpty();
	ParentRect.MakeEmpty();
	ViewRect.MakeEmpty();
	WorkAreaExtent.MakeEmpty();
	IconPoint = Coord(0,0);

	ViewScale = 0;
	zPos = 0;
	
	IsNewView = TRUE;
	IsMinimised = FALSE;
	IsMaximised = FALSE;
	AlwaysOnTop = FALSE;
	RulersVisible = FALSE;
	ScrollersVisible = TRUE;
	ScrollPosition = WorkCoord(0,0);

	_GridShow = _GridSnap = _ObjectsSnap = _MagObjectsSnap = _PrintBorderShow = FALSE;
	_LogicalView = _GuidesSnap = _GuidesShow = FALSE;
}
Example #2
0
WorkRect OilRect::ToWork(const WorkCoord& ScrollOffset) const
{
	return WorkRect(WorkCoord(ScrollOffset.x + lo.x, ScrollOffset.y + lo.y),
					WorkCoord(ScrollOffset.x + hi.x, ScrollOffset.y + hi.y));
}