Skip to content
GitLab
Menu
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
"Samples/XMLOutput/vscode:/vscode.git/clone" did not exist on "754bc3e555a0ff2584f0f3053cdf12f93dc84499"
Commit
f7a82ddb
authored
Jul 10, 2013
by
Tebjan Halm
Browse files
added click count to click method and mousearg
parent
f9088cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/SvgElement.cs
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>
...
...
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