mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 09:03:44 -07:00
removed unused method: FindElementUnderPoint
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1982 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
6f8489fe38
commit
f8475bc24f
2 changed files with 0 additions and 23 deletions
|
@ -368,14 +368,6 @@ namespace GreenshotPlugin.Core {
|
|||
}
|
||||
}
|
||||
|
||||
public ICaptureElement FindElementUnderPoint(Point p) {
|
||||
foreach(ICaptureElement element in elements) {
|
||||
if (element.Bounds.Contains(p)) {
|
||||
return element.FindElementUnderPoint(p);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -412,19 +404,6 @@ namespace GreenshotPlugin.Core {
|
|||
set;
|
||||
}
|
||||
|
||||
public ICaptureElement FindElementUnderPoint(Point point) {
|
||||
if (!Bounds.Contains(point)) {
|
||||
return null;
|
||||
}
|
||||
foreach(CaptureElement childElement in children) {
|
||||
if (childElement.Bounds.Contains(point)) {
|
||||
ICaptureElement selectedElement = childElement.FindElementUnderPoint(point);
|
||||
return selectedElement;
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
// CaptureElements are regarded equal if their bounds are equal. this should be sufficient.
|
||||
public override bool Equals(object obj) {
|
||||
bool ret = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue