Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
f7a82ddb
Commit
f7a82ddb
authored
11 years ago
by
Tebjan Halm
Browse files
Options
Download
Email Patches
Plain Diff
added click count to click method and mousearg
parent
f9088cab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/SvgElement.cs
+7
-5
Source/SvgElement.cs
with
7 additions
and
5 deletions
+7
-5
Source/SvgElement.cs
+
7
-
5
View file @
f7a82ddb
...
...
@@ -666,21 +666,21 @@ namespace Svg
[
SvgAttribute
(
"onmouseout"
)]
public
event
EventHandler
MouseOut
;
protected
void
OnClick
(
float
x
,
float
y
,
int
button
)
protected
void
OnClick
(
float
x
,
float
y
,
int
button
,
int
clickCount
)
{
var
handler
=
Click
;
if
(
handler
!=
null
)
{
handler
(
this
,
new
MouseArg
{
x
=
x
,
y
=
y
,
Button
=
button
});
handler
(
this
,
new
MouseArg
{
x
=
x
,
y
=
y
,
Button
=
button
,
ClickCount
=
clickCount
});
}
}
protected
void
OnMouseDown
(
float
x
,
float
y
,
int
button
)
protected
void
OnMouseDown
(
float
x
,
float
y
,
int
button
,
int
clickCount
)
{
var
handler
=
MouseDown
;
if
(
handler
!=
null
)
{
handler
(
this
,
new
MouseArg
{
x
=
x
,
y
=
y
,
Button
=
button
});
handler
(
this
,
new
MouseArg
{
x
=
x
,
y
=
y
,
Button
=
button
});
}
}
...
...
@@ -689,7 +689,7 @@ namespace Svg
var
handler
=
MouseUp
;
if
(
handler
!=
null
)
{
handler
(
this
,
new
MouseArg
{
x
=
x
,
y
=
y
,
Button
=
button
});
handler
(
this
,
new
MouseArg
{
x
=
x
,
y
=
y
,
Button
=
button
});
}
}
...
...
@@ -746,6 +746,8 @@ namespace Svg
/// 1 = left, 2 = middle, 3 = right
/// </summary>
public
int
Button
;
public
int
ClickCount
=
-
1
;
}
/// <summary>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help