mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 03:30:02 -07:00
commented outdated implementations of ClickableAt(int, int) and Contains(int, int)
This commit is contained in:
parent
825bc4b7f4
commit
86d99a5a0d
2 changed files with 4 additions and 4 deletions
|
@ -215,7 +215,7 @@ namespace Greenshot.Drawing {
|
||||||
DrawText(graphics, rect, lineThickness, lineColor, false, StringFormat, Text, Font);
|
DrawText(graphics, rect, lineThickness, lineColor, false, StringFormat, Text, Font);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool Contains(int x, int y) {
|
/*public override bool Contains(int x, int y) {
|
||||||
double xDistanceFromCenter = x - (Left + Width / 2);
|
double xDistanceFromCenter = x - (Left + Width / 2);
|
||||||
double yDistanceFromCenter = y - (Top + Height / 2);
|
double yDistanceFromCenter = y - (Top + Height / 2);
|
||||||
// ellipse: x^2/a^2 + y^2/b^2 = 1
|
// ellipse: x^2/a^2 + y^2/b^2 = 1
|
||||||
|
@ -246,6 +246,6 @@ namespace Greenshot.Drawing {
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -396,10 +396,10 @@ namespace Greenshot.Drawing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool ClickableAt(int x, int y) {
|
/*public override bool ClickableAt(int x, int y) {
|
||||||
Rectangle r = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
|
Rectangle r = GuiRectangle.GetGuiRectangle(Left, Top, Width, Height);
|
||||||
r.Inflate(5, 5);
|
r.Inflate(5, 5);
|
||||||
return r.Contains(x, y);
|
return r.Contains(x, y);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue