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
70ebbd7e
Commit
70ebbd7e
authored
May 11, 2016
by
Cédric Roux
Browse files
new function xy_plot_get_dimensions
parent
029adbf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/gui/gui.h
View file @
70ebbd7e
...
...
@@ -37,6 +37,7 @@ void xy_plot_set_range(gui *gui, widget *this,
float
xmin
,
float
xmax
,
float
ymin
,
float
ymax
);
void
xy_plot_set_points
(
gui
*
gui
,
widget
*
this
,
int
plot
,
int
npoints
,
float
*
x
,
float
*
y
);
void
xy_plot_get_dimensions
(
gui
*
gui
,
widget
*
this
,
int
*
width
,
int
*
height
);
void
textlist_add
(
gui
*
gui
,
widget
*
this
,
const
char
*
text
,
int
position
,
int
color
);
...
...
common/utils/T/tracer/gui/xy_plot.c
View file @
70ebbd7e
...
...
@@ -272,3 +272,16 @@ void xy_plot_set_points(gui *_gui, widget *_this, int plot,
gunlock
(
g
);
}
void
xy_plot_get_dimensions
(
gui
*
_gui
,
widget
*
_this
,
int
*
width
,
int
*
height
)
{
struct
gui
*
g
=
_gui
;
struct
xy_plot_widget
*
this
=
_this
;
glock
(
g
);
*
width
=
this
->
common
.
width
-
this
->
vrule_width
;
*
height
=
this
->
common
.
height
-
this
->
label_height
*
2
;
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