Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
5c5f5470
Commit
5c5f5470
authored
May 19, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gui/timeline.c scroll up/down event to include x, y, key_modifiers
parent
4511fe77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
common/utils/T/tracer/gui/gui.h
common/utils/T/tracer/gui/gui.h
+2
-2
common/utils/T/tracer/gui/timeline.c
common/utils/T/tracer/gui/timeline.c
+9
-3
No files found.
common/utils/T/tracer/gui/gui.h
View file @
5c5f5470
...
...
@@ -86,8 +86,8 @@ int new_color(gui *gui, char *color);
* - click { int: button } (if enabled)
* - timeline
* - resize { int: width }
* - scrollup {
void *: NULL
}
* - scrolldown {
void *: NULL
}
* - scrollup {
int [3]: x, y, key_modifiers
}
* - scrolldown {
int [3]: x, y, key_modifiers
}
*/
/* same type as in gui_defs.h */
...
...
common/utils/T/tracer/gui/timeline.c
View file @
5c5f5470
...
...
@@ -58,15 +58,21 @@ static void button(gui *_g, widget *_this, int x, int y,
int
key_modifiers
,
int
button
,
int
up
)
{
struct
gui
*
g
=
_g
;
struct
timeline_widget
*
this
=
_this
;
int
d
[
3
]
;
LOGD
(
"BUTTON timeline %p xy %d %d button %d up %d
\n
"
,
_this
,
x
,
y
,
button
,
up
);
/* scroll up */
if
(
button
==
4
&&
up
==
0
)
{
gui_notify
(
g
,
"scrollup"
,
_this
,
NULL
);
d
[
0
]
=
x
;
d
[
1
]
=
y
;
d
[
2
]
=
key_modifiers
;
gui_notify
(
g
,
"scrollup"
,
_this
,
d
);
}
/* scroll down */
if
(
button
==
5
&&
up
==
0
)
{
gui_notify
(
g
,
"scrolldown"
,
_this
,
NULL
);
d
[
0
]
=
x
;
d
[
1
]
=
y
;
d
[
2
]
=
key_modifiers
;
gui_notify
(
g
,
"scrolldown"
,
_this
,
d
);
}
}
...
...
Write
Preview
Markdown
is supported
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