コード例 #1
0
ファイル: stackview.cpp プロジェクト: alilloyd/livecode
MCPoint MCStack::view_stacktoviewloc(const MCPoint &p_loc) const
{
	return MCPointTransform(p_loc, m_view_transform);
}
コード例 #2
0
ファイル: w32dc.cpp プロジェクト: kant/livecode
MCPoint MCScreenDC::screentologicalpoint(const MCPoint &p_point)
{
	MCGFloat t_scale;
	t_scale = 1 / MCWin32GetLogicalToScreenScale();
	return MCPointTransform(p_point, MCGAffineTransformMakeScale(t_scale, t_scale));
}
コード例 #3
0
ファイル: stackview.cpp プロジェクト: alilloyd/livecode
MCPoint MCStack::view_viewtostackloc(const MCPoint &p_loc) const
{
	return MCPointTransform(p_loc, MCGAffineTransformInvert(m_view_transform));
}