Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
ee623563
Commit
ee623563
authored
May 13, 2016
by
Cédric Roux
Browse files
new function timeline_get_width
parent
48f0c341
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/gui/gui.h
View file @
ee623563
...
...
@@ -59,6 +59,7 @@ void timeline_add_points(gui *gui, widget *this, int subline, int color,
int
*
x
,
int
len
);
void
timeline_set_subline_background_color
(
gui
*
gui
,
widget
*
this
,
int
subline
,
int
color
);
void
timeline_get_width
(
gui
*
gui
,
widget
*
this
,
int
*
width
);
void
gui_loop
(
gui
*
gui
);
...
...
common/utils/T/tracer/gui/timeline.c
View file @
ee623563
...
...
@@ -148,3 +148,15 @@ void timeline_set_subline_background_color(gui *_gui, widget *_this,
gunlock
(
g
);
}
void
timeline_get_width
(
gui
*
_gui
,
widget
*
_this
,
int
*
width
)
{
struct
gui
*
g
=
_gui
;
struct
timeline_widget
*
this
=
_this
;
glock
(
g
);
*
width
=
this
->
common
.
width
==
0
?
this
->
wanted_width
:
this
->
common
.
width
;
gunlock
(
g
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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