コード例 #1
0
 bool IsViewInBounds(Android.Views.View v, int x, int y)
 {
     v.GetDrawingRect(_rect);
     v.GetLocationOnScreen(_location);
     _rect.Offset(_location[0], _location[1]);
     return(_rect.Contains(x, y));
 }
コード例 #2
0
ファイル: CommandsPlatform.cs プロジェクト: dorisoy/Wesley
 private bool IsViewInBounds(int x, int y)
 {
     View.GetDrawingRect(_rect);
     View.GetLocationOnScreen(_location);
     _rect.Offset(_location[0], _location[1]);
     return(_rect.Contains(x, y));
 }